topjohnwu / Magisk

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

No signal on MTK A-only SAR with recovery mode Magisk #1801

Closed S190762 closed 2 years ago

S190762 commented 5 years ago

Magisk installed to recovery partition on a A-Only system as root mediatek device. The device has no signal, and no IMEI number. Wifi works.

Tried all versions including stable/beta/canary/canary debug/ianmacd latest. No modules are installed. Attempting to dial a number says "Mobile network not available"

Dmesg is full of the following error: [33.239513] [1:init] Could not find service hosting interface vendor.mediatek.hardware.radio@3.0::IRadio/imsrild1 [33.240113] [1:init] Received control message from 'interface'start' for 'vendor.mediatek.hardware.radio@3.0::IRadio/imsrild1' from pid: 337 (/system/bin/hwservicemanager)

S190762 commented 5 years ago

last_kmsg.log dmesg.log logcat.log logcat_radio.log

S190762 commented 5 years ago

magisk_log_20190829_023008.log magisk_install_log_2019-08-29T012514Z.log

androidacy-user commented 5 years ago

This seems an awful lot like a ROM issue

Are you on stock? Did you only flash magisk, did you modify ANYTHING else?

Because I've never seen magisk cause this....

And BTW what device?

S190762 commented 5 years ago

The rom is completely stock, there are no custom roms for my device or TWRP.

It is a Nokia 1 Plus running Android 9 Go Edition. It came with Android 9 so has A only system-as-root. The boot.img doesn't contain a ramdisk and magisk doesn't work if i try to patch the boot.img

nebulakl commented 5 years ago

Same phone, (possibly) same rom and same issue on magisk 16b40096.

All logs gathered with SysLog app and magisk logs: https://gist.github.com/nebulakl/fe94a607a5188feeae942c384234ae9f

stock firmware package that may help analyze the issue https://drive.google.com/open?id=1ZNEgRw33-4DlLkY6S_DbytOaZpaBprsh

hasnainbhai77 commented 5 years ago

Having same issue on infinix smart 3 plus x627 on pie please solve this issue

bauner commented 4 years ago

I have the same issue on Redmi Note 8 pro

I used magisk manager to patch the stock boot.img with the recovery option and dm-verity off and flashed it with fastboot to the recovery partition (any other option caused a bootloop)

unresolvedsymbol commented 4 years ago

Can confirm Magisk v20.1 completely breaks the radio on Essential phone with stock Android 9, strangely it fixed it on some Android Q custom ROMs and stock betas but all of this is paranormal 😂

osm0sis commented 4 years ago

Out of curiosity, while unrooted with radio working can you adb shell into the ROM that Magisk was breaking radio for and give the output of mount ?

nebulakl commented 4 years ago

mount output while radio is working:

adb on /dev/usb-ffs/adb type functionfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,seclabel,relatime)
/dev/block/dm-0 on /vendor type ext4 (ro,seclabel,relatime,block_validity,delalloc,barrier,user_xattr)
/dev/block/dm-1 on /data type 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,alloc_mode=reuse,fsync_mode=posix)
/dev/block/dm-2 on /mnt/expand/bc9c63a3-cc24-4226-a75c-d9a939d341aa type f2fs (rw,dirsync,lazytime,seclabel,nosuid,nodev,noatime,background_gc=on,no_heap,user_xattr,inline_xattr,acl,inline_data,inline_dentry,flush_merge,extent_cache,mode=adaptive,active_logs=6,alloc_mode=default,fsync_mode=posix)
/dev/block/mmcblk0p10 on /mnt/vendor/protect_s type ext4 (rw,seclabel,nosuid,nodev,noatime,nodelalloc,noauto_da_alloc,commit=1,data=ordered)
/dev/block/mmcblk0p12 on /mnt/vendor/persist type ext4 (rw,seclabel,nosuid,nodev,noatime,nodelalloc,noauto_da_alloc,commit=1,data=ordered)
/dev/block/mmcblk0p14 on /vendor/BBSYS type ext4 (rw,context=u:object_r:bbs_file:s0,nosuid,nodev,noatime,data=ordered)
/dev/block/mmcblk0p19 on /vendor/elabel type ext4 (rw,context=u:object_r:fih_elabel_data_file:s0,nosuid,nodev,noatime,block_validity,delalloc,barrier,user_xattr)
/dev/block/mmcblk0p39 on /cache type ext4 (rw,seclabel,nosuid,nodev,noatime,discard,noauto_da_alloc,data=ordered)
/dev/block/mmcblk0p6 on /mnt/vendor/nvcfg type ext4 (rw,seclabel,nosuid,nodev,noatime,nodelalloc,noauto_da_alloc,commit=1,data=ordered)
/dev/block/mmcblk0p7 on /mnt/vendor/nvdata type ext4 (rw,seclabel,nosuid,nodev,noatime,discard,noauto_da_alloc,data=ordered)
/dev/block/mmcblk0p9 on /mnt/vendor/protect_f type ext4 (rw,seclabel,nosuid,nodev,noatime,nodelalloc,noauto_da_alloc,commit=1,data=ordered)
devpts on /dev/pts type devpts (rw,seclabel,relatime,mode=600)
/dev/root on / type ext4 (ro,seclabel,relatime,block_validity,delalloc,barrier,user_xattr)
/mnt/expand/bc9c63a3-cc24-4226-a75c-d9a939d341aa/media on /mnt/runtime/default/emulated type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=1015,multiuser,mask=6,derive_gid,default_normal)
/mnt/expand/bc9c63a3-cc24-4226-a75c-d9a939d341aa/media on /mnt/runtime/read/emulated type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=9997,multiuser,mask=23,derive_gid,default_normal)
/mnt/expand/bc9c63a3-cc24-4226-a75c-d9a939d341aa/media on /mnt/runtime/write/emulated type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=9997,multiuser,mask=7,derive_gid,default_normal)
/mnt/expand/bc9c63a3-cc24-4226-a75c-d9a939d341aa/media on /storage/emulated type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=1015,multiuser,mask=6,derive_gid,default_normal)
none on /acct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct)
none on /config type configfs (rw,nosuid,nodev,noexec,relatime)
none on /dev/cpuctl type cgroup (rw,nosuid,nodev,noexec,relatime,cpu)
none on /dev/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset,noprefix,release_agent=/sbin/cpuset_release_agent)
none on /dev/memcg type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
none on /dev/stune type cgroup (rw,nosuid,nodev,noexec,relatime,schedtune)
proc on /proc type proc (rw,relatime,gid=3009,hidepid=2)
pstore on /sys/fs/pstore type pstore (rw,seclabel,nosuid,nodev,noexec,relatime)
selinuxfs on /sys/fs/selinux type selinuxfs (rw,relatime)
sysfs on /sys type sysfs (rw,seclabel,relatime)
tmpfs on /dev type tmpfs (rw,seclabel,nosuid,relatime,size=462448k,nr_inodes=115612,mode=755)
tmpfs on /mnt type tmpfs (rw,seclabel,nosuid,nodev,noexec,relatime,size=462448k,nr_inodes=115612,mode=755,gid=1000)
tmpfs on /storage type tmpfs (rw,seclabel,nosuid,nodev,noexec,relatime,size=462448k,nr_inodes=115612,mode=755,gid=1000)
tracefs on /sys/kernel/debug/tracing type tracefs (rw,seclabel,relatime)
osm0sis commented 4 years ago

Thank you, and now for comparison, the same command with latest Magisk Canary flashed and mobile data broken?

nebulakl commented 4 years ago

mount output with magisk and broken radio:

