- adb shell kill [PID] //杀死进程
- adb 命令查看程序进程方便简洁高效
- adb shell ps //查看所有进程列表,Process Status
- adb shell ps|grep //查看package_name程序进程
- adb shell ps -x [PID] //查看PID进程状态
- adb shell top|grep //实时监听程序进程的变化
- adb shell dumpsys window | findstr mCurrentFocus
- adb logcat | findstr -i displayed查找当前显示的程序
- adb shell pm dump 包名 | findstr version 包的版本号
- adb shell dumpsys package 包名 | findstr version
- adb shell stop 避免adb reboot 重启
- adb shell start
- aapt dump badging +包 查看包的信息version
- adb shell dumpsys activity activities
- adb logcat -c 清除缓存日志
- adb install -t 强制安装
- adb shell am start -W com.xgd.update/com.xgd.update.UpdateActivity
- adb shell cptbtptpbcptdtptp
- adb shell pm path com.android.systemui 查找包名对应的路径
- adb shell dumpsys package>package.txt 查看package信息
- adb shell dumpsys meminfo com.gree.aiservice查看内存信息:
- adb shell procrank
- adb shell cat /proc/meminfo
- adb shell settings get system screen_brightness 获取当前亮度值
- adb shell settings put system screen_brightness 更改亮度值(亮度值在0—255之间)
- adb shell settings get system screen_off_timeout 获取屏幕休眠时间
- adb shell settings put system screen_off_timeout 更改休眠时间,10分钟
- adb shell settings get global auto_time 获取日期时间选项中通过网络获取时间的状态,1为允许、0为不允许
- adb shell settings put global auto_time 更改该状态,从1改为0
1.关闭一个app
adb shell am force-stop 包名
2.dump 信息
adb shell dumpsys | grep "DUMP OF SERVICE"
adb shell dumpsys window windows
adb shell dumpsys SurfaceFlinger
adb shell dumpsys window
adb shell dumpsys audio
adb shell dumpsys activity
java - How do I discover memory usage of my application in Android? - Stack Overflow
Ddi.ddi_sys_set_beep(timeout); adb shell getprop persist.sys.system.volum
adb shell getprop persist.xgd.buzzer.sys.enable
adb shell getprop persist.xgd.buzzer.volum.enable
adb shell am start -W 包名/activity的名字
MTK oem解锁:
– boot to Home Screen
– go to setting -> system -> Developer options -> OEM unlocking
– adb reboot bootloader
– fastboot flashing unlock
– press volume up key
– fastboot reboot
– adb root
– adb disable-verity
– adb reboot
usb_control_host
adb命令adb shell settings put global airplane_mode_on 1开启 飞行模式,通过adb shell sett...
adb shell settings get system "airplane_mode_on"
获取当前手机是否是飞行模式:Settings.System.AIRPLANE_MODE_ON
获取当前sim卡是否可用 state.enabled = Settings.Global.getInt(mContext.getContentResolver(), "sim_enable_by_subid"+subId, 1) == 1;