2014/04/16

怎麼使用 adb list 設備上所有的 apps

adb shell pm list packages -f

加上 -f 可以顯示相對應的檔案.
以下為部份輸出結果
package:/system/framework/framework-res.apk=android
package:/system/app/Apollo.apk=com.andrew.apollo
package:/system/app/BackupRestoreConfirmation.apk=com.android.backupconfirm
package:/system/app/Bluetooth.apk=com.android.bluetooth
package:/system/app/Browser.apk=com.android.browser
package:/system/app/Calculator.apk=com.android.calculator2
package:/system/app/Calendar.apk=com.android.calendar
package:/system/app/CarHomeLauncher.apk=com.android.cardock
package:/system/app/CellBroadcastReceiver.apk=com.android.cellbroadcastreceiver
package:/system/app/CertInstaller.apk=com.android.certinstaller
package:/system/app/Contacts.apk=com.android.contacts
package:/system/app/DefaultContainerService.apk=com.android.defcontainer