yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Compact Android Development] faol92:
Can you have a try? I can't at the moment cause i have my z5c on assitance.

It will be so surprising if it will work, won't it?
[Xperia Z5 Compact Android Development] Berni-0815:
It's not working! (see attached screenshots)
[Xperia Z5 Compact Android Development] alandw:
Hi Berni

Thanks for building this ROM, I have been using the stock ROM until recently and decided to load a custom ROM (mainly due to the lack of support from Sony), your ROM appears to be very stable and everything is working except "MHL" (HDMI out) the phone just reboots whenever you plug the MHL cable in.

I installed catlog and found multiple entry's of this line whenever I plugged the MHL cable in.

After doing a bit of research I came across these posts in the HTC 10 forum (seems they were having the same problem)

https://xdaforums.com/showpost.php?p=72727433&postcount=1363

https://xdaforums.com/showpost.php?p=72765500&postcount=1374

I then entered these two commands via Termux and after that MHL worked perfectly, problem is the changes are not persistent and revert back to the old values after a reboot, would it be possible to add this MHL fix to your build?
[Xperia Z5 Compact Android Development] Berni-0815:
I'll have a look at it... :good:
[Xperia Z5 Compact Android Development] Berni-0815:
Here you can download a test version, where I changed the named file to this:

-rw-r--r-- 1 system graphics 4096 1971-03-02 01:10 res_info

A simple change has no effect, a change of the init-files too. So I had to build a new version.

Please let me know if it's working... :fingers-crossed:
[Xperia Z5 Compact Android Development] alandw:
Hi Berni

Yes it is working perfectly! thank you :svetius:
[Xperia Z5 Compact Android Development] TrulloF:
Hallelujah! I can confirm that MHL works with the new build (but I only tested video with my PC monitor, not audio). Anyway, everything works now on this phone like stock. Even the picture quality is okay (I'm using Snap Camera with HAL1, so you have access to the full resolution in all aspect ratios (16:9 and 4:3)).

Great work, keeping this nice device alive. Thanks Berni.
[Xperia Z5 Compact Android Development] Berni-0815:
Ok. I'll bake it into the next "release"-Version. Please keep in mind, that this version is a test one. It's a little bit different compared to my releases... ;) (...maybe audio is not good... There have been some changes and I've to include these things asap...) :angel:
[Xperia Z5 Compact Android Development] eng3:
Now that I think of it, I think it would be best to try to align the monthly update right after the monthly security update. That way we should always be running the most "secure" version. Certainly it would not be preferred to align to just prior to the monthly update, then we would always be behind by a month.

Hopefully the release dates of the monthly security patch is somewhat predictable.
[Xperia Z5 Compact Android Development] Berni-0815:
That's what I'm planning! ;)
[Xperia Z5 Compact Android Development] alandw:
Thank you for this Berni.

---------- Post added at 05:50 PM ---------- Previous post was at 05:43 PM ----------

If you don't mind me asking what is HAL1? and where could I get it? the stock Google Camera app shows up as 23Mp all other Camera Apps I have tested only show 8Mp, although I can't really see the difference in picture quality between 8 and 23Mp on the stock Google Camera anyway.
[Xperia Z5 Compact Android Development] TrulloF:
Some camera apps let you choose which API they use e. g. Camera2, or HAL. Snap Camera HD from Marginz (available here in XDA forum) is one which works pretty well for me (although it seems to run hot). OpenCamera only gives me full resolution with 16:9 aspect ratio.

Speaking of cameras, I have to say, that my old Nokias (N86 8mp and 808 PureView definitely do better in certain/most situations esp. the 808, than compared to my Xperias (Z1 and Z5 Compact even on Stock ROMs)). Too bad that Symbian is a dead eco system now.
[Xperia Z5 Compact Android Development] Berni-0815:
Basically HAL means Hardware Abstraction Layer and is a layer between kernel/software and hardware. As a developer you don't have to take care about hardware access; that does the HAL for you.

So, a given kernel/software can work on different basic hardware "simply" by changing the HAL.
[Xperia Z5 Compact Android Development] alandw:
Thanks for the explanation guys, I tried snap camera and set it to HAL1 it does get very hot, not really sure the picture quality is any better though.
[Xperia Z5 Compact Android Development] Berni-0815:
Compared to what? Stock? LineageOS's camera? Open Camera?
[Xperia Z5 Compact Android Development] alandw:
I mean I can't really see a difference between snap camera API2 8 Mp and force HAL 23Mp.
[Xperia Z5 Compact Android Development] Berni-0815:
Me too... ;)
[Xperia Z5 Compact Android Development] TrulloF:
Ok, I have to admit, that OpenCamera produces really good pictures. The exposure settings are usually better, than any other camera I tried (Camera FV-5, SnapCamera, LOS Camera) and color reproduction is also very good. The only annoying thing is the 16:9 aspect ratio in 8 MP, which is not what I'm using normally, but hey, maybe I get used to it :)
[Xperia Z5 Compact Android Development] eng3:
I also primarily use open camera. Though it can be sluggish to start.

The 4K video becomes choppy. I think because it actually records full 4K resolution and the phone overheats.
[Xperia Z5 Compact Android Development] rommo_911:
Thanks Bernie !

One silly question, for updating to the latest build do I need to clean install ? Or does install the latest build format the system ? So I need flash latest gapps ?

Or I just go to recovery and flash it ?

Thanks
[Xperia Z5 Compact Android Development] Alikzus:
I cannot get this build (2018-02-19) nor the "official" one to work (2018-02-16 and 2018-02-23). LOS crashes during the setup screen (crash as in that the screen gets completely or partial black); where it crashes depends on how fast or slow I am through the process.

I used Flashtool to upgrade from my rooted stock Marshmallow to Nougat (32.4.A.1.54 R5E Combined NOBA) before the clean flash of LineageOS.

I have tried with both TWRP 3.1.1 and 3.2.1, with and without (Open)GApps [arm64, 7.1, pico, 2018-03-01] (flashed right after the system itself). I have also tried with and without Magisk and Titanium Backup.

Any ideas? I would prefer not to run the stock ROM due to Sony's lack of updates (stock v7.1.1 does not crash).

Addendum 1: I have previously used "DRM Restore" and manually renamed the Widevine files. If that is not restored, may that be the cause?

Addendum 2: I have confirmed that the Widevine files are restored.

Addendum 3: CarbonROM hangs as well, so this is not entirely related to Lineage.
[Xperia Z5 Compact Android Development] joska59:
I'm not Berni, but if you've installed a LOS, go to recovery and flash it. That's, how I did it.

Best regards, Joska
[Xperia Z5 Compact Android Development] Berni-0815:
Is your bootloader still open?
[Xperia Z5 Compact Android Development] Alikzus:
Yes. I meant the DRM fix to fool the system. I have never restored the TA partition from my backup.
[Xperia Z5 Compact Android Development] meistr91:
Its not because of symbian software i think. Nokia phone always were using Carl Zeiss camere hardware, which is very impressive.

Edit [MENTION=7749536]Berni-0815[/MENTION] any news about LOS 15 for z5 compact?:o
[Xperia Z5 Compact Android Development] Berni-0815:
I'm not sure, but I think it has something to do with a working (actual) N system before.
[Xperia Z5 Compact Android Development] Berni-0815:
No... :confused:

I'm building it from time to time but it doesn't boot at all (loop at bootanimation). But (:good:) I get it built without deleting/commenting important things in the source code! :fingers-crossed:

As far as I know, the problem is related to the HAL's and that's a world I'm not very familiar with... :eek:
[Xperia Z5 Compact Android Development] Alikzus:
Could you please elaborate?
[Xperia Z5 Compact Android Development] Berni-0815:
No, sorry.

You wrote that you can't get LOS 14.1 to boot. And I think, it has something to do with a working (actual) N system before flashing LOS 14.1. But I'm not sure

That's all that I know.
[Xperia Z5 Compact Android Development] Alikzus:
No, I can get it to boot but the UI crash or freeze about 30-60 seconds after it has started (or something in that ballpark), e.g. if I linger on the SIM PIN input screen.

I have tried to flash LOS 14.1 directly after Flashtool and recovery flash and also after a first boot of the stock ROM (with stock kernel and GreenKernel), but always a clean flash (wiped cache, system and data).

Previously I have seen similar behavior due to GApps (crash/freeze during the Welcome setup), but that is ruled out now since I got the same behavior without OpenGApps.
[Xperia Z5 Compact Android Development] Berni-0815:
Ok, my fault! Now I understand. But, I'm sorry, I can't help you with that... :angel:
[Xperia Z5 Compact Android Development] Alikzus:
Well, thank you for your time then. :)

If someone recognize this problem and has a solution, please let me know. I will continue to run stock, for a while because I have exhausted my ideas, and dream about a more lean ROM. :P
[Xperia Z5 Compact Android Development] trax7:
There's a few things you could do:

1. Try older builds, if it works that means something changed in it and you can give feedback to fix it. The more you try, the more information we will have and the faster a possible fix would come.

2. Grab logs! Does the red light on the phone blink when rebooting? Grab logcat/kernel logs so the devs can see what the issue is. Post them on the main LOS thread with detailed info about your situation and experience.

3. Other people are not having this problem (afaik)... Try a different Sony firmware, a generic version, for example Generic UK, I guarantee that one works because I'm on it rn. There might be small firmware/baseband changes that cause a conflict in the kernel. That is veeeery unlikely though.

4. Your download of LineageOS may be corrupt..? Download again and use the MD5 file with it to be sure if you arent using it now. The fact that stock works and LOS does not, just for you, is interesting...
[Xperia Z5 Compact Android Development] Alikzus:
I won't probably have time for another week or so but...

I will try even older builds and post in the official LOS thread.

Don't know about the LED, but I can download the dmesg. I have tried with logcat but I guess that only works if I can enable adb on a working system?

I have tried the Customized AU FTF available via this forum as well (although that is one release older). No success with that one though.

I doubt that four different downloads should be corrupt but I will not take that for granted and verify the next time.

It is strange. Usually I have no problems installing CM/LOS. :-/
[Xperia Z5 Compact Android Development] eng3:
It seems the safest course of action would be to flash stock on using the latest sony release since that should definitely give you a working system. Then flash the custom ROM
[Xperia Z5 Compact Android Development] torben5247:
I have been running los on z5 compact earlier.

I am currently on stock, but i would like to try the new versions.

But after initial boot up the lineage os freezes, just the way you describe.

This is what i have done:

flashing stock .154 using flashtool.

Installed twrp using adb fastboot commands.

Boot into twrp, wiped data,system, dalvik/cahce, cache.

Installed 20180304 and open gapps pico.

The phone boots fine, but freezes.

Any help would be much appreciated

edit: i just tried without flashing gapps, phone freezes and the screen goes black, only the status bar is visible.
[Xperia Z5 Compact Android Development] Gewiz:
here: https://download.lineageos.org/suzuran

however this is the offical one, instead of berni's...
[Xperia Z5 Compact Android Development] torben5247:
Gewiz are rigt, it is the official one i am using. But i asked in Bernies thread because i saw the similar problem in this thread... Sorry.
[Xperia Z5 Compact Android Development] torben5247:
edit: issue gone when i remove my sd card!!
[Xperia Z5 Compact Android Development] Berni-0815:
With less features!! Sorry, but I can't say this often enough! (See 1st page for differences!)

I've sent them my changes but unfortunately only one is merged into "official" (brightness adjustment). All others are abandoned...

And that's the one and only reason for building my own version.... :angel:

Why should I set up a computer only for building rom's if this is not needful? :p
[Xperia Z5 Compact Android Development] Berni-0815:
Weird! :confused:
[Xperia Z5 Compact Android Development] TrulloF:
Not really, Android stores app settings there too. Look for android/data folder on your external SD. You'll find a lot of folders which correspond to system apps too. If you wiped your internal SD before flashing, you should at least delete the mentioned folder too, to have a fresh start. Just my 2 cents.
[Xperia Z5 Compact Android Development] Berni-0815:
Yes, this could be the reason! Tnx!!
[Xperia Z5 Compact Android Development] eng3:
Do you have any other new features in development?
[Xperia Z5 Compact Android Development] Berni-0815:
At this point: No
[Xperia Z5 Compact Android Development] Berni-0815:
Actually no! Sorry...
[Xperia Z5 Compact Android Development] Silgrond:
Battery life

I have upgraded my now dead z3 compact to a used z5 compact in the recent weeks. While my battery life was okay on .32A (around 1 day), I read that it used to be better, so I decided to flash a custom rom in hopes of better battery life.

Sadly I am getting pretty bad battery on the Feb 19 build (the first one I have installed), lasting around only for 6 hours. Seems like the mobile network is the culprit. I've also found that if I am connected to a wifi network, the mobile network constantly drops me off in around every 5-10 secs. Outside the 4G is working with no problems.

Please see my attached (translated) picture of the battery life.
[Xperia Z5 Compact Android Development] Berni-0815:
That's really bad. I haven't seen this before. Can anyone confirm this? My device lives about three days...
[Xperia Z5 Compact Android Development] Berni-0815:
The file mixer_paths.xml has different settings. Seen this too late... I'll have a look at which points they differ...
[Xperia Z5 Compact Android Development] Silgrond:
Is there any way I could send you logs or something? Btw, I had a similar issue with the same Japanese SIM card on my z3 compact with the network dropping me off, but I can't remember how I solved the issue, probably flashed a different rom... :/
[Xperia Z5 Compact Android Development] echo124:
Thanks for your work! :)

Thanks for mms/data, very good!! :)
[Xperia Z5 Compact Android Development] Silgrond:
Someone had a simillar issue on the 'Official' Lineage OS thread:

https://xdaforums.com/showpost.php?p=75488319&postcount=1785

Ah yeah, I remember how I solved it on my z3c: turned off 4g/LTE connectivity, forced 3G
[Xperia Z5 Compact Android Development] Berni-0815:
Yes:

1.Reboot device

2.adb root

3.adb shell dmesg >dmesg

4.adb shell logcat >logcat

And the pm me these two files (better zip'ped...)
[Xperia Z5 Compact Android Development] echo124:
[MENTION=7749536]Berni-0815[/MENTION] screencast work? Cant detect my smart screen. :)
[Xperia Z5 Compact Android Development] Berni-0815:
Don't know what it is, don't miss it; don't know... :D
[Xperia Z5 Compact Android Development] Berni-0815:
New version; see 1st post...
[Xperia Z5 Compact Android Development] oneofthekaramosowbrothers:
Berni, will you go for LOS 15 any time?
[Xperia Z5 Compact Android Development] eng3:
I was just thinking, I've had this device two years and It is only just recently that I've gain back the functionality I had in my last phone (stable, root, xposed, etc). Typically after 2-3 yrs, I start thinking about changing phones. I have already noticed lags and sluggishness sometimes. Ofcourse there's still nothing new on the market under 5inch with this set of hardware

---------- Post added at 09:09 AM ---------- Previous post was at 09:02 AM ----------

Agree, if you can just download an app, there is no need to put it in the ROM. Otherwise you would have to update the ROM everytime the app got updated. If one likes more apps, then just install them after flashing. Infact, in a perfect world, you would be able to do everything with apps and would have no need to ever reflash a ROM. I don't even like so much having ROOT in the rom for fear that safety net will detect it. Though I have magisk working fine at the moment.
[Xperia Z5 Compact Android Development] paq1170:
I am on altvolt74 stock rom, for a stock rom it is very okay, but lately my phone heats up considerably when just browsing the Web. I get average five hours sot, when gaming its between 3-4hrs. I am considering switching over to lineage but I have the following questions;

1. Does this rom heats up like on stock?

2. How is battery life?

3. How is the camera, any better alternative?

4. What music player u use or sound mods?

5. Is fingerprint working?

6. Do u use any other mods?

I just waana b sure of what to expect. Thanks
[Xperia Z5 Compact Android Development] Berni-0815:
Here is a list of what I've committed... ;)
[Xperia Z5 Compact Android Development] Berni-0815:
My device is not heating up so much.

I think it's good. My device runs about three days.

Very good! :good: I'm using open camera

I've bought Poweramp

I don't know, I've never tested it.

No
[Xperia Z5 Compact Android Development] RaunoT:
Yes and yes.
[Xperia Z5 Compact Android Development] Berni-0815:
Hmmm, mine is not heating up. Maybe I'm using it in another way? It's only heating up when I'm using it as navi in my car and charging it...
[Xperia Z5 Compact Android Development] igiona:
I'm on the official (basically the same as berni's). My phone does not heat up at all.

On stock it used to burn while browsing XDA. No matter what settings I was using...

Maybe try not to use too high brightness settings, but something around 60%-70% if more is not really required. That's what I do, not for temperature reasons, but more to save battery time.
[Xperia Z5 Compact Android Development] RaunoT:
Mine still SOMETIMES heats up like crazy even when brightness on minimum and I'm just listening to Spotify before bed (maybe something to do with network connection).
[Xperia Z5 Compact Android Development] Root97:
I jumped from 908 to your latest build

And i noticed battery improvements

I'm using twrp 3.1.0 by the way (working: confirmed)

Thanks for keeping our device alive

I'm hoping for Oreo when it's ready ?

---------- Post added at 06:28 PM ---------- Previous post was at 06:10 PM ----------

Does anyone now which file and which line i have to change to lower the stereo speaker sound levels? It's a bit too loud they might get damaged
[Xperia Z5 Compact Android Development] paq1170:
Feedback

Since i installed this rom i can testify that the heat has really reduced and apps launch faster. So far i am on my third hour trying to set up my stuff and now just playing around with the phone, i have lost 50% of battery life. Not bad. But i noticed that i cant do a factory reset & the sound is really loud. Is there no way to theme it? I wish it could, preferably all black.

Great job Berni.
[Xperia Z5 Compact Android Development] leeoniya:
> the sound is really loud

i'm having this issue as well. even the lowest volume is still very loud for ringtone and notifications.

