I’ve downloaded the source code for AudioAnchor and made a small modification (increased the maximum playback speed in PlayActivity.java to 400 instead of 300 i.e. 4x instead of 3x) to better fit my needs. What is the easiest way to now compile the modified code into an APK for my personal use?
I’ve tried using apktool to decompile the available APK file as it seemed like a simpler way to compile, but the source code that apktool provides is too confusing for me and I couldn’t locate the playback speed inside it.
Is Android Studio the only solution as it seems like a lot of hassle for such a simple modification?
I ended up doing it with apktool - it turned out to be quite easy.
Here’s how I did it:
decompile: apktool d -f -r com.prangesoftwaresolutions.audioanchor_29.apk
change the playback speed in com.prangesoftwaresolutions.audioanchor_29/smali/com/prangesoftwaresolutions/audioanchor/activities/PlayActivity.smali which corresponds to PlayActivity.java from source code. There are two lines to be changed:
const/16 v4, 0x12c const/16 v6, 0x12c
Replace 0x12c with whatever max speed you want.
Then change the text displayed in com.prangesoftwaresolutions.audioanchor_29/res/5P.xml which corresponds to dialog_playback_speed.xml from source code.
compile: apktool b -f -r com.prangesoftwaresolutions.audioanchor_29