Development [RECOVERY][UNOFFICIAL][3.7.0][PDX215] TWRP for Sony Xperia 1 III

Search This thread

Alex2008Ex

Senior Member
if you add sony driver as built in (on kernel)

add
Code:
on init
    write /sys/devices/virtual/sec/tsp/after_work 1

on init.recovery.qcom.rc

(edit: touch module firmware is for specific model, but you still need touch module (sec_touchscren) from modules/lib/1.1 or built in as module in kernel source)

some ref : https://github.com/lolipuru/kernel_sony_sm8350/commit/32cc604b26f61e0c1e655a5827b219449ce6144d
Thanks! I will try that.

About touch module, there is another one for 1 IV sonyxperiadev github

Also, on the 1 IV there is a separate boot and recovery which is different from 1 III so no recovery kernel

Edit : I don't see sec_touchscren in modules/lib/1.1
 
Last edited:

loipuru

Senior Member
May 1, 2021
159
178
Bangkok
Xiaomi Mi A1
Xiaomi Mi 8
Thanks! I will try that.

About touch module, there is another one for 1 IV sonyxperiadev github

Also, on the 1 IV there is a separate boot and recovery which is different from 1 III so no recovery kernel

if generate via twrpdtgen, ofc there's more thing you'll need to do (especially if using kernel header 4 which having multiple ramdisks)

try looking basic partition via getvar all on fastboot, it'll help you a little bit

i might do bringup without device, like i do on previous device (mk 2 - 3 twrp)
 
  • Like
Reactions: sieghartRM

Alex2008Ex

Senior Member
if generate via twrpdtgen, ofc there's more thing you'll need to do (especially if using kernel header 4 which having multiple ramdisks)

try looking basic partition via getvar all on fastboot, it'll help you a little bit

i might do bringup without device, like i do on previous device (mk 2 - 3 twrp)
I'm not using twrpdtgen I made a device tree based on Asus SM8450 devices which is very similar. Adb works, decryption seems to work (only shows pattern to unlock for now because touch does not work), brightness work and that's all I could try.

If you want to help me that would be a pleasure and also I have the device so I can test myself.
 

einhuman197

Senior Member
Dec 7, 2014
160
35
alright #2 need some testers

flashing instruction will change to

Code:
fastboot flash vendor_boot vendor_boot_215.img

fastboot reboot recovery

https://drive.google.com/drive/folders/1qXxZkOLl04KactbnXZLFRMTJ-UU9Mrzx?usp=share_link

wanted to made sure that A slot will properly boot before release

DO NOT, EVER FLASHING WITH OLD LINEAGE OS ROM
Thanks for your effort! I flashed it to my Android 11 installation XQ-BC52, upon rebooting the Bootloader throws me the error
"your device is corrupt. it can't be trusted and will not boot. Your device will be powered off in 5 Seconds."

Is this my fault? If it's the fault of my A11 installation? If yes, would it be possible you can provide me with a A11 build? The reason I didn't upgrade yet is because I want a fully functioning Nandroid Backup to come back to. Thanks in advance!

I reflashed Stock A11 vendor_boot and it's working flawless again.
 

loipuru

Senior Member
May 1, 2021
159
178
Bangkok
Xiaomi Mi A1
Xiaomi Mi 8
Thanks for your effort! I flashed it to my Android 11 installation XQ-BC52, upon rebooting the Bootloader throws me the error
"your device is corrupt. it can't be trusted and will not boot. Your device will be powered off in 5 Seconds."

Is this my fault? If it's the fault of my A11 installation? If yes, would it be possible you can provide me with a A11 build? The reason I didn't upgrade yet is because I want a fully functioning Nandroid Backup to come back to. Thanks in advance!

I reflashed Stock A11 vendor_boot and it's working flawless again.

Seem like it's working on a12 fw (since both kenrel source and blobs are from a12 fw or maybe slot change problem still exist.)

Not your fault, but dunno that I can bring you a11 build if it's really fw problem, because I might need to bring a11 kernel source myself
 

einhuman197

Senior Member
Dec 7, 2014
160
35
Seem like it's working on a12 fw (since both kenrel source and blobs are from a12 fw or maybe slot change problem still exist.)

Not your fault, but dunno that I can bring you a11 build if it's really fw problem, because I might need to bring a11 kernel source myself
I tried the Boot Image from Post #1 in this Thread, this one didn't throw me an corruption error and I was able to boot into TWRP, but decryption failed. I was providing the right password and flashed to active slot. I could provide some logs if you need them.
 

Akiziname

New member
Feb 7, 2023
1
0
alright #2 need some testers

flashing instruction will change to

Code:
fastboot flash vendor_boot vendor_boot_215.img

fastboot reboot recovery

https://drive.google.com/drive/folders/1qXxZkOLl04KactbnXZLFRMTJ-UU9Mrzx?usp=share_link

wanted to made sure that A slot will properly boot before release

DO NOT, EVER FLASHING WITH OLD LINEAGE OS ROM

I have pdx215, xq-bc72
flash the boot.img to active slot in #1 boot, it won't boot the system and keeps rebooting
Now using 61.1.A.11.107 for china , android 12
Can I try this?
Pardon me, my English is not very good
 

loipuru

Senior Member
May 1, 2021
159
178
Bangkok
Xiaomi Mi A1
Xiaomi Mi 8
I have pdx215, xq-bc72
flash the boot.img to active slot in #1 boot, it won't boot the system and keeps rebooting
Now using 61.1.A.11.107 for china , android 12
Can I try this?
Pardon me, my English is not very good

i was planning to rebase recovery tree, right now i really lacking (very active) tester or device

if i can get one of them somehow it'll be quicker to rebase

also answer is : no, boot.img one is really risky to brick
 

Am2cute

Member
Jan 24, 2023
5
0
Sony Xperia 1 III
just testing twrp, i'll build custom rom for you also.

only requirement is you can accept the risk, and / or 1 iii isn't your main device

if you can then reply me again, or pm me via telegram (instantnoodle)
test twrp is ok, but it's a little diffcult for me to flash custom rom at this moment. since there's a problem with my phone. I have update from android 11 to 13 by using newflasher, but when i flash the Magisk fixed boot.img, it will pause at the "XPERIA" logo then reboot,I have tried to flash the unfixed boot.img ,but it doesn't work.
 

loipuru

Senior Member
May 1, 2021
159
178
Bangkok
Xiaomi Mi A1
Xiaomi Mi 8
test twrp is ok, but it's a little diffcult for me to flash custom rom at this moment. since there's a problem with my phone. I have update from android 11 to 13 by using newflasher, but when i flash the Magisk fixed boot.img, it will pause at the "XPERIA" logo then reboot,I have tried to flash the unfixed boot.img ,but it doesn't work.

pm me via telegram then (instantnoodle) i'll send link to public group also
 

Top Liked Posts

  • There are no posts matching your filters.
  • 12
    Code:
    /*
    *Disclaimer
    *
    * Your warranty is now void.
    *
    * We're not responsible for bricked devices, dead SD cards,
    * thermonuclear war, or you getting fired because the alarm app failed. Please
    * do some research if you have any concerns about features included in this ROM
    * before flashing it! YOU are choosing to make these modifications, and if
    * you point the finger at us for messing up your device, we will laugh at you.
    */
    Working :
    • Boot
    • Decryption data
    • Flashing
    • Android 12/13 support

    Not working :
    • Vibration (involve driver loading which i'm inexperience about this)
    • otg

    Supported devices :
    • Sony Xperia 1 III
    Sony Xperia 5 III is currently work in progress

    Flashing Process :

    Code:
    1. Power off device
    2. Hold Vol + and plug it into PC
    3. fastboot getvar current-slot
    3. fastboot --set-active=(inactive slot)
    4. fastboot flash boot_(inactive slot) (path to boot.img)
    5. fastboot reboot recovery
    6. Once you're done head to the reboot menu and change to the other slot and reboot back to system

    Download : Link

    Special Thanks :
    - Hellobbn for testing and kernel
    - @Ainz_Ooal_Gown for testing
    - @Sakuu for testing and instruction
    - @Miustone for some hints, and testing

    Source :


    Twrp Device tree
    Kernel Source

    Donation : Paypal
    2
    Err I see. Does that mean I'm not getting root on it? Kinda bought the phone assuming I could based on the bootloader unlock option and the various threads here...

    there's plenty ways to get root, after you unlock bootloader (eg: magisk boot patch)

    right now twrp is kinda like work in progress till i manage to get vendor_boot to works on a12 and 13, once i get that twrp will be a lot safer
    2
    But do I understand it right, that you therefore can't use TWRP to modify your stock rom?
    There is an easy solution for that. Flash TWRP to the active slot. Follow My Guides to make a Magisk Boot Image and flash the Magisk Image after using TWRP within TWRP (select image).
    To use TWRP use ADB again. You can also change Slots using TWRP or Apps made for that to get around the bootloops. Not sure about the encryption but my Xperia 1 III has decryption no matter on which slot i flash.

    We can also trying to fiddle around with that:
    1
    Oke and where can i get them, any link ?
    From this thread https://forum.xda-developers.com/t/...re-and-gsi-rom-flashing-without-twrp.4344371/

    You should honestly have both the Google Driver's and the Sony Xperia 1 III driver's....