phhusson / treble_experimentations

Notes about tinkering with Android Project Treble
3.41k stars 660 forks source link

Android 11 v309, gapps: Android Setup isn't reponding #1917

Open fwiep opened 3 years ago

fwiep commented 3 years ago

Hello,

Using a Lenovo TB-X605F and these instructions from Yahoo Mike on XDA, I would like to run the gapps-build of the most recent Android 11 GSI (system-roar-arm64-aonly-gapps.img).

The installation via fastboot and TWRP seems to work, but after first boot, after the language selection, I get "Android Setup isn't responding" and a blank screen. Android itself seems to be running; when I press the power-button, I get the options for Emergency, Poweroff and Restart.

I have tried the vanilla build (system-roar-arm64-aonly-vanilla.img); this does boot through and works as expected.

After that, I tried the unofficial LineageOS (lineage-18.1-20210615-UNOFFICIAL-treble_arm64_avS.img); that works as expected, too.

Is this a known problem, can someone help me get the gapps-build running? Thanks!

Kind regards, FWieP

phhusson commented 3 years ago

Please provide logcat

21 juin 2021 19:21:23 Frans-Willem Post @.***>:

Hello,

Using a Lenovo TB-X605F and these instructions[https://forum.xda-developers.com/t/project-treble-gsi-images-on-smart-tab-m10-tb-x605f-l-and-p10-tb-x705f-l.4147201/] from Yahoo Mike on XDA, I would like to run the gapps-build of the most recent Android 11 GSI (system-roar-arm64-aonly-gapps.img).

The installation via fastboot and TWRP seems to work, but after first boot, after the language selection, I get "Android Setup isn't responding" and a blank screen. Android itself seems to be running; when I press the power-button, I get the options for Emergency, Poweroff and Restart.

I have tried the vanilla build (system-roar-arm64-aonly-vanilla.img); this does boot through and works as expected.

After that, I tried the unofficial LineageOS (lineage-18.1-20210615-UNOFFICIAL-treble_arm64_avS.img[https://sourceforge.net/projects/andyyan-gsi/files/lineage-18.x/]); that works as expected, too.

Is this a known problem, can someone help me get the gapps-build running? Thanks!

Kind regards, FWieP

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub[https://github.com/phhusson/treble_experimentations/issues/1917], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AAAA4ORFJ4QLJDENKMBAMCTTT5YJHANCNFSM47B74OXA]. [data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAAjSURBVGiB7cEBDQAAAMKg909tDwcUAAAAAAAAAAAAAADApwExOAABR9ZGcwAAAABJRU5ErkJggg==###24x24:true###][Image de pistage][https://github.com/notifications/beacon/AAAA4OUYZSPIP3TKERRT6VLTT5YJHA5CNFSM47B74OXKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4NZYJC3A.gif]

fwiep commented 3 years ago

Please provide logcat 21 juin 2021 19:21:23 Frans-Willem Post @.***>:\

Thanks for your rapid response.

Here is my logcat: https://dl.fwiep.nl/LJzQhD

I don't know if there is any privacy-related data in there?
Please let me know when you have downloaded it. I will remove it, then.

Thanks again, FWieP

phhusson commented 3 years ago

k, downloaded. (file name so that I remember: a11-gapps-309.zip )

Le lun. 21 juin 2021 à 19:38, Frans-Willem Post @.***> a écrit :

Please provide logcat 21 juin 2021 19:21:23 Frans-Willem Post @.***>: Thanks for your rapid response.

Here is my logcat: https://dl.fwiep.nl/LJzQhD

I don't know if there is any privacy-related data in there? I will remove it, as soon as it has been downloaded once.

Thanks again, FWieP

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/phhusson/treble_experimentations/issues/1917#issuecomment-865221147, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAA4OUEPUEL6W4OPUQJHVTTT52IBANCNFSM47B74OXA .

phhusson commented 3 years ago

k issue is most likely: 01-01 00:42:06.487 1005 1005 F linker : CANNOT LINK EXECUTABLE "/vendor/bin/hw/android.hardware.media.omx@1.0-service": cannot locate symbol "_ZN7android24MEDIA_MIMETYPE_AUDIO_APEE" referenced by "/vendor/lib/libstagefright_omx.so"...

Please provide the result of grep -r _ZN7android24MEDIA_MIMETYPE_AUDIO_APEE /vendor

fwiep commented 3 years ago

Please provide the result of grep -r _ZN7android24MEDIA_MIMETYPE_AUDIO_APEE /vendor

:/ # grep -r _ZN7android24MEDIA_MIMETYPE_AUDIO_APEE /vendor
grep: /vendor/rfs/apq/gnss/hlos: Is a directory
grep: /vendor/rfs/apq/gnss/readonly/vendor/firmware: Is a directory
grep: /vendor/rfs/apq/gnss/readonly/firmware: Is a directory
grep: /vendor/rfs/apq/gnss/ramdumps: Bad file descriptor
grep: /vendor/rfs/apq/gnss/readwrite: Is a directory
grep: /vendor/rfs/apq/gnss/shared: Is a directory
grep: /vendor/rfs/mdm/slpi/hlos: Is a directory
grep: /vendor/rfs/mdm/slpi/readonly/firmware: Is a directory
grep: /vendor/rfs/mdm/slpi/ramdumps: Bad file descriptor
grep: /vendor/rfs/mdm/slpi/readwrite: Is a directory
grep: /vendor/rfs/mdm/slpi/shared: Is a directory
grep: /vendor/rfs/mdm/cdsp/hlos: Is a directory
grep: /vendor/rfs/mdm/cdsp/readonly/firmware: Is a directory
grep: /vendor/rfs/mdm/cdsp/ramdumps: Bad file descriptor
grep: /vendor/rfs/mdm/cdsp/readwrite: Is a directory
grep: /vendor/rfs/mdm/cdsp/shared: Is a directory
grep: /vendor/rfs/mdm/mpss/hlos: Is a directory
grep: /vendor/rfs/mdm/mpss/readonly/vendor/firmware: Is a directory
grep: /vendor/rfs/mdm/mpss/readonly/firmware: Is a directory
grep: /vendor/rfs/mdm/mpss/ramdumps: Bad file descriptor
grep: /vendor/rfs/mdm/mpss/readwrite: Is a directory
grep: /vendor/rfs/mdm/mpss/shared: Is a directory
grep: /vendor/rfs/mdm/adsp/hlos: Is a directory
grep: /vendor/rfs/mdm/adsp/readonly/vendor/firmware: Is a directory
grep: /vendor/rfs/mdm/adsp/readonly/firmware: Is a directory
grep: /vendor/rfs/mdm/adsp/ramdumps: Bad file descriptor
grep: /vendor/rfs/mdm/adsp/readwrite: Is a directory
grep: /vendor/rfs/mdm/adsp/shared: Is a directory
grep: /vendor/rfs/mdm/tn/hlos: Is a directory
grep: /vendor/rfs/mdm/tn/readonly/firmware: Is a directory
grep: /vendor/rfs/mdm/tn/ramdumps: Bad file descriptor
grep: /vendor/rfs/mdm/tn/readwrite: Is a directory
grep: /vendor/rfs/mdm/tn/shared: Is a directory
grep: /vendor/rfs/msm/slpi/hlos: Is a directory
grep: /vendor/rfs/msm/slpi/readonly/vendor/firmware: Is a directory
grep: /vendor/rfs/msm/slpi/readonly/firmware: Is a directory
grep: /vendor/rfs/msm/slpi/ramdumps: Bad file descriptor
grep: /vendor/rfs/msm/slpi/readwrite: Is a directory
grep: /vendor/rfs/msm/slpi/shared: Is a directory
grep: /vendor/rfs/msm/cdsp/hlos: Is a directory
grep: /vendor/rfs/msm/cdsp/readonly/vendor/firmware: Is a directory
grep: /vendor/rfs/msm/cdsp/readonly/firmware: Is a directory
grep: /vendor/rfs/msm/cdsp/ramdumps: Bad file descriptor
grep: /vendor/rfs/msm/cdsp/readwrite: Is a directory
grep: /vendor/rfs/msm/cdsp/shared: Is a directory
grep: /vendor/rfs/msm/mpss/hlos: Is a directory
grep: /vendor/rfs/msm/mpss/readonly/vendor/firmware: Is a directory
grep: /vendor/rfs/msm/mpss/readonly/firmware: Is a directory
grep: /vendor/rfs/msm/mpss/ramdumps: Bad file descriptor
grep: /vendor/rfs/msm/mpss/readwrite: Is a directory
grep: /vendor/rfs/msm/mpss/shared: Is a directory
grep: /vendor/rfs/msm/adsp/hlos: Is a directory
grep: /vendor/rfs/msm/adsp/readonly/vendor/firmware: Is a directory
grep: /vendor/rfs/msm/adsp/readonly/firmware: Is a directory
grep: /vendor/rfs/msm/adsp/ramdumps: Bad file descriptor
grep: /vendor/rfs/msm/adsp/readwrite: Is a directory
grep: /vendor/rfs/msm/adsp/shared: Is a directory
Binary file /vendor/lib/libstagefright_foundation.so matches
Binary file /vendor/lib/libstagefright_omx.so matches

Hope this helps.

Kind regards, FWieP

phhusson commented 3 years ago

What's the result of the command mount ? getprop ro.product.first_api_level ? getprop persist.sys.vndk ? getprop ro.vndk.version ?

Le lun. 21 juin 2021 à 19:59, Frans-Willem Post @.***> a écrit :

Please provide the result of grep -r _ZN7android24MEDIA_MIMETYPE_AUDIO_APEE /vendor

:/ # grep -r _ZN7android24MEDIA_MIMETYPE_AUDIO_APEE /vendor grep: /vendor/rfs/apq/gnss/hlos: Is a directory grep: /vendor/rfs/apq/gnss/readonly/vendor/firmware: Is a directory grep: /vendor/rfs/apq/gnss/readonly/firmware: Is a directory grep: /vendor/rfs/apq/gnss/ramdumps: Bad file descriptor grep: /vendor/rfs/apq/gnss/readwrite: Is a directory grep: /vendor/rfs/apq/gnss/shared: Is a directory grep: /vendor/rfs/mdm/slpi/hlos: Is a directory grep: /vendor/rfs/mdm/slpi/readonly/firmware: Is a directory grep: /vendor/rfs/mdm/slpi/ramdumps: Bad file descriptor grep: /vendor/rfs/mdm/slpi/readwrite: Is a directory grep: /vendor/rfs/mdm/slpi/shared: Is a directory grep: /vendor/rfs/mdm/cdsp/hlos: Is a directory grep: /vendor/rfs/mdm/cdsp/readonly/firmware: Is a directory grep: /vendor/rfs/mdm/cdsp/ramdumps: Bad file descriptor grep: /vendor/rfs/mdm/cdsp/readwrite: Is a directory grep: /vendor/rfs/mdm/cdsp/shared: Is a directory grep: /vendor/rfs/mdm/mpss/hlos: Is a directory grep: /vendor/rfs/mdm/mpss/readonly/vendor/firmware: Is a directory grep: /vendor/rfs/mdm/mpss/readonly/firmware: Is a directory grep: /vendor/rfs/mdm/mpss/ramdumps: Bad file descriptor grep: /vendor/rfs/mdm/mpss/readwrite: Is a directory grep: /vendor/rfs/mdm/mpss/shared: Is a directory grep: /vendor/rfs/mdm/adsp/hlos: Is a directory grep: /vendor/rfs/mdm/adsp/readonly/vendor/firmware: Is a directory grep: /vendor/rfs/mdm/adsp/readonly/firmware: Is a directory grep: /vendor/rfs/mdm/adsp/ramdumps: Bad file descriptor grep: /vendor/rfs/mdm/adsp/readwrite: Is a directory grep: /vendor/rfs/mdm/adsp/shared: Is a directory grep: /vendor/rfs/mdm/tn/hlos: Is a directory grep: /vendor/rfs/mdm/tn/readonly/firmware: Is a directory grep: /vendor/rfs/mdm/tn/ramdumps: Bad file descriptor grep: /vendor/rfs/mdm/tn/readwrite: Is a directory grep: /vendor/rfs/mdm/tn/shared: Is a directory grep: /vendor/rfs/msm/slpi/hlos: Is a directory grep: /vendor/rfs/msm/slpi/readonly/vendor/firmware: Is a directory grep: /vendor/rfs/msm/slpi/readonly/firmware: Is a directory grep: /vendor/rfs/msm/slpi/ramdumps: Bad file descriptor grep: /vendor/rfs/msm/slpi/readwrite: Is a directory grep: /vendor/rfs/msm/slpi/shared: Is a directory grep: /vendor/rfs/msm/cdsp/hlos: Is a directory grep: /vendor/rfs/msm/cdsp/readonly/vendor/firmware: Is a directory grep: /vendor/rfs/msm/cdsp/readonly/firmware: Is a directory grep: /vendor/rfs/msm/cdsp/ramdumps: Bad file descriptor grep: /vendor/rfs/msm/cdsp/readwrite: Is a directory grep: /vendor/rfs/msm/cdsp/shared: Is a directory grep: /vendor/rfs/msm/mpss/hlos: Is a directory grep: /vendor/rfs/msm/mpss/readonly/vendor/firmware: Is a directory grep: /vendor/rfs/msm/mpss/readonly/firmware: Is a directory grep: /vendor/rfs/msm/mpss/ramdumps: Bad file descriptor grep: /vendor/rfs/msm/mpss/readwrite: Is a directory grep: /vendor/rfs/msm/mpss/shared: Is a directory grep: /vendor/rfs/msm/adsp/hlos: Is a directory grep: /vendor/rfs/msm/adsp/readonly/vendor/firmware: Is a directory grep: /vendor/rfs/msm/adsp/readonly/firmware: Is a directory grep: /vendor/rfs/msm/adsp/ramdumps: Bad file descriptor grep: /vendor/rfs/msm/adsp/readwrite: Is a directory grep: /vendor/rfs/msm/adsp/shared: Is a directory Binary file /vendor/lib/libstagefright_foundation.so matches Binary file /vendor/lib/libstagefright_omx.so matches

Hope this helps.

Kind regards, FWieP

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/phhusson/treble_experimentations/issues/1917#issuecomment-865233441, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAA4OW52ECOQMYS7JVMHM3TT54WXANCNFSM47B74OXA .

fwiep commented 3 years ago

Here they are.

:/ # mount
rootfs on / type rootfs (ro,seclabel,size=1316716k,nr_inodes=329179)
tmpfs on /dev type tmpfs (rw,seclabel,nosuid,relatime,size=1436700k,nr_inodes=359175,mode=755)
devpts on /dev/pts type devpts (rw,seclabel,relatime,mode=600)
proc on /proc type proc (rw,relatime,gid=3009,hidepid=2)
sysfs on /sys type sysfs (rw,seclabel,relatime)
selinuxfs on /sys/fs/selinux type selinuxfs (rw,relatime)
tmpfs on /mnt type tmpfs (rw,seclabel,nosuid,nodev,noexec,relatime,size=1436700k,nr_inodes=359175,mode=755,gid=1000)
/dev/block/mmcblk0p24 on /system type ext4 (ro,seclabel,relatime,discard)
/dev/block/mmcblk0p25 on /vendor type ext4 (ro,seclabel,relatime,discard)
none on /acct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct)
debugfs on /sys/kernel/debug type debugfs (rw,seclabel,relatime)
none on /config type configfs (rw,nosuid,nodev,noexec,relatime)
none on /dev/cpuctl type cgroup (rw,nosuid,nodev,noexec,relatime,cpu)
tracefs on /sys/kernel/debug/tracing type tracefs (rw,seclabel,relatime)
tmpfs on /apex type tmpfs (rw,seclabel,relatime,size=1436700k,nr_inodes=359175,mode=755)
/dev/block/mmcblk0p24 on /apex/com.android.mediaprovider type ext4 (ro,seclabel,relatime,discard)
/dev/block/mmcblk0p24 on /apex/com.android.apex.cts.shim.v1_with_prebuilts type ext4 (ro,seclabel,relatime,discard)
/dev/block/mmcblk0p24 on /apex/com.android.vndk.current type ext4 (ro,seclabel,relatime,discard)
/dev/block/mmcblk0p24 on /apex/com.android.vndk.v28 type ext4 (ro,seclabel,relatime,discard)
/dev/block/mmcblk0p24 on /apex/com.android.sdkext type ext4 (ro,seclabel,relatime,discard)
/dev/block/mmcblk0p24 on /apex/com.android.i18n type ext4 (ro,seclabel,relatime,discard)
/dev/block/mmcblk0p24 on /apex/com.android.art.debug type ext4 (ro,seclabel,relatime,discard)
/dev/block/mmcblk0p24 on /apex/com.android.media.swcodec type ext4 (ro,seclabel,relatime,discard)
/dev/block/mmcblk0p24 on /apex/com.android.media type ext4 (ro,seclabel,relatime,discard)
/dev/block/mmcblk0p24 on /apex/com.android.os.statsd type ext4 (ro,seclabel,relatime,discard)
/dev/block/mmcblk0p24 on /apex/com.android.extservices type ext4 (ro,seclabel,relatime,discard)
/dev/block/mmcblk0p24 on /apex/com.android.runtime type ext4 (ro,seclabel,relatime,discard)
/dev/block/mmcblk0p24 on /apex/com.android.neuralnetworks type ext4 (ro,seclabel,relatime,discard)
/dev/block/mmcblk0p24 on /apex/com.android.cellbroadcast type ext4 (ro,seclabel,relatime,discard)
/dev/block/mmcblk0p24 on /apex/com.android.vndk.v27 type ext4 (ro,seclabel,relatime,discard)
/dev/block/mmcblk0p24 on /apex/com.android.vndk.v26 type ext4 (ro,seclabel,relatime,discard)
/dev/block/mmcblk0p24 on /apex/com.android.adbd type ext4 (ro,seclabel,relatime,discard)
/dev/block/mmcblk0p24 on /apex/com.android.tzdata type ext4 (ro,seclabel,relatime,discard)
/dev/block/mmcblk0p24 on /apex/com.android.permission type ext4 (ro,seclabel,relatime,discard)
/dev/block/mmcblk0p24 on /apex/com.android.tethering type ext4 (ro,seclabel,relatime,discard)
/dev/block/mmcblk0p24 on /apex/com.android.resolv type ext4 (ro,seclabel,relatime,discard)
/dev/block/mmcblk0p24 on /apex/com.android.ipsec type ext4 (ro,seclabel,relatime,discard)
/dev/block/mmcblk0p24 on /apex/com.android.conscrypt type ext4 (ro,seclabel,relatime,discard)
/dev/block/mmcblk0p24 on /apex/com.android.wifi type ext4 (ro,seclabel,relatime,discard)
/dev/block/mmcblk0p24 on /apex/com.android.art type ext4 (ro,seclabel,relatime,discard)
tmpfs on /linkerconfig type tmpfs (rw,seclabel,relatime,size=1436700k,nr_inodes=359175,mode=755)
/dev/block/mmcblk0p52 on /data type ext4 (rw,seclabel,nosuid,nodev,noatime,discard,noauto_da_alloc,resuid=10000,resgid=1065,data=ordered)
/dev/block/mmcblk0p26 on /cache type ext4 (rw,seclabel,nosuid,nodev,noatime,data=ordered)
/dev/block/mmcblk0p1 on /vendor/firmware_mnt type vfat (ro,context=u:object_r:firmware_file:s0,relatime,gid=1000,fmask=0337,dmask=0227,codepage=437,iocharset=iso8859-1,shortname=lower,errors=remount-ro)
/dev/block/mmcblk0p12 on /vendor/dsp type ext4 (ro,seclabel,nosuid,nodev,relatime,data=ordered)
/dev/block/mmcblk0p27 on /mnt/vendor/persist type ext4 (rw,seclabel,nosuid,nodev,noatime,data=ordered)
/dev/block/mmcblk0p50 on /lenovocust type ext4 (rw,seclabel,nosuid,nodev,noatime,data=ordered)
tmpfs on /storage type tmpfs (rw,seclabel,nosuid,nodev,noexec,relatime,size=1436700k,nr_inodes=359175,mode=755,gid=1000)
none on /vendor/lib64/hw/android.hardware.keymaster@3.0-impl-qti.so type tmpfs (rw,seclabel,nodev,relatime,size=1436700k,nr_inodes=359175,mode=755)
none on /vendor/lib/hw/android.hardware.keymaster@3.0-impl-qti.so type tmpfs (rw,seclabel,nodev,relatime,size=1436700k,nr_inodes=359175,mode=755)
none on /apex/com.android.vndk.v26/lib64/libsoftkeymasterdevice.so type tmpfs (rw,seclabel,nodev,relatime,size=1436700k,nr_inodes=359175,mode=755)
none on /apex/com.android.vndk.v26/lib/libsoftkeymasterdevice.so type tmpfs (rw,seclabel,nodev,relatime,size=1436700k,nr_inodes=359175,mode=755)
none on /apex/com.android.vndk.v27/lib/libsoftkeymasterdevice.so type tmpfs (rw,seclabel,nodev,relatime,size=1436700k,nr_inodes=359175,mode=755)
none on /apex/com.android.vndk.v27/lib64/libsoftkeymasterdevice.so type tmpfs (rw,seclabel,nodev,relatime,size=1436700k,nr_inodes=359175,mode=755)
/dev/block/mmcblk0p24 on /system/etc/permissions/android.hardware.fingerprint.xml type ext4 (ro,seclabel,relatime,discard)
/dev/block/mmcblk0p24 on /vendor/overlay/SysuiDarkTheme/SysuiDarkThemeOverlay.apk type ext4 (ro,seclabel,relatime,discard)
none on /vendor/etc/audio type tmpfs (rw,seclabel,nodev,relatime,size=1436700k,nr_inodes=359175,mode=755)
/dev/block/mmcblk0p25 on /system/system_ext/apex/com.android.vndk.v26/lib/libstagefright_foundation.so type ext4 (ro,seclabel,relatime,discard)
/dev/block/mmcblk0p25 on /system/system_ext/apex/com.android.vndk.v27/lib/libstagefright_foundation.so type ext4 (ro,seclabel,relatime,discard)
/dev/block/mmcblk0p25 on /system/system_ext/apex/com.android.vndk.v28/lib/libstagefright_foundation.so type ext4 (ro,seclabel,relatime,discard)
/dev/block/mmcblk0p24 on /vendor/etc/usb_audio_policy_configuration.xml type ext4 (ro,seclabel,relatime,discard)
/dev/block/mmcblk0p52 on /data/user/0 type ext4 (rw,seclabel,nosuid,nodev,noatime,discard,noauto_da_alloc,resuid=10000,resgid=1065,data=ordered)
tmpfs on /data_mirror type tmpfs (rw,seclabel,nosuid,nodev,noexec,relatime,size=1436700k,nr_inodes=359175,mode=700,gid=1000)
/dev/block/mmcblk0p52 on /data_mirror/data_ce/null type ext4 (rw,seclabel,nosuid,nodev,noatime,discard,noauto_da_alloc,resuid=10000,resgid=1065,data=ordered)
/dev/block/mmcblk0p52 on /data_mirror/data_ce/null/0 type ext4 (rw,seclabel,nosuid,nodev,noatime,discard,noauto_da_alloc,resuid=10000,resgid=1065,data=ordered)
/dev/block/mmcblk0p52 on /data_mirror/data_de/null type ext4 (rw,seclabel,nosuid,nodev,noatime,discard,noauto_da_alloc,resuid=10000,resgid=1065,data=ordered)
/dev/block/mmcblk0p24 on /apex/com.android.vndk.v28/lib64/libminijail.so type ext4 (ro,seclabel,relatime,discard)
/dev/block/mmcblk0p24 on /apex/com.android.vndk.v28/lib/libminijail.so type ext4 (ro,seclabel,relatime,discard)
adb on /dev/usb-ffs/adb type functionfs (rw,relatime)
tmpfs on /system/xbin/su type tmpfs (rw,seclabel,nosuid,relatime,size=1436700k,nr_inodes=359175,mode=755)
/data/media on /mnt/runtime/default/emulated type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=1015,multiuser,mask=6,derive_gid,default_normal)
/data/media on /storage/emulated type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=1015,multiuser,mask=6,derive_gid,default_normal)
/data/media on /mnt/runtime/read/emulated type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=9997,multiuser,mask=23,derive_gid,default_normal)
/data/media on /mnt/runtime/write/emulated type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=9997,multiuser,mask=7,derive_gid,default_normal)
/data/media on /mnt/runtime/full/emulated type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=9997,multiuser,mask=7,derive_gid,default_normal)
/dev/block/vold/public:179,65 on /mnt/media_rw/DA6D-0F5E type vfat (rw,dirsync,nosuid,nodev,noexec,noatime,gid=1023,fmask=0007,dmask=0007,allow_utime=0020,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
/mnt/media_rw/DA6D-0F5E on /mnt/runtime/default/DA6D-0F5E type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=1015,mask=6)
/mnt/media_rw/DA6D-0F5E on /storage/DA6D-0F5E type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=1015,mask=6)
/mnt/media_rw/DA6D-0F5E on /mnt/runtime/read/DA6D-0F5E type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=9997,mask=18)
/mnt/media_rw/DA6D-0F5E on /mnt/runtime/write/DA6D-0F5E type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=9997,mask=18)
/mnt/media_rw/DA6D-0F5E on /mnt/runtime/full/DA6D-0F5E type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=9997,mask=7)
/dev/block/mmcblk0p24 on /apex/com.android.vndk.v28/lib64/libminijail.so type ext4 (ro,seclabel,relatime,discard)
/dev/block/mmcblk0p24 on /system/system_ext/apex/com.android.vndk.v28/lib64/libminijail.so type ext4 (ro,seclabel,relatime,discard)
/dev/block/mmcblk0p24 on /apex/com.android.vndk.v28/lib/libminijail.so type ext4 (ro,seclabel,relatime,discard)
/dev/block/mmcblk0p24 on /system/system_ext/apex/com.android.vndk.v28/lib/libminijail.so type ext4 (ro,seclabel,relatime,discard)
:/ # getprop ro.product.first_api_level
27
:/ # getprop persist.sys.vndk
:/ # getprop ro.vndk.version
28

This reminds me of Yahoo Mike's comment:

In case you need to know, our devices ... use vndk-lite (v27 for stock Oreo, and v28 for stock Pie).

I'd like to run the GSI on top of stock Pie.

Thanks again, FWieP

phhusson commented 3 years ago

Do this:


> adb shell
$ su
# set -x
# for abi in "" 64;do f=/vendor/lib$abi/libstagefright_foundation.so; if [ -f "$f" ];then for vndk in 26 27 28 29;do mount "$f" /system/system_ext/apex/com.android.vndk.v$vndk/lib$abi/libstagefright_foundation.so;done;fi;done 
# stop;start
``

And:
1. Screenshot what appeared in the terminal when doing that
2. The device should have soft-rebooted. Is the issue fixed then?
fwiep commented 3 years ago

This is the output in my console:

android:/ $ su
:/data/data # set -x
[1623197299.338177] typeset 'e=0'
[1623197299.338277] let ' e '
[1623197299.338354] return 0
:/data/data # for abi in "" 64;do f=/vendor/lib$abi/libstagefright_foundation.so; if [ -f "$f" ];then for vndk in 26 27 28 29;do mount "$f" /system/system_ext/apex/com.android.vndk.v$vndk/lib$abi/libstagefright_foundation.so;done;fi;done 
[1623197321.581509] f=/vendor/lib/libstagefright_foundation.so 
[1623197321.581706] '[' -f /vendor/lib/libstagefright_foundation.so ']'
[1623197321.582031] mount /vendor/lib/libstagefright_foundation.so /system/system_ext/apex/com.android.vndk.v26/lib/libstagefright_foundation.so
[1623197321.653268] mount /vendor/lib/libstagefright_foundation.so /system/system_ext/apex/com.android.vndk.v27/lib/libstagefright_foundation.so
[1623197321.679769] mount /vendor/lib/libstagefright_foundation.so /system/system_ext/apex/com.android.vndk.v28/lib/libstagefright_foundation.so
[1623197321.709281] mount /vendor/lib/libstagefright_foundation.so /system/system_ext/apex/com.android.vndk.v29/lib/libstagefright_foundation.so
mount: '/vendor/lib/libstagefright_foundation.so'->'/system/system_ext/apex/com.android.vndk.v29/lib/libstagefright_foundation.so': No such file or directory
[1623197321.736211] f=/vendor/lib64/libstagefright_foundation.so 
[1623197321.736333] '[' -f /vendor/lib64/libstagefright_foundation.so ']'
[1623197321.736587] typeset 'e=0'
[1623197321.736625] let ' e '
[1623197321.736664] return 0
:/data/data # stop;start
[1623197345.705301] stop
[1623197346.638321] start
[1623197346.718546] typeset 'e=0'
[1623197346.718633] let ' e '
[1623197346.718665] return 0

Yes, the tablet performs a soft reboot, but shows the same black screen with "Android Setup isn't responding".

Can I try something else?

Thanks, FWieP

Yahoo-Mike commented 3 years ago

SOLVED: I managed to work out what's causing the problem.

An strace of /vendor/bin/hw/android.hardware.media.omx@1.0-service revealed that the GSI is pulling the _libstagefrightfoundation.so library from /apex/com.android.vndk.v28/lib/, not from /system/system_ext/apex/com.android.vndk.v28/lib/. So the existing mount bindings for that library were not being used.

Changing the mount bindings in rw-system.sh from /system/system_ext/apex/ to /apex/ resolved the issue: mount "$f" /apex/com.android.vndk.v$vndk/lib$abi/libstagefright_foundation.so.
The error message is gone and stagefright/media now works.

I'm not sure how to convert this into a pull request, because I don't know whether the device is supposed to be using /apex/com.android.vndk28/ or /system/system_ext/apex/com.android.vndk28/.

phhusson commented 3 years ago

Uhhh that's weird. Can you run mount command after the device booted? Do you see the /vendor/lib/libstagefright_foundation.so line?

Le jeu. 2 sept. 2021 à 10:01, Yahoo Mike @.***> a écrit :

SOLVED: I managed to work out what's causing the problem.

