yashsingh1/xdaforums huggingface dataset:
[Xperia Z3 Original Android Development] jimmy123j:
Sorry for bother

Does anyone's magisk work ?

My magisk install and check is pass, but seems not working (used the game Dragalia Lost to verify)

And used EdXposed + RootCloack then pass the Dragalia Lost root detected

btw, does anyone can recommend the magisk 100% work ROM for Z3 ?, I really need the magisk to bypass some apps, Thanks !!
[Xperia Z3 Original Android Development] ronnay ryukay:
Go to post, to download new update...
[Xperia Z3 Original Android Development] AhmedxCR7x:
This rom work with z3 dual or no i check the updater script i dont found d6633????

??
[Xperia Z3 Original Android Development] Itroublve:
My rear camera is always black, front camera works fine. I installed AROMA GAPPS and I tried stock/Open camera both gave me same issue. Any suggestions???
[Xperia Z3 Original Android Development] dhacke:
I can't confirm that on my phone (Build: 20191031). Both cameras are working here.

I use the build-in camera app of this rom. Did you make a dirty flash? Mayby that's the problem.
[Xperia Z3 Original Android Development] Itroublve:
Great news my camera is working after a new clean install, btw I did clean install on first attempt aswell.
[Xperia Z3 Original Android Development] Itroublve:
Thank you guys for all your support but I have one last bug, the mic doesn't work in calls... (Build: 20191031) Could somebody confirm this???

Regards.

Temporary workaround/way to reproduce

So messing around with google assistant I came across a setting called Voice Match/Hotword detection, I disabled it and magically the issue was solved :)
[Xperia Z3 Original Android Development] nikapos:
this also messes fm radio as well..
[Xperia Z3 Original Android Development] NeoArian:
Can someone please confirm that this build works good?

https://sourceforge.net/projects/ep...eage-16.0-20191031-UNOFFICIAL-z3.zip/download

Important to test would be FMRadio.

Thank you!
[Xperia Z3 Original Android Development] Mr.Tom_Tom:
Cve 2019-2215

I did some research on that vulnerability and I am pretty sure that as of today our kernel is not patched yet, at least in the official LineageOS repo and also on NeoArian's repo.

On the other hand I have not seen a proof-of-concept for 3.4 kernel yet, although I have read that it should be vulnarable as well as the newer kernels.

[MENTION=8746471]NeoArian[/MENTION]: Do you think we can implement (just cherrypick?) that patch?
[Xperia Z3 Original Android Development] NeoArian:
Yes, I can implement this. I will Push the commit for review. https://review.lineageos.org/q/project:LineageOS%2Fandroid_kernel_sony_msm8974 Please add code review +1 and verified +1 when you tested it successfully. I will merge it then into the official LineageOS repo. (For official lineage-17.0 builds)

Apart from that: friendly reminder to test FMRadio on the build!!! This is really important because my headphone jack died on my z3c so I can't test it myself.
[Xperia Z3 Original Android Development] rethinkk:
I tested it bro at last build and it worked great.

but I found a bug, when I calling someone and speaking ,earphone sound extremely high and not adjustable.can you make it for this ? thanks for your effort.
[Xperia Z3 Original Android Development] dhacke:
Hopefully it will happen in the near future:) Official LineageOS 17 on my lovely z3 would be awesome!

And btw thanks to you for cherrypick the patch for the kernel Flaw (of course you are right; i meant '2019' not '2015').
[Xperia Z3 Original Android Development] rethinkk:
[MENTION=9542156]dhacke[/MENTION] I used [MENTION=8746471]NeoArian[/MENTION]'s latest build.
[Xperia Z3 Original Android Development] Mr.Tom_Tom:
cve 2019-2215

I picked both UPSTREAM: ANDROID: binder patches and it seems to work well, however I do not really understand how to trigger such a condition so that I could REALLY be sure that this eliminates the potential use-after-free bug. I did a review +1 and do you really want me to vote for a verified +1 too?
[Xperia Z3 Original Android Development] NeoArian:
That's fine. When I find some time I gonna build myself and if it doesn't seem to cause any problem I gonna merge it. Thanks :good:
[Xperia Z3 Original Android Development] dhacke:
[MENTION=8746471]NeoArian[/MENTION]

