[RECOVERY][KERNEL][Xperia XA1 and Ultra- Versions] Jan-18-2019

Search This thread

janjan

Recognized Developer
May 20, 2007
3,209
3,447
Aalborg
tweaksyourandroid.weebly.com
vnm2k3.png
Xperia XA1 (G3121), Xperia XA1 Dual(G3112), Xperia XA1 Ultra(G3221/G3223), Xperia XA1 Ultra Dual(G3212) and Xperia XA1 plus Dual (G3412)-SHOULD ALSO WORKS WITH OTHER VERSION TOO.
I am sharing my kernel/boot.img, which is build from Sony Open Source/Qualcomm/ and android source (Very close to Stock KERNEL). Designed to keep balance security/ with high Performance and battery life.​
Code:
###Disclaimer###
I am not responsible for any damage, broken or boot looping.
Please read the instructions and notes before flashing anything. Don't ask me if you don't read the instructions.
Please respect and try to help each other. You may face sometimes that I cannot answer your questions/or answer your questions a bit later. I am busy with my work and don't have enough time to read and answer all your questions at the same time.

DONATE ME HERE
DONATE-HERE

##############################
Requirements-
##############################

- A working driver for your device.
USB drivers for Xperia devices
- Unlock bootloader
- YOUR firmware must match my kernel version. I used to update the kernel with latest firmware. (DOWNLOAD LATEST VERSION FROM HERE:- LATEST FLASHTOOL)
- Backup your stuff for future
- YOU NEED a refresh stock ROM (means you have to wipe EVERYTHING). Use flashtool to flash the latest firmware. (Remember to check Wipe USERDATA in flashtool)

##############################
Instructions-FLASHING KERNEL/BOOT AND CUSTOM-TWRP RECOVERY
##############################

- First flash the latest firmware.
- Then You need to flash my kernel/boot image and then the twrp-recovery
Code:
- adb devices
- adb reboot bootloader
- fastboot flash boot boot.img
- fastboot reboot (YES WE HAVE TO REBOOT)
- Let the device boot completely
- Ensure everything is working, Then
- Reboot the your device into bootloader again and flash the custom- recovery image
Code:
- adb reboot bootloader
- fastboot flash recovery recovery.img
IMPORTANT
- Now unplug your device and hold Vol down + power buttons. You have to release both buttons after vibrate.
- Enjoy custom recovery
- Flash the latest magisk to achieve root
- Enjoy

##############################
Features 17/9/2018
##############################

- Based on latest kernel source VERSION = 4, PATCHLEVEL = 4, SUBLEVEL = 83 (48.1.A.2.50) January 9, 2019
- Up to date with the September security update—January 9, 2019
- Hide verifiedbootstate from /proc/cmdline in order to fix the failed SafetyNet CTS check(It can still fail through other means)-GOOGLE PAY SHOULD WORK
- Remove verifiedbootstate flag from /proc/cmdline - Disable CRC check
- Support wireguard VPN protocol
- dm-verity removed
- Sepolicy is patched for latest Oreo (deodex ROMs)
- Scheduler optimize/support for heterogeneous multi-core. Battery efficiency
- Multi-core scheduler enable/optimized
- A lot subsystems converted to use power efficient work-queues
- CAF improvements and optimized
- Enable latest energy aware scheduling patches
- Enable work-queue power-efficient mode by default
- Several other patches to improve the speed and battery usage
- Tweaked the scheduler to reduce/save power by scaling down the frequency of the CPU's or idling them,
- Tweaked to predict the best time to save power on the CPU without affecting performance

##############################
Downloads
##############################

Xperia XA1(G3121-G3112-G3125-G3116-G3123)-(48.1.A.2.50)-(4/Feb/2019)
[KERNEL+RECOVERY]
##############################
Xperia XA1 Ultra Dual(G3212)-(48.1.A.2.50)-(17/January/2019)
[KERNEL][CUSTOM-RECOVERY]
##############################
Xperia XA1 Ultra(G3221)-(48.1.A.2.50)-(18/January/2019)
[KERNEL][CUSTOM-RECOVERY]
##############################
Xperia XA1 Plus Dual (G3412)-(48.1.A.2.50)-(18/January/2019)
[KERNEL][CUSTOM-RECOVERY]

##############################
Source/GitHub
##############################

-42.0.A.1.69

IF YOU LIKE MY WORK AND WANT ME TO CONTINUE, THEN DON'T FORGET TO BUY ME COFFEE
DONATE ME HERE
DONATE-HERE

