yashsingh1/xdaforums huggingface dataset:
[Xperia Z3 Compact Original Android Development] NeoArian:
TWRP 3.3.1 for our z3c out of an Android 9.0 environment!

Changes:

3.3.1-0.4-z3c
* Fixed fastboot boot
* Added bootlogo
* Dropped TWRP App

3.3.1-0.3-z3c
* Fixed encryption when security patch level doesn't match the recovery's
- [url]https://github.com/z3c-pie/twrp_device_sony_z3c/commit/411862532c247aea2c7b48d52aa596b40305e9ea[/url]

3.3.1-0.2-z3c
* Added a script to handle the CPU
-> increased the battery life significant ([url]https://github.com/z3c-pie/twrp_device_sony_z3c/commit/63f864068ad2f17ae2f1202b4edc311d74e2803d[/url])

3.3.1-0.1-z3c
* Fixed time
* Further Clean up's

3.3.1-0-z3c
* Switched from Android 6.0 to Android 9.0 environment
* Completely reworked tree
* Working decryption

The latest build is attached to this post.

Old builds are available here: https://sourceforge.net/projects/ephedraceae/files/z3c/twrp/

Source is available at: https://github.com/z3c-pie/twrp_device_sony_z3c/tree/android-9.0

How to install this build:

Rename the downloaded twrp image to twrp.img

Reboot to fastboot by holding volume up while connecting your device to your computer

Open a terminal and move to the directory with TWRP in it

Type

fastboot flash recovery twrp.img

Boot into TWRP while the device is powered off press the power and volume down button

Feel free to ask questions or give feedback about TWRP here .

Have a nice day!

Additional information about the recovery on this device:
[Xperia Z3 Compact Original Android Development] NeoArian:
Reserved
[Xperia Z3 Compact Original Android Development] Klbgr:
Hi, I can't open your thread in XDA Labs app, I suppose that's the case of many people and that's why there is not much views and comments on this thread.

I didn't tried yet your ROM but it sound great and will try it ASAP.

Also which recovery do you recommend to avoid errors like error 7 (if I remember) ?

Also will you continue to work on RR ?

EDIT : after posting this comment via browser, I can now open this thread in XDA Labs

EDIT 2 : everything is working
[Xperia Z3 Compact Original Android Development] NeoArian:
I use twrp-3.2.3 from here: https://xdaforums.com/z3-compact/development/recovery-twrp-3-2-3-0-aries-t3837192.

I don't know yet about RR. I wanna see first whether we can get Bluetooth and gps working as soon as possible.
[Xperia Z3 Compact Original Android Development] NeoArian:
https://sourceforge.net/projects/ep...age-16.0-20190109-UNOFFICIAL-z3c.zip/download

Another build was uploaded with the latest lineageos updates including the January android security bulletin. On the device side Bluetooth was fixed :)
[Xperia Z3 Compact Original Android Development] CDLion:
Installed without any problems

You did a great job!

Installed without any problems. It seems all functions work fine! :)
[Xperia Z3 Compact Original Android Development] muhibbuddin irsyad:
update

I've been in lineage, whether for the latest version update I have to hard reset or like the ota update
[Xperia Z3 Compact Original Android Development] NeoArian:
Great to hear!

Thanks!

To be honestly I can't follow you. Do you mean that you don't know how to update the build? For this case you have to download manually and flash it in TWRP. There are no wipes needed.
[Xperia Z3 Compact Original Android Development] Murtie:
Hi, thanks for this and how is the battery performance?
[Xperia Z3 Compact Original Android Development] asdf2345:
Any plans for making an LineageOS for microG rom?
[Xperia Z3 Compact Original Android Development] dobosvok:
Thanks for the ROM, I am using it right now, everything is working good except the camera. Can take photos, but video is not working. When I'm switching to video, the app is freezing and stuck. I tried to use the stock camera with magisk, it can't take photos or video neither. Tried manual camera too, it can take photos but no video.
[Xperia Z3 Compact Original Android Development] NeoArian:
Just tested shortly, it seems to be broken, I will add to broken things list. Thanks to notify (?) :)
[Xperia Z3 Compact Original Android Development] frht5382:
I flash the recovery and I delete assers but I can not install this rom every time updater process ended with error 255 .Can you help me?

my log
[Xperia Z3 Compact Original Android Development] frht5382:
I try and I install 20180105 build but I cant install new build why ?

twrp 255 error
[Xperia Z3 Compact Original Android Development] NeoArian:
Are you sure that you use the recovery from here?

https://xdaforums.com/z3-compact/development/recovery-twrp-3-2-3-0-aries-t3837192
[Xperia Z3 Compact Original Android Development] frht5382:
Solved.I dowloaded false file which 632 mb.Now I re download true file and it work thank you
[Xperia Z3 Compact Original Android Development] NeoArian:
The 631mb Rom is for my Xiaomi Mi 6, you have to use the one for z3c
[Xperia Z3 Compact Original Android Development] frht5382:
I installed thank you .How to enable root access? Or magisk work ?
[Xperia Z3 Compact Original Android Development] NeoArian:
Magisk works.
[Xperia Z3 Compact Original Android Development] minixperia:
Ok thanks

I haven't had reboots since I removed AudioFX
[Xperia Z3 Compact Original Android Development] med27:
You mean deletz file audiofx ?
[Xperia Z3 Compact Original Android Development] odiad:
Hi. I also had the problem that, while calling, I could hear the other person in the line, but they couldn't hear me. It was in all calls. Reboot did not help.

It was on latest ROM, clean installed with opengapps, and not rooted.

On android 8 calling works fine, so no hardware problem.

Greetings Odiad
[Xperia Z3 Compact Original Android Development] Andenmoewe:
Hey guys, I don't have this rom but I'm following it's development, just wanna inform you that I also occasionally have the problem you describe during a call, where I can hear the person but the other can not, hanging up and calling again fixes it always. I'm using the latest official 8.0 based CarbonRom, so it is not just this rom alone where it happens
[Xperia Z3 Compact Original Android Development] NeoArian:
Good morning,

Just to let you know, I'm on holidays this week and can't provide help or updates for now.
[Xperia Z3 Compact Original Android Development] pawloland:
I updated system (to 20190407 probably from 20190324) by build in updater menu, but after flashing phone doesn't want to boot anymore. It reaches sony boot logo and stops on that. I tried multiple times to restar, also tried to wipe cache+dalvik and nothing helped. Can sb help me, because I've forgtten to make backup and doesn't want to lose what i have done :fingers-crossed:

Edit1:

I have made clean flash and it seems that the newest update is broken. It stops booting on sony logo.
[Xperia Z3 Compact Original Android Development] NeoArian:
I am sorry, this was a test build but my script automatically uploaded and pushed OTA, o already removed it today. You could have just flashed back the old build without wipes though. (Just for the next time ;) )
[Xperia Z3 Compact Original Android Development] eXecu7or:
Hello,

I'm using the build mentioned in the first post in this thread.

However, as of April 7 I have a notification for an update which is sized at 453MB, but the download fails at start.

Is it a proper update and how can it be applied? Can I remove the notification if that's not the case?

Thank you.
[Xperia Z3 Compact Original Android Development] juniofdm:
Force Close

I am having force close on taking photos.

Using 11/03/2019 version.

I will try 24/03/2019 version for check if problem has solved.
[Xperia Z3 Compact Original Android Development] pawloland:
It occurs since first release of rom, and haven't been fixed since then.
[Xperia Z3 Compact Original Android Development] NeoArian:
Correct, the camera is buggy, but taking photos works fine (wait round about 2 seconds between taking the next one if you use a high resolution).

Good morning everyone!

My holidays started today and I am going on vacation for one week, there definitely won't be a new build within this time, I might answer on some questions here though. When I get back I still have one week holidays and will provide an update again :D

Have a nice day!
[Xperia Z3 Compact Original Android Development] minixperia:
I don't know what is taken from my z3c but it no longer enters into recovery, neither by using the volume keys, nor by the advanced reboot..

The last Time I went into recovery was to restore a backup of the system, so I don't understand why it shouldn't work then ..
[Xperia Z3 Compact Original Android Development] frht5382:
Reflash recovery with adb. [MENTION=4605043]minixperia[/MENTION]
[Xperia Z3 Compact Original Android Development] minixperia:
It's easy to say, too bad my USB port is broken and I can't..

Fortunately I had rooted and I could flash the racovery from android..
[Xperia Z3 Compact Original Android Development] NeoArian:
Good evening, my script accidentally pushed a new OTA again, I wasn't able to test it or take it down since I'm away from home. I will update you tonight when I can test. So if you want to avoid a possible bootloop I would request you to not update yet. Sorry for this!

Btw: the build has a potential camera fix ;)

Edit: Update removed and it's reversed, my script messed my sagit and z3c somehow, I'm rebuilding now and keep you up to date!
[Xperia Z3 Compact Original Android Development] frht5382:
I look forward the camera fix
[Xperia Z3 Compact Original Android Development] NeoArian:
Good evening, i sadly had no success with camera yet i guess.

I can't clean flash right now which could be needed so i can't say for sure that it won't work ;)

But i decided to release an update anyway since i was able to fix the call bug which brought for some users including me to the problem that the other end can't hear us.

Download : https://sourceforge.net/projects/ep...age-16.0-20190423-UNOFFICIAL-z3c.zip/download

https://github.com/z3c-pie/device_s...mmit/d2658b178b4a8b95726768f2712e40ab28f5b0ab This fixed it for me, i would be thankful about any kind of confirmation about calls!

Good night everyone :)
[Xperia Z3 Compact Original Android Development] greenflash:
I have a weird issue. ROM and GAPPS installed successfully. Not using Pixel launcher. Restored my apps and backup from Gdrive and now, while trying to unlock my phone screen (content) appears and goes to sleep immediately. I cannot enter my 4 digit pin and touch to confirm it. It is too fast. But it comes back itself in a few moments and same thing happens immediately. Proximity sensor maybe? Phone works fine in TWRP and not sure if it is one of my apps or sensors.

Any ideas?
[Xperia Z3 Compact Original Android Development] pawloland:
It seems to be an issue previously reported in this threat. It occurs after you set up any kind of screen lock, after first reboot. I though it has been fixed because nobody reported that behaviour since then but as it turns out it hasn't been.
[Xperia Z3 Compact Original Android Development] NeoArian:
I can't test right now, can someone explain this problem in detail to me?
[Xperia Z3 Compact Original Android Development] NeoArian:
Good evening!

Great news, i have been able to make our LED work! (commits are here: https://github.com/z3c-pie/device_sony_msm8974-common/commits/lineage-16.0 )

Download: https://sourceforge.net/projects/ep...age-16.0-20190424-UNOFFICIAL-z3c.zip/download

Build is also pushed as OTA!

Happy flashing and good night!
[Xperia Z3 Compact Original Android Development] frht5382:
I flashed 20190424 but back camera always black, I wiped and reflash but not change.Main camera did not work [MENTION=8746471]NeoArian[/MENTION]
[Xperia Z3 Compact Original Android Development] pawloland:
In my case it doesn't show up in updater (ver. from 11.03.2019), even after using the command "setprop lineage.updater.uri https://raw.githubusercontent.com/ArianK16a/OTA/lineage/z3c.json". How to fix it?
[Xperia Z3 Compact Original Android Development] NeoArian:
Make sure that you don't accidentally include the " at the end so

setprop lineage.updater.uri [url]https://raw.githubusercontent.com/ArianK16a/OTA/lineage/z3c.json[/url]

you can also test if it was set correctly by typing

getprop lineage.updater.uri

Good luck!

I will take a look when I find some time! Thanks for reporting :)
[Xperia Z3 Compact Original Android Development] pawloland:
Is it necessary to type those commands every single time after each restar? They work until the reboot. After rebooting and typing getprop lineage.updater.uri the previous changes are gone. Should it be like that? Is there any file in which I can manually and permanently paste url address for ota so i wouldn't have to retype command every single time?
[Xperia Z3 Compact Original Android Development] NeoArian:
This is normal, the setprop command is just temporary. I set the property by default on recent builds, so you can just update and don't have to set it manually anymore.
[Xperia Z3 Compact Original Android Development] RacingZivi:
[MENTION=8746471]NeoArian[/MENTION] First let me say thank you for this great ROM! :good:

The issue about lock screen security was already mentioned by [MENTION=9792732]stefandoesinger[/MENTION] in posts #102 and #103 I guess. I'll try to describe but might lack some of the correct terms...

If you set any kind of lockscreen security (like PIN or pattern) it works fine until the next restart. After this restart there is a "bootloop" at starting the shell. You can try to enter your pattern, but after a second the shell starts again showing the lock screen. I found no way to break this loop.

To revocer the phone I deleted the following files to reset lockscreen security settings from /data/system:

password.key

pattern.key

locksettings.db

locksettings.db-shm

locksettings.db-wal

My setup to find out what was going on was a full wip and afterwards flashing in this order:

lineage-16.0-20190324-UNOFFICIAL-z3c.zip

open_gapps-arm-9.0-nano-20190404.zip

Magisk-v19.0.zip

I tried to find the files mentioned in post #102 and #103 ( /data/system_de/0/spblob) but on my phone this folder did not exist. Creating it with the mentioned access rights did not make a difference for me.