also, other end still often reports hearing self echo when i'm not on bluetooth or speakerphone.
[Xperia Z5 Compact Android Development] gnaz7:
@ "shutdown confirm dialog" (using 11-01-2017):

if "advanced restart" menu is selected, the device does no shutdown (but restart)

maybe this can be easy corrected in a next rev.

thanks for this genial rom
[Xperia Z5 Compact Android Development] Knoose:
Hi Berni!

Tnx for this rom! Do i still retain the full use of twrp recovery. Nnzane mentiones no recovery in his thread.

Kind regards

knoose
[Xperia Z5 Compact Android Development] RaunoT:
Of course you still keep TWRP, same with nzzane build, same with official build, same with any build.
[Xperia Z5 Compact Android Development] Berni-0815:
As I wrote in the initial post: Required for installation: TWRP 3.1.1

Alternatively you can use fastboot and the (not published) *.img-files (boot.img and system.img) of this rom for installing; but I can't say it often enough: Please use TWRP! It also offers you an easy way to backup your whole system in the (unlikely :angel: ) case you want to go back.
[Xperia Z5 Compact Android Development] Berni-0815:
You mean, you press shutdown a few seconds? Or restart?
[Xperia Z5 Compact Android Development] Berni-0815:
The file is named mixer_paths.xml and is stored in /system/etc.

Do you want to lower the volume while playing music? Or what is too loud?

Simply turn the volume down! I can regulate it until zero. There should be a value that is ok for you... ;)
[Xperia Z5 Compact Android Development] Root97:
I mean that the ringtone and notifications and music sound is already too loud even on low levels
[Xperia Z5 Compact Android Development] Berni-0815:
Hmmm, ok. The values for ringtones and notifications can only be adjusted by 7 steps. The lowest step is a little bit too loud, that's right.

Media can be adjusted by 15 steps. This seems to be better.

I'll have a look into it, and, if I find something, I'll try to change it...

But, this could lead into conflicts with some apps, who probably are not able to handle this. I'll see... ;)
[Xperia Z5 Compact Android Development] VBBoston:
Is there a way to enable VoLTE and Wi-Fi calling on Lineage OS on T-Mobile USA?
[Xperia Z5 Compact Android Development] Berni-0815:
We are working on it. Please be patient...
[Xperia Z5 Compact Android Development] glubzor:
Great!
[Xperia Z5 Compact Android Development] echo124:
3/15 buildhas very low brightness
[Xperia Z5 Compact Android Development] trax7:
It's not a bug, it's a feature. LOS team merged a commit to fix the brightness curve and now it should be better suited to night reading and closer to stock values :)
[Xperia Z5 Compact Android Development] echo124:
But it's dim in bright light :)
[Xperia Z5 Compact Android Development] trax7:
If you think there is something wrong you can file a bug report in the official LineageOS bug tracker.
[Xperia Z5 Compact Android Development] echo124:
Oh, but is for berni build
[Xperia Z5 Compact Android Development] rommo_911:
Thanks mate ! Changleog is only after install to see ?
[Xperia Z5 Compact Android Development] Berni-0815:
But I'm using their sources... :cool:
[Xperia Z5 Compact Android Development] Berni-0815:
Changelog is in "about phone/phone status" (see screenshot). Or you can see it in my 1st post...
[Xperia Z5 Compact Android Development] l33boy:
Trying this for 1st time... Clean install, SU, micro Gapps & open camera ...

Hands-free in the car is excellent and the camera quality is nice.

No glitches yet, All good after a few days, thanks Bernie ;)
[Xperia Z5 Compact Android Development] Berni-0815:
I really don't know! Don't tested it because I don't want to loose my data when testing another rom and backing up and restoring data with TWRP.

Does anyone else knows about it?
[Xperia Z5 Compact Android Development] Berni-0815:
Which su? SuperSU is no good idea any more! Please take addonsu-14.1-arm64-signed.zip instead!

Good to hear! :good:
[Xperia Z5 Compact Android Development] l33boy:
"Which su? SuperSU is no good idea any more! Please take addonsu-14.1-arm64-signed.zip instead!"

Yes addonsu is installed ;)

Thanks again
[Xperia Z5 Compact Android Development] Berni-0815:
:good:
[Xperia Z5 Compact Android Development] Oijkn:
[MENTION=7749536]Berni-0815[/MENTION] : Thank you for your great work ! For now, this ROM is running like a charm :)

I tried to look in changelog menu from my device but i don't see any comments, only date... Can you tell me what are the last updates, please ?

Best regards.
[Xperia Z5 Compact Android Development] Berni-0815:
Simply croll down or take a look at my 1st post