yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Compact Original Android Development] ra9na:
The only issue I have is with bluetooth:

My car has bluetooth for calling and music streaming. When I pair my phone with the car everything works. The next time I sit into the car and the phone connects, only music streaming is available but calling is impossible. Even if I trigger a reconnect. The only solution is to pair the phone each time I use the car, which is pretty annoying.

With the stock ROM I didn't have this issue.
[Xperia Z1 Compact Original Android Development] 13brew:
What can we do to help localize this bug with mobile data?

Maybe you can provide a guide how to create a log you need.
[Xperia Z1 Compact Original Android Development] ra9na:
It's already builtin in AICP. Open the app "AICP Extras" --> (scroll all the way down) Create Logs --> (Check all boxes) Choose your preferred share method (usually zip) --> upload it here
[Xperia Z1 Compact Original Android Development] otzi71:
SpiritCroc needs radiolog and in aicp extras is no radiolog checkbox. And other apps that provide radiolog for example syslog app have logs on 150 A4 letters which are quite long...
[Xperia Z1 Compact Original Android Development] SpiritCroc:
Usually I'd request radio log and maybe also logcat, but I already got some and with each I got it's the same: nothing that really sticks out to me, everything that looks like an error on first glance can also be observed on my device which has working data...

So I don't think new logs will help me now (if I can trust the logs and the reports of what has been done to achive them to be accurate).
[Xperia Z1 Compact Original Android Development] user1012:
1. what can we do about the battery draining? It's a huge drawback. My phone falls from 100% to 66% during the night (eight hours) - no calls, no SMS, no bluetooth or wifi. All apps (including google services) are battery optimized.

2. where can I disable LED notification for unread SMS and missed calls?
[Xperia Z1 Compact Original Android Development] Coolsky696:
Amazing rom, from all the custom roms for Xperia z1c this is truly the best one, i am so glad i can finally say thanks to you guys, I've been usinh aicp for more than a year now...Thanks guys :victory:
[Xperia Z1 Compact Original Android Development] jumika:
Hi!

I've installed this rom, and now my recovery is frozen on startup. It just shows the recovery splash screen. I have to use the red button on the side of the phone to turn it off. Can you please provide me some instructions how to get a working recovery?

Btw the rom is very nice. I like it very much, even if my mobile data is not working with it :D
[Xperia Z1 Compact Original Android Development] elcidx:
This ROM have any bugs? How camera and battery works?
[Xperia Z1 Compact Original Android Development] Guiche38400:
Did you read the thread before asking such questions ? :o

- This rom is the best available on Z1C

- Camera works great, video too

- Battery drain is acceptable for an Oreo rom on a 2012 phone

- Some russian users seem to get problems with data
[Xperia Z1 Compact Original Android Development] elcidx:
Thnks for the answer Guiche38400

That help me a lot. Tomorow i will try to install it.

How night battery drain looks like? How many % per night?

edit: And z1c is from 2014 :P
[Xperia Z1 Compact Original Android Development] Guiche38400:
Yes your right 2014 (football world cup) :good:

Battery drain depends on many things (network, applications, screen usage/intensity) but I get around one day of autonomy. 3-5%/h
[Xperia Z1 Compact Original Android Development] elcidx:
Ok, i install it, it looks cool for now, but i got one problem.

Hardwere camera button dosent work? Any way to fix it?
[Xperia Z1 Compact Original Android Development] Guiche38400:
If you press the power button twice, camera application opens

Hardware camera button works inside camera app (it takes picture)
[Xperia Z1 Compact Original Android Development] elcidx:
Rly strange way, any way to change this?

Im watching on photo maked at low night and it looks that take mutch better than on eXistenZ Premium. I wonder how this work on day, we will see :)
[Xperia Z1 Compact Original Android Development] AreusShow:
development

Hey people, is there a promotion with mobile data? :confused:

I keep waiting in the hope that this problem will be fixed. Has certainly been a long time,almost since the start of this firmware is sit and wait. Developer if the problem with the Internet, mobile data in Russia will be solved, many people will be happy):rolleyes:
[Xperia Z1 Compact Original Android Development] Panteq:
if i want to update the rom from before. i just flash the newer rom from twrp and then make a clean cache & dalvik cache? is that correct? :D

sorry for my bad english. but the rom is very nice. i just got some problem when i play a game and then do some multitask to another app, the game killed. so i must to start it again, and then if my battery under 15-10% and i use battery saver, my screen is very very dark just look like sleep but its turn on, so you need change the brightness up. i hope it can be fix it. and once again thankyou for your work on this rom. this is truely amazing. :fingers-crossed:
[Xperia Z1 Compact Original Android Development] SpiritCroc:
I'm no wizard and I don't have much free time right now either. Please also refer to my FAQ.

