yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Compact Android Development] ra9na:
Should this info be in the stock Z1C ROM? I'm just not familiar with the filesystem structure. Otherwise this should be quite easy, isn't it?!
[Xperia Z1 Compact Android Development] hackintosh5:
The top result on google shows that 30% of security patches haven't been applied! I'm not installing that thing!:D
[MENTION=4120742]munjeni[/MENTION] Perhaps you could patch it...?
[Xperia Z1 Compact Android Development] Maciek666:
Good morning

Could someone with a good heart be able to share the kernel settings in this rom. Thanks
[Xperia Z1 Compact Android Development] munjeni:
Ok PM me!
[Xperia Z1 Compact Android Development] munjeni:
https://github.com/SuperLamic/andro...m/configs/lineageos_rhine_amami_row_defconfig
[Xperia Z1 Compact Android Development] munjeni:
Oh, definitelly I will not and will not use too.
[Xperia Z1 Compact Android Development] munjeni:
This can be figured out from stock rom by looking into logcat, lines from logcat which contain info for diferent devices looking something like:

10-12 16:32:00.114 20845 20845 D hardware_info: hw_info_append_hw_type : device_name = [COLOR="Red"]handset-mic[/COLOR]
10-12 16:32:00.114 20845 20845 I msm8974_platform: platform_send_audio_calibration: sending audio calibration for snd_device(35) [COLOR="Red"]acdb_id(4[/COLOR]

Not a easy task since many diferent devices need to be tested and in the same time logcat watched, reguire lot of time...
[Xperia Z1 Compact Android Development] hackintosh5:
[MENTION=4120742]munjeni[/MENTION] what battery did you use in the end? Is it good?
[Xperia Z1 Compact Android Development] munjeni:
Yes, I am very satisfied with battery! Bought form this guy http://www.ebay.com/itm/Genuine-Bat...e=STRK:MEBIDX:IT&_trksid=p2060353.m2749.l2649
[Xperia Z1 Compact Android Development] munjeni:
looking for new genuine sony z1 compact anti shatter film, and also for good back side cover so phone will look like new one, allready replaced two backsides but never done antishatter film on fromnt side, its time for new one :)
[Xperia Z1 Compact Android Development] munjeni:
Have good news for you! Fixed audio, fm, fm recorder, fm stereo! The rest of audio didn't tested :) Will publish new build tommorow or next day after some tests! Fm radio is not loud anymore, its very clean and playing with stereo is very good, only one problem with fm is I can't control volume for fm, will try to solve :(
[Xperia Z1 Compact Android Development] BEDAMATI MAHANAND:
[MENTION=4120742]munjeni[/MENTION] please do something for the volte issue.
[Xperia Z1 Compact Android Development] munjeni:
I can't call it isue since stock rom don't have volte too?
[Xperia Z1 Compact Android Development] foresto:
These folks have been been applying security fixes to that kernel as part of their cm-12.1 fork:

https://github.com/cm12-amami/android_kernel_sony_msm8974

Community discussion:

https://xdaforums.com/sony-xperia-z...ec-patches-t3614936/post74066582#post74066582

Code discussion:

https://github.com/cm12-amami/discussion

Manifests for the cm-12.1 fork:

https://github.com/cm12-amami/local_manifests
[Xperia Z1 Compact Android Development] hahnjo:
Let me clarify that this kernel won't work for Nougat ROMs: It's based on the old sources for CyanogenMod 12.1 (Lollipop) and only works with Lollipop.

That said the upstream LineageOS android_kernel_sony_msm8974 for Nougat has some fixes applied, as you have found out on the CVE status page linked above.

But as munjeni refuses to share his sources I can't say how many of those actually end up in the build...
[Xperia Z1 Compact Android Development] mirhl:
More than refusing, technically he said on page 66 he's just waiting to have polished them.

I'm not really sure on whatever harm doing otherwise would cause, but I guess it ain't that bad.

I'm really looking forward to this then, since PN544 working with HCE and all, is quite unheard of.

Including on some go phone that somebody's memories might remember
[Xperia Z1 Compact Android Development] hackintosh5:
What do you mean - HCE working? Not for me!
[Xperia Z1 Compact Android Development] mirhl:
Uh ok.

Well, I'd say even just getting tags to work is an achievement AFAIK.
[Xperia Z1 Compact Android Development] munjeni:
As I know tags is allready working, thing wich is not working is hce. Hce kernel hal, android nxp hal is outdated and no more supported by google android source code, to get hce working we need port nci kernel module, to be honest I not going to waste time with it since I not using nfc.
[Xperia Z1 Compact Android Development] munjeni:
I not like sounds like this https://xdaforums.com/showpost.php?p=73969177&postcount=466 and this https://xdaforums.com/showpost.php?p=73958245&postcount=437 , with that tone I realy have no plan to show you source code. As I told kernel source code is on superlamic git and all patches I have provided to superlamic is on his git comments, just search for them. Android source code, only my friends will see android source code but as I promised I will create it on my github but not now, later, have no free time messing up and wasting time with github right now. If you itended to help just help here, all help is welcome. I will merge msm8974-common, rhine-common and amami, thats only way for now since I have done a lot of changes on booth, so amami source code which I will push to git will not depend on rhine-common and msm8974-common.
[Xperia Z1 Compact Android Development] BEDAMATI MAHANAND:
:D
[Xperia Z1 Compact Android Development] hahnjo:
I might be missing something but that's pretty hard without sources...
[Xperia Z1 Compact Android Development] munjeni:
https://github.com/cm12-amami/andro...mmit/457e879e31d7d17569ca20aac6721515c1ae6c14

This way You guys will not get patches from me definitely and I will think about opening amami on my git. I have learned that leason many years ago.
[Xperia Z1 Compact Android Development] munjeni:
New build is out! Big improvement in audio, we are now using modern audio xml based audio policy and custom audio policy! Fix fm stereo and probably some more audio related. One thing trought is fm volume control is not working right now but fm stereo is ok right now. [MENTION=4565411]hahnjo[/MENTION] if your intention is realy to help, you can prove it by fixing fm volume control and some more by looking into mixer_paths.xml, you no need source code for it. If you realy do that I'm promising open source amami!
[Xperia Z1 Compact Android Development] hahnjo:
Yes, that is based on your work, I have no problem in admitting this. That's the strength of open source projects as Android and the Linux kernel. I reduced the diff though, I think I mention this somewhere. I would have taken your commit directly if it was available at that time...

And messing with files in your build? No thanks, that's not how I believe open source development should happen. Connecting the release of source to a form of "proof" is another thing that I don't want to support.
[Xperia Z1 Compact Android Development] munjeni:
No problem, you believing it is ok, no prob at all. In that case good luck in your future work, I will continue providing releases but without that verbose posts, and offcourse without amami git definitelly.
[Xperia Z1 Compact Android Development] levone1:
I had a couple of random reboots on latest. Anyone else? Note that I have Xposed and Magisk, so I'm hesitant to blame the rom; I'm just wondering if it's just me...
[Xperia Z1 Compact Android Development] vildevilde:
I installed the newest build today and have no issues at all. I have not exactly clean rom either because I don't wipe everything before updating, but as i wrote, no problem here. :)
[Xperia Z1 Compact Android Development] jho55:
I had network issues (rom v 7. Oct clean install): I went from Germany to Austria and then back. In Germany I could not connect to Internet. SMS was working. 3G was "x". No connection. Waiting and trying a restart does not do anything. Then I went into recovery and did a dalvik cache wipe. And that solved my issue. Just in case someone has the same issues.

[MENTION=5978768]vildevilde[/MENTION]: I would always do a dalvik cache clean if you dirty flash. I was doing that everytime I flashed opengapps because in my old custom rom I got some Google play service closed message.

[MENTION=6283426]levone1[/MENTION]: If it happened also then you are on clean rom? If no, you know the culprit. ;)
[Xperia Z1 Compact Android Development] vildevilde:
........

