-
-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modifying android.jar
Files on Device (building the aapt, ecj, dx and apksigner packages)
#3
Comments
@SDRausty So modifications to it may lead problems. So it is not a good idea to modify it. |
@HemanthJabalpuri do you know the steps to compile and decompile
Why do you state that root is needed? |
@HemanthJabalpuri can you test https://github.com/BuildAPKs/buildAPKs.samples on device with https://github.com/sp4rkie/debian-on-termux please? |
@SDRausty android.jar = /system/framework/framework.[apk & jar] + others too. We are not compiling android.jar, i.e., we are only including it as classpath assuming that the target device have that in its bootclasspath. So if we want to modify android.jar, we also need to modify framework.jar in device too. So modifying /system partition needs root. Also https://github.com/BuildAPKs/buildAPKs.samples app compiled fine without Linux Distribution. |
Reference from #2 (comment)
|
@HemanthJabalpuri the reason this was requested:
Are the errors important? Oh yes, much so. The BuildAPKs modules/repositories and forks are selected because they compile on device in Termux. Can they compile in a PRoot environment as well as in Termux?
Studying the errors in debian proot has shed a little more light on this subject. I would like to hear your opinion about the errors encountered. BuildAPKs was recently modified to run after one tap inside a debian proot environment. The script sets up fine, and runs as it should except for the fact that compiling even a single APK is impossible in debian on device. I would like to 👂 hear your opinion about the errors BuildAPKs shows in debian proot on device... |
@HemanthJabalpuri you mentioned:
Referencing Parsing Project Configuration Files #1 issuecomment-534638948:
It appears that you are absolutely correct:
|
Results:
Any ideas why aapt doesn't add colorPrimaryDark to the build even though colorPrimaryDark is in android.jar? |
This commit e705a9a resolves aapt doesn't add colorPrimaryDark. |
@SDRausty |
@HemanthJabalpuri thank you for sharing;
The verbose output states However
|
Commit 2fec19a adds support for including many artifacts with the -I flag to |
Notes about jar files used by BuildAPKs:# Create an android.jar with AndroidManifest.xml and resources.arsc: # Package classes.dex into jar: jar cf apksigner.jar classes.dex How feasible is it to create these packages and jar files on device with Termux on the fly? |
android.jar
android.jar
Files on Device (building the aapt, ecj, dx and apksigner packages)
Stale issue message |
Modifying
android.jar
might better than adding libraries. Hence this issue is devoted to rewriting the android.jar file.The text was updated successfully, but these errors were encountered: