加入開機啟動TOMTOM/AUTONAVI 功能

This commit is contained in:
dragonpilot
2019-08-14 11:53:59 +10:00
parent 0dc8b03f07
commit cdfb4101be
4 changed files with 8 additions and 0 deletions
Binary file not shown.
+2
View File
@@ -107,6 +107,8 @@ keys = {
"DragonUIFace": [TxType.PERSISTENT],
"DragonUIDev": [TxType.PERSISTENT],
"DragonUIDevMini": [TxType.PERSISTENT],
"DragonBootTomTom": [TxType.PERSISTENT],
"DragonBootAutonavi": [TxType.PERSISTENT],
}
@@ -26,6 +26,8 @@ default_conf = {
'DragonUIFace': '0',
'DragonUIDev': '0',
'DragonUIDevMini': '1',
'DragonBootTomTom': '0',
'DragonBootAutonavi': '0',
}
deprecated_conf = {
+4
View File
@@ -371,6 +371,10 @@ def manager_thread():
# start frame
pm_apply_packages('enable')
if params.get("DragonBootTomTom") == "1":
system("am start -n com.tomtom.speedcams.android.map/com.tomtom.speedcams.android.activities.SpeedCamActivity")
if params.get("DragonBootAutonavi") == "1":
system("start -n com.autonavi.amapauto/.MainMapActivity")
system("am start -n ai.comma.plus.frame/.MainActivity")
if os.getenv("NOBOARD") is None: