4

Device Pre-installed Apps(Camera, Calendar, file manager etc. ) have options for 'Force Stop' and 'Enable/Disable' app. And, for User installed apps(from PlayStore etc.) have only options 'Force Stop' and 'Uninstall'.

I have set some applications to start from boot. Mostly, user apps are set to start, while I touch them only. But, some user apps start automatically, and consumes RAM. I will Force Stop/remove those apps from RAM. But, it starts again after few hours.

Is there any method to disable such apps rather than uninstalling those apps.

Device : Xiaomi Redmi 1S - Lineage OS 14.1(rooted)

0

3 Answers 3

4

On a rooted device, it is possible to disable/enable user apps using a terminal emulator.

To do so, open a terminal of your choice, enter

su

to acquire root privileges and then enter

pm disable <packagename>

Take care to replace <packagename> with the package name of the app you wish to disable (for example, if you wish to disable WhatsApp, your command will be pm disable com.whatsapp).

To revert the process and thus enable a disabled app, acquire root privileges and issue

pm enable <packagename>

Again, remember to replace <packagename> with the package name of the disabled app you wish to enable.

2
  • An Xposed module named XInstaller can make this procedure easier.
    – iBug
    Commented Jun 20, 2017 at 12:03
  • @iBug I'm aware, but why not to use LOS' integrated Terminal? Feel free to write an answer too, if you want to provide a GUI alternative.
    – Grimoire
    Commented Jun 20, 2017 at 12:04
2

If you have Xposed Framework installed, you should try XInstaller.

Install it and reboot. Then navigate to Apps Info. Tap on Disable User Apps to enable this option. Now you can go to Settings -> Manage Apps and tap on an app. You'll see a Disable option under the usual Uninstall one.

Thanks to Death Mask Salesman, you can also use XInstaller's successor for Android 6.0+, InstallerOpt. It provides similar function and is intended to replace XInstaller, which is faulty in Android 6.

Disclosure: I am not affiliated with XInstaller or its author. I am just a fan user of it.

5
  • 1
    +1: this is a neat solution for anyone who also cares for more control over Android's Package Installer.
    – Grimoire
    Commented Jun 20, 2017 at 13:06
  • By the way, you might be interested in the spiritual successor, InstallerOpt.
    – Grimoire
    Commented Jul 13, 2017 at 10:08
  • @DeathMaskSalesman Lol... I switched to OnePlus 5 and Xp Fw is no longer available.
    – iBug
    Commented Jul 13, 2017 at 10:49
  • @DeathMaskSalesman Your comment about InstallerOpt is a valid answer. You can post it.
    – iBug
    Commented Jul 13, 2017 at 14:51
  • Since InstallerOpt is the successor of XInstaller, I think that it would be best suited as an addition to your answer.
    – Grimoire
    Commented Jul 13, 2017 at 15:01
0

If your goal is to free more RAM, then this could be useful:

  • Go to Settings > Memory
  • The last menu entry says something like "apps that start on boot"
  • Click on each app that you don't want to run in background and disable the "start on boot" and "run in background" permissions

I've tested this on the latest version of Lineage OS (based on Android 7.1).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .