yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Compact Android Development] munjeni:
Current status and things ready for next build:

- fix factory reset

- improved lightsensor and fixed it in kernel too

- implemented missing power api (which was noticeable in logcat) -> https://android.googlesource.com/device/lge/bullhead/+/7cb64b6267ded379c136146d58c59204a27fa391^!/

- improved mixer_paths

- fix manual network selection (in all previous builds network autoback to the the autoselection, in next build its fixed finaly)

Will check this now https://github.com/MotorolaMobilityLLC/kernel-msm/issues/85

When I start ims_rtp_daemon getting cannot locate symbol "EVP_EncryptFinal" , fixed it by hex modifying lib-imsdpl.so (rename libssl to libsss and rename libcrypto to libcryptt, so used libcrypto and libssl from stock rom and renamed it), got it runing, now I will need to check overlay config and add some service as mentioned in github above, hope we get volte :) Question is does volte is even available? Does stock rom have volte?

Before I release next build, do you have idea why sim batch operation is not working? When we disable batch operation we have "import sim contacts from sim" working but export sim contacts to sim is not working because of the disabled batch! Batch operation is need for sim contacts! Do you have idea what we need to do to get it fix?

Also do you have idea what is need to fix audiofx on audio player? On youtube audiofx is working flawless but not on builtin audioplayer, as somebody mentioned workaround is to set mono than stereo and it start working but for one session only, so in next player opening thing stereo/mono must be repeat to get it working again which is realy anoying.
[Xperia Z1 Compact Android Development] knv01:
Cannot confirm. Battery drain is good.
[Xperia Z1 Compact Android Development] munjeni:
Yes, he confirmed later that all is ok! I can confirm too that battery drain is not good but very good :)
[Xperia Z1 Compact Android Development] BEDAMATI MAHANAND:
oh my god....it will be super awesome if u can make the volte work. :o :D

no the stock rom doesnot have volte functionality. :(
[Xperia Z1 Compact Android Development] munjeni:
Yes, I'm fixed all binaries for undefined symbols in next rom which I'm going to publish within next 30 minutes, next build will be ready, but I din't got volte enabled. We still have all services enabled and I can start that services with (setprop sys.ims.DATA_DAEMON_STATUS 1) and when I grep (getprop | grep ims) all services is up and runing, but no volte option in hiden menu (*#*#4636#*#*), have no idea what is need for volte! I'm also enabled volte options in framework-res! Anybody decompile framework-res.apk and check if something volte related is FALSE?? I will publish new build within next 30 minutes!
[Xperia Z1 Compact Android Development] munjeni:
New build is out!

- lineage-14.1-20171007-munjeni-amami.zip : fix factory reset bug, fix manual network selection which was autoreset to automode selection, implemented platform level sleep state stats into power module hal, improved mixer_paths, fine tuned lightsensor hal (to get it more fine tuned move brightness slider to the level you like), implemented volte but curently I have no idea how to enable it. Fix rmt_storage because of the missing modem_fs1 and modem_fs.2. Gps improved, enabled secure XTRA, bluetooth BLE_VND anabled, QTI_SW enabled, disabled SC_MODE

LeneageOS changes: android security patch level 05.Oct.2017 , the rest of changes on his site.
[Xperia Z1 Compact Android Development] munjeni:
Just wanted to try fix audiofx, noticed that it is allready fully working on builtin music app!! ;)
[Xperia Z1 Compact Android Development] BEDAMATI MAHANAND:
the volte provisioned flag can now be turned on,but not working.
[MENTION=4120742]munjeni[/MENTION] where can i find the framework-res apk that u wanted to be checked for volte ?
[Xperia Z1 Compact Android Development] munjeni:
Sorry forgive that, you need to decompile #ystem/framework/framework-res.apk. How you enable provisioned flag?
[Xperia Z1 Compact Android Development] BEDAMATI MAHANAND:
using the hidden menu *#*#4636#*#*
[Xperia Z1 Compact Android Development] dmgZero:
Enabling the VoLTE sometimes requires a manual addition of the service from the operator. Or you've added?
[Xperia Z1 Compact Android Development] munjeni:
Don't know what is need, for me under hiden menu its grayed out and can't enable.
[Xperia Z1 Compact Android Development] BEDAMATI MAHANAND:
in india there is a network called "jio 4g".this network is offering volte calls only.if your phone doesnot have volte functionality you can't call using the normal dialer app.you will have to download an official app to make call provided by that jio 4g operator.
[Xperia Z1 Compact Android Development] s.t.a.r.s:
I can en/disable, but i dont't have LTE to test it?!
[Xperia Z1 Compact Android Development] munjeni:
Hm seems my sim is not volte capable and thats reason why I have grayed volte. But how you determined that volte is not working? Did you look into logcat?
[Xperia Z1 Compact Android Development] munjeni:
Update. Right now I have noticed that audiofx stopped working, so I switched from headphones to the speakers by settings swith in audiofx app settings, and its started working in speaker mode instead of headphone mode, strange, than I unplugged audio jack and pluged it back everything started working again booth on youtube and builtin music app. Strange. Might be a problem with audio jack detection? For example we need this config_useDevInputEventForAudioJack ? Also audio jack icon is missing when audio jack is pluged in, is that lineageos specific feature or we missing something?

