Android: How to manually add a file to apk?

后端 未结 3 1760
心在旅途
心在旅途 2020-12-03 00:15

How do I manually add a file to an Android APK package?

3条回答
  •  猫巷女王i
    2020-12-03 00:40

    There's a tool called aapt that is bundled with the Android SDK. You can use it to add/remove/list files in an existing apk. Run aapt without any params and it will print usage instructions. To add a file use:

    aapt add MyApp.apk file1 file2 ...
    

提交回复
热议问题