[ROM][UNOFFICIAL] LineageOS 17.1 for Xperia 10 II [Stock-based]

Search This thread

Sjll

Recognized Developer
Jun 4, 2017
527
682
Chongqing
2okPze5.png

Code:
#include <std_disclaimer.h>
/*
* Your warranty is now void.
*
* I am 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 me for messing up your device, I will laugh at you.
*/
About LineageOS
LineageOS is a free, community built, aftermarket firmware distribution of Android 10.x (Q),
which is designed to increase performance and reliability over stock Android for your device.

All the source code for LineageOS is available in the LineageOS GitHub repo.
And if you would like to contribute to LineageOS, please visit our Gerrit Code Review.

Official LineageOS website : http://lineageos.org
About LineageOS Legal : http://lineageos.org/legal/

Important Information
1. This ROM has nothing related to ODM images! So you don't need to ask/install anything like that, just follow the instructions.
2. This ROM will never work with any versions of Google Camera (GCam)!
3. You need to flash Stock Android 10 before flashing this ROM.
4. For VoLTE, you need to boot into stock firmware and enable it before flashing this ROM!
5.If you cam from SODP ROMs, you need to go back to official Android 10 firmware, and boot into launcher.

6.This ROM works fo both dual and single models.

Downloads Links
LineageOS 17.1:
Unofficial-build:
Link

Google Applications (optional):
OpenGapps:
http://opengapps.org/ (ARM64->Android 10.0->Pico, Nano or Micro)
Information: Flash the GApps before the first boot. If not, a clean flash is recommended.

Flashing and updating
How to flash

Make sure you upgraded to Official Android 10.0 from Sony
Unlock bootloader is necessary.
Download latest platform-tools from google

1. Install fastbootd drivers, guidance
2. Download Lineage Recovery: AFH
3. Put your device into fastboot by volume up key.
4. Type the following command to flash the recovery:
Code:
fastboot flash recovery recovery.img
5. Enter fastbootd:
Code:
fastboot reboot fastboot
6. Flash LineageOS:
Code:
fastboot flash:raw boot boot.img
fastboot flash dtbo dtbo.img
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
fastboot --disable-verity --disable-verification flash vbmeta_system vbmeta_system.img
fastboot erase metadata
fastboot flash system system.img
fastboot flash product product.img
7. If you are first time to flash LineageOS, Wipe the old userdata:
Code:
fastboot erase userdata

Gapps:
After flashed images in fastbootd, choose Enter recovery - Apply update - Apply from ADB, then sideload the gapps package on your PC with adb tool:
Code:
adb sideload <PATH OF GAPPS>

Dolby Atmos:
Install magisk
1. Install Q-10__Dolby_Digital_Plus_v.7.3-_MMT-Ex_-20200519 from repey6.
2. Install Audio_Modification_Library-v4.0 from Magisk repo
3. Install sepolicy to permissive
4. Turn off AudioFX and reboot
Enjoy Dolby! All files I provide a mirror on AFH, you could downlaod from here.

Never flash oem from SODP!!
If you flashed oem and meet any issues, I could only say you are a hanhan.

Root access:
Flash Magisk in recovery.

Twrp:
See this: Link

Issues and reports

Report issues only if you are using the ROM kernel
If an additional mod is installed, make sure it's unrelated, and mention it
Make sure the issue wasn't discussed earlier in the threads
Share a log of the error with CatLog for example

Also thanks to:
Luk1337
The LineageOS Team
The CyanogenMod Team

XDA:DevDB Information
Lineage-17.1 for Xperia 10 II, ROM for the Sony Xperia 10 II

Contributors
Sjll
Source Code:

ROM OS Version: Android 10
ROM Kernel: Linux 4.x

Version Information
Status:
Stable

Created 2020-11-26
Last Updated 2020-11-30
 
Last edited:
  • Like
Reactions: nr4400

Sjll

Recognized Developer
Jun 4, 2017
527
682
Chongqing
FEATURES AND ISSUES
Code:
- Boot: Ok
- Bluetooth: Ok
- WiFi: Ok
- WiFi Hotspot: Ok
- Wireless display: Not tested
- RIL - Phone - Data: Ok
- VoLTE: Ok
- GPS: Ok
- Camera: Ok
- Camcorder: Ok
- Lights: Ok
- MicroSD: Ok
- Accelerometer: Ok
- Compass: Ok
- Gyroscope: Ok
- QTI sensors: Ok
- Touchscreen: Ok
- FM Radio: NA
- Fingerprint: Ok
- Vibrator: Ok
- Microphone: Ok
- Audio & music: Ok
- Bluetooth audio: Ok
- NFC: Ok
- Kernel: Ok
- Graphics: Ok
- 3D Rendering: Ok
- Clock: Ok
- DRM: Widewine L3
- Offline Charging: Ok
- USB: Ok
- USB Tethering:  Ok
- USB OTG: Ok
- Encryption: Ok
- SEPolicies: Enforce
 
Last edited:

bamdadkhan

Senior Member
Oct 7, 2013
95
10
hi, this might be a stupid question, but what part of this is from the stock firmware? i mean lineage OS is a complete ROM with its own kernel system etc. what is the benefit of combining it with stock? better HW compatibility? and does this affect OTA updates?
 

Sjll

Recognized Developer
Jun 4, 2017
527
682
Chongqing
hi, this might be a stupid question, but what part of this is from the stock firmware? i mean lineage OS is a complete ROM with its own kernel system etc. what is the benefit of combining it with stock? better HW compatibility? and does this affect OTA updates?
this might be a stupid question
Not at all, good question.
what is the benefit of combining it with stock?...
Better user experience and better battery time than SODP lineageOS. Test it yourself please.
does this affect OTA updates?
If you mean stock FW update. This is LIneageOS, not stock FW, we will provide OTA once we get LineageOS official support.
what part of this is from the stock firmware?
Some stock blobs and some kernel drivers, but System is LineageOS. There is no difference with other phones.
i mean lineage OS is a complete ROM with its own kernel system etc
As above, system is LineageOS, blobs and kernel drivers are provided by Sony. This is the same as other phones supported by LineageOS.
 

bamdadkhan

Senior Member
Oct 7, 2013
95
10
thanks for the detailed answer. sounds really awesome. too bad i'm on mac os and it's really hard to flash the stock FW here. i'm going to try tomorrow, though. : )
 

dreDREb13

Member
Dec 30, 2016
44
18
If you mean stock FW update. This is LIneageOS, not stock FW, we will provide OTA once we get LineageOS official support.

You're planning official certification by LineageOS down the line?

Any reason not to flash the OEM binaries, by the way? What's the recourse for fixing that and installing this if one's already flashed the SODP firmware?
 

bamdadkhan

Senior Member
Oct 7, 2013
95
10
is there any way to do this without installing the whole stock firmware? i understand that you cannot distribute parts of it due to some legal crap, but if i have the extracted files from the .ftf can i just use fastboot to flash those?

i'm asking because after 2 hours of headaches (installing mono for xperifirm, flashtool not recognising my firmware files, doing the whole thing again in a VM in virtualbox but failing on the USB being constantly disconnected etc.) it's obvious that doing this on OS X is damn near impossible - and i don't have access to a windows machine currently.
 

Sjll

Recognized Developer
Jun 4, 2017
527
682
Chongqing
is there any way to do this without installing the whole stock firmware? i understand that you cannot distribute parts of it due to some legal crap, but if i have the extracted files from the .ftf can i just use fastboot to flash those?

i'm asking because after 2 hours of headaches (installing mono for xperifirm, flashtool not recognising my firmware files, doing the whole thing again in a VM in virtualbox but failing on the USB being constantly disconnected etc.) it's obvious that doing this on OS X is damn near impossible - and i don't have access to a windows machine currently.

