Quantcast
Channel: xda-developers - Android Software and Hacking General [Developers Only]
Viewing all articles
Browse latest Browse all 3614

[SOLVED] Creating extra java files for existing apk

$
0
0
Hello everyone. I wrote a new boot receiver in eclipse for an app that is no longer supported. Meaning the person who created it on the Play store is no longer updating the app :'(

I used dex2jar to deccompile the apk and view its source code in java (for smali and i are not the best of friends :/ ) and i have the package name and such matching that of the original apk.


So i went forth and compiled my apk that has the new boot receiver and then went and decompiled my APK to obtain the BootReceiver.smali that i then replaced into the original apk and when i compiled it, the app wouldnt even show up in the app drawer and well it pretty much was a huge fail xD


I was wondering if i need to set my target and minSDK in eclipse to match that of the original APK. Also any help at all would be spectacluar.

FYI: My boot receiver does work as i have tested it and then only changed the package name as well as the class name.

Thank you to everyone :)

Viewing all articles
Browse latest Browse all 3614

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>