Special Thanks To:
If you can, donate and respect all the devs :)
@Chainfire for his great work to achieve root SuperSU
@modpunk for TWRP-recovery 3.2.1-0 and drm-fix THANK YOU
@Androxyde for Flashtool. merci beaucoup pour tout
@munjeni for his great knowledge and tools for extracting SIN images
@rrvuhpg for giving me some idea about Sony XA recovery
THANK YOU SONY FOR SUPPORTING DEVs AND ALLOWING US TO UNLOCK THE BOOTLOADER
Thanks to XDA And everyone else who share their knowledge and works among us in xda.​
 
Last edited:

diosdetiempo

Senior Member
Jun 17, 2016
142
21
Will this work with just the regular XA1? Since we only need the recovery to flash SuperSU
 
Last edited:

diosdetiempo

Senior Member
Jun 17, 2016
142
21
I need some one to test the bot.img for regular XA1. I can't test it since I don't have the device. It doesn't hurt as long you only boot no flash.

Fastboot boot boot.img

If it boots and everything is working then you can flash the boot.img and then the recovery.img to avoid the boot loops or reboot loops.

Fastboot flash boot boot.img

If it doesn't boot. I will compile a kernel for the regular XA1. I need to upload the source before uploading the kernel.

i will await your kernel for the regular XA1. i'm yet to find a way to backup the TA partition
 
M

Mikaze

Guest
WOW MAN it's fantastic.
Thank you for everything you've done for us!
 

Ticklefish

Recognized Themer
Oct 27, 2011
6,773
8,633
Hampshire, UK
I need some one to test the bot.img for regular XA1. I can't test it since I don't have the device. It doesn't hurt as long you only boot no flash.

Fastboot boot boot.img

If it boots and everything is working then you can flash the boot.img and then the recovery.img to avoid the boot loops or reboot loops.

Fastboot flash boot boot.img

If it doesn't boot. I will compile a kernel for the regular XA1. I need to upload the source before uploading the kernel.

I am not sure it is gonna work due to ramdisk. But as I said it doesn't hurt by only boot from it.

Thank you for working on this. I have an XA1 and I'm desperate to mod it.
Unfortunately I'm not in a position to try it myself yet. I've changed my job and I've lost access to my old work PC. That had all the right drivers on it.
I might be able to install them on the new work computer but I need to check how easily the IT department will spot it first!

Sent from my Sony Xperia XA1 using XDA Labs
 

janjan

Recognized Developer
May 20, 2007
3,209
3,447
Aalborg
tweaksyourandroid.weebly.com
I am not sure the kernel/boot.img and recovery.img gonna work for XA1, But try it. Since they are very similar to each other. Download the latest Supersu and flash it to achieve root. Don't forget my beer, thanks. ENJOY
 
Last edited:

diosdetiempo

Senior Member
Jun 17, 2016
142
21
i tried with bootloader locked (fastboot boot boot.img), and got this. not sure if it's due my bootloader being locked or what

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot boot boot.img
downloading 'boot.img'...
OKAY [ 0.553s]
booting...
FAILED (status read failed (Too many links))
finished. total time: 5.660s
 

janjan

Recognized Developer
May 20, 2007
3,209
3,447
Aalborg
tweaksyourandroid.weebly.com
i tried with bootloader locked (fastboot boot boot.img), and got this. not sure if it's due my bootloader being locked or what

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot boot boot.img
downloading 'boot.img'...
OKAY [ 0.553s]
booting...
FAILED (status read failed (Too many links))
finished. total time: 5.660s

You need an unlocked bootloader.
 
M

Mikaze

Guest
Unfortunately, it seems not working for XA1 DUAL(G3116)...
I used fastboot boot boot.img and OK with it (still have DM-verity warning)
Then I flashed fastboot flash boot boot.img but get into boot-looping
I haven't tested the recovery but I will try it soon

Still have many thanks! If you need a tester I'll always be here.

---------- Post added at 04:47 PM ---------- Previous post was at 04:46 PM ----------

Hello.. and will be the version for XA1 Ultra Dual (G3212)

Since the kernel code is similar among they, you can have a try to boot with this.
Use fastboot boot boot.img to test(it will not harm your phone) if everything ok ,
Flash it into your phone with fastboot flash boot boot.img.(perhaps cause boot-looping)

Still be sure you can repair your phone from boot-looping and test with it!
 
Last edited by a moderator:

janjan

