-
连接到网络adb
adb connect IP 网络连接设备
如 adb connect 192.168.9.77 连接到网络adb 需要跟电脑同一个网关或者频段
-
清理应用数据
adb shell pm clear com.google.android.tvlauncher
adb shell pm clear com.android.tv.settings
-
adb 开启应用
adb shell am start -n
com.nes.soundbar.handler/com.nes.soundbar.handler.activity.EqModeSwitchActivity
am start -n com.android.tv.settings/.MainSettings
-
开启指定 action
adb shell am start -a
com.android.tv.settings.action.SYSTEM_SET开启action,一个指定数据的界面
adb shell am start -a android.intent.action.VIEW -d content://android.media.tv/program
-
开启应用具体界面
adb shell su pm enable com.google.android.tungsten.setupwraith/.MainActivity
am start com.google.android.tungsten.setupwraith/.MainActivity结束该界面
am force-stop com.google.android.tungsten.setupwraith
am force-stop com.google.android.tvsetup.partnercustomizer/.hookend.LoadingActivity
-
看当前的界面framgents
adb shell
su
dumpsys activity top |grep “Added Fragments” -1
com.android.tv.settings.MainSettings.SETTINGS_FRAGMENT}
-
查看正在运行的Activity,并且关闭
adb shell
tai:/ $ su
tai:/ # dumpsys activity top |grep mResumed
mResumed=false mStopped=true mFinished=false
mResumed=false mStopped=true mFinished=false
mResumed=true mStopped=false mFinished=false
tai:/ # dumpsys activity |grep mResumed
mResumedActivity: ActivityRecord{74917e u0 com.nes.uei.remote.pair/.MainActivity t580}
tai:/ # am force-stop com.nes.uei.remote.pair
-
修改 ro.oem.key1 系统属性值
adb shell
cd /sys/class/unifykeys/
cat list
echo oem > name
cat read echo ATV0010002000000000000000000001N > write
cat read
reboot 重启
adb shell
getprop |grep ro.oem.key1 检查是否修改成功
-
下载系统apk
先检索到apk对应路径
adb shell
su
pm -lf |grep
framework
package:/system/framework/framework-res.apk=android
adb pull /system/framework/framework-res.apk
- 替换系统文件
adb push Z:\android-q\out\target\product\HND\system\framework\framework-res.apk
/system/framework/framework-res.apk
添加文件 到android对应目录
adb push D:\dingdingDownload\audio.primary.amlogic.so /vendor/lib/hw
更多Android系统和应用开发的讨论,欢迎加入我,QQ群:776147358