-
Notifications
You must be signed in to change notification settings - Fork 155
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
No source files specified with Andorid X86 #231
Comments
Hello |
Me too. I was trying to build the aosp emulator with gapps. |
I ran into this issue a while earlier. If I'm guessing correctly, |
The design is actually properly documented on I've isolated three
The build system aparently did not bother checking arm / arm64 apks when |
What I would suggest at this point is probably run |
Interesting, because I tried using PICO and then exclude Action Services in
the device.mk file and that doesn't seem to work. I don't have my VM
powered on at the moment but I recall one of the OpenGAPPS script refer to
ActionServices when checking the API level and includes it.
…On Tue, Dec 10, 2019 at 10:16 PM Tianhao Chai ***@***.***> wrote:
What I would suggest at this point is probably run find_apk.sh one more
time against arm even if the build target was x86_64 or x86.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#231?email_source=notifications&email_token=ANTGWWVQWZKZJA7JMA5VCE3QYCAULA5CNFSM4JVTMYEKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGSAH7Q#issuecomment-564397054>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANTGWWR7VZZC7VLOPQDCJ5LQYCAULANCNFSM4JVTMYEA>
.
|
It seems the same issue also exists when searching for shared objects. I'm attempting a patch on |
Here's a dirty and quick patch that at least allowed me to build Android x86 Pie with PICO set of gapps.
|
I assume I need to include ARM in the manifest file and re-sync to get this
patch to work?
…On Wed, Dec 11, 2019 at 8:49 AM Tianhao Chai ***@***.***> wrote:
Here's a dirty and quick patch that at least allowed me to build Android
x86 Pie with PICO set of gapps.
From 0133f951b066185ff0c0ccf004c7dda50e606cfb Mon Sep 17 00:00:00 2001
From: Tianhao Chai ***@***.***>
Date: Wed, 11 Dec 2019 10:25:33 -0600
Subject: [PATCH] Fix prebuilt apk arch selection
When building against x86_64 and x86, the build system should select
APKs for arm when an APK is not available for x86, x86_64 or all.
---
core/prebuilt_apk.mk | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/core/prebuilt_apk.mk b/core/prebuilt_apk.mk
index 2018d94..ee60b57 100644
--- a/core/prebuilt_apk.mk
+++ b/core/prebuilt_apk.mk
@@ -42,6 +42,10 @@ else
ifdef LOCAL_SRC_FILES
LOCAL_MODULE_TARGET_ARCH := $(TARGET_2ND_ARCH)
LOCAL_PREBUILT_JNI_LIBS_$(TARGET_2ND_ARCH) := $(call find-libs-in-apk,$(TARGET_2ND_ARCH),$(LOCAL_SRC_FILES))
+ else
+ LOCAL_SRC_FILES := $(call find-apk-for-pkg,arm,$(LOCAL_PACKAGE_NAME))
+ LOCAL_MODULE_TARGET_ARCH := arm
+ LOCAL_PREBUILT_JNI_LIBS_arm := $(call find-libs-in-apk,$(TARGET_2ND_ARCH),$(LOCAL_SRC_FILES))
endif
endif
endif
--
2.23.0
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#231?email_source=notifications&email_token=ANTGWWQNSSNEHRPJSOF2JJDQYEKYTA5CNFSM4JVTMYEKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGTZ4SI#issuecomment-564633161>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANTGWWWWSK2KTLU3XN4O3RDQYEKYTANCNFSM4JVTMYEA>
.
|
Hi all, Supplement: I used userdebug mode. Error message:
How can i fix it? Thanks for your help. |
I guess the patch is still missing some part of the google framework. I'll do a build when I have more time. |
This issue remains. Is there a walkaround? system/sepolicy/Android.mk:79: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version |
@zhendong2050 I can't remember how I resolved that problem. But make sure in your manifest file, you add ARM and ARM64 back in there. Install lzip (lower case L) and follow my steps in the initial post. You have to go into the all the sub folders in source and pull down the files. Very annoying since it's taking up more space on my HDD. |
@dwtcheung since this is not a bug but only usage trouble and you have resolved it already with git-lfs on your own you should close this issue. @zhendong2050 you have to do a Here an example how to do it: Following ones duplicate the usage problem: #251 and #253 Best regards, |
Thanks for your reply. Before make, I run the following script as @stefanhh0 suggested and downloaded APKs and install ed lzip. However I still got this error during compiling. Can you please give me further help? thanks a lot. Error: Script: |
Try this: Download OpenGapps
If you need x86 and x86_64 then git clone that too |
@Rybo713 git clone https://gitlab.opengapps.org/opengapps/arm.git Did you have this error before, any suggestion? thanks a lot. Error downloading object: app/com.google.android.apps.photos/21/nodpi/4846836.apk (caec68b): Smudge error: Error downloading app/com.google.android.apps.photos/21/nodpi/4846836.apk (caec68bb61eeb5626d22f48d9c112d9447c3b96b6ed53329373da7ea44852b59): batch response: Post https://gitlab.opengapps.org/opengapps/arm.git/info/lfs/objects/batch: dial tcp 78.46.46.59:443: connect: connection refused Errors logged to /home/zhendong/AOSP/vendor/opengapps/sources/arm/.git/lfs/logs/20200407T224855.98017133.log |
@zhendong2050 I haven't had this error before. Try using |
@Rybo713 same error again using git checkout -f HEAD. |
@zhendong2050 Try deleting everything related to opengapps and trying again. I just tried it and it worked with no issues. |
@Rybo713 |
@zhendong2050 It should just be in the vendor folder |
@Rybo713 |
@zhendong2050 You had it in the right place before: |
@stefanhh0 Please read @cthbleachbit comments. I just re-tested it and I'm still having the same error message. Here's what I done.
So this is not a git lfs usage error. If it's an usage error then I expect to encounter the same or similar missing source error when I build against Android 8. The fact that it's happening when I'm building against Android 9 makes me think cthbleachbit is correct. There's something wrong with the source files, either in the prebuild script or some where else that's causing this to happen. TLDR; I'm not closing this issue yet. Please review cthbleachbit's work around and determine if it's the right fix. If it is, then update the documentation and the script in the source. |
Hello @zhendong2050 , which version of git lfs are you using, please check with: The error:
Seems to me more a problem of the git lfs client or a firewall/internet connection problem rather than a configuration problem with your git lfs repos. Try connecting via
It could also be a temporary problem with the host, have you retried? Are at least some files downloaded to completion? That would then be an indication of a flaky internet connection. Best regards, |
Hello @dwtcheung, you are writing:
I think you should have instead: all, x86 and x86_64 but not arm. ARM arch is not meant to be used for x86 or x86_64, right? Please retry using following git repos:
While the patch outlined in #231 (comment) may work during build-time it wouldn't work during runtime on all x86 devices. Only on devices that have proper ARM emulation on the x86 hardware. Even if you have ARM emulation in place I am unsure if that is something that can be assumed as granted on every x86 device. Thus I believe the fix wouldn't be accepted by the maintainers of this project. However you are free to create a PR for that if you have good reasons for it. And anyway I am not an expert for x86 phones, maybe ARM can always be executed on x86 hardware?! Best regards, |
Hi @stefanhh0 , thanks for the quick reply. Initially, I only pulled all, x86, and x86_64 source files and that's when I encountered the problem. With cthbleachbit's work around, I wasn't sure if I need to pull arm as well but since it referred to it, I pulled it just in case. Android x86 does have an ARM emulator but I haven't tried building an ARM version of OPENGAPPS and use it with the ARM emulator. I'll schedule a test build this weekend. BTW, what does PR stand for? Not a developer myself so can't say I understand all the shorthand references. |
PRs are pull requests. The link from @cthbleachbit is pretty helpful: I haven't read it before close enough, in fact I was a little to quick saying that this issue should be closed since it is a git-lfs problem. Now I have realized that it is not. Maybe you could improve the headline of the issue and your first comment a little with the knowledge you now have. I am sorry for my quick shot earlier, I should have read it more carefully in the first place. |
Hi @stefanhh0 , The downloading error is encountered when I was following instructions suggested by @Rybo713 . I did some tweak (git config credential.helper manager) and the error was gone. Unfortunately, I failed to compile and the error is the same as I reported earlier. My lunch option is lunch mini_emulator_x86-userdebug and Android version is Android 9. One questions: how large are the downloaded folders x86 and x86_64? |
@zhendong2050 I got 13GB for x86 and 7GB for x86_64. Also my git-lfs is version 2.8.0 / 1.12.10 if that makes a difference |
@Rybo713 I checked my folders, which are the same as yours 13GB for x86 and 7GB for x86_64. Are you building Android 10 or 9? Is it related to Android version? |
@zhendong2050 I'm building Android 10. Not sure if it makes a difference tho |
Is there a tutorial for installing Gapps apks into an emulator without doing compilation? I installed Gapps into an emulator following a tutorial but it did not work well. It kept reporting the "Google play service is stoping" error. Thanks. |
There's a solution to this! See this ticket: I followed the instructions as stated in the above ticket and I managed to compile it with Android X86 9R2 without problem. Furthermore, I don't have any GMS issues as I did before. Apps from Google Store installed and usable. While cthbleachbit script mod worked, it still required you download the arm source code while cwhuang solution doesn't. Closing ticket as it's now obsolete. I still don't know if cwhuang's changes were merged to main line. |
I'm trying to include OpenGAPPS with Android X86. I read issue #217 and #229 and tried the following to resolve the issue but still running into the following error:
[570/645] including vendor/opengapps/build/modules/ActionsServices/Android.mk ... tools/test/connectivity/Android.mk: error: ActionsServices: No source files specified build/make/core/prebuilt_internal.mk:35: error: done. 17:37:32 ckati failed with: exit status 1
opengapps/sources
and rungit lfs install
andgit lfs pull
as sudo and got more files downloadedfind-apk.sh
file to changelzip
to refer to/usr/bin/lzip
, still have the same problemNot really sure what to do or how to diagnose the problem (Linux noob). The patch inside #217 doesn't seem to apply any more since the
find-apk.sh
file was updated and thels -v
command was removed.The text was updated successfully, but these errors were encountered: