yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Compact General] levone1:
Started over from scratch, in a different order, and works. Steps:

- install LOS zip

- while still in TWRP, mount system, delete framework jar, and replace with new framework jar

- still in TWRP, flash cam zip

- boot, set up phone

- back to recovery, flash micro g unofficial installer - https://www.androidfilehost.com/?fid=817550096634785054, (from here) -

https://xdaforums.com/android/development/microg-unofficial-installer-t3432360

- wipe caches and reboot

Now have Sony camera and micro g workingon LOS
[Xperia Z1 Compact General] levone1:
Default dark Substratum theme by spirit croc, )https://play.google.com/store/apps/...roc&pcampaignid=APPU_1_Fc1oWeC_Eobk-QHCpK7QAQ), and vivid quick settings fully working on LOS, if anyone's interested...
[Xperia Z1 Compact General] levone1:
New LOS build by [MENTION=4479363]Hazou[/MENTION] - https://xdaforums.com/sony-xperia-z1-compact/development/rom-unofficial-lineageos-14-1-t3636822
[Xperia Z1 Compact General] levone1:
Don't know if anyone else is testing Substratum themes on LOS, but might be good to make a 'working' list. So far I have :

Fully working

Default Dark by SpiritCroc

Vivid quick settings

Lock Clean

App themes working (but not framework and system ui)

DNA Dark

Deity (nav bar and status bar icons working)
[Xperia Z1 Compact General] giriz1c:
Hey all, I m interested to try 'N' roms for my z1c. But my main priority will be 'Camera' and it should be as good as stock camera...and heard that there is cyberian v8 camera for N roms so is it possible to get all these.....?
[Xperia Z1 Compact General] levone1:
There are a few N builds available with new 3.4 kernel that have good camera. AICP test builds - https://drive.google.com/drive/folders/0B7dII2zY5kCLUF90NGhWS2JCQkU, and LOS - https://www.androidfilehost.com/?fid=889764386195915213 and https://xdaforums.com/sony-xperia-z1-compact/development/rom-unofficial-lineageos-14-1-t3636822

Still in testing stages, but overall they're all stable and working.

Seems like Cyberian dev's just released a Z1c version for N - https://xdaforums.com/showpost.php?p=73042020&postcount=4293
[Xperia Z1 Compact General] davidteri91:
No .... Google apps have not theme support

Inviato dal mio Xperia X Performance (AOSP) utilizzando Tapatalk
[Xperia Z1 Compact General] levone1:
Can you update your AOSP with 3.4 kernel? All we have are CM-based so far...
[Xperia Z1 Compact General] nhicko95:
Or at least build aosp with 3.4 kernel
[Xperia Z1 Compact General] davidteri91:
Obviously no ..... I will stop aosp based on 3.10 since the cam is very bad and I can immagine all' of you are using ROMs based on stock kernel .......

Inviato dal mio Xperia X Performance (AOSP) utilizzando Tapatalk
[Xperia Z1 Compact General] levone1:
Camera with 3.4 kernel is comparable to stock.

https://xdaforums.com/showpost.php?p=72893300&postcount=174
[Xperia Z1 Compact General] echo124:
Big thanks to [MENTION=4479363]Hazou[/MENTION]!! Hope right developers can help fix broken things ansLOS will be official! ;)
[Xperia Z1 Compact General] pawnstar:
which one is the best stable?
[Xperia Z1 Compact General] levone1:
New AOSP - https://www.androidfilehost.com/?fid=745425885120751583
[Xperia Z1 Compact General] levone1:
3.1 kernel and bad camera... Anyone can build a kernel for us, or get CM kernel to work? I really like this rom.
[Xperia Z1 Compact General] Yogi wicahya:
Does this rom work in lockbootloader?
[Xperia Z1 Compact General] nhicko95:
no
[Xperia Z1 Compact General] levone1:
If anyone wants to try, I'm curious if the kernel from this rom - https://xdaforums.com/sony-xperia-z1-compact/development/rom-sudamod-3-1-t3666092 will work with this rom - https://www.androidfilehost.com/?fid=745425885120751583 I really like the AOSP rom, but using old kernel and has bad camera.

(I'm away from my Z1c for a couple of days so can't test)
[Xperia Z1 Compact General] levone1:
Bump for op update. Thanks to munjeni and maz-1 for bringing some new life to our Z1c...
[Xperia Z1 Compact General] nhicko95:
it works? aosp with 3.4 kernel?
[Xperia Z1 Compact General] levone1:
Haven't tried yet. AOSP is not flashable, need PC/fastboot, so gonna try later.
[Xperia Z1 Compact General] nhicko95:
i see :)
[Xperia Z1 Compact General] levone1:
Tried and no boot...
[Xperia Z1 Compact General] Boss Dragon:
Does anybody know of a stable nougat ROM (without major bugs) with good camera and timeshift / 120fps capabilities?
[Xperia Z1 Compact General] levone1:
#3, 9, and 10 from op of this thread are all stable and good camera. Can't say about time shift, etc... Maybe try Sony cam port...
[Xperia Z1 Compact General] jho55:
#9 seems to have camera quality like stock firmware but he uses the old stock kernel in Nougat. I think that means, that you do not have the latest kernel with all the security and bug fixes, right?
[Xperia Z1 Compact General] levone1:
[MENTION=4120742]munjeni[/MENTION] [MENTION=6425591]SpiritCroc[/MENTION] [MENTION=6927050]maz-1[/MENTION] - I just read interesting article on xda about blobs and shims. Am I right to think that shims is how you got the camera working on N? If so, would it be possible to use same shims to build AOSP with a good camera?
[Xperia Z1 Compact General] maz-1:
I use blobs from [MENTION=4120742]munjeni[/MENTION]

The advantage of kernel 3.4 is great battery life
[Xperia Z1 Compact General] levone1:
Sudamod has comparable camera with 3.1 kernel, but AOSP rooms all have unusable camera because of Sony blobs, (I think)... I would like to figure out a way to get AOSP with usable camera. I've tried using boot img from 3 other roms and it won't boot... I've also tried kernel port technique I found on xda, but no go. I guess I might just have to bite the bullet and get into rom building.
[Xperia Z1 Compact General] SpiritCroc:
Yes shims are required to get stock binaries working on N / custom ROMs.

Getting it to work on AOSP sounds like a big amount of work

Looking at the screenshot of about device, seems to me like sudamod has 3.4 kernel as well
[Xperia Z1 Compact General] levone1:
Your link is 410, but I just checked the Sudamod op, and you're right. I swear it said 3.1 at first, right [MENTION=6927050]maz-1[/MENTION]? That's why I posted this on the first day - https://xdaforums.com/showpost.php?p=73630072&postcount=4
[Xperia Z1 Compact General] Blackmac4:
Does anybody know of a stable nougat ROM with good working camera and no big bugs for the Sony xperia z1 compact (D5503)?

such as Lineage 14.1 OS?
[Xperia Z1 Compact General] nhicko95:
Read back
[Xperia Z1 Compact General] jho55:
go for #9
[Xperia Z1 Compact General] Blackmac4:
where can i Download the improved Kernel and rom?

---------- Post added at 07:33 PM ---------- Previous post was at 07:23 PM ----------

hello?

do you know the rom and kernel is improved now and ready for daily driver?
[Xperia Z1 Compact General] nhicko95:
Look at the other threads stop asking
[Xperia Z1 Compact General] Not-Aus:
Thanks for the Links! :)

Thanks for the Links! :)
[Xperia Z1 Compact General] dmgZero:
I made repack of [M-ROM] [7.1] v2.4.0 (Nougat 7.1.2) for Z1C.

[MENTION=6283426]levone1[/MENTION]

The OP can add this to the first post
[Xperia Z1 Compact General] levone1:
You must have read my mind - I just sent 2 PMs last week asking for a link to v2.4, since impossible to download from Chinese site.

I'll add to op.
[Xperia Z1 Compact General] levone1:
[MENTION=4120742]munjeni[/MENTION] (or anyone) - I remember you posted about this, but can't find it... I'm trying to wipe apps_log without computer. I found apps_log partition at mcblk0p22, and dumped to appslog.img, before flashing a Nougat rom. Then when I wanted to wipe apps_log to flash back to MM, I made full wipe, flashed stock MM, then went to terminal command in TWRP and used

dd if=/sdcard/appslog.img of=/dev/block/mcblk0p22

Command completed and output

(xxxxx) bytes in (xxxxx) bytes out (xxxxx) transferred

However, still no boot.

Did I get the command wrong?

Thanks
[Xperia Z1 Compact General] pinkthai:
Does the camera still be the best ?
[Xperia Z1 Compact General] dmgZero:
[MENTION=6283426]levone1[/MENTION]

New ROM for Z1C: Flyme
[Xperia Z1 Compact General] levone1:
Added. Looks good...
[Xperia Z1 Compact General] dmgZero:
Also there are chinese (unclean) Flyme ROM's for many other models.

Versions: 6.8.1.22R/6.8.1.27R

Dates: from 2018-01-27 to 2018-01-29

Models:

XZs/XZP/XZ/XP/E6883/E6853/E6683/E6653/E6553/E6533/E5823/D6633/D6603/D6503/D5803/D5503/C6903/C6603

