FORUMS

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

3,087 posts
Thanks Meter: 3,398
 
Post Reply Email Thread
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.
The Following 38 Users Say Thank You to janjan For This Useful Post: [ View ]
17th June 2017, 12:12 AM |#2  
Senior Member
Thanks Meter: 21
 
More
Will this work with just the regular XA1? Since we only need the recovery to flash SuperSU
17th June 2017, 06:11 AM |#3  
janjan's Avatar
OP Recognized Developer
Flag Aalborg
Thanks Meter: 3,398
 
Donate to Me
More
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
The Following 6 Users Say Thank You to janjan For This Useful Post: [ View ]
17th June 2017, 06:25 AM |#4  
Senior Member
Thanks Meter: 21
 
More
Quote:
Originally Posted by janjan

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
17th June 2017, 09:54 AM |#5  
Junior Member
Thanks Meter: 2
 
More
WOW MAN it's fantastic.
Thank you for everything you've done for us!
17th June 2017, 08:50 PM |#6  
Quote:
Originally Posted by janjan

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
17th June 2017, 10:14 PM |#7  
janjan's Avatar
OP Recognized Developer
Flag Aalborg
Thanks Meter: 3,398
 
Donate to Me
More
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
17th June 2017, 10:16 PM |#8  
janjan's Avatar
OP Recognized Developer
Flag Aalborg
Thanks Meter: 3,398
 
Donate to Me
More
Please try it out and report me back. Thank
17th June 2017, 10:59 PM |#9  
Senior Member
Thanks Meter: 21
 
More
Quote:
Originally Posted by janjan

Please try it out and report me back. Thank

how does one backup the DRM keys? i'd be a tester if i could back them up
18th June 2017, 12:43 AM |#10  
Senior Member
Thanks Meter: 21
 
More
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
18th June 2017, 01:50 AM |#11  
Junior Member
Thanks Meter: 0
 
More
Hello.. and will be the version for XA1 Ultra Dual (G3212)
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes