yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Compact Android Development] Berni-0815:
Here is the next version (RAR-archive).

Download it, unpack it, copy the two unpacked files to your phone and install it via TWRP. Install OpenGapps, SuperSU, XPosed and/or anything else you want to have.

Try this rom... ;)

For voice call volume, try this:

Download this file (RAR-archive). Unpack it. Open a terminal and go to the directory the unpacked directories (lib, lib64 and acdbdata) are. Do NOT enter the directories itselves!! By entering

ls

you have to see the three directories shown above.

Enter these commands line by line (Linux):

sudo adb push lib /sdcard/lib

Enter your password.

sudo adb push lib64 /sdcard/lib64
sudo adb push acdbdata /sdcard/acdbdata
sudo adb shell
su

Look on your phone's display and grant root access!!

cd /
mount -o remount,rw /system
mv /sdcard/lib /system/vendor
mv /sdcard/lib64 /system/vendor
mv /sdcard/acdbdata /system/etc
exit

Reboot the phone!!

I tested this rom not very much. Camera is working, video not. Voice calls are working; if there is an echo on the other side will be tested this evening...
[Xperia Z5 Compact Android Development] rtimoff:
Hi Bernie, I'm on previous build, and I like it.

What have been changed?

Can I dirty flash over, or do I need to do clean install?

Отправлено с моего E5823 через Tapatalk
[Xperia Z5 Compact Android Development] Berni-0815:
:good:

As I can see, nothing serious. For me as builder of this rom there are a lot of changes, 'cause the repo's at github are in continuous movement. And the people of LineageOS are permanently changing this and that. I.e. there is a new bootanimation...

Maybe "tomorrow" there will be new things; who knows?

You can flash this over, I've done so... ;)
[Xperia Z5 Compact Android Development] acabreram:
Is finger print reader working? Thanks!
[Xperia Z5 Compact Android Development] Berni-0815:
No. Sorry...
[Xperia Z5 Compact Android Development] rtimoff:
You can see what it looks like HDR photo on thus build.

Отправлено с моего E5823 через Tapatalk
[Xperia Z5 Compact Android Development] Raphos:
Hi,

With the two new builds it's impossible for me to boot into recovery. To flash this two builds I have to re install TWRP and KERNEL with Fastboot each time... I'm using TWRP-3.0.0.0-suzuran-v2 with Z5C_AndroPlusKernel_v31.

Which TWRP and KERNEL are you using ?

In the last build, I have problem with root access in Developers Options. It's only possible to choose between disable root access or only ADB.

Did you notice that ?

Can I use the voice call volume trick with your previous build or is it just for the last ? Someone tried with patch ?
[Xperia Z5 Compact Android Development] Berni-0815:
I'm using the same TWRP. I can always boot into TWRP by pressing volume down and power on at same time. No problems...

Yes. At my device "apps and adb" is pre-chosen. I didn't change this!!

This "trick" is for all builds of cm13.

I tried this and the caller volume is higher than before.

The next days I'll build a new rom. I'll see what's have been changed...

But before I can do this I have to collect the repo's at github which have been moved another time... :rolleyes:
[Xperia Z5 Compact Android Development] Raphos:
Ok, this way I can access to TWRP. I was waiting at reboot for the notification light to turn cyan or yellow... Using "recovery", in the advanced reboot menu, simply reboot the phone in system but not in recovery.

Did you try to change the root mode ? As I remember, at the first flash of your last rom, my root mode was "applications only". I've changed mode and after the "applications only" entry disappeared. Normally you can choose 4 modes.
[Xperia Z5 Compact Android Development] Berni-0815:
:good:

That's not working; don't know why. Maybe this is a unique feature of Stock- or AndroPlus-rom?

I know. Another thing, that's not working... :eek:

There are two ways to install a recovery:

fastboot flash recovery <recovery.img>

Including the recovery in the kernel.

The first way you have to press volume down and power on to boot into recovery. The second way you only have to boot and then you can enter recovery by pressing volume up when the led turns yellow. I think, only the second way is accessible for the advanced reboot menu...

No.

I know. I'm actually building a new rom. We'll see if this will be fixed.
[Xperia Z5 Compact Android Development] Raphos:
Hi,

Thank you for your answer.

I flashed first boot.img extracted from the Z5C_AndroPlusKernel_v31.zip and then twrp-3.0.0.0 image by using fastboot like described in the CM13 "how to". Recovery was accessible (and booting) from the advanced reboot menu, the notification light turned cyan or yellow at reboot. I'm sure ;)
[Xperia Z5 Compact Android Development] Berni-0815:
That's the way to install cm13 at first time. All the other times it's not necessary to do this, because recovery remains in "the system".

