I can confirm that the hints of gigabyteua worked!Mod edit: Translation
I am from Ukraine, I am not strong in English, please excuse me. I will write in Russian, I hope you will understand.
After many unsuccessful attempts by various methods, I was overcome by paranoia and I began to do everything that was possible, perhaps not necessary.
1. Installed the latest Ukrainian region SEK - M315FXXU2ATIC with One UI 2.1 used CSC_OMC_OXM_M315FOXM2ATI6
2. Copied AP_M315FXXU2ATIC_CL19748244_QB34588175_REV00_user_ low_ship_meta_RKEY_OS10.tar to your phone
3. Installed CANARY from the forum 4pda.ru/forum/index.php?showtopic=774072 registration required to download
4. Patched all AP_M315FXXU2ATIC.
5. Copied magisk_patched.tar to computer
6 Opened magisk_patched.tar in 7zip and removed everything except boot.img vbmeta.img recovery.img.lz4
7. Deleted Google account, made a hard reset in the phone
8. Once again, enter Recovery and again Wipe data / factory reset and Wipe Cache Partition.
9. Initial setup without registration with Google and Samsung
10. Shutdown.
11. Entering the download mode - holding down both volume buttons and then connecting the cable.
in Odin auto reboot - remove the bird
12. I asked for magisk_patched.tar = bootloop
13. Deleted recovery.img.lz4 stitched = bootloop
14. Removed vbmeta.img I only asked for boot.img
15. Reboot as soon as the screen goes out immediately enter recovery
16.Wipe data / factory reset and Wipe Cache Partition again.
17. Finally, from recovery, reboot into the system.
Root received. System files are edited (deleted, renamed, file permissions, folders are created, etc.)
Я из Украины, в английском не силен прошу извинить. Напишу на русском надеюсь разберетесь.
После многих неудачных попыток разными методами меня охватила паранойя и я начал делать все что можно, возможно и не нужное.
1. Установил последнюю украинскую регион SEK - M315FXXU2ATIC с One UI 2.1 использовал CSC_OMC_OXM_M315FOXM2ATI6
2. Скопировал AP_M315FXXU2ATIC_CL19748244_QB34588175_REV00_user_low_ship_meta_RKEY_OS10.tar на телефон
3. Установил CANARY с форума 4pda.ru/forum/index.php?showtopic=774072 для скачивания необходима регистрация
4. Patched всю AP_M315FXXU2ATIC.
5. Скопировал magisk_patched.tar на компьютер
6 Открыл magisk_patched.tar в 7zip и удалил все кроме boot.img vbmeta.img recovery.img.lz4
7. Удалил учетную запись Google, сделал полный сброс (hard reset) в телефоне
8. Еще раз вход в Recovery и снова Wipe data / factory reset and Wipe Cache Partition.
9. Начальная настройка без регистрации в Google и Samsung
10. Выключение.
11. Вход в режим download - зажатые обе кнопки громкости и затем подключение кабеля.
в Odin auto reboot - снять птичку
12. Прошил magisk_patched.tar = bootloop
13. Удалил recovery.img.lz4 прошил = bootloop
14. Удалил vbmeta.img прошил только boot.img
15. Перезагрузка, как только экран погас сразу вход в recovery
16. снова Wipe data / factory reset and Wipe Cache Partition.
17. И наконец из recovery перезагрузка в систему.
Root получен. Системные файлы редактируются (удаляются, переименовываются, права файлам, папки создаются и.т.д.)
What i actually did:
I followed the instructions of the thread starter (what is mostly like the instruction of topjohnwu.github.io/Magisk/install.html#patching-images)
But when i did that, i was stuck in download mode which was telling me about a CRC error without letting me out of the download mode.
So, i deleted (as mentioned by gigabyteua) all files out of my patched firmware file (magisk_patched.tar) except the boot.img.
I used odin and loaded only the original firmware AP_(...) File (reboot off)
and directly after that i flashed the magisk_patched (only containing the boot.img).
then i left download mode by pressinf and holding volume down and power and directly after leaving download mode i pressed and holding power up and power to enter recovery mode.
Here I Wipe data / factory reset and Wipe Cache Partition
Boot into system and started the standard initial setup. Installed Magisk manager and was finally left with a rooted M31 phone! *cheers*
Thanks to mvini_ab and gigabyteua and of course topjohnwu for providing magisk
(btw i patched with the normal MagiskManager-v8.0.2.apk, used Odin3_v3.14.1 und got the firmware with Frija-v1.4.2)
edit:
A last hint:
I realized, that the SafetyNet check was not successful in the point "ctsProfile" because of the hardwarecheck.
I just found this little module (https://forum.xda-developers.com/showpost.php?p=83028387&postcount=40658).
After flashing it via Magisk(+reboot), the SafetyNet check is fully successful.
Thanks to Displax for that tiny but useful workaround!
Last edited: