[RK3288][Android6.0] 调试笔记 --- user版本串口只有输出不能输入
2017-01-19 14:01
1661 查看
Platform: ROCKCHIP
OS: Android 6.0
Kernel: 3.10.92
现象:
编译成user版本之后串口只有输出没有输入.
原因:
编译user版本之后 ro.debuggable=0
build/core/main.mk:
ifeq (true,$(strip $(enable_target_debugging)))
# Target is more debuggable and adbd is on by default
ADDITIONAL_DEFAULT_PROPERTIES += ro.debuggable=1
# Enable Dalvik lock contention logging.
ADDITIONAL_BUILD_PROPERTIES += dalvik.vm.lockprof.threshold=500
# Include the debugging/testing OTA keys in this build.
INCLUDE_TEST_OTA_KEYS := true
else # !enable_target_debugging
# Target is less debuggable and adbd is off by default
ADDITIONAL_DEFAULT_PROPERTIES += ro.debuggable=0
endif # !enable_target_debugging
system/core/rootdir/init.rc
service console /system/bin/sh
class core
console
disabled
user shell
group shell log
seclabel u:r:shell:s0
on property:ro.debuggable=1
start console
可见console是否启动受属性ro.debuggable的控制.
解决方法:
1. 修改 ro.debuggable = 1
2. 直接将disabled移除,默认无条件启动console.
参考:
http://blog.csdn.net/buaaroid/article/details/32714041
OS: Android 6.0
Kernel: 3.10.92
现象:
编译成user版本之后串口只有输出没有输入.
原因:
编译user版本之后 ro.debuggable=0
build/core/main.mk:
ifeq (true,$(strip $(enable_target_debugging)))
# Target is more debuggable and adbd is on by default
ADDITIONAL_DEFAULT_PROPERTIES += ro.debuggable=1
# Enable Dalvik lock contention logging.
ADDITIONAL_BUILD_PROPERTIES += dalvik.vm.lockprof.threshold=500
# Include the debugging/testing OTA keys in this build.
INCLUDE_TEST_OTA_KEYS := true
else # !enable_target_debugging
# Target is less debuggable and adbd is off by default
ADDITIONAL_DEFAULT_PROPERTIES += ro.debuggable=0
endif # !enable_target_debugging
system/core/rootdir/init.rc
service console /system/bin/sh
class core
console
disabled
user shell
group shell log
seclabel u:r:shell:s0
on property:ro.debuggable=1
start console
可见console是否启动受属性ro.debuggable的控制.
解决方法:
1. 修改 ro.debuggable = 1
2. 直接将disabled移除,默认无条件启动console.
参考:
http://blog.csdn.net/buaaroid/article/details/32714041
相关文章推荐
- [RK3288][Android6.0] 调试笔记 --- user版本默认显示开发者选项【转】
- [RK3288][Android6.0] 调试笔记 --- user版本默认显示开发者选项
- [RK3288][Android6.0] 调试笔记 --- user版本固件升级无法开机问题
- [RK3288][Android6.0] 调试笔记 --- 普通串口的添加
- [RK3288][Android6.0] 调试笔记 --- 普通串口的添加 【转】
- [IMX6Q][Android5.1]移植笔记 --- 调试串口只能输出不能输入
- [RK3288][Android6.0] 调试笔记 --- 调试串口的更换
- [RK3288][Android6.0] 调试笔记 --- 系统识别不同硬件版本方法
- [RK3288][Android6.0] 调试笔记 --- 编码器输入源引起的码率增大问题
- [RK3288][Android6.0] 调试笔记 --- 系统识别不同硬件版本方法【转】
- [RK3288][Android6.0] 系统调试串口驱动流程小结
- [RK3288][Android6.0] 调试笔记 --- 通用GPIO驱动控制LED
- [RK3288][Android6.0] 调试笔记 --- 移除导航栏(虚拟按键)
- [RK3288][Android6.0] 调试笔记 --- 伪电池驱动添加
- [RK3288][Android6.0] 调试笔记 --- 同时支持两颗USB UVC Camera
- [RK3288][Android6.0] 调试笔记 --- 如何区分两颗相同的USB UVC Camera
- [RK3288][Android6.0] 调试笔记 --- ECHI上的USB Camera无法打开
- [RK3288][Android6.0] 调试笔记 --- 默认允许安装未知来源apk
- [RK3288][Android6.0] 调试笔记 --- 关闭按键音后无法录音问题
- [RK3288][Android6.0] 移植笔记 --- 固件无法下载到eMMC调试