[MENTION=5978768]vildevilde[/MENTION]: I would always do a dalvik cache clean if you dirty flash. I was doing that everytime I flashed opengapps because in my old custom rom I got some Google play service closed message.

...........

Thanks, but I always wipe dalvik and cache, I don't use gapps. But as munjeni wrote I'm on my own because I don't clear all. And I understand that. :)
[Xperia Z1 Compact Android Development] jho55:
I will also dirty flash the next builds because reinstalling everything would take too much of time. If I find something that is not working, I do a backup, try with clean install and then report if neccessary. But this is something, every custom rom user should be aware of. It is a common issue on every custom rom that errors occur and the user dirty flashed and/or uses other mods like xposed, magisk, zips etc.
[Xperia Z1 Compact Android Development] knv01:
Why you don't use Titanium? You backup everything, than you recover all apps after flashing and that's it. There is no need of installing everything again.
[Xperia Z1 Compact Android Development] vildevilde:
My philosophy is to use as less apps as possible, one bloated, non open source application more is less good.

And my amateur opinion is that using Titanium backup instead of dirty flash is increasing the risk to get a bad installation. (I don't really know, it's a feeling ;) )
[Xperia Z1 Compact Android Development] munjeni:
Yes sure!
[Xperia Z1 Compact Android Development] munjeni:
I don't know who removed fm_qsoc_patches from device tree but believing thats binary is need.

