prompt for username and password if we try to delete the application from mobile
| Tue, 2008-04-08 04:31 | |
|
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 Regards, NEWBIE OF SYMBIAN |
|






Forum posts: 720
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
Forum posts: 46
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
Forum posts: 1248
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
Forum posts: 61
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.
Forum posts: 2009
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
Forum posts: 61
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.
Forum posts: 46
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
Forum posts: 61
Check for the UID of the Uninstaller and depending upon the password entered, kill that process. Check the RProcess API for this.
Forum posts: 720
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).