If I can help in any way regarding this issue please let me know.

btw: With the latest version I can confirm that the back camera only shows black after updating.
[Xperia Z3 Compact Original Android Development] okij:
You could try if the rear camera starts working again after deleting the folder /data/credmgr with a root file explorer and then rebooting. By doing this, the credmgr folder with the credmanager files are rebuilt by the system, which can help fixing camera issues.
[Xperia Z3 Compact Original Android Development] pawloland:
Sounds great, doesn't work. I deleted folder and after reboot it wasn't rebuilt nor camera was fixed.
[Xperia Z3 Compact Original Android Development] dmksp:
Autorotation and control in games not working, tests shows that g-sensor "not available"

On stock rom and lineage 14.1 or omnirom oreo it's working ok
[Xperia Z3 Compact Original Android Development] okij:
OK, thanks for trying it.

Hopefully the information that the credmgr folder isn't rebuilt is useful for [MENTION=8746471]NeoArian[/MENTION], because normally it gets rebuilt at reboot when the folder gets deleted. It suggests that something of the credmanager / DRM / camera driver isn't working as it should.

Deleting the credmgr folder e.g. is useful when you restore a full TWRP backup from one Z3c to another Z3c. The main camera only shows a black picture when you do this, but it gets fixed after deleting and rebuilding the credmgr folder.
[Xperia Z3 Compact Original Android Development] pawloland:
Can you specify in which app you had problems and in which you were diagnosing sensor?
[Xperia Z3 Compact Original Android Development] dmksp:
In all apps and whole system (launcher, settings etc.)

And Sensor Test from PlayMarket for diagnosis
[Xperia Z3 Compact Original Android Development] pawloland:
Probably your phone is faulty. I don't have any issues.

I am super happy about it but as i was using phone i saw that LED constantly glows in red after battery level drops bellow 25% (depends on settings). It can be very misleading while phone is plugged into a charger by usb (i have faulty usb) and stops charging because of broken port. When that happens i can't depend on LED to check if phone is charging, because it glows in red while battery is charging and also when it is discharging. I would like to see LED flashing every 5/10 seconds while discharging, when battery level drops bellow 15%/10% and those % should be independent from settings (the battery level which now triggers LED to glow in red is beeing set in settings/battery/battery saver and performance/automatic power saver). As a result, whenever i won't use phone it will turn battery saver on when battery level drops to for example 25% (settings) and LED will flash red every 5/10 seconds after battery level will drop to 10%/15%. The perfect scenario would be when user will have optiont to set all of those numbers by himself.

I know that probably it isn't easy to make such complex change, but i am really looking forward to at least change LED behaviour while discharging to flash every X seconds because it is difficult to differentiate when phone is charging and when it isn't. Thank in advanced:fingers-crossed:
[Xperia Z3 Compact Original Android Development] john_matrix:
Thanks for you work NeoArian!

I have installed your ROM without any issues only the back camera is not working.

Also, have you the possibility to add this line in the updater-script:

getprop("ro.build.product") == "aries"

As my Z3C was recognized with this codename (maybe other have this issue too?)

Thanks in advance!
[Xperia Z3 Compact Original Android Development] NeoArian:
You should use my recovery to avoid this, it is linked some posts ago here, I can link it later in the main post.

I'm sorry for the camera, I have fixed the black screen already and will push an update later.

Have a nice day!

I will see what I can do
[Xperia Z3 Compact Original Android Development] john_matrix:
Good idea, I think it will be better for all of us ;)

Don't worry for the camera, the ROM works flawlessly at the moment and it is very nice to have Android 9 on our Z3C ;)

Have a nice day too!
[Xperia Z3 Compact Original Android Development] stefandoesinger:
I wiped my data after updating to 20190424 because for some reason the device came up with a black lock screen after booting. After the data wipe I had no problems setting up the lock pin, and after rebooting I can unlock the device OK. So the issue I wrote about in #102 and #103 seems to be fixed.

I don't know why the update required a wipe though. I don't care enough to downgrade, setup and upgrade again. If someone considers it important I might give it a shot on the weekend.

And yay, great job on the LED NeoArian!
[Xperia Z3 Compact Original Android Development] stefandoesinger:
I'm having trouble with anything webview and chrome related since the update and re-setup of my data. Chrome hangs or crahes, and so does anything else that uses a WebView.

I tried uninstalling chrome, switching between AOSP WebView, Google System WebView and, wiping data, etc. After wiping chrome data and rebooting things usually work for some time, but after the next reboot they are broken again.