Newflasher:
1. Download firmware with XperiaFirm.
2. Flash it with newflasher.
https://forum.xda-developers.com/cr...gress-newflasher-xperia-command-line-t3619426

Or fastboot:
1. 1. Download firmware with XperiaFirm.
2. Convert two sin files should named super_XXXXX.sin and oem_XXXX.sin with unsin.
https://forum.xda-developers.com/crossdevice-dev/sony/tool-unsin-sin-v3-unpacker-t3128106
3. After you get two .ext4 files, flash them via fastboot.
Code:
fastboot flash super super_xxxxxx.ext4
fastboot flash oem oem_xxxxxxxx.ext4
 

bamdadkhan

Senior Member
Oct 7, 2013
95
10
well i tried everything..

- spun up a VM with vagrant and copied over the .sin files, did an unsin but the super one only produced an .img not a .ext4. tried flashing that but it want't happy.
- so i tried flashtool's sin editor but that complained about this version of sin being too new.
- then i found some (bad) info in the net about using an *older* version of flashtool for this. of course that didn't work either.

even though i'm really interested in this (especially since the other lineage ROM has major bugs), i had to give up.
 

bmo2718

Member
Nov 7, 2017
6
0
You didn't mention it in your description but in the download link it says this is for XQ-AU51 (single SIM). Will it still work on the dual SIM version XQ-AU52?
 

dreDREb13

Member
Dec 30, 2016
44
18
You didn't mention it in your description but in the download link it says this is for XQ-AU51 (single SIM). Will it still work on the dual SIM version XQ-AU52?
I've got the XQ-AU52 and can confirm this runs fine on it. I don't use two sims though, so can't confirm whether or not that happens to work.
 

bmo2718

Member
Nov 7, 2017
6
0
I've got the XQ-AU52 and can confirm this runs fine on it. I don't use two sims though, so can't confirm whether or not that happens to work.

Don't plan on using two SIMS either, but in the thread for the other rom it was specifically stated that it only works for one variant.
Anyway, thanks for the reply, I will try it.
 

adem_blackv

Member
May 30, 2020
17
0
Moscow
I have some questions

1)Will you add suport of Google Camera?
2) Does Google Pay work? and will it work in future? A heard something like that Google want start check Safenet with hardware solutions

Stock ROM doesn't has Level3 and RAW Capture
 
Last edited:

Meloferz

Senior Member
1) Read first post, there is the answer
2) If Safetynet pass CTS, will work Google Pay. About the future, if Google decides to check hardware, there is no way to pass CTS, so no Google Pay. The developer of Magisk has a twit about that explaining.
 

wheal

Senior Member
Apr 20, 2011
85
11
Hmm, I got this:

Code:
erasing 'metadata'...
FAILED (remote: Erasing is not allowed for partition)
...
sending sparse 'system' 1/2 (773764 KB)...
OKAY [ 21.700s]
writing 'system' 1/2...
FAILED (remote: No such partition.)

Edit:
All good now, I didnt boot correctly in fastbootd mode.
 
Last edited:

Sjll

Recognized Developer
Jun 4, 2017
527
682
Chongqing
well i tried everything..

- spun up a VM with vagrant and copied over the .sin files, did an unsin but the super one only produced an .img not a .ext4. tried flashing that but it want't happy.
- so i tried flashtool's sin editor but that complained about this version of sin being too new.
- then i found some (bad) info in the net about using an *older* version of flashtool for this. of course that didn't work either.

even though i'm really interested in this (especially since the other lineage ROM has major bugs), i had to give up.
usin is enough for you to unpack these sin file, you could flash these files unpacked by it. .ext4 is only an example,.

If you want to go back to stock, you need to reloack your device, then repair it with Xperia Companion.

You didn't mention it in your description but in the download link it says this is for XQ-AU51 (single SIM). Will it still work on the dual SIM version XQ-AU52?

SS/DSDS configs stored in vendor partition. So it's depend on your stock FW version.

