[Unofficial] LineageOS 18.1 for D6633 Xperia Z3Dual

Search This thread

Mr.Tom_Tom

Senior Member
Feb 16, 2008
184
240
Munich
lineage_strip_teal-png.5158389

Introduction

This is the unofficial LineageOS 18.1 thread for the Sony Xperia Z3 DUAL D6633. Although Lineage is maintaining a device tree for the D6633 it is currently not supported officially, but this may change in the future.

If you own a Z3 single SIM D6603 go here.
If you own a Z3 Compact D5803 go here.
If you own a Z3 DUAL SIM Hongkong variant D6683 see post#2.

LineageOS 18.1 is an open-source Android distribution based on the Android Open Source Project (AOSP) version 11 (R).

Installation

If you are on stock OS, you need a custom recovery first. You can get the recommended recovery with the download link below.
If you are coming from stock or other ROMs, you need to make a factory reset. You also will need a factory reset if you come from LineageOS 17.1 with encryption enabled.
As always, make sure to backup before installing this ROM.

Detailed installation instructions

Please follow the installation instructions for LineageOS on z3. However, do not use the provided recovery and ROM links for the z3 but use the download links for the z3dual below.

Downloads


Source Code

The source code of LineageOS is available here. If you would like to contribute to LineageOS, please visit out Gerrit Code Review.
  • The z3dual device tree is available here.
  • The kernel is based on V3.4 and source code for this device is available here. The used configuration is lineageos_shinano_leo_defconfig available at arch/arm/configs/lineageos_shinano_leo_defconfig in the kernel source.


Contributors

NeoArian, Mr.Tom_Tom

If you want to donate to support development:
Donate via PayPal to NeoArian
Donate via PayPal to LineageOS
 
Last edited:

Mr.Tom_Tom

Senior Member
Feb 16, 2008
184
240
Munich

What about the D6683?​

Compared to the D6633, the D6683 has a slightly different hardware and never got a .291 firmware update with an updated bootloader.

According to a letter from SONY submitted to the FCC in 2015, D6683 has different power amplifiers for UMTS and LTE. this explains why users which try to just use a D6633 ROM on a D6683 have trouble with LTE, see here for example.

With the support of @pi r I am trying to provide a solution for D6683 devices to run LOS18.1 and I will post that here if we are successful.
 
Last edited:
  • Like
Reactions: Masoud.Ser
lineage_strip_teal-png.5158389

Introduction

LineageOS 18.1 is an open-source Android distribution based on the Android Open Source Project (AOSP) version 11 (R). This is the official LineageOS 18.1 thread for the Sony Xperia Z3 (D6603).

Installation

If you are on stock OS, you need a custom recovery first. You can get the recommended recovery with the download link below.
If you are coming from stock or other ROMs, you need to make a factory reset. You also will need a factory reset if you come from LineageOS 17.1 with encryption enabled.
As always, make sure to backup before installing this ROM.

Detailed installation instructions

Please follow the installation instructions for LineageOS on z3. However, do not use the provided recovery and ROM links for the z3 but use the download links for the z3dual below.

Downloads


Source Code

The source code of LineageOS is available here. If you would like to contribute to LineageOS, please visit out Gerrit Code Review.
  • The z3dual device tree is available here.
  • The kernel is based on V3.4 and source code for this device is available here. The used configuration is lineageos_shinano_leo_defconfig available at arch/arm/configs/lineageos_shinano_leo_defconfig in the kernel source.

  • Initial build with sources available as of 14 July 2021

Contributors

NeoArian, Mr.Tom_Tom

If you want to donate to support development:
Donate via PayPal to NeoArian
Donate via PayPal to LineageOS
seems like the GPS doesn't work, i can't get my location in google maps, however, the location icon appears on status bar.
 

Mahmaod Rad

Member
May 22, 2021
45
9
Redmi Note 10 Pro
Hi i found that sometimes on this rom that enter storage is notthere and i have screen shot about it and i have some logs i think will help
 

Attachments

  • screenshot-2021-07-28-11-01-48-1(1).png
    screenshot-2021-07-28-11-01-48-1(1).png
    413.5 KB · Views: 119
  • bugreport-lineage_z3dual-RQ3A.210705.001-2021-07-28-11-01-48(1).zip
    5.5 MB · Views: 37

zpunout

Senior Member
Aug 26, 2015
324
77
Samsung Galaxy S5
Moto G5 Plus
Thanks for porting Lineage 18.1 to D6633. I'm trying to install this to a D6683 which has had the following already done:
1. Flashed D6633 23.5.A.1.291 stock OS using FlashTool (in the downloaded XperiFirm files, I deleted fwinfo.xml and manually selected D6683 in the FlashTool > Bundles > Create )
2. Got root access with SuperSU with locked bootloader then backed up TA partition to preserve DRM keys.
3. reboot into temporary TWRP (still with locked bootloader) and attempt adb sideload lineage 18.1 D6633
When attempting to adb sideload Lineage 18.1 for the D6633 onto the D6683 device, TWRP returns an error: "E3004: This package is for device: z3dual; this device is ." (see attached screenshot).

