juanmuscaria / blockheads-patch

Fixes annoying issues with the blockheads in modern android
11 stars 2 forks source link

Add allowAudioPlaybackCapture and hasFragileUserData to manifest #3

Closed JarlPenguin closed 2 years ago

JarlPenguin commented 2 years ago

Add allowAudioPlaybackCapture and hasFragileUserData to the app's AndroidManifest.xml

allowAudioPlaybackCapture allows us to capture the internal audio of the game.

hasFragileUserData allows the user to choose whether or not to keep their game data preserved when uninstalling the game.

I could do this with a simple bash script, just not sure how to write it to work with your script.

juanmuscaria commented 2 years ago

Could you provide an example bash script so I can try to implement on the current one?

JarlPenguin commented 2 years ago

apktool d base.apk sed -i 's|<application android:debuggable="false"|<application android:debuggable="false" android:allowAudioPlaybackCapture="true" android:hasFragileUserData="true"|g' base/AndroidManifest.xml apktool b base.apk

juanmuscaria commented 2 years ago

Implemented