Recognized Developer
May 20, 2007
3,209
3,447
Aalborg
tweaksyourandroid.weebly.com
Unfortunately, it seems not working for XA1 DUAL(G3116)...
I used fastboot flash boot.img and OK with it (still have DM-verity warning)
Then I flashed fastboot flash boot boot.img but get into boot-looping
I haven't tested the recovery but I will try it soon

Still have many thanks! If you need a tester I'll always be here.

---------- Post added at 04:47 PM ---------- Previous post was at 04:46 PM ----------



Since the kernel code is similar among they, you can have a try to boot with this.
Use fastboot boot boot.img to test(it will not harm your phone) if everything ok ,
Flash it into your phone with fastboot flash boot boot.img.(perhaps cause boot-looping)

Still be sure you can repair your phone from boot-looping and test with it!

I mentioned many times not to flash the boot image. Only boot with fastboot boot boot.img

Incase of boot looping, please send me your kernel.elf and fotakernel.elf ..
I will build a "stochesh" boot.img for you. PM me the links of your kernel and fotakernel and remember to write which model.
 
Last edited:
  • Like
Reactions: Mikaze
M

Mikaze

Guest
I mentioned many times not to flash the boot image. Only boot with fastboot boot boot.img

Inacse of boot looping, please send me your kernel.elf and fotakernel.elf ..
I will build a "stochesh" boot.img for you. PM me the links of your kernel and fotakernel and remember to write which model.

Sorry for my typo, "fastboot flash boot.img" should be corrected as "fastboot boot boot.img"
It's booted well as "fastboot boot boot.img" but bricked on "fastboot flash boot boot.img"....

Understood. I will send you kernel soon, thank you!
 

janjan

Recognized Developer
May 20, 2007
3,209
3,447
Aalborg
tweaksyourandroid.weebly.com
Sorry for my typo, "fastboot flash boot.img" should be corrected as "fastboot boot boot.img"
It's booted well as "fastboot boot boot.img" but bricked on "fastboot flash boot boot.img"....

Understood. I will send you kernel soon, thank you!

I just finished compiled kernel for ordinary XA1. Both kernel and recovery should work. I am uploading as soon as possible. Enjoy
 
  • Like
Reactions: Mikaze

