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ghECgYA8vG3M/utweLvq4RI7l7U7
b+i2BajfK2OmzNi/xugfeLjY6k2tfQGRuv6ppTjehtji2uvgDWkgjJUgPfZpir3I
RsVMUiFgloWGHETOy0Qvc5AwtqTJFLTD1Wza2uBilSVIEsg6Y83Gickh+ejOmEsY
6co17RFaAZHwGfCFFjO76Q==
-----END PRIVATE KEY-----" > eonkey.pem

# 为私钥设置权限
chmod 600 eonkey.pem

# 假设你的 EON ip 是 192.168.1.100(通常可以在路由器中查到)
ssh [email protected] -p 8022 -i eonkey.pem

openpilot 编译

# 移除已经编译文件
git clean -xdf

# 移除 git 修改
git reset --hard HEAD

# 切换分支
git checkout 0.6.6-zhs

# 切换分支并重新编译
# 0.7 之前的版本使用 make 代替 scons -i
cd /data/openpilot && git clean -xdf && git reset --hard HEAD && git checkout 0.7.3-zhs && scons -i && reboot

挂载 system 分区

# 重新挂载 system 分区为读写权限
mount -o rw,remount /system

# 重新挂载 system 分区为只读权限
mount -o ro,remount /system

打开系统界面/软件界面

# 在 EON 的 shell 中运行
# 打开系统设置
am start -a android.settings.SETTINGS

# 关闭系统设置 (kill)
ps aux | grep settings| grep  -v grep|awk '{print $1}' |xargs kill

# 打开开发者选项
am start -a android.settings.APPLICATION_DEVELOPMENT_SETTINGS

am start -n ai.comma.plus.offroad/.MainActivity

打开软件包指定的界面:

am start -n {PACKAGE NAME}/.{ACTIVITY NAME}

打开系统界面:

am start -a {ACTION CONSTANT}

获取设备属性选项

# 获取所有配置选项,ro 开头的是只读
getprop

# 获取 IMEI
getprop oem.device.imeicache

# 获取 serialno
getprop ro.serialno

# 获取 把 IMEI 设置为 517923590773528
setprop oem.device.imeicache 517923590773528

# 设置时区为上海东八区
setprop  persist.sys.timezone Asia/Shanghai

获取设置系统配置

# 在 EON 的 shell 中运行
settings list global
settings list system
settings list secure

usage: settings [--user NUM] [--cm] get namespace key settings [--user NUM] [--cm] put namespace key value settings [--user NUM] [--cm] delete namespace key settings [--user NUM] [--cm] list namespace

'namespace' is one of {system, secure, global}, case-insensitive If '--user NUM' is not given, the operations are performed on the owner user. If '--cm' is given, the operations are performed on the CMSettings provider.

软件包管理

# 显示软件包列表
pm list packages -f

#卸载软件包
pm uninstall ai.comma.plus.offroad

#安装软件包
pm install /sdcard/apk/ai.comma.plus.offroad.apk

查看网卡信息

# 查看网卡信息
ifconfig -a

ip addr show

git代理设置

# http 代理地址 192.168.1.101:1087
# 代理可以是设置在同局域网的电脑上,也可以是公网服务器上
git clone https://github.com/commaai/openpilot.git --config "http.proxy=192.168.1.101:1087"

Termux 包管理

pkg search <term>
pkg show <packages>

pkg list-all
pkg list-installed

pkg install <packages>
pkg reinstall <packages>
pkg uninstall <packages>

apt list --upgradable
pkg upgrade

pkg help
Copyright © all right reserved,powered by Gitbook本站已停止维护,本页最后更新: 2020-03-06 10:35:14

results matching ""

    No results matching ""