• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[Unofficial] LineageOS 18.1 for D6633 Xperia Z3Dual

Search This thread

Mr.Tom_Tom

Senior Member
Feb 16, 2008
176
221
Munich
Hi Mr.Tom_Tom..!

Thanks for your effort and suggestion. I'm in the middle of the process, and is editing the build.prop, when I found a suspected typo in your last post as well as in your ROM.

In your post and ROM:
Code:
rild.libargs=-d[SPACE]/dev/smd0

In Sony's ROM:
Code:
rild.libargs=-d /dev/smd0

This might not be of any importance. I hasn't tested any changes yet. I just wanted to point it out, before I forget...
Hi, that is a known topic, and here's some background:

Not sure if this is really a perfect solution, would be happy if someone has a better idea...
 

TheShadowOfAGhost20

Senior Member
Mar 8, 2020
51
14
Rasht
Just uploaded a new build, see post #1. From my point of view it contains minor changes only.
will update my phone to the new build ASAP.but i still don't know why screen cast doesn't work.
i have enabled the "wireless display" option but it still doesn't find anything. on youtube i saw videos that users connect their phone to their tv but this feature doesnt work in this rom for me. maybe this is a bug. will you take a look at it?
 

pi r

Member
Sep 22, 2021
19
6
Hi, that is a known topic, and here's some background:

Not sure if this is really a perfect solution, would be happy if someone has a better idea...
Well, well... Things are never what they appear...

However - I have now a working Z3 D6683 with your ROM ! :)
Thank you very much for your advice and guidance Mr.Tom_Tom..!

At first I didn't trust to use the firmware files from Sony's D6683 ROM. When I had that ROM installed, there where no way I could get any sort of data connection. Neither with GSM, WCDMA nor LTE. So I figured I'd better use the files from Sony's D6633 ROM instead. Because that ROM worked beautifully on my device. - WRONG...
After testing with no improvement, I realized that I probably just installed the same files that was already included. So I reverted and put Sony's D6683 files in - as instructed - and BINGO..!

Always do as Mr.Tom_Tom says! - Don't try to think for your self... ;)

For the build.prof file: I basically picked all values form Sony's file, corresponding to the variables pointed out in your previous post. Except:
  • rild.libargs=-d[SPACE]/dev/smd0 (for a reason...)
  • ro.semc.product.model=D6633
(Most of them were equal)
 
  • Like
Reactions: Mr.Tom_Tom

pi r

Member
Sep 22, 2021
19
6
Now I have a question about your ROM:
I have tried to open the hidden service menu by dialing *#*#7378423#*#*, but there is no response.
Is it somehow missing? Is it just me... or is it "by design"?
A verry quick search hinted there should be a "ServiceMenu.apk" in the system, but I haven't found one...
 

TheShadowOfAGhost20

Senior Member
Mar 8, 2020
51
14
Rasht
Now I have a question about your ROM:
I have tried to open the hidden service menu by dialing *#*#7378423#*#*, but there is no response.
Is it somehow missing? Is it just me... or is it "by design"?
A verry quick search hinted there should be a "ServiceMenu.apk" in the system, but I haven't found one...
Service menu is included in sony roms only. LineageOS roms are not based on sony roms same as other mobile manufacturers, it's based on google's stock android roms.
 
  • Like
Reactions: Mr.Tom_Tom

Mr.Tom_Tom

Senior Member
Feb 16, 2008
176
221
Munich
I have tried to open the hidden service menu by dialing *#*#7378423#*#*, but there is no response.
Is it somehow missing? Is it just me... or is it "by design"?
A verry quick search hinted there should be a "ServiceMenu.apk" in the system, but I haven't found one...
This has been removed with cm14 or so, I guess it didn't work on custom roms. There should be hardly any reason why you need it. What are you looking for?
 

pi r

Member
Sep 22, 2021
19
6
This has been removed with cm14 or so, I guess it didn't work on custom roms. There should be hardly any reason why you need it. What are you looking for?
Working bands...
From Z3 D6683:
Screenshot_Z3-Sony-D6683_Configuration.png


... in an attempt to trace the previously lacking connection.



And yes... by "working" device , at the time, I was just referring to a working data connection. That is on the other hand the only issue I have spotted so far. I haven't been using the phone for practical daily use yet. But I have installed, and briefly tested, a bunch of apps without any issues, including Magisk and microG (as mentioned in a previous post here).

