yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Compact Original Android Development] 115ek:
Hello.

How did you flashed/installed TWRP? Is your bootloader unlocked?

At first: try holding down Vol-down and power. When the device vibrates, release power

and keep on holding Vol-down. You should enter recovery then (that depends on

your TWRP installation method).

If that doesn't help and your bootloader is unlocked, try to reflash recovery.

Download for example this one: https://xdaforums.com/sony-xperia-z1-compact/orig-development/recovery-twrp-3-2-1-t3759450.

Enter fastboot mode: power down device, hold Vol-up while inserting USB-cable. LED should turn blue. You can check with

fastboot devices

. If that works, reflash the recovery.

fastboot flash FOTAKernel recovery.img
[Xperia Z1 Compact Original Android Development] DeadXperiance:
Battery draining fast.

I have about 10 days standby time with Lineage 12.1.

And now with AICP 13.1 can't stay 24 hours.(Screen shots attached)
[Xperia Z1 Compact Original Android Development] 115ek:
Yes, I also noticed this behaviour. Lineage 15.1 has got the same problems (no wonder, a lot of things AICP uses are forked from lineage). There are either some bad wakelocks that cause the battery drain, or the system can't get into deep-sleep. It may be something device specific - lineage 15.1 on other devices works better I think. Or are there similar problems?
[Xperia Z1 Compact Original Android Development] schorsch76:
My phone lasted before aicp about one day. Now its about 22 hours. I replaced the accu about 6 months ago. I wasn't sure, that it lasted 14 days with an older aicp version.
[Xperia Z1 Compact Original Android Development] ultrasoniic:
Everything working good.. I've encountered 2 issues. Battery backup is bad. Hardly gets 12 hours.

Then contacts gets deleted automatically for some reasons. Happened twice even after restoring.
[Xperia Z1 Compact Original Android Development] schorsch76:
I had my contacts also synced to the google account. Did you not sync with the google account?
[Xperia Z1 Compact Original Android Development] schorsch76:
I tried to rebuild it. I also downloaded aicp complete again, but i get always stuck at