+<resources>
+ <!-- When true use the linux /dev/input/event subsystem to detect the switch changes
+ on the headphone/microphone jack. When false use the older uevent framework. -->
+ <bool name="config_useDevInputEventForAudioJack">true</bool>
+</resources>

Seems that bolean exist in navigation bar part too? https://github.com/android-ia/vendor_intel_common/commit/58cbe0f0353f86fdab886f6d92e9d2b496d99393

Reading this http://www.programering.com/a/MDM2YjMwATk.html its by default false.

Edit:

Yes! On stock rom its true https://github.com/munjeni/D5503_14...mework/framework-res/res/values/bools.xml#L85

Edit:

Oh wehave that too :)
[Xperia Z1 Compact Android Development] hackintosh5:
Munjeni your site is down

[MENTION=4120742]munjeni[/MENTION] Just FYI your site is down - index has "recently registered with namecheap" and then some ads, link from OP gives error message, site sent no data! See screenshots.

EDIT: over mobile data I get 403 not authorised whatever page i choose (in your site of course).

EDIT 2: looks like myiphost.com expires today according to ICANN whois lookup!! might want to look at customer service!
[Xperia Z1 Compact Android Development] ra9na:
I could access the site and I already downloaded the latest ROM. I will install it today. By the way: how do you restore the data partition after updating? Or do you actually always do a fresh restart?
[Xperia Z1 Compact Android Development] Frunzdoedel:
http://xdaforums.com/showthread.php?p=74016996
[Xperia Z1 Compact Android Development] ra9na:
That means,if you want to wipe it, you habe to do it manually outside of the Aroma installer?
[Xperia Z1 Compact Android Development] hackintosh5:
When did you access? Was working till about 7:00 pm British time.
[Xperia Z1 Compact Android Development] ra9na:
Around one hour ago. Now I cannot access it,too!
[Xperia Z1 Compact Android Development] olli0371:
Hi,

i checked in my phone with your previous Rom , but i couldn't find the file. May be this change can only be eine in the Rom source ?

By the way - your site is down. I can not access it, too.

Oliver
[Xperia Z1 Compact Android Development] BEDAMATI MAHANAND:
no, i tried making a volte call,but failed. :D

<strike>where will i get the logcat ? ;) </strike>

got the answer from google :p

i will post the logcat.
[Xperia Z1 Compact Android Development] hackintosh5:
[MENTION=4120742]munjeni[/MENTION] Not trying to pester, but now seems a good time to put builds on github. Use github releases for builds, and source is available.

---------- Post added at 07:04 AM ---------- Previous post was at 06:59 AM ----------

Please could you post this!!!

I need the latest version
[Xperia Z1 Compact Android Development] munjeni:
myiphost.com domain is somehow not working, I have temporary added new domain, use this http://munjeni.soundcast.me/LineageOS_14.1
[Xperia Z1 Compact Android Development] jho55:
Thank you very much for updating your rom very often! It is very cool to see how you are deep diving into the code everyday to help us getting Nougat that actually tastes good. ;)
[Xperia Z1 Compact Android Development] munjeni:
1. when audio jack is pluged in, reboot device, on next boot while audiojack is plugen in on boot, audio routing in audiofx is on spekars out, headset audiofx control is not working in that case. Need to replug headset to get it working inside headset audio control in audiofx

2. when unplug headset, reboot device, boot it up, plugin headset its ok than.

3. fmradio audio stereo routing is available only when enable reverb efect, in booth case

We are realy messed up in media profiles, mixer paths and audio conf.
[Xperia Z1 Compact Android Development] vildevilde:
I just want to tell that I did this with last build and it worked very good. I did wipe cache and dalvik before installation. Now I didn't have to reinstall everything I have on the phone.
[Xperia Z1 Compact Android Development] olli0371:
Hi,

i tested New built and Audiofx is still not working until you switch to Mono. I made clean install and pluged headphone in after reboot.

Oliver
[Xperia Z1 Compact Android Development] munjeni:
Hi, I just want to tell you guys please don't report bugs if you doing that way, I will abandon this if I found that somebody reported bug caused by dirty installation, I have no free time wasting time in that case, already spent much time on this project. So please don't modify if your goal is having all bugs solved! You can't help me that way! In case you modified updater-script and skipped recomended wipe please do not report bugs!
[Xperia Z1 Compact Android Development] vildevilde:
I'm aware of that, but this is may every-day-phone, if I shall reinstall my apps, enable signature spoofing and log in to my bank and kill my bankid then make a new bankid, configure my e-mail and so on each time there is a rom-update, this will not work for me.

I do a full backup before doing a new rom installation and if above method is not working I can always go back and do the installation of the new rom the "right" way.

I'm sorry that by doing this I can't be any help making the rom better but I need to use the phone not play around with it. Before I had a spare Z1c to have for testing and but my wife is using that as her daily phone now because her old phone died some time ago.

Anyway I have to thank you munjei, you have given me a chance to keep my Z1c live the way I want it, no google, no gapps, no log in on any account and still be able to use my bank app and everything else I use a phone for.
[Xperia Z1 Compact Android Development] munjeni:
No prob man I understand you but in that case please don't report bugs, I accept reports from propertly wiped rom, have no sense looking into bugs caused by something diferent e.g. dirty flashed rom, thats why I implemented wipe script.
[Xperia Z1 Compact Android Development] s.t.a.r.s:
Hi, i have a problem.

The cams crashs the hole time?!

Last build, yesterday was OK.
[Xperia Z1 Compact Android Development] munjeni:
Did you folow this -> https://xdaforums.com/showpost.php?p=74082696&postcount=637
[Xperia Z1 Compact Android Development] s.t.a.r.s:
"Sony" at my logfile??

Yes i used the aroma installer
[Xperia Z1 Compact Android Development] munjeni:
My wrong sorry, I'm looking curently into stock rom logcat and somehow your log is disapeared and my log which I looking now is opened in main window sorry! I have modified prev post. Seems this is a time for break :p Can you please tell me what you done to camera when it crashed, more details? And also did you recently changed some camera configuration?
[Xperia Z1 Compact Android Development] s.t.a.r.s:
no problem ;)

actually not, wanted to make a photo today, did not change anything. the camera crashes directly at the start, after reboot the same

Edit: i cleared data and cache from camera, now it's ok
[Xperia Z1 Compact Android Development] olli0371:
Hi, it was normal non Sony headphone.

Does it help to look for Files from lolipop stock Rom ?

Oliver
[Xperia Z1 Compact Android Development] chris2017@xda:
Hi munjeni, manual selection of network operator seems to be persistent now, thank you very much!

There's only one minor issue, in my mind negligible:

When I switch from the automatically selected network operator (vodafone.es) to another roaming network operator (movistar), the message "registered on network” appears immediately.

But then the phone disconnects ("no service") and it takes approx. 1 min until it connects to movistar.

The other way round (movistar -> vodafone) is almost instantaneous.

I have attached a log for your info.

approx. times:

23:40:00 start search for network operator

23:41:00	display list of network operators

23:41:30 select vodafone -> “registered on network” appears. ... connected to Vodafone

23:42:01 start search for network operator

23:42:40	display list of network operators

23:42:50 select movistar -> “registered on network” appears, but disconnects

23:44:01 connected to movistar

Thanks again for all your efforts!
[Xperia Z1 Compact Android Development] dikomel:
Hello, in the standard camera app video recording is dark when the average light in the room. But in google camera is normal brightness. Someone can confirm this? It was build on 7 September.

Sorry for my bad english :p
[Xperia Z1 Compact Android Development] r100:
Cannot confirm, I still have a bright screen in standard camera. Have you enabled the 'bright screen' option in the settings of the camera? Perhaps it's disabled, and I believe Google enables it by default for its own camera app.
[Xperia Z1 Compact Android Development] TheCarFierce:
Is it possible to add some CPU core models in Z1C KERNEL?
[Xperia Z1 Compact Android Development] dikomel:
In the settings I wasn't looking 'bright screen' option, thanks for the advice.
[Xperia Z1 Compact Android Development] hackintosh5:
On your website, all the download links still point to soundcast, despite myiphost being back up and running:confused:. It is breaking my automatic updater script's regexpr:(
[Xperia Z1 Compact Android Development] munjeni:
No sorry
[Xperia Z1 Compact Android Development] munjeni:
Hm, I'm see only this in your log (thats from oem binary closed source and we can do nothing on it):