With wich rom? I can't remember this in any cm13-versions...
[Xperia Z5 Compact Android Development] Raphos:
Yes I know. But the method described in the "how to" to boot into recovery doesn't work anymore. That's why I was flashing the recovery each time !

13.0-20160918-UNOFFICIAL-suzuran
[Xperia Z5 Compact Android Development] Berni-0815:
Since 2016-12-31 cyanogenmod ist "dead". You can't build a rom with these repo's anymore. Almost everything has been moved to lineageos. As I told here, something has been lost or changed or "I don't know" :angel:

That's the reason that some things are working an others not. I'm actually building a new version. I'll see if anything will be better...

That doesn't answer your questions, I know. But I have no other answer for you.
[Xperia Z5 Compact Android Development] Raphos:
You answered my question about how to boot into recovery with the new builds. There are no more questions. I was just talking about the way to boot into before...

I don't understand what is "lost" (I'm not a developer). I thought it was possible developing the new builds with the " original files" from CTXz and improve step by step the ROM.

For example, replace the voice call files which improve the volume into the zip file from CTXz ? And do so with the camera files ?
[Xperia Z5 Compact Android Development] Berni-0815:
Ok, then I misunderstood you. Sorry!

That's exactly what I did. Or, what I was trying to do. Some repo's at github (the pool for the sourcecode) aren't available anymore. They are lost/deleted/made private. And every link to cyanogenmod is dead. (Error 404)

I have to collect other repo's. They are similar to the "original files" from CTXz, but unfortunately not 100% the same.

I tried that but I failed. Don't know why. I ran into a python error and I've no idea how to fix it. So we have to add these files manually...

Oh, the camera is at the latest state. There is no newer version available.

BTW:

My build yesterday has no improvements... :crying:
[Xperia Z5 Compact Android Development] Berni-0815:
Latest version can be downloaded here. All files I mentioned above are included now. That means that caller voice

should

be loud and clear now without installing or changing something... ;)

No other improvements... Sorry. But I'm not familiar enough in android development to fix the known issues. :(

Feel free to try it...
[Xperia Z5 Compact Android Development] punx69:
Nice, to bad that MHL didnt work.
[Xperia Z5 Compact Android Development] Berni-0815:
I'm working on that. As you can see, the code is correct:

.setSelectionGroup(new Layout.SelectionGroup.Builder(4)
.add(getString(R.string.root_access_none), null, ACTION_ROOT_ACCESS_NONE)
.add(getString(R.string.root_access_apps), null, ACTION_ROOT_ACCESS_APPS)
.add(getString(R.string.root_access_adb), null, ACTION_ROOT_ACCESS_ADB)
.add(getString(R.string.root_access_all), null, ACTION_ROOT_ACCESS_ALL)
.select(getRootAccessId())
.build()));

But in the built rom there are only two choices (see attached picture). The original code must be overwritten somewhere.

Does anyone knows, where this could happen? I can't find it... :eek:
[Xperia Z5 Compact Android Development] pitrus-:
Built in root is disabled in official Lineage OS 13/14.1 since a couple of weeks ago. You need to either flash SuperSU or Lineage OS root re-enabler zip or build ROM as debug build instead of user build or set the export WITH_SU=true build flag to build with included root facilities. You can read about this just about anywhere where there's a unofficial Lineage OS build for a phone.

https://www.google.se/amp/www.cyano...ic/how-to-root-lineage-os-14-1-nougat-rom/amp
[Xperia Z5 Compact Android Development] Berni-0815:
Here you can download my latest version of this rom.

Improvements:

Camera: working

Video recording: working

Root access options: working (see attached picture)

Radio is still not working; fingerprint too... :eek:

All other things seems to work. (I tested sensors, gps and wifi)

Microphone volume seems to be a little bit low; Voice call volume should be loud and clear. I will test this tomorrow. Now I'm going to bed... :D

Feel free to try this rom and report errors and things, that are not working, please... ;)
[Xperia Z5 Compact Android Development] nzzane:
To fix the fingerprint, make sure you have setup the device permissions correctly - and the fingerprint config in the rootdir (I believe)
[Xperia Z5 Compact Android Development] CTXz:
Hell yeah, incall mic is working guys !!!!

It may be slightly quiet, but I can fix that. For now that's some decent progress!

