Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
Include missing files to extract process, small changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ilhan-athn7 committed Jan 12, 2024
1 parent 59f33dd commit dba94ae
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
- Chose ProductID, paste `9P3395VX91NR` to the textbox and hit the button.
- Download `.msixbundle` from the bottom of results table.
- Use [wsa_nb_extract.sh](https://github.com/ilhan-athn7/android_proprietary_native_bridge/blob/main/Scripts/wsa_nb_extract.sh) script to build the module.
- Similar Projects:
- [natsumerinchan/libhoudini-package](https://github.com/natsumerinchan/libhoudini-package)
</details>


Expand Down
11 changes: 10 additions & 1 deletion Scripts/cros_nb_extract.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ if ! [ -a "$MODPATH"/system/lib64/libhoudini.so ] || ! [ -a "$MODPATH"/system/ve
else
setprop ro.dalvik.vm.native.bridge libhoudini.so
fi
rmmod binfmt_misc
modprobe binfmt_misc
mount binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc
cat /system/etc/binfmt_misc/arm_exe >/proc/sys/fs/binfmt_misc/register
cat /system/etc/binfmt_misc/arm_dyn >/proc/sys/fs/binfmt_misc/register
Expand All @@ -117,6 +119,8 @@ EOF
#WIP
EOF

cp /mnt/cros_A/opt/google/vms/android/ARM_TO_AMD_DBT_LICENSE.txt ./

echo -e "-Pull blobs from chromeos recovery ..."
echo "$password" | sudo -S sh -c "$(cat << 'EOF'
p1="system/vendor"
Expand All @@ -131,7 +135,9 @@ EOF
cp -r --preserve=all /mnt/cros_system/system/lib64/libhoudini.so $p2/lib64/
cp -r --preserve=all /mnt/cros_system/system/lib64/libndk_translation* $p2/lib64/
cp -r --preserve=all /mnt/cros_system/system/lib64/arm64/* $p2/lib64/arm64/
cp -r --preserve=all /mnt/cros_system/system/etc/binfmt_misc/* $p2/etc/binfmt_misc/
cp -r --preserve=all /mnt/cros_system/system/etc/binfmt_misc/* $p2/etc/binfmt_misc/
cp -r --preserve=all /mnt/cros_system/system/etc/cpuinfo* $p2/etc/
cp -r --preserve=all /mnt/cros_system/system/etc/ld.config* $p2/etc/
cp -r --preserve=all /mnt/cros_vendor/bin/houdini* $p1/bin/
cp -r --preserve=all /mnt/cros_vendor/bin/ndk_translation_program_runner_binfmt_misc* $p1/bin/
Expand All @@ -144,6 +150,9 @@ EOF
cp -r --preserve=all /mnt/cros_vendor/lib64/libndk_translation* $p1/lib64/
cp -r --preserve=all /mnt/cros_vendor/lib64/arm64/* $p1/lib64/arm64/
cp -r --preserve=all /mnt/cros_vendor/etc/binfmt_misc/* $p1/etc/binfmt_misc/
cp -r --preserve=all /mnt/cros_vendor/etc/cpuinfo* $p1/etc/
cp -r --preserve=all /mnt/cros_vendor/etc/ld.config* $p1/etc/
EOF
)" 2>/dev/null

Expand Down

0 comments on commit dba94ae

Please sign in to comment.