Thank you for sharing this.
But I can't find where it said the image contains support
for translating arm and arm64 code?
Is there any formal announcement?
How did you mounted the second linux partition in system.img ?I've tried with mount specifying offset and sizelimitand with kpartx (the loop devices are mapped)but I always get this error:mount: /home/utente/mount3: wrong fs type, bad option, bad superblock on /dev/mapper/loop20p2, missing codepage or helper program, or other error.
I checked the x86 image, the system.img contains 2 partitions: vbmeta and super. The latter implements the dynamic partitioning, new in Android q. You can use losetup to scan the raw image and create the 2 loop devices. Using lpdump utility, host tool built in Android q, I could then see the list of actual partitions contained in the super partition. There's no tool in Android q to extract the partitions, but master branch of system/extra contains a tool lpunpack that might do the trick.Michael.
lunch android_x86_64-userdebug
mm lpunpack7z e system.img
lpunpack super.img [use a folder if you want to avoid rewriting system.img]I checked the x86 image, the system.img contains 2 partitions: vbmeta and super. The latter implements the dynamic partitioning, new in Android q. You can use losetup to scan the raw image and create the 2 loop devices. Using lpdump utility, host tool built in Android q, I could then see the list of actual partitions contained in the super partition. There's no tool in Android q to extract the partitions, but master branch of system/extra contains a tool lpunpack that might do the trick.Michael.Thanks Michael,lpunpack tool available is also available in system/extra of q-x86 branch,
After having mounted the inner system.img the lib64/arm64 and lib/arm folders are present.Looking at AOSP rel. 10 and master branches the libnative{bridge,loader} were moved from system/core to art/ project,but looking at the commits after the move there are not much changes.Is there a way we could try to use libnative{bridge,loader} of Q with lib64/arm64 and lib/arm of R?
On Sat, Mar 7, 2020 at 4:55 AM Mauro Rossi <issor...@gmail.com> wrote:I checked the x86 image, the system.img contains 2 partitions: vbmeta and super. The latter implements the dynamic partitioning, new in Android q. You can use losetup to scan the raw image and create the 2 loop devices. Using lpdump utility, host tool built in Android q, I could then see the list of actual partitions contained in the super partition. There's no tool in Android q to extract the partitions, but master branch of system/extra contains a tool lpunpack that might do the trick.Michael.Thanks Michael,lpunpack tool available is also available in system/extra of q-x86 branch,Silly me, I was just looking at some commit in system/extra that didn't include lpunpack. I didn't realize it predates q-x86...After having mounted the inner system.img the lib64/arm64 and lib/arm folders are present.Looking at AOSP rel. 10 and master branches the libnative{bridge,loader} were moved from system/core to art/ project,but looking at the commits after the move there are not much changes.Is there a way we could try to use libnative{bridge,loader} of Q with lib64/arm64 and lib/arm of R?From what I could gather, these images use a different translation layer, called ndk_translation. the ARM directories (e.g. lib/arm) only contains the runtime environment compiled for ARM platform (just stock AOSP libraries compiled for a different CPU).