The other screenshot of the About Phone screen is for general reference. Despite the phone actually being a D6683, the Model Number shows D6633. Also, to get a temporary TWRP running, the kernel was downgraded from 23.5.A.1.291 to 23.5.A.0.575 despite showing 23.5.A.1.291 in the Build Number. Under Kernel Version, it shows Apr 22 instead of June which supposedly means it is actually running 23.5.A.0.575

A couple of questions: Is it possible for me to get this Lineage 18.1 for D6633 image to work on this D6683 device somehow?
My main question:
Do I have to unlock the bootloader first and install TWRP permanently to the recovery partition? This question is why I'm writing this post here as I will only unlock the bootloader if I have to, assuming Lineage18.1 for D6633 can work on a D6683
 

Attachments

  • D6683runningD6633os.jpg
    D6683runningD6633os.jpg
    2.4 MB · Views: 106
  • D6683withD6633OsTwrpLockedBootloaderAdbSideload.jpg
    D6683withD6633OsTwrpLockedBootloaderAdbSideload.jpg
    1.4 MB · Views: 107
  • Like
Reactions: Mr.Tom_Tom
Thanks for porting Lineage 18.1 to D6633. I'm trying to install this to a D6683 which has had the following already done:
1. Flashed D6633 23.5.A.1.291 stock OS using FlashTool (in the downloaded XperiFirm files, I deleted fwinfo.xml and manually selected D6683 in the FlashTool > Bundles > Create )
2. Got root access with SuperSU with locked bootloader then backed up TA partition to preserve DRM keys.
3. reboot into temporary TWRP (still with locked bootloader) and attempt adb sideload lineage 18.1 D6633
When attempting to adb sideload Lineage 18.1 for the D6633 onto the D6683 device, TWRP returns an error: "E3004: This package is for device: z3dual; this device is ." (see attached screenshot).

The other screenshot of the About Phone screen is for general reference. Despite the phone actually being a D6683, the Model Number shows D6633. Also, to get a temporary TWRP running, the kernel was downgraded from 23.5.A.1.291 to 23.5.A.0.575 despite showing 23.5.A.1.291 in the Build Number. Under Kernel Version, it shows Apr 22 instead of June which supposedly means it is actually running 23.5.A.0.575

A couple of questions: Is it possible for me to get this Lineage 18.1 for D6633 image to work on this D6683 device somehow?
My main question:
Do I have to unlock the bootloader first and install TWRP permanently to the recovery partition? This question is why I'm writing this post here as I will only unlock the bootloader if I have to, assuming Lineage18.1 for D6633 can work on a D6683
as far as i know, you must be on the latest official firmware available for your device, then use lineage recovery, not the twrp.
then you can install this rom. i could install D6603 roms on my dual device so i guess you can install this rom on your device too.
 

zpunout

Senior Member
Aug 26, 2015
324
77
Samsung Galaxy S5
Moto G5 Plus
Thanks TheShadowOfAGhost20 for your help. Got Lineage 18.1 z3dual running with the recovery image you provided.
Worth noting here in case others have an issue: The only hiccup I had with trying to flash and boot into the new Lineage recovery was this error: "fastboot: error: Couldn't parse partition size '0x'"
I tried "fastboot flash:raw boot recovery.img" and was then able to reboot into Lineage custom recovery.
Have now successfully installed Lineage 18.1 D6633 onto a D6683 and will test if the device works normally with LTE bands etc...
 

Mahmaod Rad

Member
May 22, 2021
45
9
Redmi Note 10 Pro
Hi zpunout to flash the rom just flash the recovery on 1st post but not in recovery so type fastboot flash boot
Or in recovery put the recovery.img in internal storage or sdcard and got to install image and go to where you put the file and flash it on boot and then reboot you will see los recovery and go to flash adb and side load and side load it from pc with gapps and magisk root
Don't ues 23 build but ues this one https://github.com/topjohnwu/Magisk/files/6330986/Magisk-v22.1_mod_sony.zip and there you go
 
  • Like
Reactions: pi r and zpunout

Ermann123

Senior Member
Apr 30, 2020
105
17
I installed this rom on my Z3. Both simcards are recognized. But WIFI is not connecting.
I just found out the reason for Wifi not working after switching my guest network back to wpa2 security. Obviously, the ROM or the Z3 Device does not support wpa3 encryption for wifi connections.
Is there at all a possibility to fix this?
 

Mr.Tom_Tom

Senior Member
Feb 16, 2008
184
240
Munich
I just found out the reason for Wifi not working after switching my guest network back to wpa2 security. Obviously, the ROM or the Z3 Device does not support wpa3 encryption for wifi connections.
Is there at all a possibility to fix this?
WPA3 is not supported at the moment, and likely it won't be supportet at all due to lack of radio firmware capabilities. Would be happy to be proven wrong here...
 

