2023-11-07 05:36:59 +01:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
import sys
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
if len(sys.argv) != 3:
|
2024-02-14 08:57:34 +01:00
|
|
|
sys.exit(f"usage: {sys_argv[0]} target_package_name output\n")
|
2023-11-07 05:36:59 +01:00
|
|
|
with open(sys.argv[2], "w") as f:
|
|
|
|
f.write(f'''<?xml version="1.0" encoding="utf-8"?>
|
2024-02-14 08:57:34 +01:00
|
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="{sys.argv[1]}.auto_generated_characteristics_rro">
|
2023-11-07 05:36:59 +01:00
|
|
|
<application android:hasCode="false" />
|
2024-02-14 08:57:34 +01:00
|
|
|
<overlay android:targetPackage="{sys.argv[1]}"
|
2023-11-07 05:36:59 +01:00
|
|
|
android:isStatic="true"
|
|
|
|
android:priority="0" />
|
|
|
|
</manifest>
|
|
|
|
''')
|