Create system app with the ROM and prevent from being disabled - Android Q&A, Help & Troubleshooting

For a project I need to install an app in a custom rom as a system app to prevent being uninstalled. The problem comes with Android 6, where some system apps can be disabled. For example, Google apps like Youtube or Gmail can be disabled, but other apps like Calendar, Messages or Clock can't be disabled.
Now I'm placing my apk inside /system/priv-app but my app can be disabled. ¿Any idea how to prevent that?
Thanks in advance!

With custom roms there is no way to prevent it. All it takes is root and a root browser or an adb command.

zelendel said:
With custom roms there is no way to prevent it. All it takes is root and a root browser or an adb command.
Click to expand...
Click to collapse
Thanks for the quick response. Well, I assume that using root or adb apps can be unninstalled.
The only thing I want is to prevent a "normal user" to uninstall the app throught the Android UI.
With the app now on /system/app/my.apk I've achieved to prevent Android from uninstalling the app, but it can be disabled (Android 6.0). So my question is how can I prevent also from disable the app?

dlaballosn said:
Thanks for the quick response. Well, I assume that using root or adb apps can be unninstalled.
The only thing I want is to prevent a "normal user" to uninstall the app throught the Android UI.
With the app now on /system/app/my.apk I've achieved to prevent Android from uninstalling the app, but it can be disabled (Android 6.0). So my question is how can I prevent also from disable the app?
Click to expand...
Click to collapse
As far I know there is no way to prevent it. If there is it will be a bool settings. I would look at an app that doesn't allow disabling it. But I think you might need a Google signature for that.
Search stack overflow and you might find something.

Related

donation package - greenifying system apps non root

Hello. I have the non root app. I see that if i want to check the option "greenifying system apps" i have to purchase the donation package.
The question is: do i need also root ? Thanks
No, you do not need root. That is the beauty of the app now. But the hibernated system apps may wake up sometimes. With root, once hibernated, they stay that way.
gxg10 said:
Hello. I have the non root app. I see that if i want to check the option "greenifying system apps" i have to purchase the donation package.
The question is: do i need also root ? Thanks
Click to expand...
Click to collapse
After I tried to understand the text under the "Greenifying system apps" I found out that, no, you would not require root. However, the process might not be smooth as if you installed Xposed and use boost mode. But still, you can hibernate system apps.

[Q] Greenify useful without root?

Is it worth using the app at all if I am not root? I do not plan to do so for awhile so I want to use the app as it is but is there any real value in attempting to save my battery?
an_xda said:
Is it worth using the app at all if I am not root? I do not plan to do so for awhile so I want to use the app as it is but is there any real value in attempting to save my battery?
Click to expand...
Click to collapse
If there's no root the only benefit you lose is; practically nothing. The boost mode is the one that offers so much. The "non-root" feature is there for a reason. I believe, it will benefit you :good:
TechnoSparks said:
If there's no root the only benefit you lose is; practically nothing. The boost mode is the one that offers so much. The "non-root" feature is there for a reason. I believe, it will benefit you :good:
Click to expand...
Click to collapse
Thanks, this can easily be uninstalled if it fails to benefit me right? I know there is this auto-hibernation mode but I was reading the description about having no lock screen for it to work. I currently use the fingerprint scanner on my Note 4 so I am not sure if Greenfiy will work with this.
Is there any difference between the root and non-root mode aside from the automation differences?
Does root mode also force close apps in the background to achieve app hibernation or is it a different method from the non-root mode?
i cannot figure out how to uninstall greenify (non-root). Uninstall button in play store is not there - only deactivate is shown and brings an error that some administrative thing needs to be removed first? I cannot clear cache or stop the greenify service in the App list because its all greyed out. Please can somebody help me?
Andiii said:
i cannot figure out how to uninstall greenify (non-root). Uninstall button in play store is not there - only deactivate is shown and brings an error that some administrative thing needs to be removed first? I cannot clear cache or stop the greenify service in the App list because its all greyed out. Please can somebody help me?
Click to expand...
Click to collapse
Settings, Device Administraor. Uncheck Greenify. That is what "deactivate" means.
Additionally, if necessary, switch off Greenify in SETTINGS>Accessibility before uninstalling though it may not be necessary.
theprodigy85 said:
Does root mode also force close apps in the background to achieve app hibernation or is it a different method from the non-root mode?
Click to expand...
Click to collapse
The hibernation method used in both modes should be almost identical IMO. A possible delay of reopening a greenified app should occur in both modes, as the greenified app's process needs to be recreated. However, the root mode brings a few more benefits which could be inferred according to the root exclusive options provided in the "Experimental features" option.
since this thread is about(ishhhh ) root, i have a quick question concerning v2.5 final, doesnt greenify need root permission anymore? i installed the lastest version in a fresh installed rom, selected some apps to greenify but even in root or boost working mode, it didnt ask to give root permissions. so i ask, is this normal in this version?
NAZUnlimited said:
since this thread is about(ishhhh ) root, i have a quick question concerning v2.5 final, doesnt greenify need root permission anymore? i installed the lastest version in a fresh installed rom, selected some apps to greenify but even in root or boost working mode, it didnt ask to give root permissions. so i ask, is this normal in this version?
Click to expand...
Click to collapse
Did you enable the options in Experimental Mode that are meant for root?
Also check your Supersu settings to see whether you have enabled the setting for the app to not ask for root permission on updating.