hidden.hero

Senior Member
Aug 6, 2020
76
10
Hi zpunout to flash the rom just flash the recovery on 1st post but not in recovery so type fastboot flash boot
Or in recovery put the recovery.img in internal storage or sdcard and got to install image and go to where you put the file and flash it on boot and then reboot you will see los recovery and go to flash adb and side load and side load it from pc with gapps and magisk root
Don't ues 23 build but ues this one https://github.com/topjohnwu/Magisk/files/6330986/Magisk-v22.1_mod_sony.zip and there you go
Sir I tried this file but error occurs while installing. i can't root the phone. can you help me?
 
Sir I tried this file but error occurs while installing. i can't root the phone. can you help me?
extract the apk inside the zip file, rename it to .zip then flash it through recovery, it gives an error, ignore it and click yes then it shows success, you can also install version 23 after the flash, choose direct install option in it, it will update magisk's version
 
  • Like
Reactions: hidden.hero

Top Liked Posts

  • There are no posts matching your filters.
  • 7
    lineage_strip_teal-png.5158389

    Introduction

    This is the unofficial LineageOS 18.1 thread for the Sony Xperia Z3 DUAL D6633. Although Lineage is maintaining a device tree for the D6633 it is currently not supported officially, but this may change in the future.

    If you own a Z3 single SIM D6603 go here.
    If you own a Z3 Compact D5803 go here.
    If you own a Z3 DUAL SIM Hongkong variant D6683 see post#2.

    LineageOS 18.1 is an open-source Android distribution based on the Android Open Source Project (AOSP) version 11 (R).

    Installation

    If you are on stock OS, you need a custom recovery first. You can get the recommended recovery with the download link below.
    If you are coming from stock or other ROMs, you need to make a factory reset. You also will need a factory reset if you come from LineageOS 17.1 with encryption enabled.
    As always, make sure to backup before installing this ROM.

    Detailed installation instructions

    Please follow the installation instructions for LineageOS on z3. However, do not use the provided recovery and ROM links for the z3 but use the download links for the z3dual below.

    Downloads


    Source Code

    The source code of LineageOS is available here. If you would like to contribute to LineageOS, please visit out Gerrit Code Review.
    • The z3dual device tree is available here.
    • The kernel is based on V3.4 and source code for this device is available here. The used configuration is lineageos_shinano_leo_defconfig available at arch/arm/configs/lineageos_shinano_leo_defconfig in the kernel source.


    Contributors

    NeoArian, Mr.Tom_Tom

    If you want to donate to support development:
    Donate via PayPal to NeoArian
    Donate via PayPal to LineageOS
    3
    I want to share an actual build for Z3dual D6633, made with sources from OP and Lineage repo.
    lineage-18.1-20220310-UNOFFICIAL-z3dual
    Changelog: you will find here
    Lineage-recovery can be found in the same directory.
    Make a backup before, if something will go wrong.

    As always - I'm not responsible for any malfunctions. Use at your own risk.

    If you are installing it as update with TWRP - see above - post #82 and change the assert.
    For a fresh install - see post #1

    Enjoy
    3
    Thanks for maintaining the rom and i have a question do you have a telegram to contact me and find another custom rom thet still makes changes to the source code for leo
    ....
    Well, sorry.
    I haven't the time to develop or test things atm.
    And our Leo (Z3dual also) won't get LOS19 - see post #90

    But...

    Good news - LineageOS 18.1 isn't dead, yet
    So, I got a new build for you - lineage-18.1-20221123-UNOFFICIAL-z3dual, changelog 20221116
    3
    Most of the time if i flash any recovery then i get nothing but a black screen!
    So i boot into recovery by: "fastboot boot <recovery.img>".
    this recovery didn't work via this method so i guess something is wrong with it...

    maybe the ROM is the problem
    i used to have a working twrp recovery flashed to my phone when i had a stock-based custom rom (Persian/Pexo ROM) but no recovery works with these lineageOS ROMs if i flash them.
    Sony's devices won't boot via "fastboot boot recovery.img".
    So, you have to flash it.
    You could use the recovery.img to flash it in boot-partition "fastboot flash boot recovery.img".
    Next time you switch on the phone, it starts in recovery.
    From there you can either sideload the whole rom with "adb sideload rom.img"
    or if you have copied the rom.img on sdcard, select install from there.
    This will overwrite the recovery in Boot-partition with the boot.img and the phone will start as normal again in the new rom.
    If you want to have Google stuff, flash it direct after the rom.img - don't start the rom before you did this.

    If this all is finished, shut down to restart to bootlader and flash the recovery "fastboot flash recovery recovery.img".
    See also here:
    https://wiki.lineageos.org/devices/z3/install

    For TWRP - i haven't found any, which is fully working with LOS18.1 on z3dual and can flash the rom.
    The only one we can use atm. is the recovery from LOS18.1

    Hope this will help you...any questions - ask me.