Hi @Sjll, do you think that this commit will help activating L1 for Xperia 10 II and possible another mark II devices?
Luk added that on Xperia XA2 and enabled widevine L1 for it

We are using stock vendor blobs, so these files are never missing, you could only get L3 level on unlocked status.

I have some questions

1)Will you add suport of Google Camera?
2) Does Google Pay work? and will it work in future? A heard something like that Google want start check Safenet with hardware solutions

Stock ROM doesn't has Level3 and RAW Capture

Gcam is really nice, but as you said, Xperia 10 II doesn't support RAW support, if I have time, I will try to port camera hal from SODP, which support RAW.

1) Read first post, there is the answer
2) If Safetynet pass CTS, will work Google Pay. About the future, if Google decides to check hardware, there is no way to pass CTS, so no Google Pay. The developer of Magisk has a twit about that explaining.

Sorry, GMS is not avaliable in China. You could try to pass Saftynet with some Magisk modules. I don't know much about it.
 

Meloferz

Senior Member
We are using stock vendor blobs, so these files are never missing, you could only get L3 level on unlocked status.
I know that we get L3 for widevine after unlocking bootloader, I just point you with that commit if could help to activate L1 for the Xperia 10 II with LOS, because Luk (Xperia XA2 series maintainer for LOS) could activate L1 for it with bootloader unlocked and using Lineage OS
 

Sjll

Recognized Developer
Jun 4, 2017
527
682
Chongqing
After everyth
I know that we get L3 for widevine after unlocking bootloader, I just point you with that commit if could help to activate L1 for the Xperia 10 II with LOS, because Luk (Xperia XA2 series maintainer for LOS) could activate L1 for it with bootloader unlocked and using Lineage OS


I guess this is because nile platform has L1 after unlocked on Pie on stock. But we only have L3 on stock.
 
  • Like
