有用的|有用的 Android/iOS 命令
Activities:
Find activity:
adb shell dumpsys package | grep -i "enter package name" | grep ActivityRun/Launch app activity:
adb shell am start -W -n packageName/xx.MainActivity -SShow current activity:
adb shell dumpsys window windows | grep -E 'mCurrentFocus'
Reboot phone:
iOS: idevicediagnostics -u udid restartList all installed apps:
Android: adb -s udid reboot
iOS:ideviceinstaller -u udid -lbetter one is:
Android: adb shell 'pm list packages -f'
adb shell "pm list packages -f" | cut -f 2 -d "="Get sms
adb shell dumpsys activity broadcasts| grep senderName= | awk -F'message= | senderName= | xxx=''{print $2}' | grep -oE'[0-9]{4,}'Extract app package
adb shell pm list packagesGet device properties
adb shell pm path com.example.someapp
adb pull /data/app/com.example.someapp-2.apkpath/to/desired/destination
adb shell getprop | grep "model\|version.sdk\|manufacturer\|hardware\|platform\|revision\|serialno\|product.name\|brand"Disable android window animation #For Android JellyBean and newer device
adb shell content update --uri content://settings/system --bind value:s:0.0 --where'name="window_animation_scale"'#For Android ICS and older device
adb shell content update --uri content://settings/system --bind value:s:0.0 --where'name="transition_animation_scale"'
adb shell content update --uri content://settings/system --bind value:s:0.0 --where'name="animator_duration_scale"'
adb shell"echo\"update system set value=https://www.it610.com/article/0.0 where name='window_animation_scale'; \"| sqlite3 /data/data/com.android.providers.settings/databases/settings.db"
adb shell"echo\"update system set value=https://www.it610.com/article/0.0 where name='transition_animation_scale'; \"| sqlite3 /data/data/com.android.providers.settings/databases/settings.db"
adb shell settings put global window_animation_scale 0 &Unlock phone:
adb shell settings put global transition_animation_scale 0 &
adb shell settings put global animator_duration_scale 0 &
/Users/ymin/Library/Android/sdk/platform-tools/adb -P 5037 -s #phoneID shell am start -W -n io.appium.unlock/.Unlock -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000Kill app:
【有用的|有用的 Android/iOS 命令】adb shell am force-stop com.my.app.package
推荐阅读
- 放屁有这三个特征的,请注意啦!这说明你的身体毒素太多
- 尽力
- android第三方框架(五)ButterKnife
- 死结。
- 《跨界歌手》:亲情永远比爱情更有泪点
- 时间老了
- 深入理解Go之generate
- 午门传说
- 【译】20个更有效地使用谷歌搜索的技巧
- 七律.岭南骨科康复联谊有感