Languages

Menu
Sites
Language
Disable Uninstall option for Native App

Hi All,

I am developing a Tizen native app for Samsung Z1.

I want to disable the uninstall option for my app (In Application Manager). I should be able to enable/disable programmatically.

Is it possible? If yes how can that be done?

Responses

5 Replies
Alex Dem

Hi,
I did not face (or don't know about) such possibility. AFAIK with Package Manager API you are able to get some package_info only: Is your app system, preload or removable (for example). Also I have checked some preloaded apps (browser ,call) this way:

  package_info_is_system_package (package_info, &system);
  package_info_is_removable_package (package_info, &removable);
  package_info_is_preload_package(package_info, &preload);

And have got: system=true,removable=false,preload =true
for usual (developed) apps they are system=false,removable=true,preload =false
But as i know there is no API to set 'removable' or other property for desired app.
Alexey.

Marco Buettner

Its not possible and will not possible. All apps from Tizen Store/external way are removable because the user decide he likes the app or not.

If you want your application shouldnt removable you have to create a own ROM for the device and preinstall your application.

Dharmesh Guna

Thanks Marco and Alex,

If thats not possible then can we register a callback when user try to uninstall the Agent ?

Alex Dem

Hi,
Try to look at package_manager_set_event_cb api (also please find Listening to Package Events in dev-guide).
Alexey.

Palitsyna

Hello,

as Alex Dem said, try to use package_manager_set_event_cb api, here you can findmore information about it:
API Reference: https://developer.tizen.org/dev-guide/2.3.0/org.tizen.native.mobile.apireference/group__CAPI__PACKAGE__MANAGER__MODULE.html

Guide: https://developer.tizen.org/development/guides/native-application/application-framework/package-manager-0

Tutorial: https://developer.tizen.org/development/tutorials/native-application/application-framework/package-manager-0 (also you can find there a chapter about  Listening to Package Events)

 

Regards,

Svetlana Palitsyna