|
@@ -136,7 +136,6 @@ def write_android_menu(xml_menu_path: str, features: dict, security: dict):
|
|
n = n + 1
|
|
n = n + 1
|
|
write_android_menu_item(f, "action_create_channel", n, "Create Channel", features["create_channel"]["status"])
|
|
write_android_menu_item(f, "action_create_channel", n, "Create Channel", features["create_channel"]["status"])
|
|
n = n + 1
|
|
n = n + 1
|
|
-
|
|
|
|
write_android_menu_item(f, "action_ppob", n, "PPOB Agent", features["ppob"]["status"])
|
|
write_android_menu_item(f, "action_ppob", n, "PPOB Agent", features["ppob"]["status"])
|
|
n = n + 1
|
|
n = n + 1
|
|
write_android_menu_item(f, "action_wallet", n, "Wallet", features["wallet"]["status"])
|
|
write_android_menu_item(f, "action_wallet", n, "Wallet", features["wallet"]["status"])
|
|
@@ -145,7 +144,6 @@ def write_android_menu(xml_menu_path: str, features: dict, security: dict):
|
|
n = n + 1
|
|
n = n + 1
|
|
write_android_menu_item(f, "action_contact_list", n, "Contact List", features["contact_list"]["status"])
|
|
write_android_menu_item(f, "action_contact_list", n, "Contact List", features["contact_list"]["status"])
|
|
n = n + 1
|
|
n = n + 1
|
|
-
|
|
|
|
write_android_menu_item(f, "action_settings", n, "Settings", True)
|
|
write_android_menu_item(f, "action_settings", n, "Settings", True)
|
|
n = n + 1
|
|
n = n + 1
|
|
write_android_menu_item(f, "action_profile", n, "Profile", True)
|
|
write_android_menu_item(f, "action_profile", n, "Profile", True)
|
|
@@ -670,7 +668,7 @@ def change(app_id: str, platform: str, mode: str, path_dest: str, features: dict
|
|
write_floating_button(f, features, security)
|
|
write_floating_button(f, features, security)
|
|
else:
|
|
else:
|
|
f.write(indented_str(0, ""))
|
|
f.write(indented_str(0, ""))
|
|
- elif "API.connect" in line:
|
|
|
|
|
|
+ elif ("API.connect" in line) or ("SecurityShield.getInstance().check" in line):
|
|
replaced = line
|
|
replaced = line
|
|
if app_id:
|
|
if app_id:
|
|
replaced = replaced.replace('***REPLACE***WITH***YOUR***APPLICATION***NAME***', app_id)
|
|
replaced = replaced.replace('***REPLACE***WITH***YOUR***APPLICATION***NAME***', app_id)
|
|
@@ -771,7 +769,7 @@ def change(app_id: str, platform: str, mode: str, path_dest: str, features: dict
|
|
write_floating_button(f, features, security)
|
|
write_floating_button(f, features, security)
|
|
else:
|
|
else:
|
|
f.write(indented_str(0, ""))
|
|
f.write(indented_str(0, ""))
|
|
- elif "API.connect" in line:
|
|
|
|
|
|
+ elif ("API.connect" in line) or ("SecurityShield.getInstance().check" in line):
|
|
replaced = line
|
|
replaced = line
|
|
if app_id:
|
|
if app_id:
|
|
replaced = replaced.replace('***REPLACE***WITH***YOUR***APPLICATION***NAME***', app_id)
|
|
replaced = replaced.replace('***REPLACE***WITH***YOUR***APPLICATION***NAME***', app_id)
|
|
@@ -875,7 +873,7 @@ def change(app_id: str, platform: str, mode: str, path_dest: str, features: dict
|
|
write_floating_button(f, features, security, spaces=2)
|
|
write_floating_button(f, features, security, spaces=2)
|
|
else:
|
|
else:
|
|
f.write(indented_str(0, "", spaces=2))
|
|
f.write(indented_str(0, "", spaces=2))
|
|
- elif "API.connect" in line:
|
|
|
|
|
|
+ elif ("API.connect" in line) or ("SecurityShield.getInstance().check" in line):
|
|
replaced = line
|
|
replaced = line
|
|
if app_id:
|
|
if app_id:
|
|
replaced = replaced.replace('***REPLACE***WITH***YOUR***APPLICATION***NAME***', app_id)
|
|
replaced = replaced.replace('***REPLACE***WITH***YOUR***APPLICATION***NAME***', app_id)
|
|
@@ -979,12 +977,12 @@ def change(app_id: str, platform: str, mode: str, path_dest: str, features: dict
|
|
write_floating_button(f, features, security)
|
|
write_floating_button(f, features, security)
|
|
else:
|
|
else:
|
|
f.write(indented_str(0, ""))
|
|
f.write(indented_str(0, ""))
|
|
- elif "API.connect" in line:
|
|
|
|
|
|
+ elif ("API.connect" in line) or ("SecurityShield.getInstance().check" in line):
|
|
replaced = line
|
|
replaced = line
|
|
if app_id:
|
|
if app_id:
|
|
replaced = replaced.replace('***REPLACE***WITH***YOUR***APPLICATION***NAME***', app_id)
|
|
replaced = replaced.replace('***REPLACE***WITH***YOUR***APPLICATION***NAME***', app_id)
|
|
f.write(replaced)
|
|
f.write(replaced)
|
|
- elif "int nexilisButtonMode" in line:
|
|
|
|
|
|
+ elif "val nexilisButtonMode" in line:
|
|
replaced = line
|
|
replaced = line
|
|
if mode == "floating":
|
|
if mode == "floating":
|
|
replaced = replaced.replace("0", "1")
|
|
replaced = replaced.replace("0", "1")
|