Should be fine that way
[Xperia Z1 Compact Original Android Development] skoda9635:
I see 06/05 build at the basket build. Is there a changelog to it somewhere ? Also SpiritCroc, what can we except in future builds ?
[Xperia Z1 Compact Original Android Development] SpiritCroc:
Changelog is in second post and basically all relevant merged commits by that date as found on our gerrit in addition, as usual.

Better no expectations, so no disappointments? (not sure what you'd like to expect...)
[Xperia Z1 Compact Original Android Development] fjonn:
Hi, I'm sure this has already been posted but my search didn't yield any results. I have an issue with wifi, my home networks are not showing up. Even though they work with all my other devices (a few lineageos androids, some stock androids and quite a few windows laptops and so on). I already restarted my router and did a clean install (wiped all memory) of the newest rom. Any help would be appreciated.
[Xperia Z1 Compact Original Android Development] skoda9635:
Maybe OTAs as it was in 7.1 if possible? It's more convienient to download it straight via AICP Extras at least for me.
[Xperia Z1 Compact Original Android Development] SpiritCroc:
I'd love to be able start official builds from AICP servers again, which is required for OTAs; but there seem to be enough users that don't have mobile data access with the current state to assume ROM fault, so I don't feel like it's a good idea to do so right now.
[Xperia Z1 Compact Original Android Development] skoda9635:
I don't get their network data problem...When using LTE on my main network it works flawlessly, when using HSDPA, HSDPA+ (3G or H+) in places where my main provider doesn't have a coverage it also works (switching takes time like a minute or more but it works)...I am not using EDGE or 2G at all because that would be a pain to load something with that speed. Also while using the HSDPA...I am on a roaming so I can confirm that also roaming works.
[Xperia Z1 Compact Original Android Development] 115ek:
Do you use wifi ac standard / 5 GHz?

Then it's a known problem. Using a dedicated channel solved the problem for me. So you have to turn off the auto-channel setting in your router.
[Xperia Z1 Compact Original Android Development] fjonn:
Hi,

well I'm using standard ac 5 ghz and 2.4 ghz.

Hmmm then maybe I'll do that for our guest wifi.

Thanks a lot
[Xperia Z1 Compact Original Android Development] elcidx:
For me power draw is to big on this rom, getting over 15% per night is very bad in my opinion.
[Xperia Z1 Compact Original Android Development] firestone9x:
Hello All,

I've tried this ROM and everything works well except for phone calls. The built-in earpiece doesn't work along with the mic but when I switch over to speakerphone I can hear the other person ..

Note: There is no issue with Data as I am connected on LTE...
[Xperia Z1 Compact Original Android Development] firestone9x:
There was an issue when I installed viper4android. So reflashing the ROM worked. Just use viper4android from Magisk model and ensure that you remove audiofx before.
[Xperia Z1 Compact Original Android Development] firestone9x:
Hello

Does anyone get random reboots?

Secondly, after a reboot does anyone notice their apps missing from the app drawer and home screen? (Note: The apps are still there but you have to go to the play store to open them)
[Xperia Z1 Compact Original Android Development] ra9na:
Sounds rather like faulty memory...
[Xperia Z1 Compact Original Android Development] firestone9x:
I used to run AICP nougat earlier and never had this issue.

Anyways, I've been experimenting lately since battery drain is a huge concern (I get a drop of 10% per hour ) and the phone heats up.

I have noticed that the phone never hits 'deep sleep', I could only force it to the lowest frequency.

Edit: The battery was replaced last year and is in really good condition.

Any idea whats happening?
[Xperia Z1 Compact Original Android Development] edwardenglish:
Are nfc and GPS working?
[Xperia Z1 Compact Original Android Development] firestone9x:
GPS works perfectly. I don't use NFC so I wouldn't know about that.
[Xperia Z1 Compact Original Android Development] sugnuf:
Well, i got problem with getting 3d fix. To reproduce install GPS Test from PStore (https://play.google.com/store/apps/details?id=com.chartcross.gpstest) and try to get 3d fix - for me its like "blinking" of fix for few milliseconds.

Than in other apps (eg Endomondo) gps stops working.

No such problems with stock fw or Los 7.1.2 for munjeni.
[Xperia Z1 Compact Original Android Development] loiselqw:
Dear Community,

somehow I have the feeling, that battery consumption from latest june 5th nightly but as well some nighlies before got worse. Battery does only last max 24 hours, battery Ursel is working Fine, as I replaced it recently with a new one.

Anybody else having similar problems? No gapps installed basically just Telegram, Firefox and K9. Android says Firefox consumes Most, but only in lower % e.g. 4% which could not explain this enourmous battery drain from my point of view.

Problem with disconnection of mobile network I could reproduce. I installed batteryfu from f-droid investigating battery consumption... with no result by the way... But could reproduce the problem many had with connection of mobile data. I configured batteryfu that way it is only each 20 minutes for 30 seconds online, beside I am logged in and nightmode. Since not using batteryfu anymore everything related to mobile data works Fine.

Beside these two investigations I still have the minor problems of long appearance Time of login screen and the Problem, that calendar widget is Not actualized, beside of an update is installed of the widget is newly placed at the screen.

Of I could somehow support in offering more Information related to these investigations pls let me know
[Xperia Z1 Compact Original Android Development] firestone9x:
You are right. GPS doesn't work. :(

I have just been using google maps with LTE so I never noticed it.

---------- Post added at 08:36 PM ---------- Previous post was at 08:31 PM ----------

So I've tried to analyze my random reboot issue and it seems that Trebuchet launcher was the culprit. So I replaced it with Nova launcher and now the device works perfectly. My battery life has also improved and the CPU goes more often to lower frequencies although it still doesn't go in deep sleep for too long.

Secondly, the apps disappearing on reboot is because I am using my SD card as an adaptable storage and therefore the launcher doesn't have enough time to load the apps on some reboots. Therefore those ones on the SD card go missing. A Simple fix if using nova launcher is to restart it from settings which restore all the apps.
[Xperia Z1 Compact Original Android Development] Not-Aus:
I did not understand the solution. :eek:
[Xperia Z1 Compact Original Android Development] 115ek:
I took a dmesg to understand what's causing the huge battery drain.

These lines may give a hint:

[16598.428563] 9640,16598428563;PM: Entering mem sleep
[16598.428580] 9641,16598428580;Suspending console(s) (use no_console_suspend to debug)
[16598.450520] 9642,16598450520;mmc0: Error -110 while putting card into sleep
[16598.450522] 9643,16598450522;mmc0: mmc_host_suspend: failed: ret: -110
[16598.450564] 9644,16598450564;dpm_run_callback(): mmc_host_suspend+0x0/0x140 returns -110
[16598.450587] 9645,16598450587;PM: Device mmc0 failed to suspend async: error -110
[16598.450608] 9646,16598450608;PM: Some devices failed to suspend
[16598.457545] 9647,16598457545;PM: resume of devices complete after 6.907 msecs
[16598.464018] 9648,16598464018;PM: Finishing wakeup.
[16598.470171] 9649,16598470171;Restarting tasks ...
[16598.470174] 9650,16598470174;done.
[16598.470291] 9651,16598470291;PM: suspend exit 2018-07-01 19:17:28.740181681 UTC
[16598.470307] 9652,16598470307;suspend: too many immediate wakeups, back off

At first I thought the SD-card may cause issues. But after removing it the problem still exists.

I think the internal memory can't be send to sleep. [MENTION=6979267]nailyk[/MENTION] told me he remembers an emmc bug in the driver.

Anyone with a tip or hint out there?

Concerning the SE denials: Can they also be problematic or are they only "cosmetic"?

:)
[Xperia Z1 Compact Original Android Development] SpiritCroc:
Thanks, this is interesting indeed.

SEPolicy denials can cause issues too on enforcing builds, best to try out on permissive (revert this)
[Xperia Z1 Compact Original Android Development] 115ek:
Yeeeehaa!

Problem was investigated and solved! Many thanks to [MENTION=7796065]opendata[/MENTION] and [MENTION=6979267]nailyk[/MENTION] for guiding me :o

The problem was the emmc driver indeed. The kernel tries to bring it to sleep but that fails. This error prevents the whole system from entering deepsleep.

The workaround I did now: Trick the kernel and do so, as if the emmc falls asleep correctly - even if he doesn't.

It's dirty, I know, but it's working like a charm. Maybe [MENTION=6425591]SpiritCroc[/MENTION] can also have a look into it. We also need further testing here.

Guys, I'm so happy at the moment. That was the biggest release blocker for me (to switch to 13.1) :cool:
[Xperia Z1 Compact Original Android Development] SpiritCroc:
Nice, can you push your patch so I can look at it?
[Xperia Z1 Compact Original Android Development] ra9na:
This sounds really, really good!

Now please push it to git and create a new build!

I'm really exicited! A really good find!
[Xperia Z1 Compact Original Android Development] 115ek:
http://gerrit.aicp-rom.com/c/AICP/kernel_sony_msm8974/+/70166

Just pushed. Looking forward to hear from you. I know it's a really dirty fix and we maybe need to tweak it (add some defines to prevent building in shinano devices.).

We need further testing here before merging it!

I just uploaded a testbuild here:

https://androidfilehost.com/?w=files&flid=278414

:o
[Xperia Z1 Compact Original Android Development] ra9na:
Just had a quick glance at your change. So basically you'e throwing away the real return value and giving 0 everytime. Yep, that's dirty :D!

I will test this.

Did you modify just this? Did you use SpiritCrocs release as the base?
[Xperia Z1 Compact Original Android Development] Viktor245:
Good build

☕️
[Xperia Z1 Compact Original Android Development] jho55:
Thanks 115ek and others for finding this out. Of course we need to have a clean fix here but we found the culprit! The battery drain was one blocking issue for me.
[Xperia Z1 Compact Original Android Development] 115ek:
Yes, but it works :cool:

The bad style is also the reason for [MENTION=6425591]SpiritCroc[/MENTION] to not merge it. I totally agree with him in this point.

Nevertheless we have to adress the real problem, namely: the emmc can't be suspended.

Thanks :good:

No. Just the mentioned dirty fix. On earlier build I enabled the device performance profiles (http://gerrit.aicp-rom.com/c/AICP/device_sony_msm8974-common/+/67343 & http://gerrit.aicp-rom.com/c/AICP/device_sony_msm8974-common/+/67346), too. But their influence wasn't high compared to the emmc issue.

I think in my testbuild they are disabled again. But maybe there can be a measureable difference now. I can include them again for testing if you want.

Maybe we should test it before it's going to be merged.
[Xperia Z1 Compact Original Android Development] pimisen:
Fixed emmc deepsleep issue

If we could have an emmc deepsleep fixed version of this great rom, i will hit the donate button in the first post and pay 10 bucks (€) for this.

I am using the rom on my z1c and this used as an outdoor navi with komoot on my Mountainbike.

If the battery drain is fixed the rom is then perfect for me!

Thanks to the dev and the others trying to fix it!

Great job. :good:
[Xperia Z1 Compact Original Android Development] Mr_nUUb:
Hi! AFAIK error -110 is a timeout error. IMHO the emmc reacts kind of slow or the kernel is too fast.

I don't know the all the changes that happened, but I think the emmc will eventually go to sleep.

EDIT: Or maybe the emmc does not answer sleep/awake at all...
[Xperia Z1 Compact Original Android Development] ra9na:
After a couple of hours I can say it's an improvement. But only if the google services are kept at little background activity. When enabling location history the deep sleep time didn't change. It was stiil ~60%. Disabling it improves it to ~80%. It's a start.
[Xperia Z1 Compact Original Android Development] firestone9x:
If your apps go missing on the home screen. Open Nova Launcher settings, go to advanced and tap restart launcher.

All your apps get fixed and reloaded without having to reboot the phone

---------- Post added at 03:12 PM ---------- Previous post was at 03:07 PM ----------

Is anyone else also experiencing issues with GPS connectivity? I can't get a 3D fix. :(
[Xperia Z1 Compact Original Android Development] ra9na:
What is a 3D fix?
[Xperia Z1 Compact Original Android Development] firestone9x:
A 3D fix is a higher accuracy position with elevation. A 2D fix will only give the horizontal position.

As sugnuf mentioned earlier, download GPS test from: https://play.google.com/store/apps/details?id=com.chartcross.gpstest

Try and see if you get a fix.

When I use google maps it only triangulates my position with the GSM network which is obviously highly inaccurate.
[Xperia Z1 Compact Original Android Development] 115ek:
Yes, thanks for the hint. Maybe there's a timeout defined somewhere that we can increase. I'm looking into it with some oldschool print debugging.

Unfortunately there are some more issues needing my attention. Wasted a coupled of hours with a corrupted FS on my machine today :mad:

Interesting. I'm google free and my device sleeps very deep...

Can you maybe share a dmesg after some minutes the device was sleeping?

adb root
adb shell dmesg > /sdcard/dmesg.txt
adb pull /sdcard/dmesg.txt
[Xperia Z1 Compact Original Android Development] ra9na:
Here you are!

Interestingly I still get the following message in the log file:

[13312.634221] 2516,13312634221;mmc0: error -110 during resume (card was removed?)
[Xperia Z1 Compact Original Android Development] firestone9x:
Hey all,

Any updates on fixing the GPS?

Sorry for being persistent but this my daily phone. I am happy to help in any way possible.

Also, just out of curiosity? Is the deep sleep issue the reason this ROM performs much faster than the AICP Nougat version. Cause I was using that earlier and had a very laggy experience but better battery life as the phone would always go into deep sleep.
[Xperia Z1 Compact Original Android Development] ra9na:
I dont't have any issues with GPS. Please check which location mode is active. If you have the battery save mode active, then maybe this will trigger this phenomenon?

Actually no. The wakeup procedure should be so quick, that you can't notice it. It's way below 1ms. It's more likely a kernel issue.
[Xperia Z1 Compact Original Android Development] SpiritCroc:
When phone is restarting and magenta LED appears, try pressing volume button so LED gets yellow/orange again

You need to do a clean flash (do a factory reset in TWRP before flashing)
[Xperia Z1 Compact Original Android Development] DahakePL:
Really smooth and fast, great job
[Xperia Z1 Compact Original Android Development] DeadXperiance:
I also can't boot in recovery, I flashed TWRP again as FOTAkernel and now can boot in recovery.

Your Rom is very smooth with pico gapps. First boot is very quick than others (about 3-4 minutes).

Working : Not working

Camera : front and rear (video recording can't start in both)

WiFi : file transfer on same network can't receive files.(can send files successfully)

NFC : file transfer sometimes works sometimes doesn't

Mobile data

Audio, Music

Play Store

Double tap to sleep with Xperia Home

Magisk

Phone Call

Others are testing........

Thanks Devs...
[Xperia Z1 Compact Original Android Development] schorsch76:
Hi,

is there a roomservice.xml file needed to rebuild that rom?

Can i repo sync a lineageos repo to get a aicp source tree (ofc with the aicp manifest).. I just want to try to prevent download all source again, if not needed.

TIA

Keep up the good work :)

schorsch
[Xperia Z1 Compact Original Android Development] SpiritCroc:
ROM can be built using the official AICP sources + device tree, aicp.dependencies should be up to date. You could probably do a new repo init in your lineage source directory for AICP and then do a repo sync --force-sync
[Xperia Z1 Compact Original Android Development] pain87:
TWRP as FOTAkernel works me too. :D
[Xperia Z1 Compact Original Android Development] DahakePL:
It worked as "recovery" for me not as fota
[Xperia Z1 Compact Original Android Development] Viznu93:
I installed the ROM... But my SuperSU flash is no more working and so my phone is still not rooted... Any solution? Or link to latest SuperSU?

---------- Post added at 07:31 AM ---------- Previous post was at 06:34 AM ----------

Its working.... I installed magisk
[Xperia Z1 Compact Original Android Development] schorsch76:
Hi,

just wanted to give some feedback. I installed this ROM and it seems all is running fine. The battery lasts a little less long as with the Sony 5.1 Stockrom. Except this, I haven't found any issues.

I used the ROM downloaded from this thread and twrp on the FOTAkernel partition. Version 3.0.2-0

Greetings

Schorsch
[Xperia Z1 Compact Original Android Development] kokolino727:
how i can backup my contacts and messages? i want upgrade my aicp 12.1 to aicp 13.1. i must copy folders root/data.. and I still do not know which ones. sorry for my bad english
[Xperia Z1 Compact Original Android Development] schorsch76:
- For WhatsApp i created a backup, from the application. (Google WhatsApp Backup).

- For Threema, is used the backup functionality from the app.

- For the contacts, i exported them to my SDcard and saved them on my NAS.

- with foldersync a complete backup of the internal and external storage. Synced to the NAS.

For failsafe, i created before flashing with TWRP a backup of my partitions with all data on the SD Card. Synced that also to my NAS. Just in case i forgot something important.

Then i was sure to not loose any data. I just wiped everything from the phone (just followed the instructions from the first post).
[Xperia Z1 Compact Original Android Development] americanpittbull:
Have tried to install the last version of March. My Z1 Compact was on stock rom but rooted etc. After the install with twrp I can't boot anything. When I switch it on normally I don't even see the Sony logo. If I boot with the volume down button and the power button I see the Sony logo but that's it. It vanish after 1 sec and nothing happen. Made an backup before but without getting into recovery I can't do anything. Someone got an idea what to do?