qcril_qmi_nas_coex_control_process_rf_band_info: Null Pointer

and

10-08 23:43:31.233 E/RILQ ( 302): (0/302): RIL[0][event] qcril_qmi_coex_util_convert_gsm_active_channel_to_frequencies: Invalid active band

10-08 23:43:31.233 E/RILQ ( 302): (0/302): RIL[0][event] qcril_qmi_coex_util_convert_gsm_active_channel_to_frequencies: Unknown active band 80 or active channel 0

I'm believing that carier have some configs which we curently not support?

And this:

10-08 23:41:37.774 D/RILJ ( 1513): [5708]< OPERATOR {vodafone ES, vodafone ES, 21401} [SUB0]

10-08 23:41:37.792 E/RILC ( 302): RIL_onRequestComplete: invalid RIL_Token

Have no idea realy.

Things we can do, In build.prop we have this set:

ro.telephony.default_network=9

Can you check in hidden menu *#*#4636#*#* that network selection is on LTE/GSM Auto (PRL)?

Things which we need to add in next build:

ro.multi.rild=false

persist.dsds.enabled=false

ro.dual.sim.phone=false

persist.radio.multisim.config=none

ro.telephony.sim.count=1
[Xperia Z1 Compact Android Development] munjeni:
I'm checked right now and all links is ok! Even domain myiphost.com is back again so booth is working. Can you remove your browser history or at least refresh page?
[Xperia Z1 Compact Android Development] ra9na:
I've installed the latest ROM (cleaned everything before) and I have to say,that while calling the caller cannot understand me. That means the mic is not correctly routed. Can someone else confirm this?

And AudioFX is still not working...
[Xperia Z1 Compact Android Development] munjeni:
Can you try call somebody other just to be sure? And also please when you report bug please write more details e.g. what you have done, how you have tested, what you have tested, what you have found, much much more details is need! Put more efforts please.
[Xperia Z1 Compact Android Development] ra9na:
That's odd... Now both calls I placed were OK. The only difference was, before the two calls I had plugged in headphones.

Let me be a little more precise:

This morning I was called and the called couldn't hear me. After that someone called me while I had headphones plugged. Then also the caller couldn't hear me. Now I called two different numbers and in both cases the caller could hear me.

So that means the mic only works if you place the call?
[Xperia Z1 Compact Android Development] olli0371:
Hi, i Trier both directions. I called fix phone and i called my xperia Form fixed phone. Both was OK. But I didn't use headphone at this time.

Oliver

P.s. But audiofx has still the same problem
[Xperia Z1 Compact Android Development] munjeni:
We have problem with wrong audio routing when headset is plugen in in bootime, mean if audio jack is pluged e.g. while you rebooted phone without removing audio jack than audio routing is messed up! In that case audio routing is somehow routed trought audiofx speaker switch instead of headphone switch! To get it fix you must reconnect audio jack and connect only after phone is booted up! Or in case you didn't removing audio jack when you reboting and booting again without removing audio jack, in that case simple unplug in and plugin again, audio will work.
[Xperia Z1 Compact Android Development] munjeni:
Qcom audio have some more cflags for audio building, I'm curently testing some more, expecialy for fm, lets hope we get some progress. Also have updated audio_policy, checked mixer paths (which is almost identic to stock rom). Can you post logcat while you notice problem?

Strange thing is fm radio, when I enable reverb in audiofx stereo is working :o
[Xperia Z1 Compact Android Development] olli0371:
Hi. If you tell me how to get logcat i will post it

Oliver
[Xperia Z1 Compact Android Development] dmgZero:
[Tutorial] How To Logcat
[Xperia Z1 Compact Android Development] A_Laser:
Maybe i found a bug. Seems that the setting option install form other sources is broken.

I installed the last version of the rom (20171007) and i allowed in the settings to install apps from other sources. If i want to install a application from a .apk-file, the install button in the install-dialog is grayed and cannot be chosen. This happens at some apps (adobe reader, amazon app store, ...) other apps have no problems with installing.

But if i doesn't allow to install from other sources in the settings - these problematic apps can be installed...

With the previous version i had not such problems. :confused:
[Xperia Z1 Compact Android Development] olli0371:
I can confirm this. In case grayed out 'Install' button it is enough to open Android settings from pull down menu and open the problematic apk file again. Usually it works then.

