yashsingh1/xdaforums huggingface dataset:
[Sony Xperia M5] venom109:
Phone would not transfer files to sd nor connect to google account to back up data

I have been thinking and thinking if to post this since I was thinking that this would fix by itself, I was able to root my device without issues a looong time ago thanks to this guide but after I did my phone had these 2 issues beides not being able to fully clean it with apps as clean master since the scan never ends, I was wondering would there be any fix to this, when I try to move anything to the SD it says that the space is full when actually it is not.
[Sony Xperia M5] GhostRider584:
Everytime i flash something, my phone get stuck in a bootloop.

Hi :) !

I tried multiple times repeating this tutorial but my phone (E5663) refuses to boot everytime :(

I also tried to flash TWRP (from a fresh install) with this tutorial

https://xdaforums.com/xperia-m5/general/bootloader-unlocked-twrp-recovery-root-t3437197

Nothing changes... Just stuck on the Sony logo.

I can get my phone out of this bootloop just by reflashing the Boot, (FOTAKernel for TWRP) and the System partition.

If you could please tell me what i'm doing wrong :o

Thanks.
[Sony Xperia M5] Medeon:
Re: Everytime i flash something, my phone get stuck in a bootloop.

You should try This version of TWRP instead of the old one.
[Sony Xperia M5] imranclick:
Any update from this? Right now I'm using magisk v14.5. The download section is empty. But when I try magisk v15.3, there is a lot of modules in download sections. DRM fix is not there in magisk 15.3 version.
[Sony Xperia M5] Medeon:
I don't use this phone anymore and the developer of the of the DRM-fix kernel does not maintain it anymore see post 177
[Sony Xperia M5] imranclick:
That sad. Hmm. Nothing can do anymore.
[Sony Xperia M5] VespeGas:
It's android 5.0 and not 6.0

Hello, i'm new to rooting scene, i have one question.

After i completed these steps, i've twrp recovery, installed supersu and i'm able to root it, though the android version is 5.0 Lollipop, not 6.0 Marshmallow.

How do i get 6.0 with root?

Thanks
[Sony Xperia M5] bakci:
I am unable to locate the "Downloads" tab where the mentioned kernel variants are supposed to be. Could someone just point me where it is?
[Sony Xperia M5] ge3483:
Devdb on xda recently closed, so if there were any links, they would show a 404 error.

Here is a link to the devdb archive:

index - powered by h5ai v0.30.0 (https://larsjung.de/h5ai/)

index - powered by h5ai v0.30.0 (https://larsjung.de/h5ai/)

devdb.xda-developers.com
[Sony Xperia M5] mbc07:
I recently reuploaded all of my FTFs with the .fsc script already bundled since the number of people bricking their M5's was somewhat too high for my taste. If FlashTool finds a .fsc script inside the FTF it'll always use it without asking ;)

That's why I said to use iovySU then Backup TA. On the supported firmware, iovySU will permanently root your device and then you can use Backup TA, which despite being unmaintained, still does the backup in a more reliable way (e.g. it checks if the backup succeeded and also stores the MD5 and serial number of the phone and check that before restoring, to prevent the user from accidentally restoring a wrong TA backup, which would hard brick the device). On iovysu it just use dd to get the image without checking if the backup succeeded and then tries to pull it from the phone to computer, the same when restoring...
[Sony Xperia M5] The-Hulk:
Thread Moved to Development

Thanks
[Sony Xperia M5] SimonZ:
Me too i've downloaded MM with xperifirm and ask me for fsc so you have done the same for old ftf, now is clear!

Mmm... yes iovySU have root at the first time than i used iovyroot with error but also Backup TA don't work for me. :rolleyes:

I think Win 10 x64 is the cause Now i'm on stock MM, updated with Sony Companion. For the test i downgraded and wiped the phone than i gave up and update without root.

For remove ads i use Adguard plus (it's payment) but the big loss is the cpu control for keep down overheat :crying:
[Sony Xperia M5] mbc07:
Backup TA is working fine here, it just takes a little while to find the TA partition on our device since the last time it was updated there were no Xperia devices with Mediatek SoCs (and the partition scheme is a little bit different).

Anyway, try doing the backup manually then, downgrade and root with iovySU then run the following commands in ADB:

adb shell
su
dd if=/dev/block/mmcblk0p1 of=/sdcard/TA.img

After that you should have a file named TA.img on your Internal Storage of 2MB in size, save it in a safe place. That's also the file you'll use to generate the FTF of your device keys...
[Sony Xperia M5] casaynoonhack:
Hi Sir,

Badly needed your help I'm tired of my m5 having a battery drain, reason why I really like to

have this rooted, when I press the the power button along with the volume down, I don't get any

recovery bootloader, it's just xperia then will just restart the phone.

Please help, if how I can have this rooted, I have MM E5663 30.2.b.0.100
[Sony Xperia M5] mbc07:
Unless you have flashed a custom recovery, Xperia devices doesn't have any recovery mode at all. If you mean you can't enter fastboot mode, don't press the power button, with the phone turned off, just hold Volume Up and plug the USB Cable. Keep holding Vol Up until the notification LED becomes blue and you're done.
[Sony Xperia M5] SimonZ:
BackupTA don't take a while but returns me some errors...

I will try the manual adb command in the future but for now i stay without root, if is a problem to read TA i think is even more dangerous to write it :D

Thanks anyway!
[Sony Xperia M5] casaynoonhack:
I only wanted to root this because of battery problems, did you have longer battery life.. I mean tweaked it? Or what did you add after rooting it? Thanks again, I ticked the thanks button, this has been a big help, not sure if there are other ways to root this xperia in MM.
[Sony Xperia M5] TRXteam:
https:// mega.nz /#!x0FhgDTL!Zo9AWRzUVawJcYDlkoUdFTnjUcusFbipDRFJtQhwf1s use this twrp on your kernel(delete space on link)
[Sony Xperia M5] t-driver:
decryption key missing!!! not downloading.....

anyway, how to use this? just flash via flashtool??

.
[Sony Xperia M5] Ninoh-FOX:
It's a TRAP!!

Enviado desde mi E5603 mediante Tapatalk
[Sony Xperia M5] TRXteam:
https:// mega.nz/ #!x0FhgDTL!Zo9AWRzUVawJcYDlkoUdFTnjUcusFbipDRFJtQhwf1s

copy anyway xperia m5 root folder
[Sony Xperia M5] t-driver:
after flashing Kernel with Root + DRM Fix , offline charging is not possible anymore.

plugging in the charger, and there is no charging animation, the led flash 1-2 time also the sony logo shows itself 2 times, then continues to boot normally.

I tried everything again from scratch, re-installed marshmallow,--> offline charging worked.

then flashed new kernel,--> root ok, but no offline charging again.

anyone else has this?

btw,

why not add directly a custom recovery to this kernel???

there is another thread with a custom recovery kernel,and root but did not work for me.

http://xdaforums.com/xperia-m5/general/bootloader-unlocked-twrp-recovery-root-t3437197/page4

.
[Sony Xperia M5] mbc07:
I'll check this soon, currently I'm without my M5 since I had to send it to service center, so I can't test nor confirm this...

Because different from other Xperia devices, you can actually boot whatever boot image you've flashed in FOTAKernel partition of Xperia M5 by holding Vol Down + Power while the phone is turned off AND the USB cable is unplugged, so, no need to bundle recovery with the kernel (that's also how the recovery you linked works).
[Sony Xperia M5] Ninoh-FOX:
I have boot.img from fist port and the FotaKernel recovery twrp and work fine, If you lock bootloader again the fotakernel recovery not work.

I tried charger the phone in mode off, but the battery screen is swapped for twrp boot recovery. I think that this not is a big problem for now.

Enviado desde mi E5603 mediante Tapatalk
[Sony Xperia M5] t-driver:
I did not lock the bootloader again.

in what sequence did you flash them??

first boot.img then twrp recovery or the other way around?

if you charge in offline mode you get (automatically, by inserting charger ) into twrp recovery and charge from there???

forgot to mention it's a E5603

.
[Sony Xperia M5] Ninoh-FOX:
Hmmmm, fist I flash 6.0 update with flashtool, secund unlock bootloader, them flash for fastboot boot.img and to continue flash fotakernel.img (TWRP), the last step was flash s1 keys.

And yes... The phone charge in twrp

Enviado desde mi E5603 mediante Tapatalk
[Sony Xperia M5] t-driver:
when I unlocked the bootloader I didn't know about the ta-keys and lost them, so I skip this step.

I hope it's not why twrp didn't work.... afaik it shouldn't be the fault.

.
[Sony Xperia M5] Ninoh-FOX:
This kernel support magick?

Enviado desde mi E5603 mediante Tapatalk
[Sony Xperia M5] mbc07:
No because it's already modded. However I have plans in releasing an untouched version in standard boot.img format so users can mod it with whatever tools they want (including Magisk for the folks that want to pass Safety Net checks -- for Android Pay, Pokémon GO, etc). I can't give any ETA, though, as I mentioned earlier, my M5 is being repaired on Service Center...
[Sony Xperia M5] Ninoh-FOX:
Pokemon Go 0.37.0 not release in my country for now, I'll try if rootcloak work with root protection.

Enviado desde mi E5603 mediante Tapatalk
[Sony Xperia M5] mbc07:
As I mentioned before, Pokémon GO is using SafetyNet just like Android Pay, so Root Cloak won't work. Only Magisk is capable of passing SafetyNet checks at the moment...
[Sony Xperia M5] TRXteam:
-deleted-
[Sony Xperia M5] Limi96:
Works like a chime!

http:\\i.imgur . com\fjKIjE5.png
[Sony Xperia M5] ginowoo:
Where should I run this commands? Thanks.
[Sony Xperia M5] crisaegrim:
On a terminal.

Navigate to the dir where Fastboot.exe its located, and on a blank space of the folder press 'Shift' and select 'Open command window here', and you are ready to type your commands.
[Sony Xperia M5] jamespmi:
Downgrading, TA Backup, back to MM consumed almost an entire morning.

But just wanted to thank you: MM rooted. Brilliant....
[Sony Xperia M5] Lanzeca:
Worked like a charm on my Xperia M5 Dual (E5663). The only difficulty I had was to correctly install fastboot drivers on Windows 10 for my device, I had to start W10 with disabled driver signature verification, but everything else worked great! Thanks.
[Sony Xperia M5] t-driver:
offline charging works??

.
[Sony Xperia M5] Lanzeca:
Didn't check until now. No, offline charging doesn't work anymore, but it doesn't bother me, I always charge my phone while still on.
[Sony Xperia M5] ginowoo:
Took two days for me but at the end my M5 is rooted, brilliant.

Any idea of how to install Xposed Framework on Xperia M5 MM 6.0? Thanks.
[Sony Xperia M5] Ninoh-FOX:
For xposed you need isntall a zip file from twrp.

Another case, I'll try make a clean kerner with drm-fix and dm-disable for install magick and unless-system xposed, but the .bat file from rootkernel v5 said me that the kernel version not found.

Enviado desde mi E5603 mediante Tapatalk
[Sony Xperia M5] ginowoo:
Can I flash the zip with FlashFire instead of install the twrp and then flash it?
[Sony Xperia M5] Ninoh-FOX:
Hmmm I don't know, I'll install xposed module from twrp (fotakernel)

Enviado desde mi E5603 mediante Tapatalk
[Sony Xperia M5] ginowoo:
Could you tell me how to install the twrp or just the link of the thread you followed? Thanks!
[Sony Xperia M5] Ninoh-FOX:
This is the twrp that I use, I flash with dd command (fastboot work too).

http://xdaforums.com/showthread.php?t=3437197

And this is for Xposed installer.

http://xdaforums.com/showthread.php?t=3137758

Enviado desde mi E5603 mediante Tapatalk
[Sony Xperia M5] ataraxist:
Can someone tell me if flashing this rooted kernel "boot_m5_ss_30.2.A.0.100_nodmv_su_drmfix.img" ... will i still be able to use Android Pay?

Is the root removable?
[Sony Xperia M5] mbc07:
No and no. This kernel doesn't pass SafetyNET (so no Android Pay, Pokémon GO, etc) and the root is permanent, you can remove it only by flashing another kernel or another ROM. Releasing a version based on Magisk is on my roadmap to fix those limitations, but I'm still waiting my phone return from service center and thus I can't give any ETA...
[Sony Xperia M5] knight84:
would like to ask before i proceed.

I had a E5663 and flashed E5643 using iovSU's FTF and have it ROOTED. I also had my TA Backed up and converted to DK.ftf.

I checked my DK.ftf using text editor, it stated there E5643 model.

I plan to update to Marshmallow (E5663) using flashtool/experifirm and Unlock Bootloader then restore the TA partition(DK.ftf).

My question is the DK.ftf is from E5643 but the Marshmallow is E5663. Any problem with that??
[Sony Xperia M5] mbc07:
No problems. There's an unit in the TA partition that keeps track of the last flashed firmware (device, version, variant, etc), that's why the DK.ftf says it's from E5643, because you took the TA backup while you were running E5643 firmware. You can proceed without issues...
[Sony Xperia M5] knight84:
Thanks mbc07 !

I found out that the DK.ta has some numbers in it. Just curious bout it.

:)
[Sony Xperia M5] Ninoh-FOX:
I finally could install magisk v6, supersu systemless for magisk, systemless xposed and suhide in this same kernel, but... Pokemon Go not work!!! Why!!!!?
[Sony Xperia M5] mbc07:
You should start from the stock kernel, the modifications in the RAM Disk of this modded kernel alone are enough to make SafetyNET checks fail. Your system partition should be untouched too, if you ever remounted it (even if you didn't change anything on it), SafetyNET checks will also fail.
[Sony Xperia M5] Ninoh-FOX:
I see... I only uninstall apks system that I not use... Well, I'll wait to you can work with you phone again.

Well... Pokemon now not works in magisk + xposed, this has a google api payload check...
[Sony Xperia M5] ataraxist:
Anyone has the original stock kernel for single sim? In case any issue, I want to flash back the original kernel. Or can anyone tell me how this extract it? Flash tool?
[Sony Xperia M5] ataraxist:
"Upon rebooting you should see SuperSU in the app drawer. "

Is this root removable or it is a permanent SuperSU app?
[Sony Xperia M5] mbc07:
The app is installed as an user app, so you can delete it. What I haven't tested is the full unroot option, it may trigger the SuperSU reinstall mod I did in the RAM Disk. To prevent this from happening, make sure a file named /data/su.img exists after unrooting (it can be an empty file), this will prevent the SuperSU auto reinstall...
[Sony Xperia M5] Ninoh-FOX:
Well, finally pogo work in my phone

Enviado desde mi E5603 mediante Tapatalk

Enviado desde mi E5603 mediante Tapatalk
[Sony Xperia M5] crisaegrim:
Nice :good:

Will you post how you achive this?
[Sony Xperia M5] mbc07:
[MENTION=1790495]Ninoh-FOX[/MENTION] I'm glad you managed to get SafetyNET working on your device but please, create a new thread if you plan to further discuss how you did this. You've already spammed this thread enough. Thanks for the comprehension...
[Sony Xperia M5] DukeMcWood:
Hi, i'm idiot and I unlock bootloader on 5.1. How I can update to 6.0 with unlocked bootloader safety ? DRM keys backuped
[Sony Xperia M5] Ninoh-FOX:
I use your kernel [MENTION=5604590]mbc07[/MENTION]

Enviado desde mi E5603 mediante Tapatalk
[Sony Xperia M5] Ninoh-FOX:
You can update the phone with flashtool

Enviado desde mi E5603 mediante Tapatalk
[Sony Xperia M5] DukeMcWood:
When i flash kernel, in writing boot i have error. What is problem ?
[Sony Xperia M5] Ninoh-FOX:
Do you have the bootloader unlock?

Enviado desde mi E5603 mediante Tapatalk
[Sony Xperia M5] DukeMcWood:
Lol, sorry. My bootloader don't be unlocked, but i unlocked bootloader yesterday :D Unlocked bootloader today with FlashTool
[Sony Xperia M5] Ninoh-FOX:
[MENTION=5604590]mbc07[/MENTION], when you can upload clean kernel with drmfix only?

Enviado desde mi E5603 mediante Tapatalk
[Sony Xperia M5] mbc07:
As I said, no ETA. Nearly 40 days has passed since my Xperia M5 went to Service Center and it didn't return yet (nor they provided any explanation for such delay), so I sued the local repair shop responsible for the service and now I'm waiting...
[Sony Xperia M5] jUrameshi:
I followed these instructions (thanks mbc07) and now I'm on 6.0 rooted.

My phone says there's a new update, but it won't download OTA. Is there a safe way to apply the update? And by safe I mean, without losing root.
[Sony Xperia M5] ataraxist:
If u unlock bootloader, ota is gone...
[Sony Xperia M5] ataraxist:
Can anyone advise what was changed in the stock mm kernel? Is it unrootable?
[Sony Xperia M5] Toldo:
I've got a question regarding TA backup. I Couldn't make it with the TA Backup app, so I made it with shell command BUT I had to change sdcard to sdcard1 and I got a TA.img file. Now I went to TA Backup and chose convert. It went ok, but now when I choose restore or dry-run I have an error: "Entry point not found for procedure ?Get_Standard_Input_Stream@@YGPAVSTREAM@@XZ in library C:\Users\wdolo\Desktop\Backup-TA-9.11\tools\find.exe"

Is there any way to fix it, or restore the TA.img some other way?
[Sony Xperia M5] mbc07:
If you took the backup manually, you need to restore it manually too. In other words, on Xperia M5 case, dd if=/sdcard1/TA.img of=/dev/block/mmcblk0p1 should do it...
[Sony Xperia M5] Toldo:
I thought so, thank You. Here's another one. While flashing DK.ftf I had the fsc script dialog that some things are not included in it so they won't be flashed. Is that OK? Generally I have the M5 up and running now with stock MM, your kernel and TWRP and it seems that everything is fine but I have to be sure as this is my wife's phone and she would kill me if it doesn't work correctly :D

Tapnięte za pomocą Honoraty Siódmej
[Sony Xperia M5] t-driver:
offline charging doesn't work correctly.. (no charge screen)...... i'm still waiting for a fix.

.
[Sony Xperia M5] Ninoh-FOX:
[MENTION=5604590]mbc07[/MENTION]. Can you upload the root kernel script mod for win/linux? Thanks

Enviado desde mi E5603 mediante Tapatalk
[Sony Xperia M5] mbc07:
And I'm still waiting for my phone (again, no ETA). BTW, that's actually a very low priority issue for me, so don't expect me trying to fix this before getting the mod (DRM Fix + no dm-verity) working on the kernels from the newer firmwares (30.2.x.0.110/30.2.x.1.21) and getting SafetyNET working (either with Magisk or suhide or another known method) once my phone returns.

That's OK regarding it won't harm your phone, but this might also mean that nothing was flashed on that case. Could you check what your wife's phone reports for the bootloader? Go to the dialer and enter *#*#7378423#*#*, then go to Service Info => Configuration => Rooting Status. It should say "Bootloader Unlock Allowed: Yes" even through you already unlocked it to flash this modded kernel. If it says something else, it means DRM Fix is working in emulation mode because it didn't find the device key on an alternate TA unit. To fix this, extract the device key from TA Backup again (to generate DK.ftf) and this time, flash it through FlashTool Pro Mode (open DK.ftf with WinRAR or 7-Zip, extract the file DK.ta and then, in FlashTool, go to File => Switch Pro then Advanced => Trim Area => S1 => Flash TA File).

There's no script. I manually edited the RAM Disk of the Xperia M5 kernels based on what the official Root Kernel script would do on the supported devices to get this modded kernel working since as you may have already noticed, Root Kernel won't play nice with Mediatek based kernels...
[Sony Xperia M5] Toldo:
I just checked and it says exactly this. I guess everything is fine then, and if anything goes wrong with the phone I still have that drm keys backed up. Thank You and keep up the good work :)

Tapnięte za pomocą Honoraty Siódmej
[Sony Xperia M5] Geoeye:
hey i had instaled on my Sony M5 lasted firmware 30.2.A.1.21. previosly i had 30.2.A.0.100 with rooted kernel. I trying use this metoth: http://xdaforums.com/xperia-m5/general/tool-dd-flasher-minimal-update-device-t3358942 to save root but i have message file not fond system4ext.. In next thread i try use ddflasher minimal 2.0 beta. After flash rest of baseband,etc via flashtoll phone restart and dont have root acces

and my question is no current method to root the firmware E5603_30.2.A.1.21 or what i do wrong
[Sony Xperia M5] Toldo:
@up

Na sofcie E5603_30.2.A.1.21 nie zrobisz roota tym kernelem ani przez ddflasher.

On E5603_30.2.A.1.21 firmware, this method won't work, as well as ddflasher.
[Sony Xperia M5] Geoeye:
thanks for answer
[Sony Xperia M5] Ninoh-FOX:
I updated my system partition to 30.2.A.1.21 with flashtool, this kernel and systemless root and I have root.

Enviado desde mi E5603 mediante Tapatalk
[Sony Xperia M5] crisaegrim:
Really? How did you achieve that?
[Sony Xperia M5] Ninoh-FOX:
Really

Enviado desde mi E5603 mediante Tapatalk
[Sony Xperia M5] Geoeye:
I confirm too. I'm flash this kernel boot_m5_ss_30.2.A.0.100_nodmv_su_drmfix next instal super su from google play and i have root acces and everything works fine
[Sony Xperia M5] ataraxist:
can you explain how you install systemless root in an unlock bootloader m5 with latest .30.2.a.1.21 firmware?
[Sony Xperia M5] Ninoh-FOX:
That it is easy, I flashed kernel and fotakernel (twrp) with fastboot, reboot the phone and later I updated all partition (no update boot, userdata and fotakernel!!) with flashtool.

Enviado desde mi E5603 mediante Tapatalk
[Sony Xperia M5] Toldo:
Wouldn't it be easier to flash just the system with flashtool, then reflash dk.ta and this kernel, and reinstall/update supersu?
[Sony Xperia M5] Ninoh-FOX:
Dk.ta only need flash an one time, I flashed the update system in this mode for not lost partition data (how a "OTA" update)

Enviado desde mi E5603 mediante Tapatalk
[Sony Xperia M5] sebmoris:
Pls! write step by step how do you flash 30.2.A.0.100 kernel on 30.2.A.1.21 because i don't understand that... ;/

It is same solution like flashing other kernels??

Thx for help.
[Sony Xperia M5] sebmoris:
Ok, everything works fine. :)

I flash boot_m5_ss_30.2.A.0.100_nodmv_su_drmfix.img on unlock 30.2.A.1.21 firmware traditional method,

fastboot flash boot boot_m5_ss_30.2.A.0.100_nodmv_su_drmfix.img

fastboot reboot

Thx :)
[Sony Xperia M5] ataraxist:
Does anybody know how to extract the new 1.21 kernel and share the boot.img?
[Sony Xperia M5] Toldo:
Same for me. Flashing just the .21 system & modded kernel with flashtool and everything works fine.
[Sony Xperia M5] mbc07:
Don't worry people, after a long time they finally gave me a replacement unit, and I'm already working on the kernels of the newer updates...