Expect next build with calls fixed!
[Xperia Z5 Compact Android Development] addicted1900:
Thanks for your work [MENTION=6584695]CTXz[/MENTION]. You really teasing me to unlock my bootloader :D

Gesendet von meinem Nexus 9 mit Tapatalk
[Xperia Z5 Compact Android Development] clubvybe:
Excellent ROM thanks Bro! One problem I have noticed is that although the phone can connect to wifi, there is no internet connection whatever network I try. Any ideas? So happy that my Z5C is running CM13 :)
[Xperia Z5 Compact Android Development] CTXz:
Hey, that's very odd. Wifi works just fine here
[Xperia Z5 Compact Android Development] clubvybe:
I set the band to 2.4ghz and region to europe. It connects but says no internet.

I rebooted router and disabled other devices and tried to connect to 2 public hotspots - the same.

Perhaps it was due to my low battery warning? (15% left). I was backing up TWRP to PC and that stopped when I got the 15% warning so maybe it disables wifi at low battery too?

Just got the new phone today, rooted, flashed your rom etc.

Will charge it up to 100% and see what happens. I will follow this thread with great interest!

PS: Happy Easter! Top Man! :)
[Xperia Z5 Compact Android Development] CTXz:
New build is out! Links have been updated!

2016/03/24
- Fix In-call Mic
- Add support for the E5803
- Add option to boot into recovery (On purple LED at Sony logo press VOL UP or VOL DOWN to enter recovery)
- Update Thermal manager
- Merge latest AOSP kernel commits
- Sync to newest CM source
[Xperia Z5 Compact Android Development] Sadman Khan:
So this isn't Alpha anymore? :')
[Xperia Z5 Compact Android Development] Marco20:
I guess no, there still to many bugs, like the brightness and bluetooth

Gesendet von meinem E5823
[Xperia Z5 Compact Android Development] Pox4eveR:
It is alpha but not pre-alpha haha
[Xperia Z5 Compact Android Development] CTXz:
ROM Firmware Required: 6.0 Recommended

I know it's easy to overlook but this is in the DevDB information of the OP, if your device didn't come with marshmallow yet I strongly suggest flashing the stock marshmallow via FTF and then installing CM. Chances are the LP modem isn't too well compatible with this ROM
[Xperia Z5 Compact Android Development] clubvybe:
Thanks for the advice, I flashed your latest rom but still have issues with wifi, disconnecting etc. My phone was on LP when I got it and I did flash a MM rom with flashtool before I flashed your previous rom. I will flash the MM ftf again with flashtool and install your latest rom again. It will be worth it as your rom rocks!!!

Perhaps my mistake came from flashing a 'customised' MM from Xperifirm when I got the phone whereas my phone was from EE (the only one on Lollipop out of UK roms on xperifirm). I will flash back to EE LP then upgrade via sony pc companion to MM (it prompted me to do so when i first connected the phone) then install CM13.
[Xperia Z5 Compact Android Development] CTXz:
We've compiled our own TWRP now. It can be found in the CM13 installation guide, however I'll mention it here too.

Special thanks to [MENTION=5864662]moonbutt74[/MENTION] for getting all the configs right on this one

https://www.androidfilehost.com/?fid=24459283995304864

NOTE: Backing up to external SD will break/not work
[Xperia Z5 Compact Android Development] nilezon:
Good job.

Did you notice the new binary blobs published by Sony?
[Xperia Z5 Compact Android Development] :
those are for 5.1 ;)

I also fell for it the first time I read the update XD
[Xperia Z5 Compact Android Development] clubvybe:
I know what I overlooked, with all the excitement in getting a new Z5C today and in a hurry to flash your ROM. I forgot to enable USB debugging and unknown sources before using flashtool - lol! Ah well, flashing stock MM now with both enabled, so should be running the latest and greatest CM13 in an hour or so ;D
[Xperia Z5 Compact Android Development] ewans:
Slightly off topic - have you seen the MM update on EE? No sign for me yet.
[Xperia Z5 Compact Android Development] clubvybe:
No mate, it's the only carrier that hasn't rolled out MM.

Unless you need the wifi calling feature on EE. Perhaps you could flash the customised (debranded) version.