Link: https://pan.baidu.com/s/1jJRulhk Pass: s757
[Xperia Z1 Compact General] nhicko95:
That's a surprise even xperia z have one I will check this tomorrow
[Xperia Z1 Compact General] 00Deady:
do you know what is the most stable nougat rom for z1c with least bugs and most things functional? if then what it is, ive been looking for some, and kind of interested with lineage os by munjeni, but idk which rom is better, in terms of everything, perfomance and whatsoever.. it'll help me alot, thanks
[Xperia Z1 Compact General] jho55:
I am using munjenis rom. I am very pleased with this Rom. Best Camera e.g.
[Xperia Z1 Compact General] ULT][MO:
Awsome!, open a new thread. It will be very useful, for development :D
[Xperia Z1 Compact General] levone1:
Donated my phone, so been out of the loop for a few weeks, but just got a new one. Going to try to update op tonight...
[Xperia Z1 Compact General] ULT][MO:
Tried this evening. Only one hour, but rom seems very stable, cam is dark and sometimes shut down. Mobile data is not working. Cm file manager don't "see" the root permissions to open external sd Some little fixes and could be a great CM rom. Thanks a lot derf elot;)
[Xperia Z1 Compact General] Micha_Btz:
hey, from were do you get the binary blobs?

Since the repo from muppet is really outdatet.

https://github.com/TheMuppets/proprietary_vendor_sony
[Xperia Z1 Compact General] derf elot:
Hi,

I will try to tinker with it a bit more this weekend if I have the time. Also, I would like to wait for new Sony blobs first to see if (and how) cam will improve.

Cam will get better soon hopefully (see above). As for mobile data, I wasn't able to check, since the Z1C is my secondary phone and it only has a prepaid sim without any credit right now ;) CM file manager is likely a CM issue that will get fixed. Root browser for example works.

Check the manifest on the SonyCM github. It uses the up-to-date blobs from SonyAosp. Which is good, because this way they are always updated.

Has anyone tried encryption yet by any chance? If I get around to it this weekend, I also want to make a new twrp that can decrypt, built from within these sources.

Overall, this was just a first build I did after setting up the compile environment, manifests and modified the amami sources.

Cheers
[Xperia Z1 Compact General] ULT][MO:
http://xdaforums.com/crossdevice-dev/sony/aosp-cyberian-camera-1-0-t3504461

There's an improved cam for AOSP 7.1, i don't know how updated it is . Also I tried to flah it on your CM 14.1. But doesn't work. Hope ita can help
[Xperia Z1 Compact General] gullz:
When I try to encrypt the phone from the settings menu, it simply soft reboots. This is shown in the log (I did not dig deeper yet):

12-11 15:58:15.808 8467 9207 D CryptdConnector: SND -> {12 cryptfs enablecrypto inplace default}
12-11 15:58:15.811 8467 8710 D CryptdConnector: RCV <- {200 12 0}
12-11 15:58:15.812 314 11947 E Cryptfs : Bad magic for real block device /dev/block/bootdevice/by-name/userdata
12-11 15:58:15.813 314 11947 E Cryptfs : Orig filesystem overlaps crypto footer region. Cannot encrypt in place.

Other than that (and the camera), the rom runs fine so far. Thank you for sharing your efforts.
[Xperia Z1 Compact General] derf elot:
Hi,

thanks for testing. I just tested on mine and it works. My guess is, that you need to format once with a "proper" TWRP contining the right fstab lines for data:

/data auto /dev/block/platform/msm_sdcc.1/by-name/userdata flags=length=-16384

The length flag is important here I think, otherwise there won't be room for the crypto footer. My previous TWRP build, compiled from within the CM12.1 sources, seems to work for that. But I am currently making a new TWRP built from the CM14.1 sources. It builds fine, just have to add the required things for decryption (quite a few things).

Also made an updated build, now running on 7.1.1. Will upload it later if I have the time.

Cheers
[Xperia Z1 Compact General] karamancho:
is there any way to remap the hardware buttons without xposed?

my power button went kaputt one month ago and I rely on xposed to make the camera button act as power button for now but I'd like to try some N roms.
[Xperia Z1 Compact General] derf elot:
Have you tried editing /system/usr/keylayout/Generic.kl ?
[Xperia Z1 Compact General] gullz:
Thanks, it seems when formatting an encrypted /data in a TWRP that does not support decrypting it, the partition gets too big (even with the length flag in fstab). I think this was the problem, I could reproduce this behaviour and it can be fixed by resizing the partition (e.g., like so https://dustri.org/b/cyanogen-reboot-without-encrypting-the-phone.html).

With your sources, I can build CM 14.1 for amami, this is really nice. However, I am not sure how to include TWRP. Would you mind sharing your repo manifest?

Best regards
[Xperia Z1 Compact General] karamancho:
what would I need to edit so that the camera button acts as a power button?
[Xperia Z1 Compact General] karamancho:
there were 2 lines labeled as POWER and I commented them both, changed the CAMERA line to POWER, and restarted the prone.

unfortunately it didn't work
[Xperia Z1 Compact General] derf elot:
Do you have the /system/usr/keylayout/gpio-keys.kl ? I'm on my Z3C right now, but changing the FOCUS to POWER in there worked after a reboot on here.
[Xperia Z1 Compact General] ULT][MO:
Tested.

- Camera crash after photo click

- Front camera has good quality, but its upside-down

- sim data not working

- some battery errors in the log

My PC is offline and I can't post the log I've done from my phone. I hope to post it soon
[Xperia Z1 Compact General] gullz:
Concerning the sleep, it seems the CPU stays awake all the time. Even in flight mode 'dumpsys batterystats' shows that the CPU is constantly running. The wakelocks are only taken for short amounts of time and therefore seem fine. I will try to find out more about this some time this week.

Edit: It was the Android OS itself, more precisely msm_dwc3 that seems to have gotten stuck taking a wakelock after USB charging or debugging. After a reboot, deep sleep is working fine again...

Regards
[Xperia Z1 Compact General] karamancho:
This one works, thanks for the help
[Xperia Z1 Compact General] derf elot:
Ah yes, I think that's a known bug and can be fixed for now by reverting it back to the one from the 1.2.2 kernel : https://github.com/rcstar6696/kernel/commit/fc3f0f55cdc165796c0117b89330c88165b5c4f2

What I found though was that even if CPU goes to deepsleep, my phone uses about 1/3rd of battery per day, while on airplane mode. Used to be 5-10% on CM12.1. I will investigate when I have some time. Maybe reverting the driver will help already.
[Xperia Z1 Compact General] karamancho:
does it support F2FS?
[Xperia Z1 Compact General] De_Joe_991:
Great work so far! I'm testing the current Version from Dec 11.

A Few bugs and questions:

- Camera crashes (screen gets black) when opened from Whatsapp.

- Fullscreen on Youtube turns screen black (only the video, not the ads)

- Missing Energy-Profiles. Only one there. Not possible to change it

- Quiet high energy consumption in sleep mode. (Already restartet the phone)

- How will it continue after CM died?

Looking formward to continue testing and report issues.

Is there any official Bug-Report?

Edit:

I've had some problems after installing it the first time with a message: "encryption unsuccessfull". Found out that it had to do with the data folder. I changed the file format to ext4, than it worked just fine.
[Xperia Z1 Compact General] derf elot:
Hi guys,

uploaded a new build. It's now Lineage OS, so goodbye Cid :( I have some time the next few days to hopefully get a TWRP with working decryption built and also to have a look at some more issues with the ROM.

You can download the build here: https://www.androidfilehost.com/?fid=457095661767126276

Big thanks again to sonyxperiadev and especially David Viteri for his work on the SonyLOS reps.

No sorry, not yet.

- See if the latest build still has this problem, but I might have an idea as to what could cause that camera crash on Whatsapp, or other apps for that matter.

- As for Youtube black screen, try disabling HW overlay setting in developer options.

- Not sure which profiles you refer to, but I'm pretty sure, this is something lacking from the CM/Lineage side.

- The battery drain is something I want to look at now as well

- See above :)

There is no official bug-reporting. You can just post what you find here for now. Once new blobs are released (and things like the camera get a bit more stable), I will probably open up a thread for this.

Cheers
[Xperia Z1 Compact General] karamancho:
I tried it on my own and experienced something strange (though its TWRP related I'm gonna write it here since I was using your TWRP build)

when I tried to convert the partitions to F2FS in TWRP before flashing the rom I got the usual log message, something like partition formatted using f2fs but then when I tried to flash the rom the log said the partitions were missing.

namely the partitions were converted to F2FS but got unmounted and I wasn't able to re-mount them again, even after a reboot.

I'm back on stock FW but I taught I'd share my experience, maybe you can look at it when you have some free time
[Xperia Z1 Compact General] derf elot:
Hi,

yeah, that's not unexpected behavior. With the fstab I is currently use to build TWRP, it tries to mount system, data and cache as ext4 partitions only.

When I have a build that supports f2fs I will post it here :)
[Xperia Z1 Compact General] De_Joe_991:
I installed it. THANK YOU!

old issues:

- camera still gets black if startet over Whatsapp, but when HW overlay is disabled it works fine! THANKS!

- HW overlay solves the problem on youtube as well. GREAT!

- Powerprofile - settings under battery are now removed, so this issue can be ignored now.

new issues :) :

- After power off or reboot HW overlay setting is reset again.

- Camera is very slow in focusing and fails some times. But all in all this is okay. I use the open camera app, the built in one just shows black when startet directly. Startet over other apps it works. The focus speed is the same in all camera-apps.

I will update this as soon as i find some more issues. I use the z1c it as my primary phone so i hope to find issues if there are some.

If there is anything special you want me to test, just say ist ;)

Again great work and thans a lot!

By the way: happy new year!
[Xperia Z1 Compact General] derf elot:
Hi again,

finally managed to build a TWRP that supports decryption and which isn't too big to fit into our recovery partition. I built it from within the Lineage 14.1 sources.

If you want to use encryption and you have previously used a recovery that doesn't support decryption, you have to format (as in, 'format data') at least once, otherwise you wont be able to encrypt your phone. Most likely this is because your data partition is too big and there is no room for the crypto footer anymore. Make sure you back-up everything you need off your phone before you format!

I have only tested this with the new Lineage 14.1 builds. No guarantee that this will work with previous CM's or other ROMs.

Here's the download link: https://www.androidfilehost.com/?fid=529152257862692136

Cheers

Edit: No F2FS support on this one yet.

Yes, that setting always resets itself on reboot. You can search through XDA a bit, I think there are some init.d scripts available you can use to set it at boot automatically. Keep in mind that there _might_ be some downsides in terms of battery life, since the CPU has to work a bit harder.

