Recently made dynamic partition support for A14 support, but you have to switch the mode to Permissive to get the ROM running. In Enforce, it runs in the EDL For testing I took ArrowOS A13 and it started successfully in Enforce.
What can be the problem?
DT: https://gitlab.com/lenovo-z5s/device_lenovo_sdm710-common/-/commits/thirteen%2Fdynamic?ref_type=heads
Log from /e/ A13 with Permissive
https://0.0g.gg/?1c7116d6cf8a3f69#GxwW959qhNXJbeLxHie2vz5wWvSbiHyUWeZL9ukcPkcq
Log from ArrowOS A13 with Enforce
https://0.0g.gg/?b64828db132cc38a#5Aoi33Z96CDVVPzeepU1fmYz4TPika5zcJb5D2EiVrV4
Thanks!
Regain your privacy! Adopt /e/ the unGoogled mobile OS and online services
tcecyk
November 10, 2023, 3:32pm
2
the 00ggg pastebin logs are empty/gone
tcecyk
November 10, 2023, 5:37pm
4
I guess going through the selinux denials
grep -iE 'avc: denied \{ open \} for path=\"(.*)\" ' e.log | less
and looking at the subsystem
grep -iE 'avc: denied \{ open \} for path=\"(.*)\" ' e.log | grep -Eo 'scontext.* tcontext' | sort -n | uniq -c
3 scontext=u:r:hal_audio_default:s0 tcontext
301 scontext=u:r:hal_camera_default:s0 tcontext
1 scontext=u:r:hal_fingerprint_default:s0 tcontext
351 scontext=u:r:shell:s0 tcontext
then check if you’re missing any patches in the selinux policy for hals camera, audio, fingerprint for example as in https://android.googlesource.com/platform/system/sepolicy/+/4b6a6aa861cb003f0fa5ec813699499174efd15c^!/#F0
what’s with the shell context though?
never wrote selinux policies, it’s just how I’d start to check what’s wrong
I’ve added rules using a simple script, but it still won’t run
what’s with the shell context though?
??
By the way, maybe there is a tool that can help to get the log from the memory dump from EDL?
tcecyk
November 11, 2023, 12:18am
6
you can enable pstore to get the kernel messages from the recovery while not being able to continue with enforce? https://android.stackexchange.com/questions/213336/how-can-i-enable-last-kmsg
tcecyk
November 11, 2023, 10:40pm
8
I’m sorry, I’m of little help if I try to not achieve the same. I’d check the review-lineage for ideas how to retrofit dynamic partitions. Here is an example: https://review.lineageos.org/c/LineageOS/android_device_xiaomi_sdm845-common/+/373776 (they do mention sdm710 in the comments for other reasons) - all patches are abandoned, but doesn’t mean they don’t work
UPDATE:
Tested on A14, same problems
https://gitlab.com/lenovo-z5s/device_lenovo_sdm710-common/-/commit/f8a78253fe2b11d7b393ba61c678ee5139ef98d5
Could not decompress initial ramdisk image.
Booting to EDL
You can get dmesg from EDL, dump memory and read any HEX Reader, for example - GHex
Problem is resolved.
1 Like
system
Closed
January 9, 2024, 10:24am
11
This topic was automatically closed after 60 days. New replies are no longer allowed.