1#!/usr/bin/env python3 2import sys 3 4if __name__ == '__main__': 5 if len(sys.argv) != 3: 6 sys.exit(f"usage: {sys_argv[0]} target_package_name output\n") 7 with open(sys.argv[2], "w") as f: 8 f.write(f'''<?xml version="1.0" encoding="utf-8"?> 9 <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="{sys.argv[1]}.auto_generated_characteristics_rro"> 10 <application android:hasCode="false" /> 11 <overlay android:targetPackage="{sys.argv[1]}" 12 android:isStatic="true" 13 android:priority="0" /> 14</manifest> 15''') 16