An strace of @.** revealed that the GSI is pulling the libstagefright_foundation.so* library from /apex/com.android.vndk.v28/lib/, not from /system/system_ext/apex/com.android.vndk.v26/lib/. So the existing mount bindings for that library were not being used.

Changing the mount bindings in rw-system.sh from /system/system_ext/apex/ to /apex/ resolved the issue: mount "$f" /apex/com.android.vndk.v$vndk/lib$abi/libstagefright_foundation.so. The error message is gone and stagefright/media now works.

I'm not sure how to convert this into a pull request, because I don't know whether the device is supposed to be using /apex/com.android.vndk28/ or /system/system_ext/apex/com.android.vndk28/.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/phhusson/treble_experimentations/issues/1917#issuecomment-911346725, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAA4OUA6EURS6I6KGL33ODT74VM5ANCNFSM47B74OXA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Yahoo-Mike commented 3 years ago

android:/ $ mount | grep foundation

/dev/block/dm-0 on /apex/com.android.vndk.v26/lib/libstagefright_foundation.so type ext4 (ro,seclabel,relatime,discard)
/dev/block/dm-0 on /apex/com.android.vndk.v27/lib/libstagefright_foundation.so type ext4 (ro,seclabel,relatime,discard)
/dev/block/dm-0 on /apex/com.android.vndk.v28/lib/libstagefright_foundation.so type ext4 (ro,seclabel,relatime,discard)

For test purposes, this is the only change I made to the GSI. It's in rw-system.sh:

for abi in "" 64;do
    f=/vendor/lib$abi/libstagefright_foundation.so
    if [ -f "$f" ];then
        for vndk in 26 27 28 29;do
#            mount "$f" /system/system_ext/apex/com.android.vndk.v$vndk/lib$abi/libstagefright_foundation.so
             mount "$f" /apex/com.android.vndk.v$vndk/lib$abi/libstagefright_foundation.so
        done
    fi
done

In case it matters: the device is a-only, [ro.vndk.lite]: [true] [ro.product.first_api_level]: [27] and [ro.vndk.version]: [28]. I compiled the LOS 18.1 from source and used sas-creator to get the a-only image. It's now working as expected.

GuilianoS commented 3 years ago

It fixes media for my device too! My device: Asus Max Plus M2 (vndk 28 lite a-only)

@phhusson add it to official source