georg@mouri:~/aicp$ breakfast amami
including vendor/aicp/vendorsetup.sh
build/core/product_config.mk:242: *** _nic.PRODUCTS.[[device/sony/amami/aicp.mk]]: "vendor/sony/rhine-common/rhine-common-vendor.mk" does not exist. Stop.
Device amami not found. Attempting to retrieve device repository from AICP Github (http://github.com/AICP).
Found repository: device_sony_amami
Default revision: o8.1
Checking branch info
Checking if device/sony/amami is fetched from AICP/device_sony_amami
AICP/device_sony_amami already fetched to device/sony/amami
Syncing repository to retrieve project.
Fetching project AICP/device_sony_amami
Fetching projects: 100% (1/1), done.

Repository synced!
Looking for dependencies in device/sony/amami
Looking for dependencies in device/sony/rhine-common
Looking for dependencies in device/sony/msm8974-common
Looking for dependencies in device/sony/common-caf
device/sony/common-caf has no additional dependencies.
Looking for dependencies in device/qcom/common
device/qcom/common has no additional dependencies.
Looking for dependencies in hardware/sony/thermanager
hardware/sony/thermanager has no additional dependencies.
Looking for dependencies in hardware/sony/location
hardware/sony/location has no additional dependencies.
Looking for dependencies in hardware/sony/macaddrsetup
hardware/sony/macaddrsetup has no additional dependencies.
Looking for dependencies in hardware/sony/timekeep
hardware/sony/timekeep has no additional dependencies.
Looking for dependencies in vendor/sony
vendor/sony has no additional dependencies.
Looking for dependencies in kernel/sony/msm8974
kernel/sony/msm8974 has no additional dependencies.
Looking for dependencies in external/sony/boringssl-compat
external/sony/boringssl-compat has no additional dependencies.
Done
build/core/product_config.mk:242: *** _nic.PRODUCTS.[[device/sony/amami/aicp.mk]]: "vendor/sony/rhine-common/rhine-common-vendor.mk" does not exist. Stop.
build/core/product_config.mk:242: *** _nic.PRODUCTS.[[device/sony/amami/aicp.mk]]: "vendor/sony/rhine-common/rhine-common-vendor.mk" does not exist. Stop.

** Don't have a product spec for: 'aicp_amami'
** Do you have the right repo manifest?

Do you have any hints?
[Xperia Z1 Compact Original Android Development] SpiritCroc:
Check if you have the right vendor/sony repo and correct branch.

In case you had a local manifest from lineage, remove your local manifests, sync, and breakfast again
[Xperia Z1 Compact Original Android Development] firestone9x:
Thanks for the reply!

I have High accuracy enabled in location and no battery power saving enabled. I might have to reflash the ROM again to find out. :(
[Xperia Z1 Compact Original Android Development] sugnuf:
Clean flash didnt change nothing in my phone: no 3d fix in GPS Test (location could by acquired via wifi/gsm...)
[Xperia Z1 Compact Original Android Development] AICP-Fan:
Since installing the ROM (around 3 weeks ago) I experience the issue that the phone shuts down although it displayed ~40-50%.

When I try to restart it, the LED blinks red (=battery empty) and after short charging and powering on, 1% is displayed (correctly).

This issue causes a lot of unpredictability when using the device (my main phone) which is of course not very pleasanting.

Apart from that a wonderful ROM and (in spite of the bigger battery drain) a great improvement to the Nougat-AICP - which was already amazing.

So thank you for your work. If that little issue is corrected, the ROM will be perfect.
[Xperia Z1 Compact Original Android Development] chbde:
Regarding GPS: I have observed similar behavior with GPS - in apps like OSMand, GPS Test and GPS Status it shows zero satellites locked on, only for very brief moments this changes. However, the apps do get correct GPS coordinates including altitude, GPS Status reports a lock every second (still shows "0/20" satellites almost all the time) and navigation in OSMand and Here works flawlessly. Maybe it's the same with your phone?

Oh, and I see another difference to stock Android: GLONASS satellites where always grayed out in GPS Status on stock (I think they were only used if GPS/NAVSTAR was insufficient to save power), they now appear yellow (like the other sats) with this ROM.
[Xperia Z1 Compact Original Android Development] firestone9x:
I was about to do it now and read your post. Well, I guess it would have been a waste of my time then.

ra9na, How are you not having this issue? Did you install GPS Test to diagnose this?

---------- Post added at 01:32 AM ---------- Previous post was at 01:31 AM ----------

I think your battery is dying. I used to have the same issue earlier and then I replaced my battery last year

---------- Post added at 01:35 AM ---------- Previous post was at 01:32 AM ----------

I have the same problem. I can see the satellites around 15 to 20 with different signal levels, but it cannot lock on to any. And I installed both GPS test and GPS Locker both show the same results.
[Xperia Z1 Compact Original Android Development] esemef:
Does the problem go away with a different ROM? That sounds like the problem the original owner of my z1 compact had on stock firmware, which went away when I replaced the battery.
[Xperia Z1 Compact Original Android Development] AICP-Fan:
I had already a similar issue two years ago with stock firmware. I had to send the device to Sony and they replaced the battery. But back then the battery drain was huge and the device was empty after 10min.

This time the battery suffices for around 5 hours before the device is shutting down at 40-50% (displayed).

I think it is a issue of this ROM because previously I had AICP Nougat and no problems. Exactly after the day I flashed the Oreo version, the unexpected shutdowns started.

If no one else experiences the issue, I will try to reflash the Oreo and maybe downgrade to AICP Nougat.
[Xperia Z1 Compact Original Android Development] francesko94:
is this ROM ready for daily use? Mine is running a stock unbrandized 5.1.1 but I'm having troubles, not sure if the reason is the unbrand... Since is my mother's primary phone I'm looking something that works fine in the basic tasks (camera, phone, whatsapp, maps, web), I will not give root access.
[Xperia Z1 Compact Original Android Development] AICP-Fan:
Well, actually I am using the ROM daily on my primary phone. It works well (except the little issue I mentioned previously).

However, the issue seems to be only a display issue because after a reboot at 56% the battery level was displayed at (correct) 2%.

Overall is the battery drain high but not huge. With moderate usage (ca. 1/5 display on) the battery lasts for around 5-6h. But my battery is already 2 years old, so it maybe better (or worse).

Reflashing had no effect.

Maybe I will try out AICP Nougat on weekend, but I don't know if I have the time.

Beside that, camera works fine.

Maps does work, but is not really precise (high accuracy, GPS seems to work). It is still usable and helpful.

WhatsApp, Web and Phone work without any issue (at least I experienced no problems).
[Xperia Z1 Compact Original Android Development] francesko94:
Thanks, well the battery is an issue... I'll try it next weeks to tell
[Xperia Z1 Compact Original Android Development] AICP-Fan:
But if I see it right, I am the only one who experiences that issue. So you may be not affected.

Later I will try out Nougat.
[Xperia Z1 Compact Original Android Development] A_Laser:
Hi! Thanks a lot for the amazing rom! I changed from Android 7.1 an it feels a bit better. :)

But, the battery get empty very quick, even is the mobilephone is doing nothing...

So, i'ved tried to use a low cpu-frequency (with an app called: "Kernel Adiutor") to save power. With this tool it is shown, that with this rom my phone almost never goes to a "deep sleep" mode. It clocks in minimum 300 MHz - even if the display is off.

With an other tool (Amplify) i tried to suppress wakelocks. At my phone the most wackelocks in a period of time are produced from "NetworkStats" and "*net_schelduler*".

I hope this may helps a little bit to fix the battery-problem with this great rom... ;)

Thanks.
[Xperia Z1 Compact Original Android Development] Neverwind:
I've been using the rom for two days now and still haven't experienced a single issue yet! Thank you!
[Xperia Z1 Compact Original Android Development] AICP-Fan:
Two days ago, I flashed again AICP Nougat and the battery display issue was gone. Thus I don't think it's the hardware.

But I don't know why I am then the only one who experiences that issue.

I will try it again when the emmc bugfix is included in the next build. Maybe that will also fix my issue.
[Xperia Z1 Compact Original Android Development] firestone9x:
How is GPS positioning working for you? Did you install 'GPS Test' from the play store to see if you can lock on to any satellites?
[Xperia Z1 Compact Original Android Development] natus999:
Recently installed this rom on my Z1 Compact - it is blitz fast in comparison to standard latest original android.

Unfortunatelly I can't finy "tap and pay" settings - is it not available at all or I need to do something to make it work - please advice.
[Xperia Z1 Compact Original Android Development] Neverwind:
No, I haven't installed GPS Test, but I'm using GPS everyday and haven't experienced and issues with it :)
[Xperia Z1 Compact Original Android Development] AICP-Fan:
Me again and I'm sorry for causing trouble about that battery issue.

It seems that the issue actually is a hardware problem since I experience it now under AICP Nougat where I hadn't it before.

At first I didn't recognized it there because of the good running time of over 8 hours without any problem and recharged it then.

But it seems that the display issue is the same - it shuts down at 40-50% after a good running time and a restart can fix the display if the battery is below 60%.

I just want to tell that in order to prevent anyone to wonder about that issue.
[Xperia Z1 Compact Original Android Development] Neverwind:
I had the same problem with my old phone running CM 11. Your battery is probably old and exhausted. Or just faulty :)
[Xperia Z1 Compact Original Android Development] AICP-Fan:
Yeah, I had it also around two years ago. But that was still inside the warranty.

I was just confused because I recognized the issue exactly after flashing this ROM. But that might be caused simply by the currently high battery drain which is far better in the old Nougat.
[Xperia Z1 Compact Original Android Development] Neverwind:
Well, contrary to my previous post, I've flashed the rom on another amami and GPS doesn't work...strange...
[Xperia Z1 Compact Original Android Development] firestone9x:
I too noticed this battery issue after I first started installing custom ROMS. My battery was around 3 years at the time and after replacing it, the phone was good as new.

You should try using AccuBattery to monitor your battery health. A week should be enough to get a good average. My old one showed 45 % capacity.

---------- Post added at 12:46 ---------- Previous post was at 12:37 ----------

So does it work perfectly on your device with 'GPS Test'? Like does it actually connect to the satellites instead of the mobile network?

If it happens to work fine on your phone this might be a software issue probably something related to having Xposed, Magisk/SuperSu or any root-level modifying apps.