https://github.com/LineageOS/android_hardware_qcom_fm/blob/cm-14.1/jni/FmIoctlsInterface.cpp#L117

https://github.com/LineageOS/android_hardware_qcom_fm/blob/cm-14.1/jni/FmConst.h#L47

Missing CFLAG FM_LEGACY_PATCHLOADER and missing /data/app/Riva_fm_cal which is generated with fm_qsoc_patches, and also missing service fm_dl . I realy have no idea what does that fm calibration file but I'm believing it will fix fm audio isue or at least improve fm a bit.

Edit:

expected calibration dmesg

01-02 00:02:37.817: I/klogd(315): [ 187.331451] iris_radio: fm enabled response 0
01-02 00:02:37.817: I/klogd(315): [ 187.331451] : hci_cc_fm_enable_rsp
01-02 00:02:37.837: I/klogd(315): [ 187.359011] iris_radio: hci_fm_disable_recv_req: opcode for FM RX disable: 4c02
01-02 00:02:37.857: I/klogd(315): [ 187.367587] iris_radio: hci_cc_fm_disable_rsp: Disabled event from soc 0
01-02 00:02:37.867: I/qcom-fm(1956): /system/etc/init.qcom.fm.sh: FM QSoC calibration and firmware download succeeded

What it does have no idea right now, but we have missing this since of not used fm_qsoc_patch.
[Xperia Z1 Compact Android Development] knv01:
Yeah, i understand, and flashing in new moon causes accidents because of bad energy :cyclops:

Then use an open source tool for backups. We use an experimental system (btw an excellent and stable one), so your philosophy is OK for a productive system but here I think it's more effective to be fast and not to waste time for installations.
[Xperia Z1 Compact Android Development] munjeni:
I can't call it fast and better in case somebody give me an bug which is in most case caused by unclean installation, that way sure can't help me. So from that reason again please do not report bugs if somebody have unclean installation or have installed some mods!
[Xperia Z1 Compact Android Development] s.t.a.r.s:
I make full backup with twrp, then install and wipe with aroma. Everything is ok, I restore my data with twrp. Works fine :good:
[Xperia Z1 Compact Android Development] vildevilde:
[/COLOR]

Therefore I don't report any bugs and I'm sorry that I can't but on the other hand, this rom is already working perfectly for me the way I use it
[Xperia Z1 Compact Android Development] jho55:
Of course you can! If you experience some strange behaviour after dirty flash then do a backup with twrp, clean install and see if problem still exists. Now you can report it because you tried it with clean install.
[Xperia Z1 Compact Android Development] vildevilde:
That's right :good: I will do that if I find some problems. :)
[Xperia Z1 Compact Android Development] zhy326_cn:
In the latest version, when installing software, the install button is gray. I've rolled back the version of the September patch, hoping to fix it, although this problem lock screen and unlock can be solved temporarily.:crying:
[Xperia Z1 Compact Android Development] olli0371:
Hi. I face this issue too. In this situation - open Android setting (toothwheel) and then just go back and try again. For me this workaround works in all cases.

Oliver
[Xperia Z1 Compact Android Development] bananabytes:
Hi I know this is probably getting ahead of things but I just read about the KRACK wpa2 thing. I swapped to this ROM after using the really unstable ASOPA rom because it took so long for any decent camera support to come around. But the Bluebourne thing spooked me and I wanted to switch as soon as a patched rom came in. Like I posted before I'm loving this rom, had no idea that the AOSPA rom was that unstable in comparison. I don't think it's crashed once. Anyway, [MENTION=4120742]munjeni[/MENTION] are you planning to be on top of a WPA2 patch if it gets released?? I know it's early but I hear the info is coming out tomorrow.

Second I wanted to ask a question. I never did hardware encryption before because it seems like it made rom flashing more complex. Well I decided to do hardware encryption. I am using TWRP. I thought maybe I'd be able to enter my password in TWRP but it doesnt' seem to be the case. Maybe I can't do a dirty flash but how can I flash back over the encrypted partition? I don't mind starting all over but TWRP seems different now so if someone could explain the steps I'd appreciate it
[Xperia Z1 Compact Android Development] hackintosh5:
What can I do to get the git out

---------- Post added at 08:17 AM ---------- Previous post was at 08:15 AM ----------