Permissions for preinstalled apps

So I have seen the 6.0 and the CM permission system before.
Both have a toggle that allows setting permissions for preinstalled system apps aswell.
Is that possible in OxygenOS too?
(The whole reason for me to get a phone with a permission system was to be able to restrain all that Google Play stuff...)
NotieB said:
So I have seen the 6.0 and the CM permission system before.
Both have a toggle that allows setting permissions for preinstalled system apps aswell.
Is that possible in OxygenOS too?
(The whole reason for me to get a phone with a permission system was to be able to restrain all that Google Play stuff...)
Click to expand...
Click to collapse
CM's privacy guard can do exactly that, even with system apps. OOS's permissions can only limit non-system apps, so you'd need to remove all the Google Play apps as system apps and re-install as user apps (or convert them to user apps with Titanium Backup). However, this would need root. Not sure if you wanted a non-root option, but I can't think of any that would not require root.
MrKhozam said:
However, this would need root. Not sure if you wanted a non-root option, but I can't think of any that would not require root.
Click to expand...
Click to collapse
I was indeed wondering about a non root option, i.e. if there is a toggle i just missed.
So I guess I'll wait for the 6.0 update as the native android permission system works for system apps aswell, and they'd be stupid to replace it.

Unbranded Android TV - No android settings app

Hi everyone,
I have an unbranded (sticker brand) Android TV that apparently has a custom firmware with almost everything modified, with the most annoying thing is that they have completely removed the stock Android settings app and replaced it with a custom settings app that has hardly any options. That prevents by from doing even basic stuff such as cleaning app's cache and data. Using ES Task Manager I've verified that they actually removed the settings app and not just the launcher link.
Is there any way I can get the native settings app into the device? Is there any alternative settings app that does a good job? I can install apks from unknown sources but no ADB (no hardware connection to PC).
Also, any rooting advice will also be appreciated but this is not critical. I have no ADB but the Android version is 4.4.2 and not really updated so exploit-based roots may work.
Bump
Hi,
Did you find any solution?
i'm even not able to boot in recovery mode
Try this
Hidden Settings For Android - Apps on Google Play
It can open practical settings which some phone vendors hide for user
play.google.com
jwoegerbauer said:
Try this
Hidden Settings For Android - Apps on Google Play
It can open practical settings which some phone vendors hide for user
play.google.com
Click to expand...
Click to collapse
I'm able to sideload apps but when i download apps require permission doesn't work like i have install reboot to recovery i'm not even allowed to reboot in stock recovery
ankitsingh1o1 said:
I'm able to sideload apps but when i download apps require permission doesn't work like i have install reboot to recovery i'm not even allowed to reboot in stock recovery
Click to expand...
Click to collapse
This thread's topic is "Android Settings" and NOT "adb sideload" etc.pp.
Start a new thread related to your issue.
jwoegerbauer said:
Try this
Hidden Settings For Android - Apps on Google Play
It can open practical settings which some phone vendors hide for user
play.google.com
Click to expand...
Click to collapse
Installed this app not working, only ads being displayed but no option only white screen in middle

