1. 开机自动进入飞行模式?
没有重新烧写img,重启之后就开始自动进入飞行模式,也没有办法关闭,临时解决办法:删除userdata和cache数据。
fastboot erase userdata
fastboot erase cache
2. pppd_gprs无法启动
错误日志如下:
init: sys_prop: Unable to start service ctl [pppd_gprs] uid: 1001 pid:1949
这个日志说明当前用户没有权限设置pppd_gprs服务的ctl.start属性,只需要将pppd_gprs加入到权限列表中即可:
@system/core/init/property_service.c
control_perms[] = {
{ "dumpstate",AID_SHELL, AID_LOG },
{ "pppd_gprs",AID_RADIO, AID_RADIO},
{NULL, 0, 0 }
};
3. PPPD启动报错
当使用脚本启动pppd时,打印如下ERROR LOG:
E/pppd ( 2082): This system lacks kernel support for PPP. This could be because
E/pppd ( 2082): the PPP kernel module could not be loaded, or because PPP was not
E/pppd ( 2082): included in the kernel configuration. If PPP was included as a
E/pppd ( 2082): module, try `/sbin/modprobe -v ppp'. If that fails, check that
E/pppd ( 2082): ppp.o exists in /lib/modules/`uname -r`/net.
E/pppd ( 2082): See README.linux file in the ppp distribution for more details.
首先要确认是否正常配置了PPPD,如果全部都配置正常还有上面的日志,那可能就是因为启动pppd的脚本没有设置为root权限。