Also, it's strange that you get a black screen with the built-in camera app. It working fine here. It's dark, and the front cam is upside down, but it works. Things should improve with new Sony blobs.

Happy new year to you too :)
[Xperia Z1 Compact General] karamancho:
I remember the in-call volume (at max) being a bit lower than on stock fw, can you give your taughts on that
[Xperia Z1 Compact General] De_Joe_991:
Yes, i tested a few calls and was called a few times and the volume seems quiet low on max.

I can't tell if it is realy lower than it was on stock, but i think so.
[Xperia Z1 Compact General] Micha_Btz:
today i tried this build. i did a dirty flash about cm-12.1 and the rom is not able to decrypt my data partition. aicp has the same problem since you used both the sony source.

i there the partition layout differrent from older cm roms? I just wanted to test how far 14.1 is so i don't want a full wipe.

Can i do a backup from the internal sd card with twrp?

Thanks

PS: maybe a extra thread for Lineage OS would be a good idea, this thread was desinged for overview i think
[Xperia Z1 Compact General] Frannny:
Dear Derf,

I ran into the sudden battery death issue a while ago.

When replacing the battery with a brand new one did not help even after a factory reset, I installed your 7.1.1 lineage.

Works nice, great job!!!

Still occasionally the screen freezes and can only be unfrozen by a reboot.

Battery sudden death is still there too.

Would be awesome if you find a solution.!!

YouTube and camera work as well as sim(sometimes it takes a little for the sim to be recognized) . I had it show up after the second reboot.

Camera has sometimes issues properly focusing.

Apart from that really great job to rejuvenate a phone.

The battery death is the biggest issue to me.

I run green power app too but it doesn't help a lot.

Thanks Fran
[Xperia Z1 Compact General] Frannny:
Oh, and by the way, it seems that the screen responsiveness stops when the sim is found. At least occasionally.
[Xperia Z1 Compact General] siendohe:
What's link

Enviado desde mi SM-G531F mediante Tapatalk
[Xperia Z1 Compact General] levone1:
http://xdaforums.com/sony-xperia-z1-compact/development/rom-aicp-11-0-mm-6-0-1-amami-t3428288
[Xperia Z1 Compact General] grmat:
Hi there,

Thanks for your work.

Are you working towards getting an official LineageOS build for amami?

I also started looking into the topic and tried building from source by myself. I ended up with a booting system, however, many things are not working (e.g. wifi and cellular).

I basically used the SonyLOS manifest in the 14.1 branch[1] and added your 14.1 amami repo[2] to it. Could you share what else you had to do?

Thanks in advance

[1]: github/SonyLOS/local_manifests/blob/cm-14.1/roomservice.xml

[2]: github/derfelot/android_device_sony_amami/tree/cm-14.1

(not allowed to post links for the first 10 posts)
[Xperia Z1 Compact General] levone1:
Funny - I've been out of the loop for a while, so not aware of what's going on with N builds, so I wanted to update OP, and went poking around last night to see what is out there these days, and found your build and flashed it. Seemed pretty solid, but got a couple of hiccups with system r/w access, and battery reporting. I'll check out new build.

Besides that, it seems like AICP is the only other thing going, right?

BTW - I did hear from team Vanir on G+ that they plan on a N build for us soon...
[Xperia Z1 Compact General] eduardodfj:
I hope the camera will work properly, but I understand this won't be possible without Sony's collaboration.
[Xperia Z1 Compact General] grmat:
Thank you very much. I also don't have much time right now, but I managed to run a build. It built and runs nicely, however there is some severe battery drain compared to what I was used to on CM12.1.

I could upload a build tomorrow, if wanted.

Did you try aicp yet? Might look into what they did later.

Sadly, the latest update of blobs didn't include something useful for us