Apps deaktivieren

Aus Android Wiki

F: Wie kann man Apps deaktivieren, deren Schaltfläche "Deaktivieren" unter Einstellungen/Apps ausgegraut, also nicht verfügbar ist?

A: Mit dem Befehl pm in der ADB-Shell!


Mit manchen Android Versionen kannst du die ADB benutzen um Applikationen/Programme – kurz App's – zu deaktivieren, die man nicht über die Oberfläche deaktivieren kann.

Die Debloater App System App Entferner (ROOT) von jumobile (https://play.google.com/store/apps/details?id=com.jumobile.manager.systemapp) automatisiert und vereinfacht diesen Prozess.

Diese Erläuterung erklärt wie man dies manuell durchführt.


ACHTUNG: Das deaktivieren der falschen App führt zu einem Soft-Brick – Dein Gerät ist dann unbedienbar. Sei Dir sicher was Du tust, bevor Du weiter machst!

Vorraussetzung:

Installierte ADB-Tools
Eingeschaltetes Debugging

Durchführung / Befehle:

Mit dem Befehl an deiner Konsole/Shell/Eingabeaufforderung (in Linux evt. sudo benutzen)

adb shell

wechselt man in die ADB-Shell des Gerätes
Hole dir die Liste der installierten Pakete mit pm

pm list packages -f

Identifiziere und notiere das Paket welches Du deaktivieren möchtest.
Der Parameter unter Kitkat heisst block, unter Lollipop heisst hide:
Beispiel:
deaktivieren:

KK:   pm block <package_name>, e.g. pm block com.motorola.motocare
LP:   pm hide <package_name>, e.g. pm hide com.motorola.motocare

Die App sollte jetzt deaktiviert sein und aus dem Launcher verschwunden sein. Im Fall eines Hintergrund-Services wird es sofort dauerhaft stoppen. Um diese Prozedur umzukehren benutze folgende Kommandos:

KK:   pm unblock <package_name>, e.g. pm block com.motorola.motocare
LP:   pm unhide <package_name>, e.g. pm hide com.motorola.motocare

    Originaltext[1]:

On some Android versions you can use adb to disable apps that you would otherwise not be able to deactivate via the UI. The Debloater app linked to above automates and simplifies this process. This answer will explain how to perform the same process manually.
WARNING: Disabling the wrong app or using the wrong commands can leave your device soft-bricked. Please make sure you know what you are doing before proceeding.
Make sure you've got Android debugging set up correctly, then drop into an adb shell:
adb shell
pm list packages -f Identify the packages you want to disable and make a note of them.
Disable each package individually by running one of the following commands: if you are on Kitkat: pm block <package_name>, e.g. pm block com.motorola.motocare if you are on Lollipop: pm hide <package_name>, e.g. pm hide com.motorola.motocare The app should now be disabled and disappear from your launcher. In case of a background service it will permanently stop running in the background. To reverse this procedure you can use one of the following commands: if you are on Kitkat: pm unblock <package_name>, e.g. pm unblock com.motorola.motocare if you are on Lollipop: pm unhide <package_name>, e.g. pm unhide com.motorola.motocare


bloatware debloating