I want to try reflashing my phone but some other users also reported that it doesn't resolve the issue. I would like to find out what's causing the problem but since I use my Z1c as a daily driver it's difficult. Could you let me know any difference between your two phones that makes the other GPS function fine?
[Xperia Z1 Compact Original Android Development] _Pano_:
why the aicp extras (like status bar battery's icon and date/time) doesn't work? does it work for you?
[Xperia Z1 Compact Original Android Development] 115ek:
Hey. I've got very good news. Finally I found the root of the mmc suspend problem that prevents the device from falling asleep.

Now deepsleep should work and we will get a much better batterylife.

Unfortunately my SSD broke and I'm unable to finish even a single testbuild. System experiences SATA errors and gets mount ro to prevent damage.

Thats why I can't share a build. So you either wait for [MENTION=6425591]SpiritCroc[/MENTION] or build yourself with cherrypicking this commit: http://gerrit.aicp-rom.com/#/c/AICP/kernel_sony_msm8974/+/71198/.

Or you wait for me fixing / replacing my SSD :silly:

[MENTION=6425591]SpiritCroc[/MENTION]

How can we help to get official builds and OTA's? Whats the status of this data / SIM card problem?

EDIT:

Fixed my SSD - powersupply was to weak...

Here you can find the test build: https://androidfilehost.com/?fid=5862345805528056022
[Xperia Z1 Compact Original Android Development] SpiritCroc:
Awesome, thanks!

Pushed a new build (20180723_0816) including the fix (and several other changes probably since my last update).

The status with the mobile data problem:

- I still could not find out the reason why some users can not get mobile data to work, the log looks not much different than the one on my device to me, which can connect to mobile data just fine.

- Originally, in order to get mobile data work at all on Oreo, I switched to shinano ril binaries, since the rhine ones seem too outdated. I also tried the ones from the sony open devices program, but they seem to behave same as the shinano ones.

- My further experiments suggest that the binaries themselves are not the issue (they work fine on Nougat if I remember correctly, and on shinano Oreo as well).

Now that I think of it, it would be interesting to know whether those that experience issues with mobile data have comparable issues running a ROM based on the sony open devices program, i.e. a ROM based on 3.10 kernel.

- What I also could reproduce on my device is that when switching preferred network mode, it can take quite a while to be able to connect to the network when not set to default. I was not able to narrow down this issue either.

Since there have been some voices recently about GPS, this might also need some research. I remember having working GPS though, will test later again.

Works fine for me, maybe you have installed some addons that break it
[Xperia Z1 Compact Original Android Development] skoda9635:
This may be the issue that is causing troubles to those people who say that their mobile data isn't woking. My default network provider has a weak LTE coverage. LTE works just fine but when I lose a signal and the phone itself changes network to other provider (providing 3G or 2G) it takes almost forever to get a mobile data running. Sometimes it works though almost instantly or in less than a minute but other times it may take a very long time.
[Xperia Z1 Compact Original Android Development] Viktor245:
Thanks for the new build!

It's my birthday today!

Thank you!
[Xperia Z1 Compact Original Android Development] _Pano_:
Maybe Xposed with Flat Style Bar and Gravity box?

anyway later I install the new version and try it before installing xposed
[Xperia Z1 Compact Original Android Development] SpiritCroc:
Definitely.

It's not recommended to flash xposed with AICP, and I don't see any reason to do so.

Never report bugs when using xposed!

I also think it's probably related. If it is, I have at least some kind of possibility to test
[Xperia Z1 Compact Original Android Development] _Pano_:
it was my first time with AICP, I didn't know this native possibilities..... anyway it is not a problem, I'm using the ROM just for 3 days, I can restart installing the new version with a clean flash.... which are other fixes?
[Xperia Z1 Compact Original Android Development] SpiritCroc:
Everything merged on our gerrit that is relevant to our device... I haven't kept track of what was done since the last build I published
[Xperia Z1 Compact Original Android Development] chbde:
I experience also the problem regarding mobile data, maybe it helps if I describe my setup:

- I'm in Germany and use a very old SIM card (~10 years, old simyo one). It should not support LTE (still phone gives that option, as well in stock rom)

- At home (urban area) I almost never get mobile data.

- During holidays in Denmark (rural area) it worked most of the time, but was not totally reliable (roaming with TELIA, same SIM, 3g HSPAP connection)

- I have a slight feeling mobile data works better in regions with worse network coverage or less base stations around. I did not run any systematic tests to back up that feeling, however.

- when mobile data works, it seems like data connection is kept when changing network cell

I have a second, half-broken amami with stock rom here, so I could run some comparison tests if one of the developers is interested. I'll get a new SIM anyway, so my specific problem isn't of much interest, but maybe it could help with debugging.

Apart from that, the ROM is great, battery life is worse thank stock but still acceptable, GPS works for me, apart from the rather cosmetic issue that GPS test/GPS status show a GPS lock only for some fractions of a second, but the coordinates obtained are correct, precise and for sure not from network/wifi positioning (which is also turned off).
[Xperia Z1 Compact Original Android Development] colaigor:
I noticed that on every custom rom that i tried i have x next to my mobile signal indicator. My data works however. That seems to be problem that even developer of roms have and are unable to fix for some reason
[Xperia Z1 Compact Original Android Development] 115ek:
Concerning battery life: Are you using the latest version? We fixed a deepsleep issue and the battery lifetime should be MUCH better now. ;)

@all here:

We need some testers for the performance profile feature (see the screenshot). I enabled it with the last test build. Before merging it, we want to ensure it has a (good) influence.

You'll find the build here.

Edit: hangs at boot. need some more minutes...

Edit2: problem fixed. Sorry for that... https://androidfilehost.com/?fid=5862345805528056669

It includes all commits until now (like [MENTION=6425591]SpiritCroc[/MENTION]'s semi-official build).

Please share your thoughts about it.

Thanks! :)
[Xperia Z1 Compact Original Android Development] skoda9635:
Damn, been looking for this ever since Oreo came out. I used those profiles often with Nougat and I missed them.
[Xperia Z1 Compact Original Android Development] 115ek:
Well, let's see if it works https://androidfilehost.com/?fid=5862345805528056669

;)
[Xperia Z1 Compact Original Android Development] _Pano_:
I flash by means of flashtool the twrp 3.2.2 linked in the first post and then the ROM self. After I have installed the ROM I'm not more able to enter in the TWRP.... what should I do? flash it again?
[Xperia Z1 Compact Original Android Development] 115ek:
Do you have the newest bootloader? How did you try entering the recovery?

Try: hold Vol down and power until vibration, then release power and keep holding Vol down.

Other way: Wait for the pink/purple light, then press Vol down.

It depends on where you flashed the recovery and if you have the newest bootloader.
[Xperia Z1 Compact Original Android Development] colaigor:
Sorry if i'm saying something that has already been said (I haven't read all comments on this thread) but to me it looks like you don't have real recovery, as mentioned in this post.
[Xperia Z1 Compact Original Android Development] _Pano_:
I have locked bootloader and then installed the stock ROM using Xperia Companion; later flashed the TWRP using flashtool and installed the ROM using the TWRP (I entered in it pressing vol down more times). Now, using the same keys combination it doesn't start TWRP
[Xperia Z1 Compact Original Android Development] colaigor:
I'm not sure how you installed custom rom on locked bootloader tbh. You can check this post if you need any info for unlocking bootloader and installing real recovery so it doesn't get wiped when installing custom rom
[Xperia Z1 Compact Original Android Development] _Pano_:
no sorry, unlocked bootloader not locked
[Xperia Z1 Compact Original Android Development] Ænimal:
Huge thanx to everyone involved in this developement! Today's update's running really smooth, device goes into deep sleep as supposed to, and once there is an LTE connection, the radio will eventually switch back to 3G if necessary..:good:
[Xperia Z1 Compact Original Android Development] _Pano_:
ok thanks for it; I'm following the guide but get an error (see that link please).... thanks.
[Xperia Z1 Compact Original Android Development] SpiritCroc:
Haven't heard of that yet...

Maybe the server that android is checking for online status is blocked where you live/by your provider/...?
[Xperia Z1 Compact Original Android Development] chbde:
I just installed the new build yesterday, looks very promising! Battery drain overnight seems to be much lower than before. I'll see how it behaves during the next couple of days, but looks very good so far! :)

Thanks all for their great work!
[Xperia Z1 Compact Original Android Development] pimisen:
[MENTION=6425591]SpiritCroc[/MENTION] As promised i just spend 10 $ bucks :)
[Xperia Z1 Compact Original Android Development] colaigor:
Really? That is awesome man!

My friend is using op3t with rr 6.1. And he had x like i had but he hid whole indicator and when i asked him to check to see if its still there he said its gone. It could be my carrier because i cant get automatic apn setup message so i have to do it manually on every custom rom on this and on my other phone. On other phone data doesnt work at all. I will try to get other carrier sim and try since here where i live you can buy it on every corner for cheap
[Xperia Z1 Compact Original Android Development] Guiche38400:
TWRP with real recovery shortcut is (usb cable disconnected) :

Press power button + volume down simultaneously.

release power button when your phone vibrates.

release volume down when screen is on.