马上注册,自学更多教程,下载更多资源。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
1、检察MAC地点:adb shell cat /sys/class/net/wlan0/address
2、CPU疑息:adb shell cat /proc/cpuinfo
3、检察wifi暗码:adb shell cat /data/misc/wifi/*.conf
4、经由过程wifi毗连adb: adb connect 172.27.96.5:5555
5、规复出厂设置:adb shell am broadcast -a android.intent.action.MASTER_CLEAR
需求先adb root
android 8.0版本后改成:adb shell am broadcast -a android.intent.action.FACTORY_RESET android
adb源码阐发: https://blog.csdn.net/viewsky11/article/details/53889143
6、闭机: adb shell reboot -p
7、端心转收:adb forward tcp:1150 tcp:1160
8、adb受权历程:
- 施行adb shell后,adb.exe会将当前PC的公钥(大概公钥的hash值之类的fingerprint)收收给android装备,公钥保留正在~/.android/目次中的adbkey取adbkey.pub
- 假如android曾经保留了PC的公钥,则能胜利婚配,停止认证,成立adb毗连
- 假如android出有保留PC的公钥,则弹出提醒框提醒能否许可那台机械停止adb毗连,当面击了许可受权以后,android便会保留那台PC的adbkey.pub公钥,目次为/data/misc/adb/adb_keys
9、经由过程包名检察apk文件的地位:adb shell pm path com.zsg.launcher
输出:package:/system/app/Launcher.apk
10、形态栏、导航栏掌握
- 齐躲藏:adb shell settings put global policy_control immersive.full=*
- 躲藏形态栏:adb shell settings put global policy_control immersive.status=*
- 躲藏导航栏:adb shell settings put global policy_control immersive.navigation=*
- 零丁掌握app没有躲藏,设置com.zsg.test没有躲藏,其他法式躲藏:
adb shell settings put global policy_control immersive.full=apps,-com.zsg.test - 规复一般形式:adb shell settings put global policy_control null
11、获得当前装备撑持的features。Get Android System Available Features
[Plain Text] 杂文本检察 复造代码 adb shell pm list features:
feature:android.hardware.nfc
feature:android.hardware.nfc.any
feature:android.hardware.nfc.hce
feature:android.hardware.nfc.hcef
feature:android.hardware.bluetooth_le
feature:android.hardware.camera
feature:android.hardware.camera.any
feature:android.hardware.camera.front
feature:android.hardware.faketouch
feature:android.hardware.location
feature:android.hardware.location.network
feature:android.hardware.microphone
feature:android.hardware.sensor.light
feature:android.hardware.sensor.proximity
feature:android.hardware.sensor.stepcounter
feature:android.hardware.sensor.stepdetector
feature:android.hardware.touchscreen
feature:android.hardware.usb.accessory
feature:android.hardware.usb.host
feature:android.hardware.wifi
feature:android.hardware.wifi.direct
feature:android.software.activities_on_secondary_displays
feature:android.software.adoptable_storage
feature:android.software.app_widgets
feature:android.software.autofill
feature:android.software.backup
feature:android.software.cts
feature:android.software.device_id_attestation
feature:android.software.webview
[Plain Text] 杂文本检察 复造代码 //使用系统接口获取:
FeatureInfo[] features = getPackageManager().getSystemAvailableFeatures();
boolean b = getPackageManager().hasSystemFeature(featureName)
boolean hasCamera = pm.hsaSystemFeature(PackageManager.FEATURE_CAMERA); //是否支持相机
boolean b = getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH)
上一篇:Android adb毗连后adb devices显现unauthorized处理法子 下一篇:四个脚机顶级资本APP苹果安卓皆可用逃剧影戏听看小道 |