topjohnwu / Magisk

The Magic Mask for Android
GNU General Public License v3.0
47.59k stars 12.08k forks source link

Nokia 1 bootloop with magisk patched image... #3803

Closed Haus3master closed 3 years ago

Haus3master commented 3 years ago

Hello, I have been trying to install magisk on the Nokia 1 (Android 10 go edition, october 5 security patch), I patched the boot image with magisk canary ' 0646f48e (21407) (18)' after flashing the image the device just shows the "powered by android go" and then keeps looping... Note:- I did not use MTP to transfer the boot images, as MTP can corrupt the boot images I tried with and without 'Preserve force encryption', I will attach the original,patched,patched without preserve force encryption boot images... Original/stock boot image: https://drive.google.com/file/d/1URW9rfY6-wqNb4TyY9YGaCA7ZAQVVav3/view?usp=sharing Boot image patched with preserve force encryption: https://drive.google.com/file/d/12LgYuy_0cs6JKB1VUkSxcsVrL2lxvn2g/view?usp=sharing Boot image patched without preserve force encryption: https://drive.google.com/file/d/1CjL8M5VZvFrnyitp4AFdBDeyU-W-jIEx/view?usp=sharing

Edit: Please mention what I did wrong, or if it has a certain way of patching, it is SAR and has a ramdisk and A/B is at no Edit 2: It is impossible to get any logs, it isn't recognized by the pc when it is in the boot state... result of /proc/mounts: FRT:/ $ cat /proc/mounts tmpfs /dev tmpfs rw,seclabel,nosuid,relatime,mode=755 0 0 devpts /dev/pts devpts rw,seclabel,relatime,mode=600,ptmxmode=000 0 0 proc /proc proc rw,relatime,gid=3009,hidepid=2 0 0 sysfs /sys sysfs rw,seclabel,relatime 0 0 selinuxfs /sys/fs/selinux selinuxfs rw,relatime 0 0 tmpfs /mnt tmpfs rw,seclabel,nosuid,nodev,noexec,relatime,mode=755,gid=1000 0 0 tmpfs /apex tmpfs rw,seclabel,nosuid,nodev,noexec,relatime,mode=755 0 0 /dev/block/platform/bootdevice/by-name/system / ext4 ro,seclabel,nodev,relatime 0 0 /dev/block/platform/bootdevice/by-name/vendor /vendor ext4 ro,seclabel,relatime 0 0 none /dev/cg2_bpf cgroup2 rw,nosuid,nodev,noexec,relatime 0 0 none /dev/cpuctl cgroup rw,nosuid,nodev,noexec,relatime,cpu 0 0 none /acct cgroup rw,nosuid,nodev,noexec,relatime,cpuacct 0 0 none /dev/memcg cgroup rw,nosuid,nodev,noexec,relatime,memory 0 0 /dev/block/platform/bootdevice/by-name/system /apex/com.android.tzdata@290000000 ext4 ro,seclabel,relatime 0 0 /dev/block/platform/bootdevice/by-name/system /apex/com.android.tzdata ext4 ro,seclabel,relatime 0 0 /dev/block/platform/bootdevice/by-name/system /apex/com.android.runtime@1 ext4 ro,seclabel,relatime 0 0 /dev/block/platform/bootdevice/by-name/system /apex/com.android.runtime ext4 ro,seclabel,relatime 0 0 debugfs /sys/kernel/debug debugfs rw,seclabel,relatime 0 0 tracefs /sys/kernel/debug/tracing tracefs rw,seclabel,relatime 0 0 none /config configfs rw,nosuid,nodev,noexec,relatime 0 0 bpf /sys/fs/bpf bpf rw,nosuid,nodev,noexec,relatime 0 0 pstore /sys/fs/pstore pstore rw,seclabel,nosuid,nodev,noexec,relatime 0 0 /dev/block/platform/bootdevice/by-name/cache /cache ext4 rw,seclabel,nosuid,nodev,noatime,discard,noauto_da_alloc,data=ordered 0 0 /dev/block/platform/bootdevice/by-name/protect1 /mnt/vendor/protect_f ext4 rw,seclabel,nosuid,nodev,noatime,nodelalloc,noauto_da_alloc,commit=1,data=ordered 0 0 /dev/block/platform/bootdevice/by-name/protect2 /mnt/vendor/protect_s ext4 rw,seclabel,nosuid,nodev,noatime,nodelalloc,noauto_da_alloc,commit=1,data=ordered 0 0 /dev/block/platform/bootdevice/by-name/nvdata /mnt/vendor/nvdata ext4 rw,seclabel,nosuid,nodev,noatime,nodelalloc,noauto_da_alloc,commit=1,data=ordered 0 0 /dev/block/platform/bootdevice/by-name/box /vendor/BBSYS ext4 rw,seclabel,nosuid,nodev,noatime,nodelalloc,noauto_da_alloc,commit=1,data=ordered 0 0 /dev/block/by-name/elabel /vendor/elabel ext4 rw,context=u:object_r:fih_elabel_data_file:s0,nosuid,nodev,noatime 0 0 tmpfs /storage tmpfs rw,seclabel,nosuid,nodev,noexec,relatime,mode=755,gid=1000 0 0 adb /dev/usb-ffs/adb functionfs rw,relatime 0 0 /dev/block/platform/bootdevice/by-name/system /apex/com.android.conscrypt@290000000 ext4 ro,seclabel,nodev,relatime 0 0 /dev/block/platform/bootdevice/by-name/system /apex/com.android.conscrypt ext4 ro,seclabel,nodev,relatime 0 0 /dev/block/platform/bootdevice/by-name/system /apex/com.android.media@290000000 ext4 ro,seclabel,nodev,relatime 0 0 /dev/block/platform/bootdevice/by-name/system /apex/com.android.media ext4 ro,seclabel,nodev,relatime 0 0 /dev/block/platform/bootdevice/by-name/system /apex/com.android.media.swcodec@290000000 ext4 ro,seclabel,nodev,relatime 0 0 /dev/block/platform/bootdevice/by-name/system /apex/com.android.media.swcodec ext4 ro,seclabel,nodev,relatime 0 0 /dev/block/platform/bootdevice/by-name/system /apex/com.android.resolv@290000000 ext4 ro,seclabel,nodev,relatime 0 0 /dev/block/platform/bootdevice/by-name/system /apex/com.android.resolv ext4 ro,seclabel,nodev,relatime 0 0 /dev/block/dm-0 /data f2fs rw,lazytime,seclabel,nosuid,nodev,noatime,background_gc=on,discard,no_heap,user_xattr,inline_xattr,acl,inline_data,inline_dentry,extent_cache,mode=adaptive,active_logs=6,reserve_root=2586,resuid=0,resgid=1065,alloc_mode=reuse,fsync_mode=posix 0 0 /data/media /mnt/runtime/default/emulated sdcardfs rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=1015,multiuser,mask=6,derive_gid,default_normal 0 0 /data/media /storage/emulated sdcardfs rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=1015,multiuser,mask=6,derive_gid,default_normal 0 0 /data/media /mnt/runtime/read/emulated sdcardfs rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=9997,multiuser,mask=23,derive_gid,default_normal 0 0 /data/media /mnt/runtime/write/emulated sdcardfs rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=9997,multiuser,mask=7,derive_gid,default_normal 0 0 /data/media /mnt/runtime/full/emulated sdcardfs rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=9997,multiuser,mask=7,derive_gid,default_normal 0 0

Haus3master commented 3 years ago

I'm now going to close this issue due to the following reasons:-

  1. I bricked the phone by erasing the boot partition and rebooting before flashing a new one
  2. I only used the boot image from an ota and didn't realise that I had to dump the image from the device itself...