Android 11: Could not open file init@0750, init.rc@0750: No such file or directory
Xiaomi A3
Firmware:
https://bigota.d.miui.com/V12.0.3.0.RFQEUXM/laurel_sprout_eea_global_images_V12.0.3.0.RFQEUXM_20210129.0000.00_11.0_e5463f39f1.tgz
Makeramdisk Android v3.30 (c) B. Kerler 2019-2021
---------------------------------------------
Linux/Mac detected.
32Bit detected
Target: Boot
AVBv2 signature detected.
Signature-RSA-Modulus (n): ee6953a810e208a71441e2c963d31b8a4fbb76cabbc3cef1d084e02533cbf3fab9d1fffea2989f844f4eff74cbc013cf7714ce4b9c540b35c509f856081a36d8773142552604adf553abde9edfbfecc554fce99bb3dfddaaf0e064638505ce935dc30cd6aba27ed2d02c132bbbefc10221388f71e4c982897b231ce32258c771c2b77df3fd7507f5173881e8105339004a8f6e89d8a0aab529973372a4e06795d3074231951472e5971abb745239ab0fec476bc8d28fdf9845bec159ef917d8097b6aac06ab79efd0db81809b89d2ce70e37d21f84f9d0988d06469e39ff5867042587aec9b4565bb9e50fe69ae54377979ae6dd7687670342dd0e4389a28047bcc64033fef7f805adb1fd78e6f31151db6ebe3e43a7db2147e907681a01efc910daf51cad3ede7ad4329eb1f54edc295f35ea01fcc745fbf5b70da272f3e78c5615ee6de78cd72b6f4e41c7fa0cbea2b3af1f7d9026445ae566f2e9f7802fee716f5c5e4001fa89d34277c96de4b95dc6c43dc664b90d1bec17a90927189ccae538c482958625f0e3cd2b9efa6116b6290c5d5846ddba48a134885a66104dfeda9db33036c36f7ad2b3bbd1e92d9630553cfea6da3713e62574b293227abb392ada99f1ccbef94ae1be0d265a2b8f727b9ee0bed6e7d95ff5b255964685ac17ce1efc4c7609a6ac70a065df76efccc9ad80e014ad7b9288f04aaaaac0292815
Signature-n0inv: 3720533641
Unpacking image : boot.img to tmp
- Unpacking initramfs to tmp/ramdisk
- Doing our stuff
- Copying needed binaries
- Injecting rootshell
sed: can't read tmp/ramdisk/init.rc@0750: No such file or directory
sed: can't read tmp/ramdisk/init.rc@0750: No such file or directory
- Injecting adb
- Patching init
Could not open file tmp/ramdisk/init@0750 for writing
Could not open file tmp/ramdisk/init@0750 for writing
Could not open file tmp/ramdisk/init@0750 for writing
Could not open file tmp/ramdisk/init@0750 for writing
Bootimage will try to boot !
Packing image as boot.img.patched
error: cannot open directory 'tmp/ramdisk/acct'
Found key: key/testkey_rsa4096.pk8.
Signing AVBv2 using key...
writing RSA key
Done :D
Ramdisk file list:
./init.recovery.qcom.rc
./miui.factoryreset.fstab
./miui.factoryreset.rc
./odm_file_contexts
./odm_property_contexts
./plat_file_contexts
./plat_property_contexts
./product_file_contexts
./product_property_contexts
./prop.default
./sepolicy
./system_ext_file_contexts
./system_ext_property_contexts
./vendor_file_contexts
./vendor_property_contexts
./verity_key
./acct
./apex
./config
./data
./data_mirror
./debug_ramdisk
./dev
./linkerconfig
./metadata
./mnt
./odm
./oem
./postinstall
./proc
./product
./res
./res/images
./res/images/erasing_text.png
./res/images/error_text.png
./res/images/fastbootd.png
./res/images/font.png
./res/images/icon_error.png
./res/images/installing_security_text.png
./res/images/installing_text.png
./res/images/loop00000.png
./res/images/loop00001.png
./res/images/loop00002.png
./res/images/loop00003.png
./res/images/loop00004.png
./res/images/loop00005.png
./res/images/loop00006.png
./res/images/loop00007.png
./res/images/loop00008.png
./res/images/loop00009.png
./res/images/loop00010.png
./res/images/loop00011.png
./res/images/loop00012.png
./res/images/loop00013.png
./res/images/loop00014.png
./res/images/loop00015.png
./res/images/loop00016.png
./res/images/loop00017.png
./res/images/loop00018.png
./res/images/loop00019.png
./res/images/loop00020.png
./res/images/loop00021.png
./res/images/loop00022.png
./res/images/loop00023.png
./res/images/loop00024.png
./res/images/loop00025.png
./res/images/loop00026.png
./res/images/loop00027.png
./res/images/loop00028.png
./res/images/loop00029.png
./res/images/loop00030.png
./res/images/loop00031.png
./res/images/loop00032.png
./res/images/loop00033.png
./res/images/loop00034.png
./res/images/loop00035.png
./res/images/loop00036.png
./res/images/loop00037.png
./res/images/loop00038.png
./res/images/loop00039.png
./res/images/loop00040.png
./res/images/loop00041.png
./res/images/loop00042.png
./res/images/loop00043.png
./res/images/loop00044.png
./res/images/loop00045.png
./res/images/loop00046.png
./res/images/loop00047.png
./res/images/loop00048.png
./res/images/loop00049.png
./res/images/loop00050.png
./res/images/loop00051.png
./res/images/loop00052.png
./res/images/loop00053.png
./res/images/loop00054.png
./res/images/loop00055.png
./res/images/loop00056.png
./res/images/loop00057.png
./res/images/loop00058.png
./res/images/loop00059.png
./res/images/loop00060.png
./res/images/loop00061.png
./res/images/loop00062.png
./res/images/loop00063.png
./res/images/loop00064.png
./res/images/loop00065.png
./res/images/loop00066.png
./res/images/loop00067.png
./res/images/loop00068.png
./res/images/loop00069.png
./res/images/loop00070.png
./res/images/loop00071.png
./res/images/loop00072.png
./res/images/loop00073.png
./res/images/loop00074.png
./res/images/loop00075.png
./res/images/loop00076.png
./res/images/loop00077.png
./res/images/loop00078.png
./res/images/loop00079.png
./res/images/loop00080.png
./res/images/loop00081.png
./res/images/loop00082.png
./res/images/loop00083.png
./res/images/loop00084.png
./res/images/loop00085.png
./res/images/loop00086.png
./res/images/loop00087.png
./res/images/loop00088.png
./res/images/loop00089.png
./res/images/loop00090.png
./res/images/no_command_text.png
./res/images/progress_empty.png
./res/images/progress_fill.png
./res/images/stage_empty.png
./res/images/stage_fill.png
./sdcard
./storage
./sys
./system
./system/bin
./system/bin/adbd
./system/bin/charger
./system/bin/e2fsdroid
./system/bin/init
./system/bin/linker64
./system/bin/make_f2fs
./system/bin/minadbd
./system/bin/mke2fs
./system/bin/reboot
./system/bin/recovery
./system/bin/sh
./system/bin/sload_f2fs
./system/bin/toolbox
./system/bin/toybox
./system/bin/update_engine_sideload
./system/bin/watchdogd
./system/etc
./system/etc/cgroups.json
./system/etc/ld.config.txt
./system/etc/mke2fs.conf
./system/etc/recovery.fstab
./system/etc/ueventd.rc
./system/etc/init
./system/etc/init/hw
./system/etc/init/hw/init.rc
./system/etc/security
./system/etc/security/otacerts.zip
./system/lib64
./system/lib64/[email protected]
./system/lib64/[email protected]
./system/lib64/[email protected]
./system/lib64/[email protected]
./system/lib64/[email protected]
./system/lib64/ld-android.so
./system/lib64/libadb_protos.so
./system/lib64/libadbd_auth.so
./system/lib64/libadbd_fs.so
./system/lib64/libbacktrace.so
./system/lib64/libbase.so
./system/lib64/libboot_control_qti.so
./system/lib64/libbootloader_message.so
./system/lib64/libc++.so
./system/lib64/libc.so
./system/lib64/libcgrouprc.so
./system/lib64/libcrypto.so
./system/lib64/libcrypto_utils.so
./system/lib64/libcutils.so
./system/lib64/libdl.so
./system/lib64/libext2_blkid.so
./system/lib64/libext2_com_err.so
./system/lib64/libext2_e2p.so
./system/lib64/libext2_misc.so
./system/lib64/libext2_quota.so
./system/lib64/libext2_uuid.so
./system/lib64/libext2fs.so
./system/lib64/libext4_utils.so
./system/lib64/libfec.so
./system/lib64/libfs_mgr.so
./system/lib64/libfusesideload.so
./system/lib64/libgsi.so
./system/lib64/libhardware.so
./system/lib64/libhidl-gen-utils.so
./system/lib64/libhidlbase.so
./system/lib64/libion.so
./system/lib64/libjsoncpp.so
./system/lib64/libkeyutils.so
./system/lib64/liblog.so
./system/lib64/liblogwrap.so
./system/lib64/liblp.so
./system/lib64/liblzma.so
./system/lib64/libm.so
./system/lib64/libpackagelistparser.so
./system/lib64/libpcre2.so
./system/lib64/libpng.so
./system/lib64/libprocessgroup.so
./system/lib64/libprocessgroup_setup.so
./system/lib64/libprotobuf-cpp-lite.so
./system/lib64/librecovery_ui.so
./system/lib64/librecovery_ui_ext.so
./system/lib64/librecovery_updater.so
./system/lib64/libselinux.so
./system/lib64/libsparse.so
./system/lib64/libsquashfs_utils.so
./system/lib64/libtinyxml2.so
./system/lib64/libunwindstack.so
./system/lib64/libutils.so
./system/lib64/libz.so
./system/lib64/libziparchive.so
./system/lib64/hw
./system/lib64/hw/[email protected]
./system/lib64/hw/[email protected]
./tmp
./vendor
Anyone already solved this?
You have system-as-root so your init is in /system/bin not in the root folder
Would everything work if I simply update paths to /system/bin/init and /system/etc/init/hw/init.rc?
Or is there something more that must be done to support Android 11?
On my recovery image at least the permissions are also different, 755 instead of 750. I'm also having signing issues, so I don't know yet if that's enough to make it work/