Downgrading the baseband(Solved)

li0nh3art3d

Senior Member
Apr 22, 2016
456
134
0
Texas ?
I updated my firmware with Newflasher to 50.1.A.5.59, however now whenever I install Xposed, it bootloops. It was working fine on the previous firmware, however when I flash the older stock firmware, it bootloops also.

Upon running the command 'fastboot getvar all', it seems that the bootloader does indeed downgrade back down with the rest of the firmware package, while the command line in newflasher says success on the the baseband, it seems to have some kind of lock preventing a lower version from staying flashed, so now I'm stuck on the newer firmware.

Does anyone know any possible way to override this, and be able to successfully downgrade the baseband? I really want to get Xposed working again :(


EDIT: After failing with Newflasher, Sony has updated Emma flashtool I was able to successfully downgrade the baseband.

Edit 2: I got a discovery device that was on the 5.59 firmware and was able to downgrade with Androxyde Flashtool, however Newflasher would not work downgrading that device either.
 
Last edited:

li0nh3art3d

Senior Member
Apr 22, 2016
456
134
0
Texas ?
Have you tried to flash systemless xposed module via MagiskManager?
Yes... Since upgrading the firmware, I've tried installing it with Magisk, TWRP, and directly through the Xposed installer app, all 3 ways result in a bootloop since I upgraded to the newest firmware. :(

I tried to downgrade, but the baseband is stuck on the newer version. i.e. it won't downgrade with the rest of the firmware, so I'm assuming there's some kind of write protection that won't allow it to be downgraded. I'm wondering if anyone knows how to get around it and force it to take the lower version of the baseband. The bootloader version downgrades without any issue, but it won't boot up with a mismatching baseband.
 

roirraW "edor" ehT

Recognized Contributor
May 8, 2010
8,906
4,982
253
Columbus, OH
Yes... Since upgrading the firmware, I've tried installing it with Magisk, TWRP, and directly through the Xposed installer app, all 3 ways result in a bootloop since I upgraded to the newest firmware. :(

I tried to downgrade, but the baseband is stuck on the newer version. i.e. it won't downgrade with the rest of the firmware, so I'm assuming there's some kind of write protection that won't allow it to be downgraded. I'm wondering if anyone knows how to get around it and force it to take the lower version of the baseband. The bootloader version downgrades without any issue, but it won't boot up with a mismatching baseband.
Since this is my first Sony phone, I don't know if the same applies but I would guess that S-OFF is needed to fully downgrade the firmware, and who knows if anyone ever figures out a way to S-OFF it.
 
  • Like
Reactions: li0nh3art3d

serajr

Recognized Developer / Recognized Themer
Apr 21, 2011
5,011
18,603
263
São Paulo - SP
[...] now whenever I install Xposed, it bootloops [...](
- Go into recovery and create a backup of the /system partition (if something goes wrong in the next step, just restore it)
- Download and flash rovo's official xposed zip beta2 - stay away from beta3 for now!!
- You must be done!

Xposed beta2 is working great here on my Xperia X Performance - April Security Patch

Edit... got bootloop after installation of a testing xposed module. I'll check it out
Edit 2... testing module was the culprit!
Edit 3... installing modules that hook in system apps leads in bootloop (gravitybox, xprivacylua, xperia home x, ...) - Useless!
 
Last edited:

li0nh3art3d

Senior Member
Apr 22, 2016
456
134
0
Texas ?
- Go into recovery and create a backup of the /system partition (if something goes wrong in the next step, just restore it)
- Download and flash rovo's official xposed zip beta2 - stay away from beta3 for now!!
- You must be done!

Xposed beta2 is working great here on my Xperia X Performance - April Security Patch

Edit... got bootloop after installation of a testing xposed module. I'll check it out
Edit 2... testing module was the culprit!
Edit 3... installing modules that hook in system apps leads in bootloop (gravitybox, xprivacylua, xperia home x, ...) - Useless!
I was actually using GravityBox and Xperia Home on 50.1.A.4.102 (first update; phone ships on 50.1.A.76), it's when I updated to 50.1.A.5.59 and flashed xposed framework again, it wouldn't boot.
 

TheLoonyRebel

Senior Member
Mar 20, 2010
2,303
1,230
198
Edit 3... installing modules that hook in system apps leads in bootloop (gravitybox, xprivacylua, xperia home x, ...) - Useless!
That's because the March and April security updates have made Xposed useless due to how the system hooks work. Until a work around is found we are Xposed less right now.
 
  • Like
Reactions: li0nh3art3d

li0nh3art3d

Senior Member
Apr 22, 2016
456
134
0
Texas ?
That's because the March and April security updates have made Xposed useless due to how the system hooks work. Until a work around is found we are Xposed less right now.
according to this there is a workaround, made by @serajr, that can be done by deodexing (or de-vdexing since oreo is vdex?) the system/framework/services.jar file and then editing it, but I can't figure out how to deodex/de-vdex... But the good news is that the fix is reported to be working for the XZP, and if done correctly should also work on the XA2 also.

tbh, it would be nice to completely deodex or de-vdex the entire rom.
 
Last edited:

roirraW "edor" ehT

Recognized Contributor
May 8, 2010
8,906
4,982
253
Columbus, OH
according to there is a workaround, made by @serajr, that can be done by deodexing (or de-vdexing since oreo is vdex?) the system/framework/services.jar file and then editing it, but I can't figure out how to deodex/de-vdex... But the good news is that the fix is reported to be working for the XZP, and if done correctly should also work on the XA2 also.

tbh, it would be nice to completely deodex or de-vdex the entire rom.


FWIW, [URL="https://forum.xda-developers.com/showthread.php?t=1755243"]APKTool
is what I had used 4-5 years ago on the Samsung Galaxy S3 to get the framework and system/services.jar files, and possibly one or two other files. I had merely done that so I could integrate the 3MinitBattery mod into the stock and stock-based 4.4.x ROMs. I haven't successfully touched it since then, though. I think I tried using it on the VS985 Verizon LG G3 stock ROM without any luck, but that's been awhile.

There is an official for the tool as well at https://ibotpeaches.github.io/Apktool/ by the author, as well.
 

li0nh3art3d

Senior Member
Apr 22, 2016
456
134
0
Texas ?
I got it deodexed, and patched the services.jar, but it still bootlooped. It seems like the march security patch messed up Xposed for almost all oreo devices. Some can't run certain modules, while others won't even boot.

I really miss GravityBox :(

Has anyone had success downgrading the baseband from the 50.1.A.5.59 update? I can't be the only one that's tried...
 
Last edited:
  • Like
Reactions: roirraW "edor" ehT

li0nh3art3d

Senior Member
Apr 22, 2016
456
134
0
Texas ?
I installed Sony flash utility EMMA, it found 4.76 and 5.59. You also can download it from Android File Host. Just searched for my model H3213
I have the H3123, but I registered for emma and verified my email address but it says my account won't be active until I contact a representative for sony mobile. I'm not sure how to do that... It doesn't give me any sort of link or address to email.

EDIT: So I found the firmware on Android file host, however I'm just waiting for my Emma account to be activated ?
 
Last edited:

Konomastiker

Member
Jun 1, 2017
27
8
0
I have the H3123, but I registered for emma and verified my email address but it says my account won't be active until I contact a representative for sony mobile. I'm not sure how to do that... It doesn't give me any sort of link or address to email.

EDIT: So I found the firmware on Android file host, however I'm just waiting for my Emma account to be activated
I did not mess with email and activation. For me, emma was free downloadable. Go to https://developer.sony.com/develop/open-devices/get-started/flash-tool/download-flash-tool/ and download it. Maybe it depends on where you are at.

PS: Just looked closer to the page. Emma was deactivated on 6 July 2017. I used it before this date. But you still can download it from Germany. You will have to try if you can install it and if it will work.
 
Last edited: