LearnHouse

Archive for 一月 19th, 2018

[Android]常用ADB Shell

列出package name

pm list packages

列出apk位置

pm list packages -f

啟動app

am start -n <package name>/<main activity>

ex. am start -n com.package.name/.NameActivity

關閉app

am force-stop <package name>

從apk查package name & activity

aapt dump xmltree Sample.apk AndroidManifest.xml

Read more...

posted by admin in 程式&軟體 and have No Comments