I made an app which I want to install in system/app directory so that user can not uninstall it. but I want to do it without rooting device. as soon as user download app it will be install in system/app directory.
I want to do this by writing code. I am aiming that users are not allow to uninstall it.
Only system
level applications (ie preloaded applications like Gallery
, Video Player
, Music Player
, SystemUI
etc ) resides in /system/app
folder and they have super user
(or root equivelent) permission
As programmatically, without rooting device, any 3rd party application cannot be installed to /system/app/
folder
You can't do without root access . Once your device gets rooted you manually need to make that app system app. Otherwise there is no way to so without root. You cant do that just with coding of whatever type you write.
/system is mounted a read-only, you cannot install an app to /system/app unless rooted. If you are running a rooted rom then just do adb remount to make it read-write
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.