I've read that up-to-date TWRP can deal with it... What happens when you open the TWRP file mgr?
[Xperia Z1 Compact Android Development] bananabytes:
What counts as up to date? I have 3.0.2 . I think there is a newer version but I get nervous about flashing it because in all the Z1C's I've had, the USB port gets messed up from charging, and I end up having to use the mag port to charge. Thankfully I flashed the updated real recovery FW and TWRP into this before the port became unreliable. But I get very nervous about using adb to flash again because the port will barely register and one nudge can disconnect it.

What should TWRP look like? I noticed that it asks on boot, do you want to keep system read only, and I can say no. But then it doesn't mount system right away. I went into settings to try to mount it and did see that I could browse that directory, but the other directories seemed empty, which is what was throwing me off, and I don't understand how I can see files at all on /system if they are really encrypted, because I did not have to enter my password anywhere on TWRP. Sorry if this is a newbie question. I guess it seems like nothing is stopping me from flashing but I don't actually even understand how that works if it is in fact encrypted.
[Xperia Z1 Compact Android Development] hackintosh5:
/system shouldn't ever be encrypted, as it stores factory reset data, only userdata should be encrypted.
[Xperia Z1 Compact Android Development] r100:
I'm using TWRP 3.1.1, it's working fine so far :)
[Xperia Z1 Compact Android Development] dmgZero:
In addition to the previous post:)

The latest version of the TWRP at this moment is 3.1.1 and has many fixes compared to 3.0.2.

Changelog:

What's new in 3.1.1-0:

Backups will now include adopted storage keys (Dees_Troy)

Fixed an adb restore issue (bigbiff)

Fixed rebooting when no OS is present (Dees_Troy)

Fixed line wrapping in the GUI terminal (_that)

Updated TWRP source code to AOSP 7.1.2 (Dees_Troy)Updated TWRP source code to AOSP 7.1.2

--------------------------------------------------------------------------------------------------

What's new in 3.1.0-0:

vold decrypt on a few select HTC devices, TWRP will now attempt to use the system partition's vold and vdc binaries and libraries to decrypt the data partition (nkk71 and CaptainThrowback)

adb backup to stream a backup directly to or from your PC, see documentation here (bigbiff)

tweak MTP startup routines (mdmower)

support new Android 7.x xattrs for backup and restore to fix loss of data after a restore (Dees_Troy)

support POSIX file capabilities backup and restore to fix VoLTE on HTC devices and possibly other issues (Dees_Troy)

better indicate to users that internal storage is not backed up (Dees_Troy)

improve automatic determination of TW_THEME (mdmower)

minimal getcap and setcap support (_that)

try mounting both ext4 and f2fs during decrypt (jcadduono and Dees_Troy)

shut off backlight with power key (mdmower)

timeout during FDE decrypt (Dees_Troy and nkk71)

support for FBE decrypt and backing up and restoring FBE policies (Dees_Troy)

boot slot support (Dees_Troy)

TWRP app install prompt during reboot (Dees_Troy)

support for AB OTA zips (Dees_Troy)

support new Android 7.x log command (Dees_Troy)

update recovery sources to AOSP 7.1 (Dees_Troy)

numerous bugfixes and improvements by too many people to mention
[Xperia Z1 Compact Android Development] munjeni:
Can you explain a bit detailed, I'm not understand what problem is!
[Xperia Z1 Compact Android Development] munjeni:
WPA2 patch? You mean wifi? Its allready working, I'm using wpa2 all the time! Or you mean about something diferent?
[Xperia Z1 Compact Android Development] dmgZero:
Probably this problem is still not fixed by lineage team.
[Xperia Z1 Compact Android Development] hackintosh5:
It's this one! https://betanews.com/2017/10/16/krack-wpa2-security-vulnerability/
[Xperia Z1 Compact Android Development] munjeni:
Oh didn't know about that, but poc is curently unavailable? I will merge patch till after we see them, if somebody found it allready tell me please!
[Xperia Z1 Compact Android Development] munjeni:
Hm, I noticed that yesterday for the first time, applications which is on internal sdcard I'm unable to install with file explorer app, but with builtin Files app I can, I'm believing more things is broken after security patch update done by lineage team, I see that many is allready fixed like some appops e.g. in microphone permissions I was not able to show system apps but its now fixed, we will get it just need some patience..

Fm radio is priority for me right now, want to fix it fully :) Implemented fm_qsoc_patches, yesterday had some problems with it since wifi script was not ok, got it today but seems audio volume control for fm problem is unrelated to it.
[Xperia Z1 Compact Android Development] munjeni:
Lineageos audio-caf for msm8974 is very outdated :( I will try to merge with codeaurora latest changes somehow
[Xperia Z1 Compact Android Development] jho55:
I think he means this issue: http://www.telegraph.co.uk/technolo...ice-risk-unprecedented-krack-attack-security/
[Xperia Z1 Compact Android Development] dmgZero:
Some words about NFC/HCE/AndroidPay.

I found THIS thread.

One of the conditions involves patching the kernel with a unique file for each phone with DRM keys (TA.img):

Sony Cross-Device General [PoC][Work in progress] Trim Area Proof Of Concept by munjeni :)