adb on /dev/usb-ffs/adb type functionfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,seclabel,relatime)
/dev/block/dm-0 on /vendor type ext4 (ro,seclabel,relatime,block_validity,delalloc,barrier,user_xattr)
/dev/block/dm-1 on /data type 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,alloc_mode=reuse,fsync_mode=posix)
/dev/block/dm-2 on /mnt/expand/bc9c63a3-cc24-4226-a75c-d9a939d341aa type f2fs (rw,dirsync,lazytime,seclabel,nosuid,nodev,noatime,background_gc=on,no_heap,user_xattr,inline_xattr,acl,inline_data,inline_dentry,flush_merge,extent_cache,mode=adaptive,active_logs=6,alloc_mode=default,fsync_mode=posix)
/dev/block/mmcblk0p10 on /mnt/vendor/protect_s type ext4 (rw,seclabel,nosuid,nodev,noatime,nodelalloc,noauto_da_alloc,commit=1,data=ordered)
/dev/block/mmcblk0p12 on /mnt/vendor/persist type ext4 (rw,seclabel,nosuid,nodev,noatime,nodelalloc,noauto_da_alloc,commit=1,data=ordered)
/dev/block/mmcblk0p14 on /vendor/BBSYS type ext4 (rw,context=u:object_r:bbs_file:s0,nosuid,nodev,noatime,data=ordered)
/dev/block/mmcblk0p19 on /vendor/elabel type ext4 (rw,context=u:object_r:fih_elabel_data_file:s0,nosuid,nodev,noatime,block_validity,delalloc,barrier,user_xattr)
/dev/block/mmcblk0p39 on /cache type ext4 (rw,seclabel,nosuid,nodev,noatime,discard,noauto_da_alloc,data=ordered)
/dev/block/mmcblk0p6 on /mnt/vendor/nvcfg type ext4 (rw,seclabel,nosuid,nodev,noatime,nodelalloc,noauto_da_alloc,commit=1,data=ordered)
/dev/block/mmcblk0p7 on /mnt/vendor/nvdata type ext4 (rw,seclabel,nosuid,nodev,noatime,discard,noauto_da_alloc,data=ordered)
/dev/block/mmcblk0p9 on /mnt/vendor/protect_f type ext4 (rw,seclabel,nosuid,nodev,noatime,nodelalloc,noauto_da_alloc,commit=1,data=ordered)
devpts on /dev/pts type devpts (rw,seclabel,relatime,mode=600)
/dev/root on / type ext4 (ro,seclabel,relatime,block_validity,delalloc,barrier,user_xattr)
/mnt/expand/bc9c63a3-cc24-4226-a75c-d9a939d341aa/media on /mnt/runtime/default/emulated type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=1015,multiuser,mask=6,derive_gid,default_normal)
/mnt/expand/bc9c63a3-cc24-4226-a75c-d9a939d341aa/media on /mnt/runtime/read/emulated type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=9997,multiuser,mask=23,derive_gid,default_normal)
/mnt/expand/bc9c63a3-cc24-4226-a75c-d9a939d341aa/media on /mnt/runtime/write/emulated type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=9997,multiuser,mask=7,derive_gid,default_normal)
/mnt/expand/bc9c63a3-cc24-4226-a75c-d9a939d341aa/media on /storage/emulated type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=1015,multiuser,mask=6,derive_gid,default_normal)
none on /acct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct)
none on /config type configfs (rw,nosuid,nodev,noexec,relatime)
none on /dev/cpuctl type cgroup (rw,nosuid,nodev,noexec,relatime,cpu)
none on /dev/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset,noprefix,release_agent=/sbin/cpuset_release_agent)
none on /dev/memcg type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
none on /dev/stune type cgroup (rw,nosuid,nodev,noexec,relatime,schedtune)
proc on /proc type proc (rw,relatime,gid=3009,hidepid=2)
pstore on /sys/fs/pstore type pstore (rw,seclabel,nosuid,nodev,noexec,relatime)
/sbin/.magisk/block/data on /sbin/.magisk/mirror/data type f2fs (rw,lazytime,seclabel,relatime,background_gc=on,discard,no_heap,user_xattr,inline_xattr,acl,inline_data,inline_dentry,extent_cache,mode=adaptive,active_logs=6,alloc_mode=reuse,fsync_mode=posix)
/sbin/.magisk/block/system_root on /sbin/charger type ext4 (ro,seclabel,relatime,block_validity,delalloc,barrier,user_xattr)
/sbin/.magisk/block/system_root on /sbin/.magisk/mirror/system_root type ext4 (ro,seclabel,relatime,block_validity,delalloc,barrier,user_xattr)
/sbin/.magisk/block/vendor on /sbin/.magisk/mirror/vendor type ext4 (ro,seclabel,relatime,block_validity,delalloc,barrier,user_xattr)
selinuxfs on /sys/fs/selinux type selinuxfs (rw,relatime)
sysfs on /sys type sysfs (rw,seclabel,relatime)
tmpfs on /dev type tmpfs (rw,seclabel,nosuid,relatime,mode=755)
tmpfs on /mnt type tmpfs (rw,seclabel,nosuid,nodev,noexec,relatime,mode=755,gid=1000)
tmpfs on /sbin type tmpfs (rw,seclabel,relatime,mode=755)
tmpfs on /storage type tmpfs (rw,seclabel,nosuid,nodev,noexec,relatime,mode=755,gid=1000)
tracefs on /sys/kernel/debug/tracing type tracefs (rw,seclabel,relatime)
nebulakl commented 4 years ago

Interestingly, despite Magisk Manager shows Magisk is up to date, I was not able to gain root access. Magisk Manager also shows my device requires additional setup but whenever I tap ok I only get setup failed message. image image

osm0sis commented 4 years ago

Probably nothing of relevance but here's the diff of the working and broken mount outputs:

