yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Compact Android Development] ra9na:
Installed the latest ROM. So far a really nice ROM! Audio FX works, but the audio routing still needs some improvement. Today I listened to music and got a call. So music was automatically paused to accept the call. After finishing the call, music started agaun, but only on right speaker. Fixed it by unplugging and plugging of headphones.

Anyone got the same issue?
[Xperia Z1 Compact Android Development] diemadedrei:
Is it gonna include the krack fixes already? Since we will have to live with that build till you get oreo working, this is kind of important.
[Xperia Z1 Compact Android Development] munjeni:
When I move to oreo I can't give updates anymore for our rom, only that wifi security probably will update when patxh gets released.
[Xperia Z1 Compact Android Development] diemadedrei:
The patches are already present in lineage afaik
[Xperia Z1 Compact Android Development] munjeni:
Which patches? We are on android security patch level 05.Oct.2017, do los have newer one? And also wifi patch?
[Xperia Z1 Compact Android Development] diemadedrei:
https://review.lineageos.org/#/q/topic:krack-n
[Xperia Z1 Compact Android Development] munjeni:
Per this link https://www.theverge.com/2017/10/16/16481818/wi-fi-attack-response-security-patches seems not ready yet for android
[Xperia Z1 Compact Android Development] munjeni:
Seems allready merged to the cm 14 branch https://github.com/LineageOS/android_external_wpa_supplicant_8 , but is that related to the new wifi exploit?
[Xperia Z1 Compact Android Development] munjeni:
Yes its merged http://www.androidpolice.com/2017/1...punch-fixes-krack-wpa2-vulnerability-android/ , tommorow I will compile new build and upload it, final one!
[Xperia Z1 Compact Android Development] munjeni:
Final build within an hour! And this is last build from me, local 14.1 repo is removed and I going to download oreo repo and start working on it! So no chance back on 14.1 since my hard drive have no free space to hold booth branches and in same time two diferent oss :) Changelog is writen on my site and final build will become available withing an hour! Enjoy!
[Xperia Z1 Compact Android Development] vildevilde:
Thank you munjeni for this very good rom and good luck with the new oreo build, hopefully I will get a chans to test that soon :)
[Xperia Z1 Compact Android Development] mirhl:
You could convert that hdd to btrfs and use transparent lzo or zstd compression.
[Xperia Z1 Compact Android Development] FaTlip82:
Munjeni for president!!!
[Xperia Z1 Compact Android Development] jho55:
Thanks fot putting so much time into this rom. Lets see what Oreo is bringing. ALthough I think that an 8.1. is needed as always. :D
[Xperia Z1 Compact Android Development] hackintosh5:
[MENTION=4120742]munjeni[/MENTION] Sorry to pester, can we have source code now? Or did you mean that you have fully wiped all your source code? Sorry again to pester - if there is anything I can do to persuade you to put source out, like alpha test, I am willing!
[Xperia Z1 Compact Android Development] bananabytes:
Thank you for the new build [MENTION=4120742]munjeni[/MENTION] !! Just flashed to patch KRACK and seems to be working great!! We love you ❤️❤️❤️ and looking forward to Oreo!!

Also a note for anyone who never did a hardware encryption like me, I was confused about how TWRP was handling it. The data partition couldn't be mounted normally. I thought I had wiped it but you have to make sure you do the full data wipe/reformat. I didn't know you could do this on TWRP and thought somehow I'd have to reformat through fastboot because I just kept getting the mounting error on data and thought I was stuck. But just go ahead and reformat data, no problem. With the version of TWRP I have (I think the newest although I installed it some time ago) I don't think you can view any of the data partition at all but that's OK, you can still flash to system and then just recreate the partition in TWRP. I put the zips to flash and the Titanium Backup files on my SD card temporarily and then move them back over.
[Xperia Z1 Compact Android Development] Maciek666:
I have a problem with the camera, that is recording, but nowhere to save the recorded video. Can any of you have such a problem.
[Xperia Z1 Compact Android Development] hackintosh5:
Never had that problem myself, try looking in camera builtin Gallery, and share to your own app from there. Your app will receive path as part of intent. Then you will know where video is stored. :D If it doesn't show up in you gallery, this is issue for munjeni, create logcats and dmesgs.

---------- Post added at 10:46 AM ---------- Previous post was at 10:13 AM ----------

@munjeni will LOS 15 be put in new thread? Or will it take this one over?
[Xperia Z1 Compact Android Development] bananabytes:
Hello can anyone verify that hardware encryption is working or not with latest build? [MENTION=4120742]munjeni[/MENTION] ? Does not seem to work for me! What happens is that the phone reboots but doesn't start the encryption process, just reboots as normal. I tried resetting and encrypting from the start, no luck..I wonder if this has something to do with formatting the data partition in twrp after my old encryption? Can someone please help?? :( I am scared because this is the last build and I need the krack patch
[Xperia Z1 Compact Android Development] hackintosh5:
[MENTION=7712797]bananabytes[/MENTION] I don't use hardware encryption! [MENTION=4120742]munjeni[/MENTION] You might want to change the thread title - it currently suggests you have stopped working on z1c! [FINAL BUILD] suggests that there will be no LOS 15, while the opposite is true.
[Xperia Z1 Compact Android Development] bananabytes:
How can I tell if file encryption is Enabled? I keep trying to get it work. I reformatted the partitions to ext4 and tried to install without selinux. The only difference I could tell between an Selinux and non Selinux install is that I seemed to have the message "pin will be required at next reboot" on Selinux install. But the encryption option is still there as if nothing happened. I am just nervous with no way to tell if this encryption is going on or not. I guess I don't mind hardware encryption but would prefer it. I was using a build from last month but now I am reading this may have been taken out of Lineage? I just would like to know how to verify that software/file encryption is used. Thanks
[Xperia Z1 Compact Android Development] hackintosh5:
Stack Exchange and Google are your friends ?
[Xperia Z1 Compact Android Development] munjeni:
If you configured camera to use external storage and it not work see https://xdaforums.com/showpost.php?p=74189227&postcount=747

If you configured camera to use internal storage (by default) videos is inside /data/media/0/DCIM
[Xperia Z1 Compact Android Development] munjeni:
No. It is related to lineageos 14.1 only, new thread will be created when I start in oreo.
[Xperia Z1 Compact Android Development] s.t.a.r.s:
Same here with video recording on SD.

I use now open camera :good:
[Xperia Z1 Compact Android Development] cray1:
Hi munjeni,

I read your post on ht tp://munjeni. myiphost.com/LineageOS_14.1/ about these ROM and how to install it. Sincerely, nice work! Congrats.

One requirement was an unlocked bootloader. Unfortunately my Z1C have a LB, I tried to flash the ROM from TWRP but the phone remain on a bootloop. (Don't worry about that, I reflashed a stock ROM).

My question is about if is posible to flash the ROM with another method, or why I can't flash the most actual ROMs in a locked bootloader Z1C.

I think that a LB protect the boot partition, but I'm not sure about that because I don't know what is allocated on the /boot. A android grub, more or less?

Many thanks about your work and answer if you can. :good:
[Xperia Z1 Compact Android Development] AreusShow:
Hello,in General, the firmware happy,but there is one problem, the phone periodically reboots,is this normal?
[Xperia Z1 Compact Android Development] airman1951:
Finally i got the log. Hope could help.
[Xperia Z1 Compact Android Development] munjeni:
Seriously isues with power mannager, the same like I got last time :( Kernel somehow wants to enter into sleep mode when there is active things, have no idea right now why, will try to get more info, thanks!
[Xperia Z1 Compact Android Development] BEDAMATI MAHANAND:
i am also facing exactly same issue.almost 4-5 reboots a day.
[Xperia Z1 Compact Android Development] AreusShow:
??

Hello,in General, the firmware happy,but there is one problem, the phone periodically reboots,is this normal?
[Xperia Z1 Compact Android Development] munjeni:
Mate we speaking in two pages about reboots and now you asking the same question, please read!
[Xperia Z1 Compact Android Development] taudelta:
What about Cyberian Camera at this ROM? Is it possible?
[Xperia Z1 Compact Android Development] levone1:
Cyberian devs made a version for N that was working for some, but removed it. Read from here on - https://xdaforums.com/showpost.php?p=73420941&postcount=4478 Maybe someone has a copy...
[Xperia Z1 Compact Android Development] munjeni:
I don't tried so can';t tell you that :)
[Xperia Z1 Compact Android Development] munjeni:
I have made new one, used it for two days and didn't had reboots, can you try http://munjeni.myiphost.com/system.rar
[Xperia Z1 Compact Android Development] jharvey208:
Cyberian N zip linked below

https://cloud.inopulse.uk/index.php/s/2x1GMPETyMtkGWu
[Xperia Z1 Compact Android Development] munjeni:
Its working but it missing camera app from nougat, not complete installer!
[Xperia Z1 Compact Android Development] jharvey208:
That's the ZIP I downloaded a few weeks back from the original Cyberian post. So I don't know what you mean that it's not a complete installer? I don't have the skills to modify it myself.
[Xperia Z1 Compact Android Development] munjeni:
Ok no prob, I just wrote that it didn't contain camera app, only libs, framework and etc, camera app is missing
[Xperia Z1 Compact Android Development] jharvey208:
Ok. I did have a look in zip, you are correct. I downloaded an 8.0 version to see if that contains camera app and it doesn't. Perhaps try cam.zip?
[Xperia Z1 Compact Android Development] munjeni:
Don't know realy, but I have tried your ciberian zip on my lineage 14 and it didn't break allready working camera, thats indication that these ciberian is compatible probably with our lineage :)
[Xperia Z1 Compact Android Development] charos:
Hey munjeni, what a pleasant surprise to see a rom from you again!