Hey new sec patch are out. I just look in the gerrit of LineageOS and they already work on that.

So my request: If they are ready can you make a new build with the November 2019 patch (in the near future)?

Thanks in advance.

PS: And i read about commit which fix the kernel flaw in LineageOS 17. Can it be implemented in the lineageOS 16 branch, too?
[Xperia Z3 Original Android Development] NeoArian:
Well instead of wasting your time repeating ETA requests on XDA you could just sync lineage-16.0 yourself and execute the 3 commands to update the build yourself whenever you want. Apart from this I don't know which patch for lineage 17.0 you are talking about. The patch I pushed to Gerrit is pushed to the lineage-16.0 branch and this is obviously for LineageOS 16.
[Xperia Z3 Original Android Development] dhacke:
No problem. I can try it.

Can you give me a link where i can find the needed commands to build it? I know the lineage wiki contains build instructions but for example not for the z3.

And where do i find three commands for updating the build?

Sry if these are noob questions but i never build a custom rom so far on my debian based Linux PC.

It would be my first try.

If your prefer PMs to answer my questions feel free to write me over that way.

Ups my fault then. I thought the fix which you got from [MENTION=242102]MrTom[/MENTION]_Tom was only merged into LineageOS 17.

Nevermind. Ignore that part of my post then:D
[Xperia Z3 Original Android Development] NeoArian:
https://review.lineageos.org/c/LineageOS/lineage_wiki/+/262632

you can clone the wiki and merge this patch locally and start the wiki with jekyll locally on your Computer, then you can navigate to devices and get detailed build instructions to build for Z3.
[Xperia Z3 Original Android Development] dhacke:
First thank you.

But can you give me the exact commands to clone wiki, merging the mentioned patch and start jekyll (by the way i never hear of that so i no idea how i use it).

I guess it's clear for you but i'm lost atm.
[Xperia Z3 Original Android Development] NeoArian:
Well I would recommend you to wait until my patch is merged and just visit the official LineageOS wiki.
[Xperia Z3 Original Android Development] dhacke:
Ok then i will wait.
[Xperia Z3 Original Android Development] dhacke:
[MENTION=8746471]NeoArian[/MENTION]

i couldn't resist as i found the preview of the lineage wiki with z3 build instructions. So atm i try to build my own lineage build but i stuck at the following command:

repo init -u https://github.com/LineageOS/android.git -b lineage-16.0

It always ends with error.GitError: manifest var and then it wants to know who i am.

I already execute suggested the command "git config --global user.email "you@example.com" (with sudo and without) but the error remain.

Can you please help me to fix it?
[Xperia Z3 Original Android Development] NeoArian:
Can you please paste the full error? Also are you sure that all packages listed in the wiki are installed ?
[Xperia Z3 Original Android Development] dhacke:
Almost. I found all libs except this one: lib32ncurses5-dev

So installed the following libraries instead:

- lib32ncurses-dev

- libncurses6

Mayby this is the problem but as far as i read the description in my repo manager it doesn't have anything to do with git. And i already use gnupg for encryption stuff but it would wonder when this is the problem. I already searched a little bit in the internet about the mentioned error and found a website (https://stackoverflow.com/questions...it-with-google-repo-tool-using-local-identity) but i can't try the workaround because i don't have config file which is mentioned there.

That's the output of the terminal:

$ repo init -u https://github.com/LineageOS/android.git -b lineage-16.0

Traceback (most recent call last):

File "/home/max/android/lineage/.repo/repo/main.py", line 530, in <module>

_Main(sys.argv[1:])

File "/home/max/android/lineage/.repo/repo/main.py", line 505, in _Main

result = run()

File "/home/max/android/lineage/.repo/repo/main.py", line 498, in <lambda>

run = lambda: repo._Run(name, gopts, argv) or 0

File "/home/max/android/lineage/.repo/repo/main.py", line 201, in _Run

