mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-07-12 00:12:05 +08:00
加入開機啟動TOMTOM/AUTONAVI 功能
This commit is contained in:
Binary file not shown.
@@ -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 = {
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user