Still using your 4.4 rom, should I make the switch or wait a bit?

Curious how is the battery and stability (now that random reboots seem fixed) in comparison with 4.4 rom.
[Xperia Z1 Compact Android Development] levone1:
I remember reading a while back from Cyberian devs that they did not recommend trying to use Sony camera on non-Sony ROM.
[Xperia Z1 Compact Android Development] nhicko95:
me too :)
[Xperia Z1 Compact Android Development] BokeB:
Great rom. Thanks.

I'm actually trying this rom with latest boot.img because of random reboots.

Can you figure out why LiveDisplay isn't working?
[Xperia Z1 Compact Android Development] munjeni:
You simple can't. Reason is secure boot! What is secure boot? Secure Boot is a security standard developed to help make sure that your device boots using only software that is trusted by the your device manufacturer. When your device starts, the firmware checks the signature of each piece of boot software, including firmware drivers (Option ROMs) and the operating system. If the signatures are good, device boots, and the firmware gives control to the operating system. So in short sony manufacturer made it secure because of the waranty. If you unlock bootloader you can boot untrusted things, but in that case your waranty is woid. For further questions about that things please use search button, ton of posts allready contains that things :)
[Xperia Z1 Compact Android Development] munjeni:
Apsolutly working perfect! I have no idea what you have doing to make it not working but did you have some mods installed. magisk and etc, some other and etc? What excatly?
[Xperia Z1 Compact Android Development] Maciek666:
This problem is only when I choos sd card, with internal memory everything works peefect. That is not very big problem for me. I don't install anything , only solid explorer apk.
[Xperia Z1 Compact Android Development] knv01:
I had same problem some builds before. Don't know why, maybe trouble with access rights? With recent build i have no problems.
[Xperia Z1 Compact Android Development] hackintosh5:
If you use towelroot, you can use a flashing application to install twrp, and then you can flash zip. If you have root you can do anything, even (I think) reflash the bootloader.
[Xperia Z1 Compact Android Development] knv01:
You can't flash a lineage based ROM with Kernel etc. on a LB-System. munjeni already told one reason. Backup TA, open BL and then flash this ROM. In my opinion there is actual no reason and no advantage, to leave the bootloader locked. But if you want go back to the original Lillipop-System, you can close the bootloader again, for whatever reason.
[Xperia Z1 Compact Android Development] bananabytes:
[MENTION=4120742]munjeni[/MENTION] I got some Logcat info about encryption. Could you please please look into this? KRACK fix is useless to me if someone can just take my device and get unencrypted data...Look like SElinux is not allowing access to userdata for some reason. But I don't understand that it still doesn't work with a Permissive install

10-19 13:38:05.463 4583 4583 W sdcard : type=1400 audit(0.0:13): avc: denied { read } for path="/dev/block/mmcblk0p25" dev="tmpfs" ino=7510 scontext=u:r:sdcardd:s0 tcontext=u:object_r:userdata_block_device:s0 tclass=blk_file permissive=0
10-19 13:38:05.463 4583 4583 W sdcard : type=1400 audit(0.0:14): avc: denied { read } for path="/dev/block/mmcblk0p25" dev="tmpfs" ino=7510 scontext=u:r:sdcardd:s0 tcontext=u:object_r:userdata_block_device:s0 tclass=blk_file permissive=0

Seems like there have been other reports on LineageOS on Jira about Encryption regression recently too
[Xperia Z1 Compact Android Development] vildevilde:
About camera I have no problem. Camera is directed to sd card and both photos and videos are recorded there.
[Xperia Z1 Compact Android Development] bananabytes:
[MENTION=4120742]munjeni[/MENTION] and anyone having problem with encryption I have an update!! So I had to reformat data in TWRP to get it back after encrypting. But I felt suspicious about this, the latest twrp is 3.0.2, and it doesn't seem to play super nicely with Nougat/etc. I thought, OK for now I will go back to the last version I was using because I had the zip. But guess what?? Encryption didn't work there either! So this makes it clear to me, it has something to do with the partition and not the rom version!