Perhaps on z1c, we need to do something similar?

Maybe this is the reason that AndroidPay does not work?
[MENTION=4120742]munjeni[/MENTION]

Is "Trim Area Proof Of Concept" method working with z1c?
[Xperia Z1 Compact Android Development] mirhl:
Android pay (in turn what you need to test HCE) requiring safetynet clearance can only make sense.

Instead DRM restoring in order to pass safetynet is new to me.

Maybe it's something in sony stock rom, but I'm kind suspicious aosp/lineage to have anything like that.
[Xperia Z1 Compact Android Development] s.t.a.r.s:
Hello, the camera makes me crazy.

Videos can't stored on SD card.

Sometimes the camera app crashes, after some preference , so I have to delete data from the app.

Pictures are OK.

Anyone here with the same issues?
[Xperia Z1 Compact Android Development] hackintosh5:
Use another app, if you don't like lineage camera. At least there is camera support. [MENTION=4120742]munjeni[/MENTION] said that he won't modify LOS apps unless necessary for workability!

EDIT: I guess OMS wouldn't count, I hope that we can have it!? So few free substratum legacy themes.
[Xperia Z1 Compact Android Development] munjeni:
Yes you can use poc! I don't know anything about android pay since I'm not using nfc. You guys need to give me hint how to fix it! YOu guys need to debug it and post me error log (not whole log since I have no free time messing with nfc since I don't use nfc and I can't test it! Need error line only in case somebody found it)
[Xperia Z1 Compact Android Development] munjeni:
Apsolutly working ok at least for me! Did you changed some camera configuration? Which one? What? Be more specific please. Put more efforts on it and try to get reason for camera crash, only that way we can do something. Without more details we can't do anything. Try clean rom installation, don't use mods and etc. Consider reformatting your external sdcard maybe it is corrupt somehow!

Edit:

this is how I fix totally broken sdcard

adb kill-server
adb shell
dd if=/dev/zero of=/dev/block/mmcblk1 bs=524288
fdisk /dev/block/mmcblk1
n
p
1

t
b
w

parted /dev/block/mmcblk1 --script mkfs 1 fat32

exit
adb kill-server

for this you need parted and fdisk tool. But probably you can do the same with twrp format menu
[Xperia Z1 Compact Android Development] hackintosh5:
I have full safetynet clearance, but Android Pay, HCE, neither work! DRM is irrelevant to AP.
[Xperia Z1 Compact Android Development] dmgZero:
NFC/HCE/AndroidPay

[MENTION=4900593]mirhl[/MENTION] [MENTION=7681423]taudelta[/MENTION] [MENTION=5970199]BokeB[/MENTION]

To find a NFC/HCE/AndroidPay bug, we need before we approach to the terminal (to pay something), click on the "Record" in the LOGGING PROGRAM.

After an unsuccessful payment, press "Stop".

The log file can be placed here.

It's only way:)

If someone knows the program better then CatLog, tell us.;)
[Xperia Z1 Compact Android Development] mirhl:
Because HCE in the first place is broken on the driver level.

So stop complaining at random, and post logcats for munjeni (maybe even dmesg?)

What I said.
[Xperia Z1 Compact Android Development] hackintosh5:
I wasn't complaining - i must have misunderstood, as i thought this meant that you were trying to fix AP. [MENTION=4120742]munjeni[/MENTION] has given up on HCE and AP, but if u have a fix, share by all means. Please test first.
[Xperia Z1 Compact Android Development] munjeni:
Soon I will post final build and move to the oreo! Today done some work on audio-caf, cleared some common bugs but had no luck fixing volume control in fm, have no idea why it not working :(
[Xperia Z1 Compact Android Development] hackintosh5:
Alternative is to turn on persistent logging - doesn't require root! That is what I used when I posted my traces, w/ dmesg, but neither had anything useful, according to [MENTION=4120742]munjeni[/MENTION]. Phone did not make NFC sound, unlike when reading tag, so I think broken routing was the cause.
[Xperia Z1 Compact Android Development] munjeni:
I didn't see errors in audio so I'm believing we also need to update mixer_paths.xml file as we are now on modern xml based audio policy! Thats a hard part for me since I not understand these things from mixer_paths.xml . When I post final build hope somebody look on that mixer_paths.xml and try do something on it.