方便测试的 adb 命令 集合
来源:互联网 发布:关于初中英语的软件 编辑:程序博客网 时间:2024/06/01 10:47
To Get Apk from package infor
$adb shell pm path com.android.bluet
To turn on bluetooth -
$adb shell am start -a android.bluetooth.adapter.action.REQUEST_ENABLE
To open wifi-
$adb shell am start -n com.android.settings/.wifi.WifiSettings
To fetch wifi info -
$adb shell am start -n com.android.settings/.wifi.WifiInfo
To fetch wifi status -
$adb shell am start -n com.android.settings/.wifi.WifiStatusTest
To open language settings -
$adb shell am start -n com.android.settings/.LanguageSettings
To open development option -
$adb shell am start -n com.android.settings/.DevelopmentSettings
To open dateTime set-up
$adb shell am start -n com.android.settings/.DateTimeSettingsSetupWizardooth
To send gmail with subject and body to specific recipients
$adb shell am start -n com.google.android.gm/com.google.android.gm.ComposeActivityGmail -d email:address@destination.com --es subject 'Your subject goes here' --es body 'Your email body goes here'
$adb shell am start -a android.intent.action.INSERT -t vnd.android.cursor.dir/contact -e name '"+name+"' -e phone "+number+"")
To enable wifi
$ adb shell svc wifi enable
To disable wifi
$ adb shell svc wifi disable
To enable bluetooth
$adb shell service call bluetooth_manager 6
To enable Airplane mode
$adb shell settings put global airplane_mode_on 1
$adb shell am broadcast -a android.intent.action.AIRPLANE_MODE --ez state true
To disable Airplane mode
$adb shell settings put global airplane_mode_on 0
$adb shell am broadcast -a android.intent.action.AIRPLANE_MODE --ez state false
To launch Settings item (refer to link https://github.com/android/platform_packages_apps_settings/blob/master/AndroidManifest.xml)
$adb shell am start -a android.intent.action.POWER_USAGE_SUMMARY
You can find the intents by looking at the <action> tags in the AndroidManifest.xml file for the Settings "application" (which can be viewed on GitHub). As an example, here is the activity definition for the Settings$PowerUsageSummaryActivity:
<activity android:name="Settings$PowerUsageSummaryActivity"
android:label="@string/power_usage_summary_title"
android:uiOptions="none"
android:taskAffinity=""
android:excludeFromRecents="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.intent.action.POWER_USAGE_SUMMARY" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="com.android.settings.SHORTCUT" />
</intent-filter>
<!-- Some other stuff here... -->
</activity>
To get all gmail account information
/data/data/com.google.android.gm/database/gmail.db
$adb shell pm path com.android.bluet
To turn on bluetooth -
$adb shell am start -a android.bluetooth.adapter.action.REQUEST_ENABLE
To open wifi-
$adb shell am start -n com.android.settings/.wifi.WifiSettings
To fetch wifi info -
$adb shell am start -n com.android.settings/.wifi.WifiInfo
To fetch wifi status -
$adb shell am start -n com.android.settings/.wifi.WifiStatusTest
To open language settings -
$adb shell am start -n com.android.settings/.LanguageSettings
To open development option -
$adb shell am start -n com.android.settings/.DevelopmentSettings
To open dateTime set-up
$adb shell am start -n com.android.settings/.DateTimeSettingsSetupWizardooth
To send gmail with subject and body to specific recipients
$adb shell am start -n com.google.android.gm/com.google.android.gm.ComposeActivityGmail -d email:address@destination.com --es subject 'Your subject goes here' --es body 'Your email body goes here'
$adb shell am start -a android.intent.action.INSERT -t vnd.android.cursor.dir/contact -e name '"+name+"' -e phone "+number+"")
To enable wifi
$ adb shell svc wifi enable
To disable wifi
$ adb shell svc wifi disable
To enable bluetooth
$adb shell service call bluetooth_manager 6
To enable Airplane mode
$adb shell settings put global airplane_mode_on 1
$adb shell am broadcast -a android.intent.action.AIRPLANE_MODE --ez state true
To disable Airplane mode
$adb shell settings put global airplane_mode_on 0
$adb shell am broadcast -a android.intent.action.AIRPLANE_MODE --ez state false
To launch Settings item (refer to link https://github.com/android/platform_packages_apps_settings/blob/master/AndroidManifest.xml)
$adb shell am start -a android.intent.action.POWER_USAGE_SUMMARY
You can find the intents by looking at the <action> tags in the AndroidManifest.xml file for the Settings "application" (which can be viewed on GitHub). As an example, here is the activity definition for the Settings$PowerUsageSummaryActivity:
<activity android:name="Settings$PowerUsageSummaryActivity"
android:label="@string/power_usage_summary_title"
android:uiOptions="none"
android:taskAffinity=""
android:excludeFromRecents="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.intent.action.POWER_USAGE_SUMMARY" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="com.android.settings.SHORTCUT" />
</intent-filter>
<!-- Some other stuff here... -->
</activity>
To get all gmail account information
/data/data/com.google.android.gm/database/gmail.db
1 0
- 方便测试的 adb 命令 集合
- adb命令集合
- ADB命令集合
- Android ADB命令集合
- adb 命令集合
- android的adb命令以及测试
- android的adb命令使用以及测试
- adb shell 命令详解 -----方便查阅
- adb 测试命令
- adb测试命令 冒烟测试
- adb 获取root权限----adb命令集合
- 几个adb shell的命令,放到批处理文件里面,方便好用
- Android ADB linux命令集合
- Android ADB linux命令集合
- Android adb调试命令集合
- adb 的一些命令集合(用到了就添加)
- 通过adb shell连接tablet进行多用户的测试命令
- 测试HTTP的方便法
- Spring注解
- radminpass.php
- 读写properties文件
- 序列化和反序列化
- UI_网络编程
- 方便测试的 adb 命令 集合
- leetcode-118 Pascal's Triangle
- Android 在程序中关闭和打开屏幕
- 使用科大讯飞的语音技术实现语音识别
- android - anim translate中 fromXDelta、toXDelta、fromYDelta、toXDelta属性
- 2015年4月7号的日志
- CentOS7 或 RHEL7 mount windows共享目录 Permission denied 问题
- CentOS连接OpenVPN教程(Linux下OpenVPN客户端配置教程)
- nyoj-1156-素数三元组