Oliver
[Xperia Z1 Compact Android Development] hackintosh5:
I have forced refresh of myiphost site without cache, and run own python script, and both say that

<a href="[url]http://munjeni.soundcast.me/LineageOS_14.1/lineage-14.1-20171007-munjeni-amami.zip">lineage-14.1-20171007-munjeni-amami.zip</a>[/url]

is the link to download rom - note that it refers to soundcast.me.
[Xperia Z1 Compact Android Development] hackintosh5:
See screenshot of hidden menu.
[Xperia Z1 Compact Android Development] r100:
As the kernel is based on stock, the GPU frequency in idle doesn't go lower than 320 MHz (according to CPU-Z).
[MENTION=4120742]munjeni[/MENTION] would Adreno idler be a useful addition to your rom? It is supposed to save a significant amount of power:

https://xdaforums.com/android/software-hacking/adreno-idler-idling-algorithm-devfreq-t3134872
[Xperia Z1 Compact Android Development] TheCarFierce:
Can increase DOZE mode ??
[Xperia Z1 Compact Android Development] munjeni:
Day ago myiphost.com domai nwas not working so I switched to soundcast.me, now booth is working, I will remove soundcast.me
[Xperia Z1 Compact Android Development] munjeni:
Probably later, now I am focused fixing remaining bugs, priority is having all solved if it is posible.
[Xperia Z1 Compact Android Development] munjeni:
Sure, probably new LineageOS bugs is out after 05.10,2017 security update merges, thats expected, it will be solved soon by lineage team!
[Xperia Z1 Compact Android Development] poruid:
[MENTION=4120742]munjeni[/MENTION]: please publish your code on github.

For many reasons, first of them being security, but it would be helpful as well in reaching official LineageOS support status for the Z1C and last but not least, it will allow others to more actively contribute.

---------- Post added at 06:37 PM ---------- Previous post was at 06:35 PM ----------

Seems like an error in the the audio routing FSM.
[Xperia Z1 Compact Android Development] hackintosh5:
[MENTION=4120742]munjeni[/MENTION] this will also help if myiphost goes down again - we can just download Github releases!

Please, please, please!
[Xperia Z1 Compact Android Development] munjeni:
I will need to merge msm8974-common, rhine-common and amami device tree's so it will no more depend of outdated rhine-common and messed msm8974-common, don't know when I will do it. Puting source code on git can't help fix our audio bug.

Thing which I have noticed when I add AUDIO_DEVICE_OUT_FM to the primary output or to the low latency in audio_policy.conf fm recording is working fine but fm audio out is not working in that case, you can help me solve this, I'm believing audio_policy.conf and mixer_paths.xml need to be check globaly for all problems which we have in audio! The rest of audio things looks ok.
[Xperia Z1 Compact Android Development] munjeni:
No. Github is not for that purpose!
[Xperia Z1 Compact Android Development] poruid:
So, presumably the code used to build the ROM (on your development environment) is managed locally with git, but first needs to be rebased before you can merge your changes. Having to deal with more changes makes that harder, so waiting longer will make this harder.

Certainly you know this, so please do not feel pressed; it's just a hint.
[Xperia Z1 Compact Android Development] hackintosh5:
Absolutely it is for this purpose - you can upload source code to Github, build it on your own build machine, and upload the zip to the releases page!
[Xperia Z1 Compact Android Development] ra9na:
In my opinion a very convenient tool!

But the more differences exitst, the harder it gets to merge everything.
[Xperia Z1 Compact Android Development] munjeni:
rhine and amami is oitdated on lineage git so I think making new branch without changelist can be accepted, but msm8974 common probably will need rebasing and making a lot push reguests, I am lazy doing that. I will open amami on github when I get time for that.
[Xperia Z1 Compact Android Development] munjeni:
Anybody tried lineageos kernel msm8974 with our build?
[Xperia Z1 Compact Android Development] munjeni:
I'm definitelly switched now to the xml based audio policy and custom audio policy, will no more use obsolete audio policy, anybody help me colect all acdb ids from audio like this https://github.com/LineageOS/androi...on/blob/cm-14.1/audio/audio_platform_info.xml ??
[Xperia Z1 Compact Android Development] olli0371:
Logcat

Hi, i have created logcat as requested in the following was:

Start logcat

Plug in headphones

Start music player

Open audiofx and enable it

Switch between different modes

Disable audiofx

Stop the player

Finish.

I would like to send the file to you. Can I send it as PN as I do not want to attach it here open for everybody as I do not know what exactly is inside.

Oliver