* ability to disable registration (for some phones that does not have proper IMEI)

This commit is contained in:
dragonpilot
2020-03-16 13:51:49 +10:00
parent a675cff11b
commit d1bfc252f3
3 changed files with 5 additions and 1 deletions
+1
View File
@@ -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 = {
+3 -1
View File
@@ -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()