adb串口和USB推送调试

setprop service.adb.tcp.port 5555
stop adbd
start adbd
netcfg
/data/data/com.amlogic.dvb.test.dvbservice/databases
adb connect 192.168.1.151 php


/data/data/com.amlogic.dvb.test.dvbservice/shared_prefs/com.amlogic.dvb.test.dvbservice_preferences.xml shell


/data/data/com.amlogic.DVBPlayer/shared_prefs/com.amlogic.DVBPlayer_preferences.xml app

/data/data/com.amlogic.DVBPlayer/shared_prefs/preference_auto_output_mode.xml
以太网 tcp

adb server is out of date. killing...
ADB server didn't ACK
* failed to start daemon *
解决adb
究其源就是adb server没启动
到stackoverflow上查了一下 通过分析整理以下:
C:\Users\xxxx>adb nodaemon server
cannot bind 'tcp:5037'
原来adb server 端口绑定失败
继续查看究竟是哪一个端口给占用了 server

C:\Users\xxxxxx>netstat -ano | findstr "5037"
  TCP    127.0.0.1:5037         0.0.0.0:0              LISTENING       4628
  TCP    127.0.0.1:5037         127.0.0.1:1085         TIME_WAIT       0
  TCP    127.0.0.1:5037         127.0.0.1:1086         TIME_WAIT       0
  TCP    127.0.0.1:5037         127.0.0.1:1096         TIME_WAIT       0
  TCP    127.0.0.1:5037         127.0.0.1:1097         TIME_WAIT       0 xml

原来被4628这个进程占用了端口,打开任务管理器,杀掉4628这个进程。(能够在任务管理器菜单,查看->选择列中勾选(PID)进程标识符)
重启adb
adb start-server 进程


adb connect 192.168.1.151:5555
1. 安装第三方应用 rem

$ adb install apk文件名 get

2. 安装系统应用 input

$ adb remount

$ adb push apk文件名 /system/app // apk文件名形如testme.apk

adb push DVBPlayer.apk /system/app
adb push remote.conf  /system/etc
adb push Vendor_0001_Product_0001.kl /system/usr/keylayout

 

当要删掉系统自带的某款应用的apk,在终端命令 adb remount 以后,命令终端显示remount failed: Operation not permitted。adb remount 失败。解决方法:


1.在data分区的local.prop中写入secure=0,这样应该是加载后就能够执行adb remount了.

2.在内核中修改default.prop,修改secure=0,永久获取root权限,再怎么执行也不会出现上述问题。


本文来自: 乐趣在线 详细文章参考:http://bbs.joyrom.com/forum.php?mod=viewthread&tid=12521&page=23#pid938060


1. 串口输入:adb remount

二、adb shell

三、su //切换到根用户

四、mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system     //不一样硬件平台会不一致,能够经过mount看一下/dev的路径和文件系统类型


五、chmod 777 /system

六、cd system

七、chomd 777 app

 

USB

setprop service.adb.tcp.port 5555
stop adbd
start adbd

adb devices
adb remount
adb push  pull...

输入键值 input keyevent XXX

相关文章
相关标签/搜索