I have an Android project created by Eclipse and I need to compile it into an APK.
How can I do it using PHP?
Also, how can I use a custom keystore?
Some websites do this using .NET, but can I do this using PHP?
Or can I run some script with root access to do this and create an Android APK?
I can’t find anything like this on this website:
First of all, you must be running Android ant. Then, you must run:
ant release
This will compile the APK, but if you also want to sign it, run:
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore pathtokeystore.keystore pathtounsignedapp.apk alias_name
It will require passwords for the keystore and key. The unsigned apk will be signed in place, and you can just return the apk.