prompt for username and password if we try to delete the application from mobile

Login to reply to this topic.
Tue, 2008-04-08 04:31
Joined: 2008-03-18
Forum posts: 46

Hi everyone,

I want to do one thing that when anyone try to delete the application by pressing remove option from application manager then one dialog box should appear in mobile in which user has to enter the password and if the details are entered correctly then and then only user will be allowed to
delete the application otherwise not.

Regards,
Sweta


NEWBIE OF SYMBIAN


Tue, 2008-04-08 06:54
Forum Nokia Champion
Joined: 2003-06-10
Forum posts: 720
Re: prompt for username and password if we try to delete the app

Not worth it. The user can always reflash the phone or just reformat it to get rid of your application, and you can't really prevent those actions.

Doing what you want is not possible with published APIs and might require more privileges/capabilities generally granted to apps. If you take that, and what I stated first, it is not, IMO, worth trying to set up this kind of feature.

If it is for a corporate solution, and company issued phones to employees, look into the already existing device management (research OMA DM):
http://www.forum.nokia.com/info/sw.nokia.com/id/8a373f2e-7b8b-4853-9f73-e1bf64c14679/Introduction_To_Advanced_Device_Management_v1_0_en.pdf.html

Tue, 2008-04-08 07:47
Joined: 2008-03-18
Forum posts: 46
Re: prompt for username and password if we try to delete the app

Hi

I am very new for symbian. I just want to write an application which will launch whenever i will try to remove an application from application manager.

Thanks,
Sweta


NEWBIE OF SYMBIAN

Tue, 2008-04-08 08:00
Joined: 2005-11-20
Forum posts: 1248
Very hard or maybe downright impossible

The idea to provide such uninstall protection for some kind of programs is rather natural, and it has come up already a few times on this forum, but I would confirm what N/A says: As far as I know Symbian does not offer public APIs to build such a mechanism. Whether unpublished APIs would make something like that possible is hard to say, but in any way it would probably be very difficult and cost a lot of money to get access to those APIs and the permission to use them.

Not everything that seems natural, useful, needed and present on other systems is really there in Symbian, not by a long shot...


René Brunner

Tue, 2008-04-08 11:26
Joined: 2007-09-15
Forum posts: 61
Re: prompt for username and password if we

I agree to the previously said things by N_A and rene, but I think this must be possible (somehow), What I think can do this is like, You need to have an exe running in the background (under protected mode), checking for the status of some file (using the RFs API), that you have placed in your private directory at the install time. When the system Uninstaller will try to uninstall your application, it will also try to delete that file, at that event you can launch your application and ask for a password, I m not very sure wether you can terminate the system uninstaller after that, but can try atleast.

Hope to get some more indepth inputs from others.

Tue, 2008-04-08 15:37
NewLC AdministratorSymbian AccreditedForum Nokia Champion
Joined: 2003-01-14
Forum posts: 2009
Re: prompt for username and password if we try to delete the app

When the system Uninstaller will try to uninstall your application, it will also try to delete that file, at that event you can launch your application and ask for a password, I m not very sure wether you can terminate the system uninstaller after that, but can try atleast.

You can try to do an executable which is started at uninstall time (FILERUN, RUNREMOVE, RUNWAITEND). That executable could ask for a password and kill the installer application if the password check fails.


Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant

Wed, 2008-04-09 04:17
Joined: 2007-09-15
Forum posts: 61
Re: prompt for username and password if we try to

Just to add, I just came across this link:
http://wiki.forum.nokia.com/index.php/TSS000468_-_Receiving_notifications_for_installation_events
This is to monitor the installations, but I think this can help in the other case (Unistallations) as well.

Wed, 2008-04-09 09:44
Joined: 2008-03-18
Forum posts: 46
Re: prompt for username and password if we try to delete the app

Hi all

Thanks eric for ur valuable suggestion.
Now i am able to launch my password application at the time of uninstallation.

Can anyone tell me how to kill the uninstaller application after entering wrong password.

Thanks
Sweta


NEWBIE OF SYMBIAN

Thu, 2008-04-10 04:52
Joined: 2007-09-15
Forum posts: 61
Re: prompt for username and password if we try to delete

Check for the UID of the Uninstaller and depending upon the password entered, kill that process. Check the RProcess API for this.

Thu, 2008-04-10 19:36
Forum Nokia Champion
Joined: 2003-06-10
Forum posts: 720
Re: prompt for username and password if we try to delete the app

But still do realize that a user can remove your uninstall preventor simply by reformatting or reflashing the phone (or using other mean that require somewhat more skills).

  • Login to reply to this topic.