result = cmd.Execute(copts, cargs)

File "/home/max/android/lineage/.repo/repo/subcmds/init.py", line 456, in Execute

self._ConfigureUser()

File "/home/max/android/lineage/.repo/repo/subcmds/init.py", line 347, in _ConfigureUser

name = self._Prompt('Your Name', mp.UserName)

File "/home/max/android/lineage/.repo/repo/project.py", line 914, in UserName

self._LoadUserIdentity()

File "/home/max/android/lineage/.repo/repo/project.py", line 927, in _LoadUserIdentity

u = self.bare_git.var('GIT_COMMITTER_IDENT')

File "/home/max/android/lineage/.repo/repo/project.py", line 3004, in runner

(self._project.name, name, p.stderr))

error.GitError: manifests var:

*** Bitte geben Sie an, wer Sie sind.

Führen Sie

git config --global user.email "you@example.com"

git config --global user.name "Your Name"

aus, um das als Ihre standardmäßige Identität zu setzen.

Lassen Sie die Option "--global" weg, um die Identität nur

für dieses Repository zu setzen.

fatal: Leerer Name in Identifikation (für <you@example.com>) nicht erlaubt.

UPDATE: I get it. The error is gone. Idk exactly what i make different now but now the terminal says "repo has been initialized in home/max/android/lineage".

Wish me luck that the rest works too.
[Xperia Z3 Original Android Development] NeoArian:
Great that you succeeded. The next steps are really easy. You just need "source build/envsetup.sh" to set the build environment up. "breakfast z3" to prepare and clone all device specific repositories, I have got everything merged for this so far so this command does everything for you. The last one is "brunch z3" which will take a while and start the actual build.
[Xperia Z3 Original Android Development] dhacke:
[MENTION=8746471]NeoArian[/MENTION]

Sry but i must ask you again for help:D

I'm now at the point where make the device specific code and kernel (breakfast z3) but the process with a error at the point "hardware/broadcom/wlan/bcmdhd/config/config-bcm.mk:18".

The full error message is this:

hardware/broadcom/wlan/bcmdhd/config/config-bcm.mk:18: error: _nic.PRODUCTS.[[device/sony/z3/lineage_z3.mk]]: "vendor/sony/shinano-common/shinano-common-vendor.mk" does not exist.

20:04:16 dumpvars failed with: exit status 1

hardware/broadcom/wlan/bcmdhd/config/config-bcm.mk:18: error: _nic.PRODUCTS.[[device/sony/z3/lineage_z3.mk]]: "vendor/sony/shinano-common/shinano-common-vendor.mk" does not exist.

20:04:16 dumpvars failed with: exit status 1

** Don't have a product spec for: 'lineage_z3'

** Do you have the right repo manifest?

Any ideas for fixing this?
[Xperia Z3 Original Android Development] NeoArian:
oops, right. You need the repository with the proprietary files from the stock OS. You can either use the official way and extract it from the device itself with the extract-utils provided in LineageOS or use the "unofficial" repository on GitHub and clone it to vendor/sony. You can find the repository here: https://github.com/TheMuppets/proprietary_vendor_sony
[Xperia Z3 Original Android Development] dhacke:
Thanks for your hint. I make it with the ./extract-files.sh method. Unfortunately the building prozess stops with this error 1.

That's the exact error:

ninja: error: 'vendor/sony/msm8974-common/proprietary/vendor/firmware/a330_pfp.fw', needed by '/home/max/android/lineage/out/target/product/z3/system/vendor/firmware/a330_pfp.fw', missing and no known rule to make it

20:26:45 ninja failed with: exit status 1

I think the error could be related to the ./extract-files.sh method so that it didn't get all the needed information from my device. Do i need the repo now which you mentioned? If yes can tell me the exact commands i need?
[Xperia Z3 Original Android Development] NeoArian:
You are obviously missing the a330_pfp.fw (graphics firmware). You can just clone the repository i linked you to vendor/sony and you are good to go. Make sure to remove your own created vendor/sony first.