Tested working functions so far:
  • Both SIM-cards
  • Phone calls
  • Data connektions, 2G, 3G and 4G
  • Wifi
  • GPS
  • All other sensors give reasonable signals
  • Camera
  • All buttons
  • Power consumption looks good
I don't know about NFC.

Everything seems to work, which is impressive..!
If I find an issue, I will report it ...
Also, coming from Android 7 in my Z5, with no experience of later versions, there are some things for me to discover...

My wet dream would be a D6633/D6683 ROM version with signature spoofing, so that microG can be installed without rooting. But I'm afraid that's a completely different story..?
 
  • Like
Reactions: Mr.Tom_Tom

TheShadowOfAGhost20

Senior Member
Mar 8, 2020
51
14
Rasht
one of the nice features of LineageOS roms was NTFS file system support. don't exactly remember which version of LineageOS rom had this feature, 16 or 17.1. but it's gone now and asks me to format my usb storage. this is one of the changes i've seen in LineageOS 18.1
 

pi r

Member
Sep 22, 2021
19
6
Oh No..! @Mr.Tom_Tom

I'm afraid I have to admit I just abandoned your perfectly working ROM. o_O

The reason was my desire to use microG to unGoogle my phone, and my reluctance to root it with Magisk. And because you have taught me how to modify a ROM to work with dual SIM devices:
I now have a Z3 ROM from "LieageOS for microG" modified to work on my D6683. :giggle:
Thanks to you..! (y)

I used the same "trick" as with your ROM, and in build.prop I added all the parameters from your build.prop, that was missing i the LOS4µG build.prop.

It starts, reads my SIM-card and connects. But I still has to do some more testing...
 
  • Haha
Reactions: Mr.Tom_Tom

pi r

Member
Sep 22, 2021
19
6
.../ We could then think about building for D6683 as well.
Yesterday I thought that sounded nice. This morning - Maybe not..?

Considering my experience from Sony's D6633 vs D6683 ROMs , the D6633 were far better with no noticed issues (very limited testing though...).
That kind of proves that it's possible to tweak your current D6633 ROM to fit D6683 devices as well, don't it..?
 

minethlos

Member
Sep 17, 2013
7
1
Thanks, all, for this thread!

@Mr.Tom_Tom and @pi r , I've been trying to follow your method to install LineageOS for microG on my D6633, but seem to be stuck. Completely wiped clean, rooted, unlocked bootloader (confirmed), running stock 6.0.1 build 23.5.A.1.291 with the June 28 2016 kernel. I can successfully flash the LOS4µG recovery for D6603 via adb, but it just reboots into stock MM as usual. If I boot into recovery with volume down + power button, it goes to TWRP. I've tried flashing recovery multiple times, both the LOS4µG and Mr. Tom_Tom's in this thread, same result.

Any advice would be much appreciated!
 

pi r

Member
Sep 22, 2021
19
6
Thanks, all, for this thread!

@Mr.Tom_Tom and @pi r , I've been trying to follow your method to install LineageOS for microG on my D6633, but seem to be stuck. Completely wiped clean, rooted, unlocked bootloader (confirmed), running stock 6.0.1 build 23.5.A.1.291 with the June 28 2016 kernel. I can successfully flash the LOS4µG recovery for D6603 via adb, but it just reboots into stock MM as usual. If I boot into recovery with volume down + power button, it goes to TWRP. I've tried flashing recovery multiple times, both the LOS4µG and Mr. Tom_Tom's in this thread, same result.

Any advice would be much appreciated!
I don't know if I'm the wright one to answer here, as I don't have a D6633 device...

"I can successfully flash the LOS4µG recovery"
Successfully as: "with no error" - I guess?
But it doesn't actually install - I guess?

I wonder if you have the same issue as I had when flashing recovery for this ROM. All official instructions says to flash the recovery partition:
fastboot flash recovery <recovery_filename>.img
But as mentioned by Mahmaod-Rad in a previous post, I had to flash the recovery image into boot:
fastboot flash boot <recovery_filename>.img
I don't know, but doing this, might also remove the stock ROM? (But who wants the stock ROM anyway..?) Somehow the recovery image remained bootable after installing the main ROM.