Top Liked Posts

  • There are no posts matching your filters.
  • 38
    vnm2k3.png
    Xperia XA1 (G3121), Xperia XA1 Dual(G3112), Xperia XA1 Ultra(G3221/G3223), Xperia XA1 Ultra Dual(G3212) and Xperia XA1 plus Dual (G3412)-SHOULD ALSO WORKS WITH OTHER VERSION TOO.
    I am sharing my kernel/boot.img, which is build from Sony Open Source/Qualcomm/ and android source (Very close to Stock KERNEL). Designed to keep balance security/ with high Performance and battery life.​
    Code:
    ###Disclaimer###
    I am not responsible for any damage, broken or boot looping.
    Please read the instructions and notes before flashing anything. Don't ask me if you don't read the instructions.
    Please respect and try to help each other. You may face sometimes that I cannot answer your questions/or answer your questions a bit later. I am busy with my work and don't have enough time to read and answer all your questions at the same time.

    DONATE ME HERE
    DONATE-HERE

    ##############################
    Requirements-
    ##############################

    - A working driver for your device.
    USB drivers for Xperia devices
    - Unlock bootloader
    - YOUR firmware must match my kernel version. I used to update the kernel with latest firmware. (DOWNLOAD LATEST VERSION FROM HERE:- LATEST FLASHTOOL)
    - Backup your stuff for future
    - YOU NEED a refresh stock ROM (means you have to wipe EVERYTHING). Use flashtool to flash the latest firmware. (Remember to check Wipe USERDATA in flashtool)

    ##############################
    Instructions-FLASHING KERNEL/BOOT AND CUSTOM-TWRP RECOVERY
    ##############################

    - First flash the latest firmware.
    - Then You need to flash my kernel/boot image and then the twrp-recovery
    Code:
    - adb devices
    - adb reboot bootloader
    - fastboot flash boot boot.img
    - fastboot reboot (YES WE HAVE TO REBOOT)
    - Let the device boot completely
    - Ensure everything is working, Then
    - Reboot the your device into bootloader again and flash the custom- recovery image
    Code:
    - adb reboot bootloader
    - fastboot flash recovery recovery.img
    IMPORTANT
    - Now unplug your device and hold Vol down + power buttons. You have to release both buttons after vibrate.
    - Enjoy custom recovery
    - Flash the latest magisk to achieve root
    - Enjoy

    ##############################
    Features 17/9/2018
    ##############################

    - Based on latest kernel source VERSION = 4, PATCHLEVEL = 4, SUBLEVEL = 83 (48.1.A.2.50) January 9, 2019
    - Up to date with the September security update—January 9, 2019
    - Hide verifiedbootstate from /proc/cmdline in order to fix the failed SafetyNet CTS check(It can still fail through other means)-GOOGLE PAY SHOULD WORK
    - Remove verifiedbootstate flag from /proc/cmdline - Disable CRC check
    - Support wireguard VPN protocol
    - dm-verity removed
    - Sepolicy is patched for latest Oreo (deodex ROMs)
    - Scheduler optimize/support for heterogeneous multi-core. Battery efficiency
    - Multi-core scheduler enable/optimized
    - A lot subsystems converted to use power efficient work-queues
    - CAF improvements and optimized
    - Enable latest energy aware scheduling patches
    - Enable work-queue power-efficient mode by default
    - Several other patches to improve the speed and battery usage
    - Tweaked the scheduler to reduce/save power by scaling down the frequency of the CPU's or idling them,
    - Tweaked to predict the best time to save power on the CPU without affecting performance

    ##############################
    Downloads
    ##############################

    Xperia XA1(G3121-G3112-G3125-G3116-G3123)-(48.1.A.2.50)-(4/Feb/2019)
    [KERNEL+RECOVERY]
    ##############################
    Xperia XA1 Ultra Dual(G3212)-(48.1.A.2.50)-(17/January/2019)
    [KERNEL][CUSTOM-RECOVERY]
    ##############################
    Xperia XA1 Ultra(G3221)-(48.1.A.2.50)-(18/January/2019)
    [KERNEL][CUSTOM-RECOVERY]
    ##############################
    Xperia XA1 Plus Dual (G3412)-(48.1.A.2.50)-(18/January/2019)
    [KERNEL][CUSTOM-RECOVERY]

    ##############################
    Source/GitHub
    ##############################

    -42.0.A.1.69

    IF YOU LIKE MY WORK AND WANT ME TO CONTINUE, THEN DON'T FORGET TO BUY ME COFFEE
    DONATE ME HERE
    DONATE-HERE

    Special Thanks To:
    If you can, donate and respect all the devs :)
    @Chainfire for his great work to achieve root SuperSU
    @modpunk for TWRP-recovery 3.2.1-0 and drm-fix THANK YOU
    @Androxyde for Flashtool. merci beaucoup pour tout
    @munjeni for his great knowledge and tools for extracting SIN images
    @rrvuhpg for giving me some idea about Sony XA recovery
    THANK YOU SONY FOR SUPPORTING DEVs AND ALLOWING US TO UNLOCK THE BOOTLOADER
    Thanks to XDA And everyone else who share their knowledge and works among us in xda.​
    6
    IF YOU LIKE MY WORK AND WANT ME TO CONTINUE, THEN BUY ME A SHOT OF WHISKY
    DONATE ME HERE

    IF YOU LIKE MY WORK AND WANT ME TO CONTINUE, THEN BUY ME A SHOT OF COFFEE
    DONATE ME HERE
    5
    Happy new year everyone with all best wishes.
    I will compile a new TWRP with Oreo support + kernel.
    Thank you everyone for supporting me.
    5
    I am going to build a new Kernel from latest source with a lot of improvement and optimization. I will make a boot.img also a patched boot.img to get it work with magisk. Hopefully before the weekend.
    4
    I regret passing Android 8.0.
    Root permission should come immediately

    ---------- Post added at 07:45 PM ---------- Previous post was at 07:20 PM ----------

    questions.tr@support.sonymobile.com
    Finally, let's post what we expect to share.
    The name did not come to mind. Which file

    I do not understand how some users do not understand how XDA works.

    The developer is willing to help, create or modify functions that manufacturers do not provide us, often losing their hours off and gaining nothing from it, just to keep the community of users of a device with the best available .

    And these users keep asking about ETA, asking why the delay, and still saying what the developer should do.
    I would also like to have TWRP available as soon as possible. But the developer, who was the only one who decided to work on the project, still does not have the tools available. And he's waiting for Sony's release.

    So, this is the options that you have:

    1. Ask Sony to release the kernel as soon as possible.
    2. Ask Sony to release the kernel with the modifications you need.
    3. Ask MediaTek to release the drivers more often.
    4. Help the developer by working to make the releases faster.
    5. Buy another device that has a more active community.

    Or ... just wait and thanks for the developer's work.