To clone it you can add the following line to .repo/local_manifests/roomservice.xml.

<project name="TheMuppets/proprietary_vendor_sony" path="vendor/sony" remote="gitub" />

After doing this you can just do a repo sync and the repository will get cloned and also updated when you repo sync the next time.
[Xperia Z3 Original Android Development] dhacke:
Thx for the answer. Just a little problem in doing:

I don't have a folder ".repo". And no roomservice.xml file as it seems.

Any idea why and how i can fix it?
[Xperia Z3 Original Android Development] dhacke:
As prove:
[Xperia Z3 Original Android Development] NeoArian:
Of course you have this folder, you are just looking in the wrong place. It is in the path where you did the repo init, probably ~/android/lineage as wiki suggests iirc.
[Xperia Z3 Original Android Development] dhacke:
Yes found it and it's now edited (i looked in the fully wrong place first sry).

Nevertheless i'm irritated now because i'm in the ~/android/lineage folder via terminal and it says bash: repo: command not found
[Xperia Z3 Original Android Development] NeoArian:
It seems like you did not install repo correctly. Repeat this step: https://harryyoud.co.uk/lineage-previews/263897/1/devices/z3/build#install-the-repo-command
[Xperia Z3 Original Android Development] dhacke:
[MENTION=8746471]NeoArian[/MENTION]

i made a new try after my odyssee yesterday. Now the cloning of the repo for the sony vendor worked.The breakfast command runs without errors, too. So i was already happy but something seems to be wrong though.

The build process itself fails a few seconds after i ran the 'brunch z3' command. I tried it first without the croot command and once with but the build process fails in both cases. At least the errors differ as far as i could see it in my terminal.

i attach them in this post. Please take a look on them. Thanks in advance.

UPDATE: I fixed my build errors. The problem was that some libs weren't there. I installed them and the rom was build successfully.

I will test it tomorrow.

Many many thx at you for all your help/hints. You are a great dev!

Btw just out of curiosity have you any new infos which you can share regarding Lineage 17 for our z3? For example what's the state there?
[Xperia Z3 Original Android Development] dhacke:
[MENTION=8746471]NeoArian[/MENTION]

I just installed my own compiled build. Seems that everything works.

But i'm a little bit irritated because it still stands on 5.October Security Patch. I thought it should now stands on the 5.November Security Patch because in the lineage gerrit the manifest.xml for November ASB is merged.

So my question: Do i need to merge that and the other changes for the ASB locally in my build environment?

If yes whats are the needed commands?
[Xperia Z3 Original Android Development] ronnay ryukay:
[MENTION=8746471]NeoArian[/MENTION]

All z3 user waiting LineageOS 16.0 Official release, same z3c :)
[Xperia Z3 Original Android Development] NeoArian:
If it is merged you need to sync all your repos. You do this with "repo sync" and them you can compile again with "brunch z3".

Thanks :)

Lineage 17.0 is from device side pretty similar to 16.0 I think. I would love to improve the call stuff but my speaker is broken ¯\_(ツ)_/¯

Maybe any other developer can look into it and experiment. The Gerrit is open for contributions.
[Xperia Z3 Original Android Development] dhacke:
Ok.

Now i'm battle with myself whether i apply the patches locally on my cloned lineage repo.

The thing is only the change 263669 (manifest: Updates for 2019-11 ASB) is verified and Code-reviewed.

So i don't know whether this means that i can apply the other 2019-11 ASB changes without problems.

My fear is that one change break my cloned repo because only the mentioned entry has the verified and code-review label.

Or am i 'over carefully'?

And what means 'RESTRICT AUTOMERGE'?
[Xperia Z3 Original Android Development] NeoArian:
You can apply the patches like this:

source build/envsetup.sh
cd .repo/manifests
git fetch "https://github.com/LineageOS/android" refs/changes/69/263669/1 && git checkout FETCH_HEAD
cd ../../
repo sync --force-sync -q
repopick -t P_asb_2019-11

