We have root access to our AOSP build, when we use:
lunch smarc_mx8mq-eng
How can we get a root shell after using:
lunch smarc_mx8mq-user
This can be any form of temporary hack to the AOSP source, but the build must remain a user build.
I've read about / being mounted with nosetuid, but that doesn't seem to be the case for us:
smarc_mx8mq:/ # mount
/dev/block/mmcblk1p5 on / type ext4 (ro,seclabel,relatime,block_validity,delalloc,barrier,user_xattr,acl,inode_readahead_blks=8)
(I will check this again once I have built a user build.)
What's the best way of rooting our own AOSP build?