I haven't seen anything obvious in adb logcat. There are crash dumps, but they don't seem to point to a clear cause.
[Xperia Z3 Compact Original Android Development] NeoArian:
Good Evening!

I have compiled a new TWRP 3.3.0 build for our z3c!

Device side i have added the FOTAKernel partition as recovery, so we can

flash new twrp builds through twrp

. I have also enabled

reboot to recovery

under reboot section.

Source is available at: https://github.com/z3c-pie/twrp_device_sony_z3c

How to install this build:

* Reboot to fastboot by holding volume up while connecting your device to your computer

* Open a terminal and move to the directory with TWRP in it

* Type

fastboot flash FOTAKernel twrp-3.3.0-z3c-arian.img

* Boot into TWRP while the device is powered off press the power and volume down button

Feel free to ask questions or give feedback about TWRP here ;).

Have a nice day!
[Xperia Z3 Compact Original Android Development] LaRazón:
Hi, I'm about to try this ROM and I've got a few questions (bear with me).

...*cleared*...

edit. Well, I went ahead and installed the new twrp , the latest version of this rom + open gapps mini. Everything seems to be OK thus far. Thank you! :good:

Thought I flashed the latest Magisk as well, but no signs of that. Oh well, don't even need that now, actually.
[Xperia Z3 Compact Original Android Development] pawloland:
I have just realized that there is no app for fm radio. Is it because lineageOS 16 in general doesn't have one? Also in last build audio fx which causes random shutdowns is still installed.
[Xperia Z3 Compact Original Android Development] stefandoesinger:
I noticed this a few weeks ago too, but could not find *any* generic FM Radio app. They are all tied to specific phones / manufacturers. I suspect that there isn't a standardized API for FM drivers, although this is just an unverified guess.

Sony's official Android 6 update already lost the FM app. Our best bet would be to grab the FM app from Sony's Android 5 firmware, but getting the binary blob running may prove impossible, especially if it depends on a binary blob kernel module too.
[Xperia Z3 Compact Original Android Development] NeoArian:
Good evening,

I have just experienced with FM Radio yesterday and had partially success. The FM radio spams the log with error ( I will look into them this weekend) but after some minutes they disappear and FMRadio works. So there is a progress and it's on my TO-DO list ;)

Have a nice day!
[Xperia Z3 Compact Original Android Development] pawloland:
Really? I can bet that i have been using radio on official android 6.
[Xperia Z3 Compact Original Android Development] greenflash:
Good morning,

I have flashed following version through TWRP (with the latest build you have shared a few days ago)

Now my phone's built-in updater shows an update for LineageOS 16.0

I have tried to install this update, but my phone boots into TWRP and nothing happens. From the name I have a feeling that this update is the same version I'm using, right?

And I have experienced same problem like others, where camera does not function (black screen - even with 3rd party apps)

Plus I'm scared to set security pin or a pattern. Because I have had problems with boot loop after first restart (after setting a security pin)

Any ideas about these?
[Xperia Z3 Compact Original Android Development] pawloland:
1. Flash twrp from this post https://xdaforums.com/showpost.php?p=79438068&postcount=220

1,5. Yes, updater tells you to download/install update, even though it already has latest version installed (known behaviour).

2. Camera bug is known and OP is aware of that.

3. Don't set any lockscreen password until somebody tells that it is safe to do.
[Xperia Z3 Compact Original Android Development] subinsg:
Good morning,

I tired to flash the newest version of twrp provided by [MENTION=8746471]NeoArian[/MENTION] .....tried it with fastboot and also with twrp app....both shows successful flashing process but I can't seem to boot into recovery mode....any ideas about these?

PS am on carbon ROM.
[Xperia Z3 Compact Original Android Development] NeoArian:
Make sure to flash it to FOTAKernel partition, means

fastboot flash FOTAKernel twrp.img

Then you can boot into it from powered off by pressing volume down + power. From system you should also be able to boot this.

Good luck!
[Xperia Z3 Compact Original Android Development] pawloland:
Do i do it wrong by flashing it by "fastboot flash recovery recovery.img"? After that i can enter previously flashed twrp, so what are the downsides?
[Xperia Z3 Compact Original Android Development] NeoArian:
This is wrong because on z3c we use the FOTAKernel partition as is said
[Xperia Z3 Compact Original Android Development] pawloland:
So do i have to "unflash" twrp from recovery partition (if i have to, then how) and flash it in FOTAkernel one?