Adb shell commands to change settings or perform tasks on a phone

后端 未结 4 1734
北荒
北荒 2020-12-13 07:22

How do I use adb to perform some automated tasks on my android phone? I need to find commands that I can issue from the command line (ideally, using a .bat file) that will

4条回答
  •  独厮守ぢ
    2020-12-13 08:05

    Although question is old, it might help someone else.

    For video playback, you can try this:

    adb shell am start -a android.intent.action.VIEW -d   "file:///mnt/sdcard/DCIM/Camera/test.3gp" -t "video/*" 
    

    ^gives you a prompt of all capable players that can play this file.

    adb shell am start -a android.intent.action.VIEW -d "file:///mnt/sdcard/DCIM/Camera/test.3gp" -t "video/*" -n "com.alensw.PicFolder/.PlayerActivity" 
    

    ^plays in player specified by switch -n.

提交回复
热议问题