remove some stock apps and then disable/ restrict any further software changes

After I root a phone, I would like to be able to uninstall/remove some stock apps (for example, stock Messaging app) and add some new apps (for example, 3d-party Messaging app).
Do I need Titanium app to achieve that? Or is there something more lightweight?
After I complete the setup, I want to disable/ restrict any further software changes. Pretty much the same as Window OS "Admin" VS "Standard User"
So I guess I would need some app manager capable of permission managing.
Any advice on my project? Will my phone be as stable as the original stock after such modding?
The phones: Moto E2 and Moto G2 and G3, Android 5.01 or 6.01
Well, Backing Up the Stock Content before doing any Modding to your Phone is a Good Practice and Extremely Recommended in Case of any worst case scenarios and you can achieve the same by Titanium Back or any Other app Readily available on Play Store.
After Back up, Yes, you can Uninstall PreInstalled apps or any other bloatware that you may don't want in your phone. And Install 3rd Party apps in place of stock Ones.
Talking about Permissions, until/unless you give Root Access to that App, it won't be able to Make any changes in the System. So, you also have to keep a check on giving Root permissions to apps.
Your Phone Will remain stable When you know what actually you are doing with it and what measures could be taken to revert it.
abhinavp649 said:
Talking about Permissions, until/unless you give Root Access to that App, it won't be able to Make a.
Click to expand...
Click to collapse
Once the phone is rooted, will I be able to block/restrict both: uninstalling apps (which are already installed) and installing new apps? The phone will be used by my kids, so I want to prevent them from making any phone changes.
rybshik said:
Once the phone is rooted, will I be able to block/restrict both: uninstalling apps (which are already installed) and installing new apps? The phone will be used by my kids, so I want to prevent them from making any phone changes.
Click to expand...
Click to collapse
You can't restrict to install and uninstall apps. As abhinavp649 said the application makes modifications to the system if you give root permission to them. If you are using SuperSU superuser app then you can set pin to grant root permission to the app from the settings of supersu
rybshik said:
Once the phone is rooted, will I be able to block/restrict both: uninstalling apps (which are already installed) and installing new apps? The phone will be used by my kids, so I want to prevent them from making any phone changes.
Click to expand...
Click to collapse
To Prevent app from uninstalling the best way is to hide it From Home screen Or Make that as System.
And Revoke SU permissions from those apps which can uninstall system apps or any similar one.
Hit thanks if Helped :laugh:
abhinavp649 said:
to hide it From Home screen Or Make that as System.:
Click to expand...
Click to collapse
How can I do that?
Additionally, can I, for example, turn on Location (GPS) and prevent the phone user from turning it OFF? thanks!
rybshik said:
How can I do that?
Additionally, can I, for example, turn on Location (GPS) and prevent the phone user from turning it OFF? thanks!
Click to expand...
Click to collapse
Installing an App as system is a easy and you can find tools easily on play store. Just search 'make app system' or something else similar.
Using GPS to prevent Turn off? I think you are expecting too too much out of a device.
However, you can disable Power Off from options you get by holding lock button.
To do this You Have to Install Xposed Framework in your Device.
Xposed Framework allows you to do Amazing modding to your Android device. You can just do everything with the device(Exceptions are always present)
rybshik said:
How can I do that?
Additionally, can I, for example, turn on Location (GPS) and prevent the phone user from turning it OFF? thanks!
Click to expand...
Click to collapse
If you are thinking of turning on GPS for the sake of tracking your kids, then make sure you tell them you are doing so. Have known a few people that got into legal trouble for not doing so.
In the end if the kids are smart enough there will be nothing you can really do as they can just reset the device and everything you did is gone.
zelendel said:
nothing you can really do as they can just reset the device
Click to expand...
Click to collapse
So, can I prevent that by disabling/removing or password-protecting the option of "Factory Reset" on a rooted Android 6.0?
rybshik said:
So, can I prevent that by disabling/removing or password-protecting the option of "Factory Reset" on a rooted Android 6.0?
Click to expand...
Click to collapse
No. You can not restrict or disable factory data reset option by any ways even you are rooted. Some brands like Samsung gives FRP (factory reset protection) to their device. Devices without FRP easily factory data reset by entering in recovery mode or in settings.

Categories

Resources