Memo: Commandes android
dimanche 2 mars 2014 à 11:20 bajazet, le 02/03/2014 à 11:20
J'ai eu besoin de supprimer une application (clef différente de fdroid pour le clavier customisé de ma ROM) mais impossible de trouver l'apk. Voilà comment j'ai fait :
Monter le system en RW (cocher dans dev adb + root) pour supprimer une app système:
$ adb shell
$ mount | grep system
/dev/block/platform/msm_sdcc.2/by-num/p25 /system ext4 ro,relatime,barrier=1,data=ordered 0 0
$ su
# mount -o rw,remount -t ext4 /dev/block/platform/msm_sdcc.2/by-num/p25 /system
Trouver une application :
$ adb shell pm package list | grep inputmethod
package:com.android.inputmethod.latin
$ adb shell pm path com.android.inputmethod.latin
/system/app/LatinIME.apk
$ adb pull /system/app/LatinIME.apk #sauvegarde
$ rm -f /system/app/LatinIME.apk
$ adb push com.android.inputmethod.latin_4424.apk /system/app/
Redémarrer le téléphone
Wipe cache
Wipe Dalvik cache
(Permalink)
J'ai eu besoin de supprimer une application (clef différente de fdroid pour le clavier customisé de ma ROM) mais impossible de trouver l'apk. Voilà comment j'ai fait :
Monter le system en RW (cocher dans dev adb + root) pour supprimer une app système:
$ adb shell
$ mount | grep system
/dev/block/platform/msm_sdcc.2/by-num/p25 /system ext4 ro,relatime,barrier=1,data=ordered 0 0
$ su
# mount -o rw,remount -t ext4 /dev/block/platform/msm_sdcc.2/by-num/p25 /system
Trouver une application :
$ adb shell pm package list | grep inputmethod
package:com.android.inputmethod.latin
$ adb shell pm path com.android.inputmethod.latin
/system/app/LatinIME.apk
$ adb pull /system/app/LatinIME.apk #sauvegarde
$ rm -f /system/app/LatinIME.apk
$ adb push com.android.inputmethod.latin_4424.apk /system/app/
Redémarrer le téléphone
Wipe cache
Wipe Dalvik cache
(Permalink)