Problem launching Dynamic Partitions

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?


Log from /e/ A13 with Permissive

Log from ArrowOS A13 with Enforce


Regain your privacy! Adopt /e/ the unGoogled mobile OS and online servicesphone

the 00ggg pastebin logs are empty/gone

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^!/#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?

you can enable pstore to get the kernel messages from the recovery while not being able to continue with enforce?

It’s not working for us(

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: (they do mention sdm710 in the comments for other reasons) - all patches are abandoned, but doesn’t mean they don’t work

I have these changes

Tested on A14, same problems

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

This topic was automatically closed after 60 days. New replies are no longer allowed.