-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Build scripts incompatible with Java 9 #729
Comments
In the meantime, as a temporary fix, it is possible to enforce building with Java 8 via the use of Unfortunately, switching to
Regardless of the fact that I have enough system memory, this error would occur whenever I̶ ̶h̶a̶v̶e̶ ̶y̶e̶t̶ ̶t̶o̶ ̶t̶e̶s̶t̶ ̶t̶h̶e̶ ̶c̶o̶m̶p̶i̶l̶e̶d̶ ̶s̶y̶s̶t̶e̶m̶ ̶i̶m̶a̶g̶e̶ ̶t̶h̶o̶u̶g̶h̶. Tested a Pie build and it seems to be working fine. |
I tried to do a build for Pie with my AOSP, however failed so far to do so. As for reference and if someone else is trying this: Following errors I encountered:
Right now I run into proguard errors, however have not found any solution to this. |
Sorry for taking a time to come back, was busy with some other stuff. I just finished compiling it with AOSP Pie (Still need to test the ROM though). Following things I encountered: ANDROID_BUILD_TOP in Android.mk is deprecated, hence I adapted the Android.mk in GmsCore like this:
The .PHONY target I already used in Oreo, as I got some errors on the link when compiling with multiple threads (It was not created properly). The NullPointerException from above was solved by upgrading gradle. I saw that @mar-v-in did this as well in his latest commits to GmsCore. I went through all the subprojects and aligned the gradle and wrapper versions. That worked for me. The ProGuard warnings were
Hence a @mar-v-in Would be nice if you could take a look on what I did. I can create a pull request as well if the changes are ok. P.S.: In the changes on 26.05 you also introduced a local.properties file, which does not yet exist. Empty file works, but just a note on the side. |
So tested the ROM and found, that you will need to privapp whitelist
for |
@chris42 yes, the major problem with
is indeed, that not all ROMs expect this one to be whitelisted, so I previously had the issue that for some users uNlp did only partially work if not whitelisted, while for others the ROM did not boot when whitelisted. Also Oreo and Pie are very different in what they expect whitelisted, while Pie also refuses booting on some ROMs if a permission is whitelisted that shouldn't be - and not just because of missing whitelists. A complete mess. I already pinged @ale5000-git so I expect anytime in the future his installer will get the automatic detection aswell, though he's currently busy. For the curious here are the functions which auto-generate the whitelists for NanoDroid starting with version 21.0-beta2, namely dump_system_privapp_permissions() and create_privapp_permissions_whitelist(): https://gitlab.com/Nanolx/NanoDroid/blob/master/CommonInstaller#L782 |
@Nanolx Might be, that some ROM builders put the whitelist right into the build. I am using a Sony AOSP, which is pretty pure. |
Unless I'm mistaken, shouldn't the Androud build system autocreate a proper privapp permission whitelist?
Am 1. Juni 2019 20:27:49 MESZ schrieb Christian <[email protected]>:
…
@Nanolx Might be, that some ROM builders put the whitelist right into
the build. I am using a Sony AOSP, which is pretty pure.
I looked into your solution, but I am not sure, if I can replicate that
during build time. Right now I just copy over the whitelist with the
GMSCore build.
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#729 (comment)
--
Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.
|
I would guess so as well, however I do not understand the build system well enough, to tell what is wrong. |
Has anyone been able to compile GmsCore inline with Android 10? I get this error: packages/apps/GmsCore/Android.mk:36: error: writing to readonly directory: "packages/apps/GmsCore/play-services-core/build/outputs/apk/release/play-services-core-release-unsigned.apk" |
The packaged Android.mk is incompatible with Pie builds since the prebuilt JDK packaged with the ASOP is now version 9, which the included gradle scripts do not support. This leads to a build failure, with result
It would be nice if the build system were updated.
The text was updated successfully, but these errors were encountered: