News for hackers. Stuff that matters.
Re:ReVanced by throwxxxaway on Friday March 25, 2022 @02:55PM (#30805815)
Could anyone who is familiar with Java/Kotlin/Android explain how does this work?

I tried decompiling YouTube App on Android to remove the ads some time ago, but I failed to compile it back because some kind of security thing did not allow the app to start.

Re:ReVanced by Psychotherapist on Friday March 25, 2022 @04:06PM (#30806531)
Although I am not really familiar with Android Development, I got it to work like this:

- decompile using apktool

- make changes

- recompile apk using apktool

- zipalign apk

- sign apk (using the apksigner.jar) with a certificate

Tools like uber-apk-signer really help to do the last three steps