web-dev-qa-db-ja.com

/ system / appから自分のアプリをアンインストールする方法は?

Adb Shellコマンドを使用して、独自のアプリケーションを/ system/appにインストールできます。しかし、それをアンインストールする方法は?それを行うコマンドはありますか?私の電話は根付いています。

14
XXX

ADBを使用した手動アンインストール:
http://www.careace.net/2010/05/12/how-to-remove-Android-apps-through-adb/

Webサイトのダウンタイム中(今と同様)に、ここでクロールされたスナップショットを参照してください。
https://web.archive.org/web/20180222063358/http://www.careace.net/2010/05/12/how-to-remove-Android-apps-through -adb /

プログラム的に:

    public static void deleteFromSystem (final String file)
    {
        try 
        {
            if (new File(file).exists())
            {
                String  path        = new File(file).getParent();
                Process process     = Runtime.getRuntime().exec("su");
                DataOutputStream os = new DataOutputStream(process.getOutputStream());
                os.writeBytes("mount -o rw,remount /system; \n");
                os.writeBytes("chmod 777 "      + path + "; \n");
                os.writeBytes("chmod 777 "      + file + "; \n");
                os.writeBytes("rm -r "          + file + "; \n");
                os.writeBytes("mount -o ro,remount /system; \n");
                os.writeBytes("reboot \n");
                os.flush();
                os.close();
                process.waitFor();
            }
        } 
        catch (Throwable e) {e.printStackTrace();}
    }
15
XXX

デバイスへのrootアクセス権があると仮定します。

adb Shell
su
mount -o rw,remount /system
rm -rf /system/app/myApp.apk
rm -rf /data/data/com.example.myapp
mount -o ro,remount /system
exit
exit
14
sgupta
adb Shell rm /system/app/MyApp*
adb uninstall org.my.app
12
Tapemaster

すべてのデバイスでこれを実行する必要があるかどうかはわかりませんが(一部のデバイスではrootアクセスだけで実現できる可能性があります)、htcでリカバリモードで再起動する必要がある場合は、apkをSDカードにコピーしてから、/system/appフォルダーにadb Shellを使用して、最初にnandroidバックアップを作成する必要があります

1
sherif

アンインストールAndroid adb経由のアプリ


参照:xda

adb devices

adb Shell

pm list packages

pm uninstall -k --user 0 *name of package
1

デバイスへのrootアクセス権があると仮定します。

adb Shell su mount -o rw、remount/system rm -rf /system/app/myApp.apk rm -rf /data/data/com.example.myapp mount -o ro、remount/system exit exit

0
sgupta