Skip to main content

Preventing deletion of J2ME app

5 replies [Last post]
sarathgopalr
Offline
Joined: 2007-07-26

I need to prevent deletion of my jar file or app in a mobile by an unauthorised user...like say the user can set a password and inorder to delete this app he/she must provide this password..otherwise the app should not be deleted...

IS THERE ANY WAY TO IMPLEMENT THIS USING J2ME???!!!!!!

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
sarathgopalr
Offline
Joined: 2007-07-26

Thank you for your replies..but i heard that there is [b]no way[/b] to activate a j2me app on [u]boot up [/u]without using a [b]third party application.[/b]..deisgned for that particular mobile version..is it true?? if not how can i start my app on boot up???

sfitzjava
Offline
Joined: 2003-06-15

to launch at boot up there is an option on the PushRegistry alarm mechanism (for some phone models) that can be used. Here is a link with information on it.
http://developer.sonyericsson.com/message/105775

-Shawn

sarathgopalr
Offline
Joined: 2007-07-26

Thank you..my questions are answered..thank you for your reply...

sfitzjava
Offline
Joined: 2003-06-15

This is not possible in JavaME using the MIDP profile.
Albert_Kam is right that you could on many phones setup an on-boot trigger of your application. However if this is done by a few apps the user is quickly going to be irritated and remove your app anyway.

Your concern that an "unauthorized user" is going to delete the midlet is valid, as most phone users do not setup a lock code on their phone leaving it wide open to unauthorized use. But there can not be an option in the JavaME specification to allow this feature as it could allow unethical developers the opportunity to build a virus that could render a phone inoperable without a way to remove the offending code.

Regards,
-Shawn

albert_kam
Offline
Joined: 2007-11-26

Hi there,

If your app will run exclusively on the client's pocket pc, i think you could try this approach i'm using :
1. When the pocket pc is turned on, the application is automatically launched, full screen, no task bar, no start menu, nothing.
2. The app runs fullscreen, and then when he tries to exit, he'll be prompted for password.

This would mean ordinary user couldnt do anything with the system, he'll just interact with your application only.

Regards,
Albert Kam