$ diff working.txt broken.txt
27a28,31
> /sbin/.magisk/block/data on /sbin/.magisk/mirror/data type f2fs (rw,lazytime,seclabel,relatime,background_gc=on,discard,no_heap,user_xattr,inline_xattr,acl,inline_data,inline_dentry,extent_cache,mode=adaptive,active_logs=6,alloc_mode=reuse,fsync_mode=posix)
> /sbin/.magisk/block/system_root on /sbin/charger type ext4 (ro,seclabel,relatime,block_validity,delalloc,barrier,user_xattr)
> /sbin/.magisk/block/system_root on /sbin/.magisk/mirror/system_root type ext4 (ro,seclabel,relatime,block_validity,delalloc,barrier,user_xattr)
> /sbin/.magisk/block/vendor on /sbin/.magisk/mirror/vendor type ext4 (ro,seclabel,relatime,block_validity,delalloc,barrier,user_xattr)
30,32c34,37
< tmpfs on /dev type tmpfs (rw,seclabel,nosuid,relatime,size=462448k,nr_inodes=115612,mode=755)
< tmpfs on /mnt type tmpfs (rw,seclabel,nosuid,nodev,noexec,relatime,size=462448k,nr_inodes=115612,mode=755,gid=1000)
< tmpfs on /storage type tmpfs (rw,seclabel,nosuid,nodev,noexec,relatime,size=462448k,nr_inodes=115612,mode=755,gid=1000)
---
> tmpfs on /dev type tmpfs (rw,seclabel,nosuid,relatime,mode=755)
> tmpfs on /mnt type tmpfs (rw,seclabel,nosuid,nodev,noexec,relatime,mode=755,gid=1000)
> tmpfs on /sbin type tmpfs (rw,seclabel,relatime,mode=755)
> tmpfs on /storage type tmpfs (rw,seclabel,nosuid,nodev,noexec,relatime,mode=755,gid=1000)
androidacy-user commented 4 years ago

Interestingly, despite Magisk Manager shows Magisk is up to date, I was not able to gain root access. Magisk Manager also shows my device requires additional setup but whenever I tap ok I only get setup failed message. image image

Just keep trying setup, sometimes takes a couple tries. But anyhow that's outside the scope of this issue, open another one if you continue to have issues @nebulakl

fawazahmed0 commented 4 years ago

Have you flashed dm-verity disabler anytime? last time I had problem with that. Just incase you flashed dm-verity disabler, I have the fix for it.

iscle commented 4 years ago

Why was this issue closed? I have the same problem on a clean, source-built MediaTek MT6739 system running SAR Android 9!

iscle commented 4 years ago

Why was this issue closed? I have the same problem on a clean, source-built MediaTek MT6739 system running SAR Android 9!

It might be because the proper init files are not being called when booting from the recovery partition instead of the normal boot partition using system-as-root? Looking into it now.

I've taken a radio logcat with and without magisk, and noticed that NVRAM and RILMUXD, services that are started by the init files, are not logged when running Magisk from the recovery partition.

ShaDisNX255 commented 4 years ago

I guess it must be a Mediatek problem Samsung A10s, A-Only, System As Root and Android 9 also experiences this

When you reboot normally, signal returns but you lose Magisk of course When you reboot + Magisk by using recovery hot keys, Magisk works but signal is gone

buffer1900 commented 3 years ago

infinix smart 4 x653 same problem.Any fix for this ?

Axeltherabbit commented 2 years ago

Same issue on blackview a60, mediatek chip, the IMEI is null in the recovery and fine with a normal boot. Lineage 19.0, android 12

arklese1zure commented 2 years ago

Hi guys, I think me and some oher people are finding this problem on Galaxy A32 phones (Mediatek MT6769V). What's strange is that the problem persists even after reflashing with stock ROM.

Has anyone found any possible solution?

SusssyBakaLOL commented 2 years ago

Hi guys, I think me and some oher people are finding this problem on Galaxy A32 phones (Mediatek MT6769V). What's strange is that the problem persists even after reflashing with stock ROM.

Has anyone found any possible solution?

yeah, my A32 4G with the same MTK Helio G80 (MT6769V) chipset has the same problem, and also, people with a22 and a32 5g are mass reporting this issue

dronkit commented 2 years ago

+1 Same problem with the samsung A325M (a32 4g), no IMEI or baseband a few days after rooting, flashing stock rom doesn't fix it. Updated Magisk up to canary 7cfce9ff, no fix. My dmesg has lots of:

Control message: Could not find 'vendor.samsung.hardware.radio.bridge@2.0::ISehBridge/slot1' for ctl.interface_start from pid: 440 (/system/bin/hwservicemanager)
Control message: Could not find 'android.hardware.radio@1.5::IRadio/slot1' for ctl.interface_start from pid: 440 (/system/bin/hwservicemanager)
Could not find 'vendor.samsung.hardware.radio.channel@2.0::ISehChannel/imsd' for ctl.interface_start from pid: 440 (/system/bin/hwservicemanager)
IDK if related but my magisk log has lots of
626   628 E : unlock mmcblk0p42 failed with 13: Permission denied

for several devices.

Please ask me for any files/logs that can be helpful!

dronkit commented 2 years ago

I was able to fix it on the a32, working so far https://forum.xda-developers.com/t/rooted-a325m-suddenly-no-imei-no-sim.4386753/post-86588571

IDK what is the cause, but mayb this will help the "victims" or the fixing of the issue

osm0sis commented 2 years ago

Could be worth trying with 24305, original init handles a lot more now.