tama 9 månader sedan
förälder
incheckning
b3bf436ebd
1 ändrade filer med 4 tillägg och 6 borttagningar
  1. 4 6
      main-embed.py

+ 4 - 6
main-embed.py

@@ -136,7 +136,6 @@ def write_android_menu(xml_menu_path: str, features: dict, security: dict):
                 n = n + 1
                 write_android_menu_item(f, "action_create_channel", n, "Create Channel", features["create_channel"]["status"])
                 n = n + 1
-
                 write_android_menu_item(f, "action_ppob", n, "PPOB Agent", features["ppob"]["status"])
                 n = n + 1
                 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
                 write_android_menu_item(f, "action_contact_list", n, "Contact List", features["contact_list"]["status"])
                 n = n + 1
-
                 write_android_menu_item(f, "action_settings", n, "Settings", True)
                 n = n + 1
                 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)
                     else:
                         f.write(indented_str(0, ""))
-                elif "API.connect" in line:
+                elif ("API.connect" in line) or ("SecurityShield.getInstance().check" in line):
                     replaced = line
                     if 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)
                     else:
                         f.write(indented_str(0, ""))
-                elif "API.connect" in line:
+                elif ("API.connect" in line) or ("SecurityShield.getInstance().check" in line):
                     replaced = line
                     if 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)
                     else:
                         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
                     if app_id:
                         replaced = replaced.replace('***REPLACE***WITH***YOUR***APPLICATION***NAME***', app_id)
@@ -979,7 +977,7 @@ def change(app_id: str, platform: str, mode: str, path_dest: str, features: dict
                         write_floating_button(f, features, security)
                     else:
                         f.write(indented_str(0, ""))
-                elif "API.connect" in line:
+                elif ("API.connect" in line) or ("SecurityShield.getInstance().check" in line):
                     replaced = line
                     if app_id:
                         replaced = replaced.replace('***REPLACE***WITH***YOUR***APPLICATION***NAME***', app_id)