yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Compact Original Android Development] lm089:
Currently considering to give this ROM a try over my currently used LineageOS 14.1 by munjeni.

What's confusing me a bit are some recent reports here in this thread regarding recovery images; some folks here seem to have trouble with TWRP or whatever they're using.

I'm currently running with TWRP 3.0.2-0. Is it safe to flash this ROM using that recovery version? Or MUST I go for a different version?
[Xperia Z1 Compact Original Android Development] 115ek:
Actually you should be fine although I would recommend TWRP 3.2.x.

Afaik AICP isn't using some of the new recovery-script commands as lineage 15 does.

But to be sure:

Follow the instructions in the first post. Flashing a new recovery version isn't a big deal.

Just use https://xdaforums.com/showpost.php?p=72496075 and "real" recovery and you should be fine.

I had problems with reboot to recovery without using magisk - but that's fixed.

Only thing left: you can't install updates directly via recovery if you encrypt your device. If you plan to do so there is only one workaround at the moment: flash the update via adb sideload.
[Xperia Z1 Compact Original Android Development] jho55:
For me TWRP from 115ek's link works fine. But I do not use encryption.
[Xperia Z1 Compact Original Android Development] marsa47:
Same issue with the FM app for me too. At first a thought my headphones went bad and messes with the phone, but looks like it is a software issue.

One more question about the FM app. Is it possible to implement a mute/unmute (or start/stop) function, mapped to the headset button? Many phones has this with the stock rom, but it is not present in the custom roms. This is really useful for me when cycling.

Thank you for your hard work on this ROM!
[Xperia Z1 Compact Original Android Development] NemesisSVK:
Issues with WiFi 5GHz / AC and hidden AP

Howdy, testing latest version to date.. 20181002..

*Will not connect to hidden SSID

*No control over N/AC preference, no settings at all - or?

*Many higher channels on AC are not visible, I was able to connect only on 36 up to 48

---AC channels not working: everything above 48

______

Update: Seems that even if it is able to connect to the 36-48 channel, it actually is not able to use it for networking. Not able to connect to any websites or even direct IPs in local network.. so 5GHz is unusable atm.
[Xperia Z1 Compact Original Android Development] MYDiGiT:
Hi

data not worked for me

I use last version

Plz help me for this problem

Thanks
[Xperia Z1 Compact Original Android Development] zlata:
I used same rom and recovery from munjeni`s tread . Dont forget to format /data or you gonna have bad time :p Its a great rom .
[Xperia Z1 Compact Original Android Development] jho55:
The TWRP changelog says that with 3.2.0.0 there is better support for 8.0 based roms. I would strongly recommend to install latest TWRP. And a full wipe is maybe better but I think I did not do that for the internal storage part.
[Xperia Z1 Compact Original Android Development] tramp20:
How can I (or the developers) activate the WiFi channels 12 and 13?

They are allowed in the EU.
[Xperia Z1 Compact Original Android Development] lm089:
Hi,

finally gave this ROM a try and at first everything looked way better than expected. Then I tested the camera ad that's where trouble began: as described earlier by others the camera did not focus nor take any pictures. Same with OpenCamera.

I went back into recovery numerous times, wiped this and that, re-flashed the latest two versions of this ROM but nothing helped.

Then I found this post here. Somehow it didn't make too much sense to me, but I tried:

wiped, flashed a Sony Stock prerooted 5.1.1 ROM, tested camera, which worked perfectly.

Back into recovery only to find that with the stock ROM I had been thrown back to TWRP 2.8.x. So I powerd off the phone, threw TWRP 3.2.2.0 onto my sd card booted up again, and since then my phone got stuck at the original black screen with white SONY XPERIA on it.

No matter what I try, I can't get past that. No LEDs flashing, no matter which key combinations I try.

Hooked up the phone to USB before and after "booting". Started flashtool and adb, both won't recognize my phone.

I anyone havning an idea what ele I could try to get into recovery again?

Many thanks,

Lothar
[Xperia Z1 Compact Original Android Development] Guiche38400:
If you really made a clean stock install, you shouldn't get any TWRP or I missed something.

Where do you flashed TWRP : boot, recovery, FOTAKernel?
[Xperia Z1 Compact Original Android Development] lm089:
Hmm - good point; I kind of remember that said stock ROM already came with TWRP "pre-installed", but I'm not sure..

Update on my "softbrick" status: meanwhile I managed to get back into a new install of stock ROM .236 through flashtool. Phiooo! Recovery now is gone, alright.

So my next obstacle is to re-flash recovery. Problem now is that I can't seem to get into fastboot mode:

using

adb reboot bootloader

leads to nothing more than a black screen

using flashtool I get these error messages:

07/029/2018 16:29:56 - ERROR - Drivers need to be installed for connected device.
07/029/2018 16:29:56 - ERROR - You can find them in the drivers folder of Flashtool.

And yes, of course I ran flashtool-drivers.exe.

I'll keep trying, but again - any hint is more than welcome
[Xperia Z1 Compact Original Android Development] 115ek:
Did you ever used fastboot/flashtool successfully from your PC before?

If not, maybe already there is a problem. Using a linux distribution can save you a lot of time... Windows 10 has got issues with unknown drivers, you need to reboot in a special mode to install them...

Next thing: flashtool and fastboot are two different things ;)

I recommend hardware keys to enter fastboot mode. Power off, hold Vol up and connect USB. Then you should get a positive result from

fastboot devices

But what do you want to do exactly? Flashing a recovery? Or flashing the new bootloader that enables you to use "real" recovery?

Edit:

I think I remember that for entering the flashtool mode you have to power off, hold Vol down and connect USB. Fastboot is Vol up...

Fastboot --> LED is blue, Flashtool --> LED is ... green? (I don't know, but it's definitely not blue)
[Xperia Z1 Compact Original Android Development] lm089:
Yep, meanwhile found out myself; drivers indeed where not installed properly. Meanwhile they are now.

I would be happy with just installing twrp. I saw a few posts here in regards to "real" recovery, but up until now I didn't really think about it. Should I?

Yep, that's what I'll try next
[Xperia Z1 Compact Original Android Development] 115ek:
Definitly. Otherwise you can only use a recovery that is "built into" the boot.img. That is really unhandy. It's better to store it insinde an extra partition.

That's the FOTAKernel or recovery partition (different name for same physical space).

Get more infos here https://xdaforums.com/showpost.php?p=73575131&postcount=130
[Xperia Z1 Compact Original Android Development] lm089:
First of all: many thanks for your patience.

Meanwhile I managed to install TWRP 3.2.2-0 as "real" recovery. Then mad a very basic boot into stock ROM, tested camera >> OK.

Right now I'm re-flashing this ROM here; fingers crossed that my original camera problem is solved now....
[Xperia Z1 Compact Original Android Development] pipyakas:
The back button on the navbar doesnt seem to work for me, does anyone have this problem?
[Xperia Z1 Compact Original Android Development] vyunov55:
Nope.
[Xperia Z1 Compact Original Android Development] schorsch76:
Now i could successfully rebuild the ROM. :D

My roomservice.xml is:

Package Complete: /home/georg/aosp/out/lineageos/target/product/amami/aicp_amami_o-13.1-UNOFFICIAL-20180312.zip

█████ ████▒▒▒▒ ████████▒▒▒▒
████████████▒▒▒▒ ██████████▒▒▒▒▒▒
████ ████▒▒▒▒█████ ▒▒▒▒ ▒▒▒▒
███ ███▒▒▒▒████ ▒▒▒▒ ▒▒▒
████ ████▒▒▒▒█████ ▒▒▒▒ ▒▒▒▒
████████████▒▒▒▒ ██████████▒▒▒▒▒▒
█████ ████▒▒▒▒ ████████▒▒▒▒
▒▒▒▒
▒▒▒▒
www.aicp-rom.com - Get your flash ON

#### build completed successfully (01:54:48 (hh:mm:ss)) ####

georg@hammerhead-aosp:~/lineageos$ cat .repo/local_manifests/roomservice.xml
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="AICP/device_sony_amami" path="device/sony/amami" remote="aicp" revision="o8.1" />
<project name="AICP/device_sony_rhine-common" path="device/sony/rhine-common" remote="aicp" revision="o8.1" />
<project name="AICP/device_sony_msm8974-common" path="device/sony/msm8974-common" remote="aicp" revision="o8.1" />
<project name="AICP/kernel_sony_msm8974" path="kernel/sony/msm8974" remote="aicp" revision="o8.1" />
<project name="sonyxperiadev/boringssl-compat" path="external/sony/boringssl-compat" remote="aicp" revision="master" />
<project name="LineageOS/android_device_sony_common" path="device/sony/common-caf" remote="aicp" revision="lineage-15.1" />
<project name="omnirom/android_hardware_sony_thermanager" path="hardware/sony/thermanager" remote="aicp" revision="android-8.1" />
<project name="omnirom/android_hardware_sony_location" path="hardware/sony/location" remote="aicp" revision="android-8.1" />
<project name="omnirom/android_hardware_sony_macaddrsetup" path="hardware/sony/macaddrsetup" remote="aicp" revision="android-8.1" />
<project name="omnirom/android_hardware_sony_timekeep" path="hardware/sony/timekeep" remote="aicp" revision="android-8.1" />
<project name="AICP/proprietary_vendor_sony" path="vendor/sony" remote="aicp" revision="o8.1" />
<project name="LineageOS/android_device_qcom_common" path="device/qcom/common" remote="aicp" revision="lineage-15.1" />
</manifest>
[Xperia Z1 Compact Original Android Development] americanpittbull:
Thank you so much. After I unlocked the bootloader it worked again. Had some problems with the recovery, but they are history too.

Only thing is my imense battery drain. In 24h doing nothing my Z1 Compact lost 89%... :rolleyes:
[Xperia Z1 Compact Original Android Development] 115ek:
Unfortunately that's a known issue. I've gone back to 12.1 on my daily driver for now. Nevertheless I'm investigating the huge battery drain on my broken-SIM-device. [MENTION=6425591]SpiritCroc[/MENTION]: Are there any ideas from your side? :confused:
[Xperia Z1 Compact Original Android Development] SpiritCroc:
I haven't investigated into that direction yet, my plan on what to do next is to fix the repeated NFC errors in log, since they happen all the time they might drain battery as well
[Xperia Z1 Compact Original Android Development] schorsch76:
Today i captured a battery baseline for airplane mode and "on, but screen off"

[IMG="Baseline-Airplane-mode"]https://www.schorsch-tech.de/lib/exe/fetch.php?media=android:sony:battery-baseline-airpliane-mode.png[/IMG]

[IMG="Baseline-Running-but-screen-off"]https://www.schorsch-tech.de/lib/exe/fetch.php?media=android:sony:battery-baseline-running-but-screen-off-mode.png[/IMG]

With airplane mode, it just drains about 0.7%/h , in regular mode its about 6%/h. I try to investigate what uses the energy.

EDIT:

Aggregated Checkin Stats:
Metric | Value
Screen Off Discharge Rate (%/hr) | 2.39 (Discharged: 23%)
Screen On Discharge Rate (%/hr) | 8.39 (Discharged: 1%)
Screen On Time | 7m9.155s
Screen Off Uptime | 2h30m33.738s
Userspace Wakelock Time | 8m2.379s
Sync Activity | 978ms (10 times)
JobScheduler Activity | 9.741s (56 times)
App Wakeup Alarms | 171 times
CPU Usage | 24m11.254s user time, 35m14.872s system time
Kernel Overhead Time | 2h22m31.359s
Kernel Wakelocks | 30m19.479s (101025 times)
Wakeup Reasons | 0s (0 times)
Mobile KBs/hr | 0.00
WiFi KBs/hr | 0.00
Total WiFi Scan Activity | 27.329s (32 times)
Total WiFi Full Lock Activity | 0s
Mobile Active Time | 1h8m47.044s
Signal Scanning Time | 3m24.878s
Full Wakelock Time | 21.866s
Interactive Time | 7m4.166s
Phone Call Time | 0s
Device Idle Mode Enabled Time | 0s
Device Idling Time | 0s
Total GPS Use | 0s (0 times)
Wifi Power Usage | 0.00%/hr, 0.00% total
Wifi Transfer Time | 0s
Wifi Idle Time | 0s
Bluetooth Power Usage | 0.00%/hr, 0.00% total
Bluetooth Transfer Time | 0s
Bluetooth Idle Time | 0s
Camera Use | 0s (0 times)
Flashlight Time | 0s (0 times)
Modem Transfer Time | 0s
Modem Idle Time | 0s

I think its the kernel wakelocks...
[Xperia Z1 Compact Original Android Development] As68:
Good night everyone. I tested this software for some time. I installed it on my Z1 Compact without any problems and I like it. There are certainly some bugs, but they are not critical for me. The most problem is the power consumption. When setting up Wi-Fi I found that there is an uninterrupted run of the strip search for a wi-fi network and this function does not turn off. That's what I thought, maybe this is the reason for the rapid consumption of the battery ???
[Xperia Z1 Compact Original Android Development] schorsch76:
[MENTION=6425591]SpiritCroc[/MENTION]: I just checked the kernel source on github on the o8.1 branch. As [MENTION=8036586]115ek[/MENTION] said, his n7.1 has good battery life, i would try to build the o8.1 Version with the n7.1 kernel. I saw that you "merged 'carbon/cr-6.1' into o8.1" . Is it in theory possible to run 8.1 with the n7.1 kernel? This way i would like to split the "field" between kernel and userland.....

I also saw that the amami kernel already uses device_tree bindings in the kernel, but as far as i know it appeared somewhere on v3.10 on the mainline kernel. I guess the difference between this kernel and mainline is pretty big.
[Xperia Z1 Compact Original Android Development] SpiritCroc:
You won't be able to boot o8.1 with n7.1 kernel. It's based on the carbon kernel because they do a good job for the z2 devices which are msm8974 as well, so from time to time I merge their updates. The carbon kernel for oreo is based on the same kernel as our n7.1 kernel is based on, plus has the required changes for oreo (and some more, I guess).
[Xperia Z1 Compact Original Android Development] vyunov55:
Hello. My amami discharging very fast in oreo. How to fix?
[Xperia Z1 Compact Original Android Development] schorsch76:
Nevertheless i build today o8.1 with the n7.1 kernel. Just for curiosity... I got stuck at the Sony logo. Afterwards I reflashed my build and the device is OK again with o8.1. ;)

My today's bugreport from the device had times where it just drained 0.5%/h without flightmode. Some times it had about 4%/h but not the 7%/h as before. I'm not sure what triggered it. I just saw less kernel wakeups. It just mentioned unknown wakeup source. How could I find out what this is? :confused:
[Xperia Z1 Compact Original Android Development] jho55:
If you have read the whole not really long thread here, then you knew that it is an issue for everybody at the moment.
[Xperia Z1 Compact Original Android Development] schorsch76:
Today i got some new information. It seems its not the kernel. Its the system that drained 40% of my todays energy got drained by "System". With BetterBatterStats i got the following:

[IMG="BetterBatteryStats"]https://www.schorsch-tech.de/lib/exe/fetch.php?media=android:sony:screenshot_bbs_20180315-184638.png[/IMG]

greping through the source led me to

frameworks/base/services/core/java/com/android/server/DeviceIdleController.java

Now i set: <code>private static final boolean DEBUG = true; </code> in that file to get more debuginfo on the logcat.
[Xperia Z1 Compact Original Android Development] schorsch76:
[MENTION=6425591]SpiritCroc[/MENTION] As you mentioned two sides ago, that you want to look into NFC, i totally deactivated NFC in my phone, (deleted the nfc service on my phone), i will see tomorrow, if the repeated NFC messages, are a reason for the battery drain.
[Xperia Z1 Compact Original Android Development] decamerone:
NFC has been disabled on my phone for a few days with no impact on the battery, I don't think it is related to it. I'm more interested in the wificondscanner thing.
[Xperia Z1 Compact Original Android Development] schorsch76:
The slider was disabled too, but in logcat the system always tried to open the NFC hardware. As I now uninstalled the system NFC app, deleted the hardware interface so file and deleted the hardware service, I don't get these logcat messages any more.... This is why I set some hope into it.:)
[Xperia Z1 Compact Original Android Development] decamerone:
Ok, interesting. I'll remove the app too. Thanks for the details.
[Xperia Z1 Compact Original Android Development] simeoni:
I cannot get this ROM booting. Boot animation shows partly but then nothing.

I have unlocked bootloader, flashed latest stock firmware with Emma. Also flashed twrp 3.0.2 as real recovery. I can boot to twrp with power+vol down.

Same problem with AICP 7.1 and several other Nougat ROMs for Z1C. Only ROM so far working is LOS 14 by munjeni.
[Xperia Z1 Compact Original Android Development] SpiritCroc:
Can you provide logs? (logcat+dmesg if device stays up, last_kmsg otherwise)

Assuming you did a clean flash
[Xperia Z1 Compact Original Android Development] 115ek:
No problem.

May you - if the problem still persists - get a log and upload it afterwards? :)
[Xperia Z1 Compact Original Android Development] lm089:
!

Looks as if it finally worked out: ROM here is now up and running (sort of) and the camera appears to do it's job now. Still don't get it really that it should make a difference from which ROM I started, with all that wiping etc.
[Xperia Z1 Compact Original Android Development] Guiche38400:
I get a problem with default SMS application. A friend sent me a contact detail through SMS.

When I click on "display contact file" (Afficher la fiche de contact, in french) app crashs.

I can reproduce sharing a contact through SMS (no need to send), try to display the contact file from the newly created SMS => app crash.

It's not a critical feature (first time since a very long time that I need this feature), but I shouldn't be the only one to use it :o

Logcat : look from 10-08 20:47:24
[Xperia Z1 Compact Original Android Development] lm089:
Yes, can confirm this behaviour

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

two quick questions regarding settings:

1. I'm using the standard nav bar. When I long-press the home button some app is started. I don't recall having set this feature, and I would like to get rid of it. Someone havnig a hint where this is set?

2. I've set a PIN code to lock my phone. When I wake up the phone from standby the screen immediately shows the numeric PIN pad instead of the lock screen. How can I set this up so that the lock screen is shown first?

Since yesterday I searched thoroughly for those settings but no success.

Before I go nuts here many thanks for pointing me into the right direction

quick update on #1: just found out about "SmartBar" settings under AICP Extras: very cool feature! this way I can at least control the nav bar's behaviour for myself. But if I switch back to "standard" the old behaviour is back again - strange
[Xperia Z1 Compact Original Android Development] SpiritCroc:
I think that's AOSP default behaviour, better use smartbar for more configuration possibilities.

Settings/Security&Privacy/Screen lock (the settings icon on the right)/Directly show PIN entry
[Xperia Z1 Compact Original Android Development] lm089:
Alright, but strange: how would AOSP pick this app then (it's an info page of my local public transport provider). Weird, but as you recommended: SmartBar is really cool; will stick with that

Oh dear, this is embarrassing: don't know how often I had this page open since yesterday and simply didn't see that option.

Many thanks for helping an old man cross the road :D
[Xperia Z1 Compact Original Android Development] 115ek:
Öffi?

I've also got this behaviour. But just ignored ;)
[Xperia Z1 Compact Original Android Development] jho55:
Yes, it is Öffi. Same for me as well. ;) I also got another one: Secure Settings. It is a plugin app for Tasker.
[Xperia Z1 Compact Original Android Development] SpiritCroc:
In case somebody wants to get their hands on some early Pie builds, new thread is available here
[Xperia Z1 Compact Original Android Development] lm089:
Yes indeed! No problem really, but that's weird, isn't it?

---------- Post added at 12:50 PM ---------- Previous post was at 12:40 PM ----------

Discovered a strange glitch yesterday with the standard clock app (nothing serious, really):

If set to analog display the hour index is always fixed to the full hour position, i.e. it's only moving once every hour.

Example: right now it's 12:44 or "a quarter to one". But the analog clock looks as if it was "a quarter to 12" because the hour index is pointing exactly to the "12" position. Unfortunately I don't have a web server to store a screenshot. But you can easily test it yourself (unless it is a "local" behaviour on my phone only):

the effect is visible the best shortly before the full hour, and when the hour index is having a clear position like 3, 6, 9 or 12 hours. Open the standard clock app and switch to analog.

This is not true for other apps supporting analog clocks.
[Xperia Z1 Compact Original Android Development] Brozada:
Hi! Thanks [MENTION=6425591]SpiritCroc[/MENTION] for this impressive work. Thanks also to [MENTION=8036586]115ek[/MENTION]

After about 2 months of using the non-official and now the official releases, I can state with no doubt that your ROM is the best you can have in a Z1 compact.

Its oreo, so much more current than one might expect for this device, runs way fast, battery lasts about the same (may be less, may be more) than official rom, and all components I need are working (most perfectly and a few with not so relevant issues)

As of last OTA (20181009) and some before of that, 3G&4G data works flawlessly. Wifi 5G have never failed in my devices, camera get good images and I can use Maps or Waze to drive, so that it's perfect for daily usage on primary mobile.

On the drawbacks side, I miss some camera capabilities, as the AICP ROM use a generic app. Video stabilization for example is a good feature of the stock camera, but it can be easily solved by using the stabilization feature on videos of Google Photos app, which I think gives even better results. The main feature that I miss is the possibility of having a kind of zoom increasing the resolution of the camera to 20 Mpx, ie, if the default resolution for the photos is 8.3Mpx, allows you to zoom without interpolation up to that number of pixels in the sensor. Obviously, this is a minor issue.

Also, I've also experienced issues with GPS when traveling to far (Europe to USA) away and without having mobile data. I tried to change from "High Precission" to "Only Device" but some times it took more than 30 min to get a fix in open-air without obstacles, and even after that, the position was constantly lose. It gives the impression that the GPS is constantly restarted. In europe, with mobile data, it's working perfectly, even for driving (it seems to get a fix each second and then no-fix the remaining fraction of that second, but that is no a problem for driving apps)

So, THANKS again for your excellent work here.
[Xperia Z1 Compact Original Android Development] tramp20:
No solution?
[Xperia Z1 Compact Original Android Development] NemesisSVK:
[MENTION=5432605]Brozada[/MENTION]

Hi, so your 5G WiFi is working normally? No issues connecting or actually using it? I am trying to figure out what can be the cause, I know more people have it, so it seems to be intermittent. Can you connect to hidden SSIDs?

Any information you can provide about your phone model or which way you flashed the ROM?

I had an older version of AICP on it, but I did a complete wipe of every partition, even data before I flashed 20181002. So far it most definitely is the best ROM out there and I did not encounter any issues, just the ones I mentioned in my previous post.

Thanks.
[Xperia Z1 Compact Original Android Development] Brozada:
Yes, perfectly working, but NO hidden ssid. Using resilio sync to syncronize some folders, I get more than 20MB/s and perfectly stable connections for hours. Tested in 2 D5503 phones. One with non-official updated to 20181002 and the other with official ones. All them working fine. Installed through TWRP 3.2.1 (found in this thread, i think). and then, with ota updates.