|
@@ -454,13 +454,13 @@ def change_huawei_file(path_dest, huawei_file, package_id):
|
|
|
f.write(replaced)
|
|
|
|
|
|
def change_fms_file(path_dest, fms_enable, package_id):
|
|
|
- if fms_enable == 1:
|
|
|
+ if fms_enable == 0:
|
|
|
path_package_id = package_id.replace(".", "/")
|
|
|
code_path = "app/src/main/java/"
|
|
|
main_code_path = os.path.join(path_dest, code_path, path_package_id, "MAB.java")
|
|
|
with open(main_code_path, "r") as f:
|
|
|
file_source = f.read()
|
|
|
- replaced = file_source.replace('isFMSEnabled = false', 'isFMSEnabled = true')
|
|
|
+ replaced = file_source.replace('isFMSEnabled = true', 'isFMSEnabled = false')
|
|
|
with open(main_code_path, "w") as f:
|
|
|
f.write(replaced)
|
|
|
|
|
@@ -531,7 +531,7 @@ def build_apk():
|
|
|
url = None
|
|
|
keystore = None
|
|
|
huawei_file = None
|
|
|
- fms_enable = 0
|
|
|
+ fms_enable = 1
|
|
|
key_exists = False
|
|
|
# tabs = ["1", "2", "3", "4"]
|
|
|
fb_order = "1,2,3,4,5"
|