I had seen something while searching about how to reformat data partition after encryption, about wiping it on fastboot. Since I saw the wipe option in TWRP I thought maybe this is not needed. Well I decided to try it because it seems TWRP 3.0.2 is not formatting the data partition the way Android is expecting and maybe fastboot will honor this. I did fastboot erase userdata (take out SD card first!!!) and did not wipe data in TWRP. I didn't format it, I am guessing the rom did this and did it correctly, since I do not trust TWRP. Should have known the problem was not with your rom or linegage because I have had 0 issues!

Hope this can help someone!

Edit: Well, I thought I got somewhere but I got stuck in a bootloop. Using fastboot erase userdata seems to set the data partition to f2fs for some reason, even though this doesn't work in TWRP and makes the encryption process look like it's going forward but hangs. I heard that File Based Encryption is on by default, well I looked here to verify if it is, https://source.android.com/security/encryption/file-based , and it is not.

I am not sure how I finally got it working but I flashed the twrp.img in this thread (despite having the same version), flashed the rom, ran flashboot erase userdata, then flashed the latest SuperSU, and then set a password instead of a pin, went to encrypt and it FINALLY encrypted. Whew!! I think the TWRP in this thread must be different in some way, or it was something about putting in a password instead of a pin, because now TWRP asks for a password and encrypts the data partition which is a plus!
[Xperia Z1 Compact Android Development] munjeni:
Is your sdcard partitioned? Or maybe not a fat32? Maybe corupt? Mine is 8gb sdcard formated to fat32, and I apsolutly have no problems with it. Can you try reformat it like new one?

Edit:

Is your external sdcard even detected by android??
[Xperia Z1 Compact Android Development] munjeni:
Did you tried with permissive boot image?
[Xperia Z1 Compact Android Development] munjeni:
Yes! Twrp from our thread is from domlord! It have integrated sony things, and thats probably reason why you have it working. :)
[Xperia Z1 Compact Android Development] bananabytes:
I had been using this TWRP so it is different? https://xdaforums.com/sony-xperia-z1-compact/general/twrp-3-0-1-amami-t3350827

Good to know if so,, I thought since it's the same version number that I didn't need to update. I have some problems with my USB port so I try to avoid flashing via fastboot if I need to but I'm glad I did this time.

Yes I did so that is why it was strange. Some of the problems maybe were due to the other TWRP build but I still wonder if there are some problems due to TWRP being stuck on 3.0.2. Even though I finally got it working it would not work on a ext4 partiton and it would not work on f2fs if formatted from within TWRP. It is really quite strange though - running "fastboot erase userdata" should not have changed the file system, because I thought this was done with "fastboot format userdata" - which I get an error with, something about unknown file system, with any TWRP! But the "fastboot erase userdata" command seems to change userdata partition to fs2s and stop the selinux issues from happening during encryption process. I really think there is something about partitioning in 3.0.2 twrp that is too old for nougat to play well with 100%. If there is any way to get a newer TWRP build especially for Oreo i think that would be smart because I bet it will continue to do odd things especially going forward.

Also has anyone had issues with APNs on this build? I am with a T-Mobile reseller (mintsim). I had input their APN before with no problem. Now I am having issues getting data. It is not a problem because the normal T-Mobile APN works instead but I'm not sure why this is. I was always able to input the Mintsim APN before. I thought I had fixed it when I changed from IPV4 to IPV4/IPV6 but the data stopped working again. I didn't reboot though so I'll try that, just curious that this APN is flaking on the new build for some reason
[Xperia Z1 Compact Android Development] olli0371:
[MENTION=4120742]munjeni[/MENTION]

In my Installation FM Radio is cometely broken now. FM Radio Start but then freeze. No sound at all.

Just for info - i do not use it so i dont care about this.
[Xperia Z1 Compact Android Development] munjeni:
Wifi working and fm working too. Try clean installation! :)
[Xperia Z1 Compact Android Development] dmgZero:
I can confirm that. FM doesnt work. Without mods. Tried to reinstall ROM several times with all wipes

Screenshot

Logcat in attach.
[Xperia Z1 Compact Android Development] munjeni:
Latest wifi changes (KRACK exploit) is fixed but seems not completely ready, thats seems reason why google still didn't released right patch for it, so thats reason for some errors in log.