With this method you are syncing the new repos first and then picking the changes into the repo's which are forked.
[Xperia Z3 Original Android Development] dhacke:
First thx. In the meantime i done some research, too and i found this guide from a xda member, where he explains too how i can apply changes to my local repo:

https://xdaforums.com/chef-central/android/guide-android-rom-development-t2814763

The post is old but as far as i could see it is still a good explanation how manually patching works.

So as i see it your way is more the automated way and the guide describe the non automated way, too.

I will look which method i try.
[Xperia Z3 Original Android Development] dhacke:
Is the lineage camera app vulnerable against CVE-2019-2234?

I just read the according news on golem.de and heise.
[Xperia Z3 Original Android Development] mer5ad:
hello.

guys, i cant install!

i have ERROR!

E: unknow command [log]

updater oricess ended with ERROR: 7

Error installing zip file '/external_sd_lineage-16.0-20191031-UNOFICIAL-z3.zip'

WHY??
[Xperia Z3 Original Android Development] ronnay ryukay:
Use we recommended twrp, you can download on this thread...

Read instruction for happy flashing...
[Xperia Z3 Original Android Development] mer5ad:
At first... my English is not good. SRY bro.

LOOK..

my TWRP is 3.0.2-0. (on 23.5.A.1.291)

I attempted to install twrp-3.3.1-0.4-z3 with POWERSHELL WINDOW on fastboot. It was successful

fastboot flash recovery recovery.img
< waiting for device >
sending 'recovery' (13300 KB)...
OKAY [ 0.421s]
writing 'recovery'...
OKAY [ 0.892s]
finished. total time: 1.321s

but, after reboot phone and back too TWRP, No change! my TWRP version still 3.0.2-0!!!

What to do???
[Xperia Z3 Original Android Development] jmpcarceles:
You must use FOTAkernel option instead of recovery:

fastboot flash FOTAkernel twrp.img

Or something lije this, i can't remember exact command.

Use find option.
[Xperia Z3 Original Android Development] ronnay ryukay:
No flash on recovery partition, use this

fastboot flash FOTAKernel recovery.img
[Xperia Z3 Original Android Development] mer5ad:
LOOK...

fastboot flash FOTAKernel recovery.img
< waiting for device >
sending 'FOTAKernel' (13300 KB)...
OKAY [ 0.423s]
writing 'FOTAKernel'...
OKAY [ 0.888s]
finished. total time: 1.316s

