|
@@ -81,7 +81,7 @@ def write_android_manifest(manifest_path: str, features: dict, security: dict):
|
|
|
f.write(line)
|
|
|
|
|
|
|
|
|
-def change(platform: str, mode: str, path_dest: str, features: dict, security: dict):
|
|
|
+def change(app_id: str, platform: str, mode: str, path_dest: str, features: dict, security: dict):
|
|
|
if platform == "android":
|
|
|
main_act_path = os.path.join(path_dest,
|
|
|
"app/src/main/java/com/example/nexilissamplecodeburger/MainActivity.java")
|
|
@@ -284,6 +284,7 @@ def change(platform: str, mode: str, path_dest: str, features: dict, security: d
|
|
|
else:
|
|
|
f.write(indented_str(0, ""))
|
|
|
elif "API.connect" in line:
|
|
|
+ line.replace('***REPLACE***WITH***YOUR***APPLICATION***NAME***', app_id)
|
|
|
if mode == "floating":
|
|
|
replaced = line.replace("0", "1")
|
|
|
f.write(replaced)
|
|
@@ -616,6 +617,7 @@ def change(platform: str, mode: str, path_dest: str, features: dict, security: d
|
|
|
else:
|
|
|
f.write(indented_str(0, ""))
|
|
|
elif "API.connect" in line:
|
|
|
+ line.replace('***REPLACE***WITH***YOUR***APPLICATION***NAME***', app_id)
|
|
|
if mode == "floating":
|
|
|
replaced = line.replace("0", "1")
|
|
|
f.write(replaced)
|
|
@@ -856,6 +858,7 @@ def change(platform: str, mode: str, path_dest: str, features: dict, security: d
|
|
|
else:
|
|
|
f.write(indented_str(0, "", spaces=2))
|
|
|
elif "API.connect" in line:
|
|
|
+ line.replace('***REPLACE***WITH***YOUR***APPLICATION***NAME***', app_id)
|
|
|
if mode == "floating":
|
|
|
replaced = line.replace("0", "1")
|
|
|
f.write(replaced)
|
|
@@ -1288,6 +1291,7 @@ def change(platform: str, mode: str, path_dest: str, features: dict, security: d
|
|
|
else:
|
|
|
f.write(indented_str(0, ""))
|
|
|
elif "API.connect" in line:
|
|
|
+ line.replace('***REPLACE***WITH***YOUR***APPLICATION***NAME***', app_id)
|
|
|
if mode == "floating":
|
|
|
replaced = line.replace("0", "1")
|
|
|
f.write(replaced)
|
|
@@ -2031,23 +2035,24 @@ def build_project():
|
|
|
security_dict["side_load"] = request.form["security_sideloaded"] == "1"
|
|
|
if "security_keylogger" in request.form:
|
|
|
security_dict["key_logger"] = request.form["security_keylogger"] == "1"
|
|
|
- else:
|
|
|
- security_dict["show_security"] = (security_dict["malware"] or security_dict["clone"]
|
|
|
- or security_dict["emulator"] or security_dict["debug"]
|
|
|
- or security_dict["sim_swap"] or security_dict["capture"]
|
|
|
- or security_dict["call_forwarding"]
|
|
|
- or security_dict["secure_folder"])
|
|
|
+ security_dict["show_security"] = (security_dict["malware"] or security_dict["clone"]
|
|
|
+ or security_dict["emulator"] or security_dict["debug"]
|
|
|
+ or security_dict["sim_swap"] or security_dict["capture"]
|
|
|
+ or security_dict["call_forwarding"]
|
|
|
+ or security_dict["secure_folder"])
|
|
|
if "platform" in request.form:
|
|
|
platform = request.form["platform"]
|
|
|
if "mode" in request.form:
|
|
|
mode = request.form["mode"]
|
|
|
+ if "app_id" in request.form:
|
|
|
+ app_id = request.form["app_id"]
|
|
|
except BaseException as e:
|
|
|
vprint(traceback.format_exc())
|
|
|
return {"status": "1", "message": "Parameter mismatch\n{}\n".format(str(e))}, 400
|
|
|
try:
|
|
|
uu_id = str(uuid.uuid4())
|
|
|
path_dest = create_folder(platform, uu_id)
|
|
|
- change(platform, mode, path_dest, feature_dict, security_dict)
|
|
|
+ change(app_id, platform, mode, path_dest, feature_dict, security_dict)
|
|
|
return deliver_zip(path_dest, uu_id)
|
|
|
except BaseException as e:
|
|
|
vprint(traceback.format_exc())
|