About fm, can you please reboot device, setup (enforce 0) and try start fm? Selinux seems need some small update for fm init script, sorry! I will try fix later, not promissing since I'm on oreo and I have done first build which curently have bootloop
[Xperia Z1 Compact Android Development] olli0371:
What do you mean with setup ? Flash again and disable selinux ?
[Xperia Z1 Compact Android Development] munjeni:
No mate, just reboot device, open terminal and type:

su

setenforce 0

than try start fm radio.
[Xperia Z1 Compact Android Development] dmgZero:
still dont work fm
[Xperia Z1 Compact Android Development] olli0371:
I made both - reinstall with selinux oft and also the terminal AS sugested. Same problem. FM does not work.
[Xperia Z1 Compact Android Development] bananabytes:
Fm doesn't work for me either as a data point
[Xperia Z1 Compact Android Development] munjeni:
Ok I will try fix that!
[Xperia Z1 Compact Android Development] munjeni:
Quick fix, you need to add next line to the build.prop and reboot:

hw.fm.init=0
[Xperia Z1 Compact Android Development] munjeni:
KRACK WPA2 exploit test script leaked!! You can test your local wifi network and network of the your neighbor :D https://github.com/vanhoefm/krackattacks-test-ap-ft

demonstration https://www.youtube.com/watch?v=Oh4WURZoR98
[Xperia Z1 Compact Android Development] s.t.a.r.s:
Hi,

i formated my 64gb sd card with twrp, i use the sd as ext not as internal. not partitioned

now i flashed the last rom 1810 with aroma, but i can´t store recorded videos on ext sd?!

sd is detected by android

EDIT: now i tested with 8 gb sd, now it works, videos stored on ext sd

doesn´t work, fm is switched off
[Xperia Z1 Compact Android Development] munjeni:
But maybe you didn't wrote it right to the build.prop? I have installed this rom and added entry to the build.prop and fm is working, I can confirm that! Can you use build.prop from attachment, replace, reboot and try?
[Xperia Z1 Compact Android Development] s.t.a.r.s:
the same "the process has failed. if the problem persists, please turn fm off/on"

tested with two headset´s

any idea for the 64gb sd card?
[Xperia Z1 Compact Android Development] munjeni:
Strange realy! Will try to wipe usedata and try reproduce fm problem. Have no idea about sd card

edit:

can be fm problem related to sd card?
[Xperia Z1 Compact Android Development] munjeni:
Yes thats with old build.prop, I had the same! But after I added entry to the build.prop and after reboot fm is working every time!

hw.fm.init=0
[Xperia Z1 Compact Android Development] sugnuf:
Nop, build.prop is from Your rar file and getprop hw.fm.init returns 0.
[Xperia Z1 Compact Android Development] munjeni:
Strange realy because for me it works and for some not, can be diferent baseband, bootloader or? No idea, but probably I will revert that comit and disabl;e use of fm_qsom_patches in case I get back to N, now I can't do that since I'm on Oreo source code :( Status of the Oreo is boot look curently, I'm charging my seccond broken phone and going to connect it to uart to get boot loop log and try fix it :) In the same time I'm trying fix newflasher, so I realy have no free time to work in many things at the same time sorry, I will fix fm soon definitelly since N is my daily rom!
[Xperia Z1 Compact Android Development] sugnuf:
Well, for me fm is not big deal since i don't use it:) I just want give You some info.

Good luck with Oreo stuff!
[Xperia Z1 Compact Android Development] munjeni:
Thanks! My phone details:

baseband: 8974-AAAAANAZQ-10270086-81

bootloader: S1_Boot_MSM8974_Rhine1.3.1_LA1.04_16

S1_ROOT="S1_Root_6732,S1_Root_Test_b316"

DEF_SEC="ON"

HWCONF_AID="0004"

LOADER_AID="0004"

BOOT_AID="0004"

NO_SUB_SYSTEMS="0001"
[Xperia Z1 Compact Android Development] sugnuf:
Well i found way how to run FM radio:) Removing/commenting these line in /system/etc/init.qcom.fm.sh did the trick:

case $exit_code_fm_qsoc_patches in
0)
logi "FM QSoC calibration and firmware download succeeded"
;;
*)
#	failed "FM QSoC firmware download and/or calibration failed" $exit_code_fm_qsoc_patches
;;
esac

Baseband is the same as Yours.
[Xperia Z1 Compact Android Development] hackintosh5:
But could you actually listen to fm radio? That looks like you are removing the error handling.
[Xperia Z1 Compact Android Development] sugnuf:
Yes i can, but only once - than (after stopping radio) reboot is required. So something with these patches are problematic.