Unsuccessful, again! :(

I can't upgrade TWRP 3.0.2-0 to twrp-3.3.1-0.4!!!

WHY!!! :(

after flash FOTAKernel twrp-3.3.1-0.4-z3.img, still TWRP is 3.0.2-0 version!

i dont know why!!!

can you give visual learning or something? :(

i have Xperia Z3 23.5.A.1.291, bootloader unlock, Rooted Device, TWRP is 3.0.2-0 AND i cant install LineageOS 16.0 :(
[Xperia Z3 Original Android Development] rethinkk:
First you can flash rom s boot image when the phone was fastboot

Second you flash new twrp, and you will see new twrp.

Xperia Z3 cihazımdan Tapatalk kullanılarak gönderildi
[Xperia Z3 Original Android Development] mer5ad:
unsuccessful! :( but, I installed ROM!! :victory: the problem is solved! :fingers-crossed:

The problem was because I used custom ROM! I installed the official rom and Flash twrp-3.3.1-0.4-z3.img.

but i have problem again!!! :rolleyes: my WI-FI is not working!!! :eek: I can't find WI-FI networks in [9] LineageOS 16.0 ROM!!! What should I do?? :confused:

That's a big problem!!!
[Xperia Z3 Original Android Development] gntwo:
Hi guys,

Work with Xperia Z3 D6643?

Thankyou!
[Xperia Z3 Original Android Development] mer5ad:
GUYS, WI-FI is not working!!!!

PLZ HELP!!!
[Xperia Z3 Original Android Development] Zerikwan:
The thing is...

If you come from a custom rom, especially carbon rom, you need to flash boot.img first via fastboot, then you can flash the recommended TWRP.
[Xperia Z3 Original Android Development] mer5ad:
wi-fi is not working! can you help me?
[Xperia Z3 Original Android Development] Zerikwan:
Well, since I'm not a developer, the only solution I could give you is my previous statement.

I try to flash twrp only but failed.

Then I extract the boot.img, flash it to boot partition, flash the twrp to FOTAKernel, flash the rom and... Voila!

No more problem.
[Xperia Z3 Original Android Development] mer5ad:
guys, i installed LineageOS 16.0 for z3. This ROM works great and smooth, but WI-FI does not work! I tried to solve this problem, but The result was not successful!

The steps I took to install the ROM:

1- I flashed Official ROM via Flashtool-0.9.18.6 (D6603_23.5.A.1.291_Customized MEA.ftf)

2- Unlock bootloader.

3- Flashed twrp-3.3.1-0.4-z3. (with fastboot- Powershell)

4- Entering the twrp-3.3.1-0.4 environment.

5- Wipe cache, dalvik cache, data and system. Format data.

6- installed lineage-16.0-20191031-UNOFFICIAL-z3.zip via twrp-3.3.1-0.4.

7- Installed open_gapps-arm-9.0-stock-20191123.zip via twrp-3.3.1-0.4.

8- Installed Magisk-v20.1.zip via twrp-3.3.1-0.4.

7- Wipe cache, dalvik cache.

8- REBOOT phone!

9- Waiting for OS to load...

10- Getting into the OS.

11- Attempting to connect to the Internet via WI-FI... Waiting... I can’t see any network... waiting... waiting... yeah, The WI-FI does not work!!!!

WI-FI is not working!!!!!

WHY???

i installed rom, i like this ROM, but i cant use WI-FI!!!!!
[Xperia Z3 Original Android Development] ronnay ryukay:
Try to following this:

1. Flash latest build with twrp we recommemded

2. Flash opengapps nano

3. Reboot to system

4. Back to twrp

5. Flash magisk for root

6. Reboot to system
[Xperia Z3 Original Android Development] mer5ad:
Failed!

I reinstalled Official ROM D6603_23.5.A.1.291...

I flashed again twrp-3.3.1-0.4-z3...

reinstalled lineage-16.0-20191031-UNOFFICIAL-z3.zip and open_gapps-arm-9.0-nano-20191127.zip...

but, WI-FI still doesn't work!!!

I am frustrated!!! What is the problem really!!!! I have no idea!!!

ROM was installed without problems, but WI-FI... :(

plz help...
[Xperia Z3 Original Android Development] ronnay ryukay:
May be this problem with your hardware...
[Xperia Z3 Original Android Development] mer5ad:
I installed Official ROM and Wi-Fi is okay! just does not work on LineageOS 16.0!!!! :(

i think need a patch for fix... :(
[Xperia Z3 Original Android Development] Arash.account:
From Android 7 and above, some custom ROMs won't allow some users to use Wifi in some counties like Iran and Cuba and etc. On android 7 or 8, you can install an xposed module you can install it and fix the problem:

https://repo.xposed.info/module/android.wifiregionalfix

But in Android 9, this module won't work so you have to install a ROM that doesn't have this problem in the first place (some developers of custom ROM changed the country code in their Roms so you can use the wifi) there's a ROM called Aosp extended in this forum. You can install that. In that rom, you don't have to install anything else. Wifi will work without any issues in these countries.
[Xperia Z3 Original Android Development] mer5ad:
tnx dadash. ♥

I sent you a private message ♥

@ronidianpatisa

bro, read this post.

Please fix the problem...

I live in Iran and i cant use this ROM :(

ROM Need a little editing for iranian People... :(

https://xdaforums.com/showpost.php?p=81058809&postcount=86
[Xperia Z3 Original Android Development] arnhag:
Hard brick?

Installed the rom yesterday, and everything has worked flawlessly. Today I tried logging in to Messenger, and phone immediately jumped to sony logo boot-loop. Turned off with volume up + power, and since then the phone has been completely dead. No reaction to usb or any button presses. Has anyone had similar issues, and are there anyone with good ideas on how to get phone operational again?