Reactions: Meloferz

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    well i tried everything..

    - spun up a VM with vagrant and copied over the .sin files, did an unsin but the super one only produced an .img not a .ext4. tried flashing that but it want't happy.
    - so i tried flashtool's sin editor but that complained about this version of sin being too new.
    - then i found some (bad) info in the net about using an *older* version of flashtool for this. of course that didn't work either.

    even though i'm really interested in this (especially since the other lineage ROM has major bugs), i had to give up.
    usin is enough for you to unpack these sin file, you could flash these files unpacked by it. .ext4 is only an example,.

    If you want to go back to stock, you need to reloack your device, then repair it with Xperia Companion.

    You didn't mention it in your description but in the download link it says this is for XQ-AU51 (single SIM). Will it still work on the dual SIM version XQ-AU52?

    SS/DSDS configs stored in vendor partition. So it's depend on your stock FW version.

    Hi @Sjll, do you think that this commit will help activating L1 for Xperia 10 II and possible another mark II devices?
    Luk added that on Xperia XA2 and enabled widevine L1 for it

    We are using stock vendor blobs, so these files are never missing, you could only get L3 level on unlocked status.

    I have some questions

    1)Will you add suport of Google Camera?
    2) Does Google Pay work? and will it work in future? A heard something like that Google want start check Safenet with hardware solutions

    Stock ROM doesn't has Level3 and RAW Capture

    Gcam is really nice, but as you said, Xperia 10 II doesn't support RAW support, if I have time, I will try to port camera hal from SODP, which support RAW.

    1) Read first post, there is the answer
    2) If Safetynet pass CTS, will work Google Pay. About the future, if Google decides to check hardware, there is no way to pass CTS, so no Google Pay. The developer of Magisk has a twit about that explaining.

    Sorry, GMS is not avaliable in China. You could try to pass Saftynet with some Magisk modules. I don't know much about it.
    1
    2okPze5.png

    Code:
    #include <std_disclaimer.h>
    /*
    * Your warranty is now void.
    *
    * I am 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 me for messing up your device, I will laugh at you.
    */
    About LineageOS
    LineageOS is a free, community built, aftermarket firmware distribution of Android 10.x (Q),
    which is designed to increase performance and reliability over stock Android for your device.

    All the source code for LineageOS is available in the LineageOS GitHub repo.
    And if you would like to contribute to LineageOS, please visit our Gerrit Code Review.

    Official LineageOS website : http://lineageos.org
    About LineageOS Legal : http://lineageos.org/legal/

    Important Information
    1. This ROM has nothing related to ODM images! So you don't need to ask/install anything like that, just follow the instructions.
    2. This ROM will never work with any versions of Google Camera (GCam)!
    3. You need to flash Stock Android 10 before flashing this ROM.
    4. For VoLTE, you need to boot into stock firmware and enable it before flashing this ROM!
    5.If you cam from SODP ROMs, you need to go back to official Android 10 firmware, and boot into launcher.

    6.This ROM works fo both dual and single models.

    Downloads Links
    LineageOS 17.1:
    Unofficial-build:
    Link

    Google Applications (optional):
    OpenGapps:
    http://opengapps.org/ (ARM64->Android 10.0->Pico, Nano or Micro)
    Information: Flash the GApps before the first boot. If not, a clean flash is recommended.

    Flashing and updating
    How to flash

    Make sure you upgraded to Official Android 10.0 from Sony
    Unlock bootloader is necessary.
    Download latest platform-tools from google

    1. Install fastbootd drivers, guidance
    2. Download Lineage Recovery: AFH
    3. Put your device into fastboot by volume up key.
    4. Type the following command to flash the recovery:
    Code:
    fastboot flash recovery recovery.img
    5. Enter fastbootd:
    Code:
    fastboot reboot fastboot
    6. Flash LineageOS:
    Code:
    fastboot flash:raw boot boot.img
    fastboot flash dtbo dtbo.img
    fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
    fastboot --disable-verity --disable-verification flash vbmeta_system vbmeta_system.img
    fastboot erase metadata
    fastboot flash system system.img
    fastboot flash product product.img
    7. If you are first time to flash LineageOS, Wipe the old userdata:
    Code:
    fastboot erase userdata

    Gapps:
    After flashed images in fastbootd, choose Enter recovery - Apply update - Apply from ADB, then sideload the gapps package on your PC with adb tool:
    Code:
    adb sideload <PATH OF GAPPS>

    Dolby Atmos:
    Install magisk
    1. Install Q-10__Dolby_Digital_Plus_v.7.3-_MMT-Ex_-20200519 from repey6.
    2. Install Audio_Modification_Library-v4.0 from Magisk repo
    3. Install sepolicy to permissive
    4. Turn off AudioFX and reboot
    Enjoy Dolby! All files I provide a mirror on AFH, you could downlaod from here.

    Never flash oem from SODP!!
    If you flashed oem and meet any issues, I could only say you are a hanhan.

    Root access:
    Flash Magisk in recovery.

    Twrp:
    See this: Link

    Issues and reports

    Report issues only if you are using the ROM kernel
    If an additional mod is installed, make sure it's unrelated, and mention it
    Make sure the issue wasn't discussed earlier in the threads
    Share a log of the error with CatLog for example

    Also thanks to:
    Luk1337
    The LineageOS Team
    The CyanogenMod Team

    XDA:DevDB Information
    Lineage-17.1 for Xperia 10 II, ROM for the Sony Xperia 10 II

    Contributors
    Sjll
    Source Code:

    ROM OS Version: Android 10
    ROM Kernel: Linux 4.x

    Version Information
    Status:
    Stable

    Created 2020-11-26
    Last Updated 2020-11-30
    1
    After everyth
    I know that we get L3 for widevine after unlocking bootloader, I just point you with that commit if could help to activate L1 for the Xperia 10 II with LOS, because Luk (Xperia XA2 series maintainer for LOS) could activate L1 for it with bootloader unlocked and using Lineage OS


    I guess this is because nile platform has L1 after unlocked on Pie on stock. But we only have L3 on stock.