mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-24 07:22:04 +08:00
* ability to disable registration (for some phones that does not have proper IMEI)
This commit is contained in:
@@ -172,6 +172,7 @@ keys = {
|
||||
"DragonBootHotspot": [TxType.PERSISTENT],
|
||||
"DragonAccelProfile": [TxType.PERSISTENT],
|
||||
"DragonLastModified": [TxType.PERSISTENT],
|
||||
"DragonEnableRegistration": [TxType.PERSISTENT],
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -70,6 +70,7 @@ default_conf = {
|
||||
'DragonBootHotspot': 0,
|
||||
'DragonAccelProfile': '0',
|
||||
'DragonLastModified': str(floor(time.time())),
|
||||
'DragonEnableRegistration': '1',
|
||||
}
|
||||
|
||||
deprecated_conf = {
|
||||
|
||||
@@ -544,9 +544,11 @@ def main():
|
||||
if params.get("Passive") is None:
|
||||
raise Exception("Passive must be set to continue")
|
||||
|
||||
reg = False if params.get("DragonEnableRegistration", encoding='utf8') == "0" else True
|
||||
|
||||
if ANDROID:
|
||||
update_apks()
|
||||
manager_init()
|
||||
manager_init(reg)
|
||||
manager_prepare(spinner)
|
||||
spinner.close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user