yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Compact Original Android Development] Brozada:
Note / Question about Camera quality:

I've been comparing picture quality for some ROMs, and apps, and my conclusion is that I don't found any remarkable difference. I've read on many sites that the best quality comes from the stock ROM, but I really cannot notice any difference.

Main comparison were performed among [MENTION=4120742]munjeni[/MENTION] LOS 14.1, Lollipop Stock and this ROM, using Sony Camera with Superior Auto and Manual mode at 20Mpx in stock and default camera and OpenCamera (tried some others also, even some stock port for nougat) for custom ROMS

At Low light there are no noise differences, all them are noiser. At normal light same results. Macro focusing seems to work better for stock, as you can see the macro focus when placing objects very close, but if you use OpenCamera and select macro, the camera does not keep the focus while pointing, but the macro focus works when pressing the shutter, so the final picture is the same.

Almost not noticeable, but for me it seems that OpenCamera gets slightly better results on normal usage (and worst results in HDR) than any other option including stock sony

I also got surprised that Google Camera (4.1.006) has the famous focus effect (bokeh) by slightly moving the phone after pressing the shutter, and the results are not so bad..

So, this is my experience with this. Anyone has more info on the topic, or know if it's possible to enhance the camera?
[Xperia Z1 Compact Original Android Development] AreusShow:
Comrades, how to install root on this firmware?I want to install updates, but after rebooting again returns me to the same version. I want to install root, and the system does not.. maybe there is a hidden feature to enable the ability to install root?
[Xperia Z1 Compact Original Android Development] lm089:
From recovery you flash a root solution like magisk
[Xperia Z1 Compact Original Android Development] AreusShow:
so how do I recovery that will put if there is no root?
[Xperia Z1 Compact Original Android Development] lm089:
Is this firmware already running on your phone, or are you just asking? If you already flashed it then you should know how to enter recovery because that's usually where you flash your firmwares from. If not, or if you simply forgot: have a look at the OP of this thread here, there you find full installation instructions including hints regarding recovery AND on how to get root.
[Xperia Z1 Compact Original Android Development] AreusShow:
When I installed this firmware, I did not install magic . After installation, there is neither dual recovery nor root. If there are no hidden settings, although in some versions I saw that in the settings you can set the superuser mode. Ah well will Have to demolish through a flash drive and anew all questioning.:cyclops:
[Xperia Z1 Compact Original Android Development] lm089:
Not sure if I understand this. Assuming that you still have a working recovery partition then you simply can boot into it, then flash magisk from recovery which will patch your current firmware
[Xperia Z1 Compact Original Android Development] Brozada:
Turn off and then press power button + vol down together and simultaneously until phone vibrates. This way you should boot into TWRP
[Xperia Z1 Compact Original Android Development] AreusShow:
I told you .....no twrp .....however I have already rolled back using flashtool
[Xperia Z1 Compact Original Android Development] Brozada:
And you had installed TWRP before with:

fastboot flash FOTAKernel twrp.img

Or

fastboot flash recovery twrp.img

?
[Xperia Z1 Compact Original Android Development] Neverwind:
So can someone give me a clue what's going on with my phones and AICP?

After a certain build (I don't remember which one) I keep having incorrect battery level readings and the phones keep shutting down around 60%.

Sometimes, after a restart, the battery level drops from say 72 to 8 and I assume this is the correct state. Unfortunately, after a full charge, the problem still exists - the phones shut down half way the supposed battery charge.

I keep saying phones, cause I have two amami devices and they both experience the same issue.

Edit: I've tried everything I know - installed AICP over a stock rom, formatted the whole device before installing, tried offline charging for a long time, tried online charging for a long time, tried deleting the battery stats files - nothing seems to help.

Also, the same thing happens with the Pie version of the rom...
[Xperia Z1 Compact Original Android Development] Peterthebrecker:
I don't think it's related to the rom. What you're describing is typical for older batteries. I had similar experiences. Now I got a new battery and everything is fine again. How are your batteries? Try changing them!
[Xperia Z1 Compact Original Android Development] Neverwind:
One of the phones is less than an year old...but it still could be a bad battery, I guess.

Thanks, I'll try changing one of the batteries to see if it works.
[Xperia Z1 Compact Original Android Development] underflash:
This has nothing to do with your ROM or build. Had the same malfunctioning, changed battery, no problems since. Get it here https://www.aliexpress.com/item/Ori...998.html?spm=a2g0s.9042311.0.0.27424c4ddRhZc5

Also I would advise to get new sticker https://www.aliexpress.com/item/Fro...218.html?spm=a2g0s.9042311.0.0.27424c4ddRhZc5
[Xperia Z1 Compact Original Android Development] Snapdrag1:
Hi,

I have a strange issue since 2 days. When incoming calls I Can't hear something speakers and microphone are muted. WhatsApp calls works fine. Someone can help me?

---------- Post added at 09:00 PM ---------- Previous post was at 08:55 PM ----------

Also I recognized that I have only 400 MB of free ram since this issue. Before I had over 1000 MB free ram.
[Xperia Z1 Compact Original Android Development] underflash:
Anyone tested full phone encryption with this ROM?
[Xperia Z1 Compact Original Android Development] underflash:
Got boot looped after disabled stock Youtube and installed Youtube Vanced from Magisk repo. Side-loaded latest ROM (aicp_amami_o-13.1-WEEKLY-20190129) with Wipe Dalvik Cashe/Wipe Cashe without any error, but still stuck at AICP logo.

UPD: seems like the latest Magisk v.18.0 is the problem. Wiped System, wiped Dalvik Cashe, wiped Cashe, side-loaded latest ROM (aicp_amami_o-13.1-WEEKLY-20190129), boot loop is gone. Side-loading Magisk v.18.0 = stuck at AICP logo.
[Xperia Z1 Compact Original Android Development] firestone9x:
Hi,

I took a couple of shots with Open Camera and it is definitely better than the stock one on this ROM.

Have you tried enabling video stabilization or Camera2API?

I made modifications to the build.prop but it doesn't seem to work in Open Camera, including the Camera2API features which are noise reduction, focus distance, etc.
[Xperia Z1 Compact Original Android Development] tramp20:
Hi SpiritCroc,

why does this Pie-ROM (05/02/2019	p-14.0 14.0-EXPERIMENTAL aicp_amami_p-14.0-EXPERIMENTAL-20190205.zip) appear in this Oreo OTA tree?
[Xperia Z1 Compact Original Android Development] Brozada:
I've not tried video stabilization, as I use google photos on postprocessing to achieve it. About camera2api, as far as I've read, it is not possible for z1 compact neither most Sony phones (at least old ones). Did you get it working?
[Xperia Z1 Compact Original Android Development] SpiritCroc:
We're preparing servers to switch to Pie for official builds.

Please keep in mind clean flash is recommended when upgrading to a new Android version.
[Xperia Z1 Compact Original Android Development] underflash:
Clean flash is a must! Upgraded by accident to this new ROM via OTA. Bad idea to mix aicp_amami_p-14.0-EXPERIMENTAL with p-13.0-WEEKLY without explicit note it will be update from Oreo to Pie.
[Xperia Z1 Compact Original Android Development] firestone9x:
Ohh alright. I use google photos too but it's really time-consuming and not viable for huge recordings.

Well, that's sad, I tried playing with the camera2api settings in the build prop but opencamera would still not show those features.

Guess there is no room for improvement with the Z1c camera. :crying:
[Xperia Z1 Compact Original Android Development] underflash:
Any time frame for a full switch to Pie?
[Xperia Z1 Compact Original Android Development] SpiritCroc:
No.
[Xperia Z1 Compact Original Android Development] underflash:
OK. And how about p-14.0-EXPERIMENTAL updates? Or was it a one time shot with 20190205?
[Xperia Z1 Compact Original Android Development] SpiritCroc:
It was a one time test of server infrastructure, might happen again or not, depending on whether we need more server tests and which device we randomly pick for it.

If you're interested in Pie builds, you can also go here https://xdaforums.com/sony-xperia-z1-compact/orig-development/rom-aicp-14-0-p9-0-amami-t3852388
[Xperia Z1 Compact Original Android Development] Brozada:
[MENTION=7996416]C.T.E[/MENTION]. in RZ thread found that Sony stock camera ported to nougat was working also on Pie ROMs. I'tested in LineageOS 16.0 from [MENTION=8036586]115ek[/MENTION] and RR7 from [MENTION=6812097]raschad[/MENTION] and it's working nicely (I just cannot save to SD)

Not tested, but probably it will work with AICP 14, as most commits of code and improvement on Pie roms came from [MENTION=6425591]@SpiritCroc[/MENTION]
[Xperia Z1 Compact Original Android Development] SpiritCroc:
End of official Oreo builds

AICP builds for Oreo have been stopped, and first Pie builds should already be available.

Make sure to backup your system (and your ROM zip if you intend to keep it), and do a clean flash when upgrading to a new Android version.
[Xperia Z1 Compact Original Android Development] firestone9x:
Ohh good to know. :) I never tried it since they mentioned that it's only for Nougat ROMS.