(I don't understand how and when you got TWRP installed, but I think that might be "good enough" to install your LOS4µG ROM?)
 

minethlos

Member
Sep 17, 2013
7
1
I don't know if I'm the wright one to answer here, as I don't have a D6633 device...

"I can successfully flash the LOS4µG recovery"
Successfully as: "with no error" - I guess?
But it doesn't actually install - I guess?

I wonder if you have the same issue as I had when flashing recovery for this ROM. All official instructions says to flash the recovery partition:

But as mentioned by Mahmaod-Rad in a previous post, I had to flash the recovery image into boot:

I don't know, but doing this, might also remove the stock ROM? (But who wants the stock ROM anyway..?) Somehow the recovery image remained bootable after installing the main ROM.

(I don't understand how and when you got TWRP installed, but I think that might be "good enough" to install your LOS4µG ROM?)
Correct, no errors on flashing to recovery!

I had flashed TWRP previously to root and unlock the bootloader.

So I just flashed to boot instead of recovery. That worked and I can boot into LOS recovery now. Following Mahmaod-Rad's instructions, I then tried to sideload the LOS4µG rom, but then I run into the same problem zpunout had earlier:
"E3004: This package is for device: z3; this device is Z3dual."

So, I'm clearly missing something! I'm sorry, I may be over my head on this (previous experience is all Samsung and like ten years ago). I had thought it was possible to flash the LOS4µG and then edit build.prop and replace the modem files from stock. I have no doubt that @Mr.Tom_Tom's unofficial would work, but microG is the goal for me. I've de-googled an otherwise stock MM D6603, but for my new Dual D6633, I was hoping to keep this install as clean as possible with LOS4µG.
 

pi r

Member
Sep 22, 2021
19
6
Erhm... LOS4µG is single SIM only with Z3..!

I should have asked before... If you are looking for dual SIM funktion - "This" ROM is your choise. You need to install "Magisk" to get root, and then via Magisk install modules to get "signature spoofing" and microG. I did that on this ROM. It's not strait, but doable...
 

pi r

Member
Sep 22, 2021
19
6
No, I am sorry... I'm to tired, confused and don't remember.
Please forget my previous post.

LOS4µG don't need Magisk. That's the point of using it. But as you noticed it is built for Z3 D6603 devices. Just as zpunout described in the first point in his first post here, we had to first use "flashtool" to flash our D6683 devices with a Sony stock D6633 ROM, to be able to use the ROM in this tread.

You will have to first flash a Sony D6603 ROM, before you can flash LOS4µG recovery and ROM. Then you need to manipulate build.prop, adsp.* and modem.* files.
It's a good idea to extract those files from your stock ROM with adb, or some other tool, if you still have them in your device.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    However - I have now a working Z3 D6683 with your ROM !
    Would be happy to get more feedback if everything is working correctly. We could then think about building for D6683 as well.
    1
    Just uploaded a new build, see post #1. From my point of view it contains minor changes only.
    1
    Hi, that is a known topic, and here's some background:

    Not sure if this is really a perfect solution, would be happy if someone has a better idea...
    Well, well... Things are never what they appear...

    However - I have now a working Z3 D6683 with your ROM ! :)
    Thank you very much for your advice and guidance Mr.Tom_Tom..!

    At first I didn't trust to use the firmware files from Sony's D6683 ROM. When I had that ROM installed, there where no way I could get any sort of data connection. Neither with GSM, WCDMA nor LTE. So I figured I'd better use the files from Sony's D6633 ROM instead. Because that ROM worked beautifully on my device. - WRONG...
    After testing with no improvement, I realized that I probably just installed the same files that was already included. So I reverted and put Sony's D6683 files in - as instructed - and BINGO..!

    Always do as Mr.Tom_Tom says! - Don't try to think for your self... ;)

    For the build.prof file: I basically picked all values form Sony's file, corresponding to the variables pointed out in your previous post. Except:
    • rild.libargs=-d[SPACE]/dev/smd0 (for a reason...)
    • ro.semc.product.model=D6633
    (Most of them were equal)
    1
    Now I have a question about your ROM:
    I have tried to open the hidden service menu by dialing *#*#7378423#*#*, but there is no response.
    Is it somehow missing? Is it just me... or is it "by design"?
    A verry quick search hinted there should be a "ServiceMenu.apk" in the system, but I haven't found one...
    Service menu is included in sony roms only. LineageOS roms are not based on sony roms same as other mobile manufacturers, it's based on google's stock android roms.
    1
    OK. - So by design then. Thanks for info.
  • 3
    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
    2
    However - I have now a working Z3 D6683 with your ROM !
    Would be happy to get more feedback if everything is working correctly. We could then think about building for D6683 as well.
    2
    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.
    2
    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...
    2
    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