http://www.xperiablog.net/2016/03/12/install-xperia-marshmallow-using-flashtool-and-xperifirm-guide/
[Xperia Z5 Compact Android Development] CTXz:
I've added a guide to disable the thermal manager as the CM one tends to become unstable and isn't ready yet. It's for all of you that experience lag after a few minutes of usage.
[Xperia Z5 Compact Android Development] Meonys:
Where can I find the Thermal Manager? Thanks
[Xperia Z5 Compact Android Development] CTXz:
Check the guides in the OP
[Xperia Z5 Compact Android Development] Berni-0815:
Could you please tell me how? I'm not so familiar in android development and I'm still learning... (a lot)
[Xperia Z5 Compact Android Development] speachy:
This is what I'm seeing with the 2017-02-07 build: (And thanks for doing all of this!)

* Camera works and video seems to work, but switching back and forth causes the camera to crash.

* Audio call volume is good -- if anything, it's too loud -- and volume control does not function.

* Speakerphone volume is rather low, and volume control does not function.

* If I try to enable encryption, the phone reboots and then remains on the lineageos boot screen forever (or at least 5 hours wasn't long enough).

I'll try a bluetooth headset later today.
[Xperia Z5 Compact Android Development] speachy:
An update: Phone calls over bluetooth are completely useless -- great deal of noise/garbage on both ends. The speakerphone volume is actually lower than the "normal" volume. And the other side of a phone call reports hearing a delayed echo of their voice.

So the phone/baseband/audio interface is not quite right yet.
[Xperia Z5 Compact Android Development] nzzane:
In the device.mk there should be a #permissions, and there *should* be fingerprint permissions allowing the device to access the scanner.

If not, then it is just the source code of cm that is broken (Maybe merge some files from sumire, Z5)
[Xperia Z5 Compact Android Development] kaneco_riot:
* The Headphone Jack doesn't alyways work - with my headphones it does, but not as aux input to active speakers. it will just keep playing via internal speakers. (maybe related to impedance?)

* QuickCharge is working (again lol)

* i tried to send a video via whatsapp - a video came out, but it always showed the first frame

thanks for your work berni ! :good:

it is really frustrating: at this point, considering all past versions, every feature has been working.

just not all of them at the same time :(
[Xperia Z5 Compact Android Development] Berni-0815:
Yes, it really is!

That seems to be the reason. I'm having a look at this. But that's java and I know nothing about java... :eek: I'll see...

---------- Post added at 13:41 ---------- Previous post was at 13:28 ----------

@speachy and [MENTION=7374287]kaneco_riot[/MENTION]: Thanks for your replies!

The mean problem for me is to collect the working source code all over the github repositories. I'm not familiar enough with that to create my own pool of source code.

At this point the rom does what I like it to do. In fact, it is a beta release and I think, it will remain a beta...

(And my english isn't good enough to understand everything :angel:; I'm nothing without my dictionary)

So, if anyone could give my some hints, I'll have a look at it.
[Xperia Z5 Compact Android Development] speachy:
Sony's AOSP build instructions include cherry-picking/reverting a small pile of patches "In order for certain functions to work on the hardware in Xperia devices". Perhaps one or more of those are missing? (FWIW, last time I tried to do this, some of these patches didn't apply properly)

Of course, Sony's AOSP builds presume use of Sony's binaries, and I don't know how those interact with the CM/LineageOS codebase. While I'd greatly prefer a CM/LineageOS 13.x build, I need something that works as a phone -- My old Z3C does, but it's literally falling apart (currently held together by packing tape, on its sixth screen, the vibrator and one of the speakers is completely shot.. That model is just too fragile....)
[Xperia Z5 Compact Android Development] Berni-0815:
Sony has released a new version of their blobs. I'm actually building a new rom. (fingers crossed) :D
[Xperia Z5 Compact Android Development] rtimoff:
Why don`t you try to build Nougat?
[Xperia Z5 Compact Android Development] Berni-0815:
Oh, I've built it! Klick

But, as long as sony is not releasing their blobs for nougat, it makes not very much sense for me. It's a little bit like a porsche with a 50hp motor in it... ;)

And, why should I do, what an other is doing? Klack :D
[Xperia Z5 Compact Android Development] kaneco_riot:
Have you ever tried messaging [MENTION=6584695]CTXz[/MENTION] or [MENTION=3037651]zacharias.maladroit[/MENTION] regarding the repos? They should have a local copy i guess. It would be a shame ;)
[Xperia Z5 Compact Android Development] Berni-0815:
No. Why should I? I've built a rom with these repos. This is my post.

My idea is to use the latest repos from lineage, not from cyanogenmod (because they are "dead"). And it seems that some things are not as good as before. But lineage is working on it too, so we can hope.
[Xperia Z5 Compact Android Development] nzzane:
You need to extract the blobs from your device - also with cyanogenmod being dead it has all been merged with LineageOS, the new cyanogenmod
[Xperia Z5 Compact Android Development] Berni-0815:
Are these files not working? :confused:

I know that! But as I saw, there are differences. My first built with cyanogenmod repos works much better than all builts with lineageos repos.
[Xperia Z5 Compact Android Development] CTXz:
https://github.com/Sony-Kitakami
[Xperia Z5 Compact Android Development] flopower1996:
Can you build for our phone again please? I miss you in our community... ?
[Xperia Z5 Compact Android Development] Berni-0815:
I'm sorry, but I know about all that and I'm using this! ;) But I'm using LineageOS- instead of CyanogenMod-repos, as everybody says, they are equal.

But every built rom is in fact a little bit more bad than the one before... So I think, the LineageOS-repos are under development and not becoming really better (for our 13.0)

I.e. my actual build uses a wifi mac address 20:00:00:00:00:00. That's all have been working before. Can't believe that...

---------- Post added at 15:08 ---------- Previous post was at 15:03 ----------

My first built rom is done with the repos, I think, CTXz is using too. So try that. IMHO it works like CTXz's last built rom.
[Xperia Z5 Compact Android Development] CTXz:
I'm sorry but android was killing me mentally. Wether I will get back to the project or not honestly depends on my mood, motivation and time. I won't be wasting my time working on something that I truly don't enjoy anymore. I've stated multiple times that I've gotten sick fixing others code, where I could be writing my very own, more developer friendly and actually docummented projects that I actually enjoy working on.
[Xperia Z5 Compact Android Development] Berni-0815:
I know what you are talking about... ;)
[Xperia Z5 Compact Android Development] nzzane:
From my knowledge they are missing some files (nothing to make it not work however) but if they work for you that's great.

Also yes, the Lineage repo is a pain a lot of it doesn't work with the Z5 series, especially the kernel. But slowly they are working on it
[Xperia Z5 Compact Android Development] Berni-0815:
They are really working, yes. I'm also trying the sony-, qcom- and nxp-repos from SuperBenevolent, but they doesn't make things so much better...

That's the reason, why I'm not using their kernel stuff! ;)

I saw it. My rom built today is working again. But as there are no imrovements, I'm not publishing it. The biggest thing is making phone calls over bluetooth work; there is only garbage noise to hear. :eek: Hearing music over bluetooth on the other hand works very good; much better than with stock rom... :D
[Xperia Z5 Compact Android Development] speachy:
I suspect that all of the audio problems are related -- call volume, speakerphone volume, and routing calls over bluetooth; all require special interaction with the baseband controller.

But yeah, I agree that working Bluetooth phone calls is the most important missing/non-functional feature at the moment.
[Xperia Z5 Compact Android Development] d28b:
I've just tested Berni's version (thanks a lot for that!) with regards to the call echo that some people have been reporting.

On my phone, the echo is still there, unfortunately. It appears to be the same as with CTXz's version: the voice quality on my side is great, but the other side hears a strong echo.
[Xperia Z5 Compact Android Development] wxo:
Anyone tried the Lineage OS 14.1 ROM for the Z5C yet?

http://www.cyanogenmods.org/forums/topic/xperia-z5-compact-lineage-14-1-android-nougat-7-1-rom/
[Xperia Z5 Compact Android Development] mele80:
There is A thread in here go and see.

https://xdaforums.com/z5-compact/development/rom-lineageos-t3552242
[Xperia Z5 Compact Android Development] wxo:
Thanks Mele!
[Xperia Z5 Compact Android Development] nzzane:
No WiFi yet though, the kernel is being a little turd ;)
[Xperia Z5 Compact Android Development] (30:
Is this rom laggy like the stock
[Xperia Z5 Compact Android Development] Berni-0815:
Which rom? This 13 or 14.1? 13 works good. Except the known issues...
[Xperia Z5 Compact Android Development] (30:
Nice :fingers-crossed:

Thanks for the answer

I dont wanna go without Xperia stock rom André features but sometimes my z5c get very laggy

I'm on mm, i have many apps installed and i know thats the reason, but a moto x2 with a 801 GPU is much more smooth than z5c
[Xperia Z5 Compact Android Development] Berni-0815:
Every LineageOS rom is a development one. If you choose to use one of them, you're doing it at your own risk! There are known issues, some things are not working! And you have to unlock your bootloader too... With all known disadvantages.

My z5c is sometimes laggy too using stock rom. But it is never unusable...