How is the Sony Camera quality/performance compared to OpenCamera or the stock ROM camera?
[Xperia Z1 Compact Original Android Development] Brozada:
You can find a slimmed version of the app made by [MENTION=6812097]raschad[/MENTION] in the same RZ kernel thread. Working fine. Performance is good and quality similar to other apps, but you get video stabilization and that kind of pseudo optical zoom (when using lower resolution than the sensor to take pics, you can zoom without interpolation up to sensor resolution limit, as the camera app takes only part of the sensor area).
[Xperia Z1 Compact Original Android Development] mcqtex:
Thank you for supporting the Z1C:) Because I never do an update, how I have to do it?

I searched for it but I don’t find a clear manual. Sometimes I have wo wipe something bevore I install the update, sometimes I have only to install the update and sometimes I have to wipe after installing the update?!?
[Xperia Z1 Compact Original Android Development] SpiritCroc:
I usually upgrade without wiping (works only when staying on the same ROM with same Android version), but it's recommended to at least wipe cache partitions. It does not matter whether you wipe cache before or after flashing.

When upgrading to a newer Android version (like 8 to 9) or switching the ROM, a clean install is needed (instructions in the first post on how to install apply).
[Xperia Z1 Compact Original Android Development] wepacad:
Hello. Where can I find the latest version of AICP Oreo? On the official website links not working
[Xperia Z1 Compact Original Android Development] SpiritCroc:
You can either use my last test build linked in the first post, or hope that another user has it backed up and shares it with you.

Old builds on the server were deleted, don't know why they're still listed
[Xperia Z1 Compact Original Android Development] jho55:
[MENTION=9838614]wepacad[/MENTION]: I can see if I can upload the last 13.1. release

Latest 13.1. AICP Release: https://megaupload.nz/ieQaX8abn1/aicp_amami_o-13.1-WEEKLY-20190226_zip
[Xperia Z1 Compact Original Android Development] jho55:
Does anybody have the case that after a while it is not possible to deactivate Wifi? Only a restart is solving it.
[Xperia Z1 Compact Original Android Development] Jiahui1997:
your link can't use:confused:
[Xperia Z1 Compact Original Android Development] sabotage154:
can anyone confirm if always on > block vpn works on this rom? (kills network connection if vpn connection drops)
[Xperia Z1 Compact Original Android Development] NT!:
Can someone please reupload the rom?
[Xperia Z1 Compact Original Android Development] ivs66:
AICP 8.1

Посмотреть и скачать с Яндекс Диска

disk.yandex.ru
[Xperia Z1 Compact Original Android Development] simeoni:
I cannot find last_kmsg. And if I could find it, I don't know how to get it out of the device. From twrp somehow perhaps?
[Xperia Z1 Compact Original Android Development] pain87:
Wow nice. :) I tested the ROM a week ago, and I noticed this insane battery drain at school. Later I'll try this method.
[Xperia Z1 Compact Original Android Development] SpiritCroc:
last_kmsg will only be there if kernel crashed. You should be able to get it via adb shell while in recovery (booted to recovery right after the crash) if that's the case
[Xperia Z1 Compact Original Android Development] schorsch76:
With disabled NFC I had just 15 alarms per hour and battery usage of 3%/h. Much better. :)
[Xperia Z1 Compact Original Android Development] DahakePL:
When I was changing the battery for a new one some time ago I removed the NFC chip and kind of broke it so I don't even have NFC anymore - no battery drain :D haha
[Xperia Z1 Compact Original Android Development] jho55:
I have also disabled NFC and also removed the sensor when changing the battery. Over night my phone was in flight mode. Battery went down from 63% to 45% in 8h.

In BetterBatteryStats under CPU States "Deep Sleep" was only at 2h and "300 Mhz" was at 6h.
[Xperia Z1 Compact Original Android Development] DahakePL:
Oh, then the reason for the drain is different
[Xperia Z1 Compact Original Android Development] pain87:
Installed the rom, deleted NFC and rooted with Magisk. I installed 2 modules and rebooted the phone. But it always says "Module will be updated at next reboot". What's the problem ? Xposed works fine.
[Xperia Z1 Compact Original Android Development] jho55:
Xposed modules? Because Xposed is messing a lot with the system, there will be no support here, I would say.
[Xperia Z1 Compact Original Android Development] pain87:
I tested Xposed YouTube Background Play and works fine.
[Xperia Z1 Compact Original Android Development] schorsch76:
After two days without NFC I can definitly say that one of the main reasons for the battery drain was the constant tries of the system to open the hardware. Now my battery life is mostly like on 5.1 :)
[Xperia Z1 Compact Original Android Development] -delusion-:
Storage encryption

Hi,

Storage encryption not function.
[Xperia Z1 Compact Original Android Development] pain87:
For some reason my phone is charging slowly. My battery is on 58%, and I need 1 hour and 53 minute to fully charge.
[Xperia Z1 Compact Original Android Development] SpiritCroc:
New update (20180319_0808):

- Repeated NFC errors in log fixed (don't have NFC hardware right now to test whether it's actually working)

- Video recording semi-fixed (thanks to [MENTION=5621191]rcstar6696[/MENTION] for his great work for z2 family, as always):

- Video recordings have a green stripe on one edge

- When coming from an older build, clear camera data required before usage to get video recording working
[Xperia Z1 Compact Original Android Development] vyunov55:
Very good :good: Thank for your work :)
[Xperia Z1 Compact Original Android Development] decamerone:
I just built with the latest commits but I can't record video, it says as before that recorder couldn't be started. I deleted data for the app, too. Is there anything else to do?
[Xperia Z1 Compact Original Android Development] SpiritCroc:
It still needs some open commits for now.

From AICP gerrit, pick o-mr1-camera-fixes topic and changes 63644 63647 63650 62029 63653 63656.

Then pick those two changes to frameworks/av:

https://github.com/rcstar6696/android_frameworks_av/commit/60c74a33acd239b30a9c29825558b846b736612f

https://github.com/rcstar6696/android_frameworks_av/commit/21032d6ac156596749a5b2f81fa0430846aebb96

and to hardware/qcom/media-caf/msm8974:

https://github.com/rcstar6696/andro...mmit/a9758eb325ed41d113ea24f727d6bef326ded923
[Xperia Z1 Compact Original Android Development] Viktor245:
Open camera video works, just when you view the green bar on the right, hope to fix it, thanks for the work!
[Xperia Z1 Compact Original Android Development] decamerone:
Thank you for the details. I updated with your build and it works as you described. I noticed there is no green line when filming in 480p.

Thanks for the hard work ?
[Xperia Z1 Compact Original Android Development] Viznu93:
I too have a problem with audio fx... It isn't opening and keeps notifying that its crashed whenever I play music
[Xperia Z1 Compact Original Android Development] Viktor245:
Hi

Mode picture-in-Picture removed?
[Xperia Z1 Compact Original Android Development] SpiritCroc:
New update (20180321_1035) to fix AudioFX crashes is up.

Picture-in-picture is handled by apps themselves
[Xperia Z1 Compact Original Android Development] otzi71:
After copying files from internal storage to sd card, files have 0 bytes and cant be open, I have to eject sd card in storage settings and add it againg, after that files have their size and can be open normally. Can anybody confirm this issue?
[Xperia Z1 Compact Original Android Development] cedar555:
Preferred network types do not switch. Can you fix this?
[Xperia Z1 Compact Original Android Development] otzi71:
Settings-Network and internet-mobile network-advanced-preffered type of network- switch is working
[Xperia Z1 Compact Original Android Development] cedar555:
I meant manually
[Xperia Z1 Compact Original Android Development] Viktor245:
Hi

Why now there is no tile "Picture in picture" in quick settings?
[Xperia Z1 Compact Original Android Development] raschad:
Hi, SpiritCroc, can you port this ROM on Xperia Z1 (Honami)? Just both phones are identical. Thank you very much))
[Xperia Z1 Compact Original Android Development] Viznu93:
Update on the new build after 24 hours:Great improvements in stability and battery. Every app is working smoothly now. I didn't test the can as I use z1c as my secondary phone. But overall great work by the Deva and keep refining.

Thank you
[Xperia Z1 Compact Original Android Development] tbo_:
Hi there,

first of all many thanks [MENTION=6425591]SpiritCroc[/MENTION] for all the effort to give our devices a modern shape. It's so great having people who help that "older" phones won't turn into waste.

I updated from aicp 7.1 to the recent build yesterday and all the core functions seem to work very well, stable and smooth. But I would like to come up with some minor issues. I know, we're still in alpha and this is not meant to be fixed urgendly, it's more about the experience.

