GloDroid / glodroid_manifest

Android port that aims to bring both user- and developer-friendly experience in using AOSP with a set of single-board computers (SBC), phones and other devices.
471 stars 67 forks source link

[Raspberry Pi4] flash-sd.sh fail #101

Closed dchjung closed 3 years ago

dchjung commented 3 years ago

I need help. I built with rpi4-user or userdebug on Ubuntu 18. I flashed the deploy-sd.img file on the SD card through etcher for Ubuntu. And after inserting the SD card into the device and connecting it to Ubuntu, the ./flash-sd.sh script is executed, but the following error occurs.

rpi4$ ./flash-sd.sh

When this happens, a menu screen for selecting the boot mode appears on the device screen.

Can you see why this is happening?

rsglobal commented 3 years ago

Hi, Please run make images and upload the archive here.

dchjung commented 3 years ago

This image was created in rpi4-user mode.

https://drive.google.com/file/d/17txg26vGkgeT5jxWE2Tsime15jLlRu_p/view?usp=sharing

rsglobal commented 3 years ago

@dchjung ,

I have the same error with your images. It seems you've turned off permissive mode. From UART console:

[    9.704540] audit: type=1400 audit(9.699:8): avc:  denied  { write } for  pid=126 comm="fastbootd" name="mmcblk0p6" dev="tmpfs" ino=12828 scontext=u:r:fastbootd:s0 tcontext=u:object_r:block_device:s0 tc
lass=blk_file permissive=0
[    9.724891] audit: type=1400 audit(9.707:9): avc:  denied  { write } for  pid=126 comm="fastbootd" name="mmcblk0p6" dev="tmpfs" ino=12828 scontext=u:r:fastbootd:s0 tcontext=u:object_r:block_device:s0 tc
lass=blk_file permissive=0

GloDroid is not ready now to run in enforced selinux mode.

dchjung commented 3 years ago

@rsglobal , Thanks for checking. I don't understand your answer very well. Anyway my purpose is to remove the /system/xbin/su file. So i tried adb remount but android won't boot after that. So is there any way to remove the su file when building android or after build? I want to create an unrooted build image.

rsglobal commented 3 years ago

@dchjung ,

By default selinux is enforced for user builds. To do the things in a right manner, you need to create/fix all necessary selinux rules, which is not trivial task.

Instead you can try to set this option to 1 (modify AOSP's Android.bp) , build and test again: https://cs.android.com/android/platform/superproject/+/master:system/core/init/Android.bp;l=89;drc=aca0beaf77247675400d9771c6269bd899fa379f

dchjung commented 3 years ago

@rsglobal , I solved the problem with your help . Thank you sincerely. Personally, Glodroid looks better than LineageOS. Display cracking happens occasionally, but it doesn't matter to me.

rsglobal commented 3 years ago

Thanks. Hope someday we could combine out efforts with @KonstaT

Can this issue be closed?