1) Camera: I figured that the stock-camera-port ( https://xdaforums.com/crossdevice-dev/sony-themes-apps/port-stock-camera-nougat-roms-t3628791 ) is actually working, which is pretty nice. But the above mentioned green stripe also appears after recording a video.

2) Weahter/Nlp: I cannot get location and weather working. But this could possibly be my fault. For locations I try to use UnifiedNlp from the fdroid-repos. First thing is, that UnifiedNlp won't register in system. When I move it to /system/priv-app and grant privileges the app dispears from the app-drawer, since it is a system app now. But it's hard to check, weather it is properly registered now. Is there a way to start the app via adb or so...? Or do I have to undertake totally different steps?

3) Nfc: I would like to use nfc to unlock my device. But while the screen is locked, nfc-tags won't be read. This of course is not an aicp-specific issue. There used to be xposed modules, but they are outdated. On the web I found someone backsmaling files, but I am not very familiar with that. Would you consider to add a feature like that or does anyone know how this could be achieved?

But, as said, these are all minor issues. Maybe the one with the camera is more important. The rest can be handled with all the patience it needs. Again, thank you very much so far!
[Xperia Z1 Compact Original Android Development] SpiritCroc:
No.

I usually build only for devices that I own; my free time is short enough already so I'm not willing to put extra time into remote debugging builds for different devices.

Z1 is not identical to z1c, it's quite similar but there are some differences that have to be taken into account.

Actually, since the sources required to build AICP z1c are open, it shouldn't be too hard for others to build z1 builds based on those though.
[Xperia Z1 Compact Original Android Development] Guiche38400:
Many thanks

I registered on xda only to thank you and all the team for your great work. :good:

Your lasts updates really need positive feedback from user pool.

I used your nougat rom on a daily basis and switched on Oreo build since build 20180302 (huge battery drain fixed on the next build)

I usually disable GPS, Bluetooth, WiFi, NFC, synchronization and enable only when needed, they all works. No problem until now during switchs.

Stock camera works fine in picture mode (front and rear), green strip on video mode (as SpiritCroc said)

Stock alarms (my preferred app) do the hardest job (wake me up), with rising volume, snooze on shack ...

Battery status advertises nearly 4 days on a full charge, with my low usage (screen on 39min on a 1 day and 22 hours period, data always on)

Data network is not so slow to appear (<1min), if you don't wait the pin prompt before unlocking your phone or you will need to do it again (not so bad :angel:)
[Xperia Z1 Compact Original Android Development] tbo_:
Registering the UnifiedNlp service as a system app worked now. I didn't notice that the app was now accessiable via -> settings -> security -> location. So I could configure LocalGsmBackend (from fdroid). Location can now be determined over gsm/wifi (battery saving). GPS ist wokring as well.

Still the weather configuration fails. Using the preinstalled openweathermap but in -> aicp-extras -> service settings it says "disabled" under last update time. The clock widget doesn't find weather services at all. I installed openweathermap and/or wunderground from the lineage-extra-repo (2017-11-30). Just to mention that. As said, displaying the weather is none of the essentially needed core-functions...But if there might be time at the end of the todo-list to fix that, I would appreciate.
[Xperia Z1 Compact Original Android Development] SpiritCroc:
AICP has too many users to use a free openweathermaps API key for all users, so please get yourself an own openweathermaps API key here and enter it in weather service settings to use it
[Xperia Z1 Compact Original Android Development] tbo_:
Yes, I am aware of this. I used my own key and created a new one. Both don't seem to work. Yahoo-weather does. The hint that it actually should work was helpfull. I keep fiddeling an come back when I found the way to make clock-applet use the weather... Thanks so far!
[Xperia Z1 Compact Original Android Development] SpiritCroc:
It happened before that openweathermaps gave keys with missing forecast functionality, so maybe you can test your key with the API requests in their documentation (look whether you get data or denied in browser; only if you're still interested in using openweathermaps provider, of course). Don't know why they do this, if you look at their data plan, forecast should still be included in the free data plan.

It's working for me with my own key that I got last year.

cLock widget weather is separate from the weather settings in AE, you can set it up while adding it, it needs some additional weather provider app installed.
[Xperia Z1 Compact Original Android Development] raschad:
thank you, SpiritCroc, I was able to port the kernel to your ROM and my phone booted. If you don't mind, I'll use your ROM to develop on the xperia z1 (Honami).

View attachment 4456448