• If you are experiencing issues logging in, we moved to a new and more secure software and older account passwords were not able to be migrated. We recommend trying to reset your password, then contacting us if there are issues.
  • Nearly done! Migration cleanup is mostly done. There are a small number of issues left that we continue to work on, but all the heavy lifting is done. We still would love to hear feedback over at this thread and also check out the new XDA app! Thanks and we hope you enjoy the new forums, and thanks for your support of XDA <3

[ROM][testing] AICP 15.0 - q10.0 - apollo (Sony XZ2 Compact)

SpiritCroc

Senior Member
Feb 17, 2015
596
1,203
93




AICP
Android Ice Cold Project

AICP is known by everyone as the "Ice Cold Project" that started on a Desire HD years ago (2012) and since then has evolved into a mature ROM with the BEST community that you can find!!!

Until Android Lollipop, the ROM has always been based on AOKP. Unfortunately, since AOKP stopped development (but made a comeback later), we changed our base to CM.
With the re-brand of CM to LineageOS (LOS) we became LineageOS based with some tweaks from AOSP and then changed to be based on the "Ground Zero Open Source Project" (GZOSP) for Android Pie.
We changed again for Android Q with a base of AOSP repositories and some additions from LineageOS for device specific repositories.

If there are any bugs, either we will sort them out, if it concerns our code base. This ROM isn't LineageOS supported, so there is no need to report errors/bugs to them!!


Code:
#include <std_disclaimer.h>

/*
 * Your warranty is now void.
 *
 * We are not responsible for bricked devices, dead SD cards,
 * thermonuclear war or you getting fired because the alarm app failed. Please
 * do some research if you have any concerns about features included in this ROM
 * before flashing it! YOU are choosing to make these modifications and if
 * you point the finger at us for messing up your device, we will laugh at you. Hard & a lot.
 *
 */

Feature list (rough overview)




In the beginning we would like to thank:

GZOSP team
LineageOS & CM (R.I.P.) team
@Maxwen and the rest of the OmniRom team
DU team
SlimRoms team
Resurrection Remix team
AOSiP team
Community
...



@LorD ClockaN
@eyosen
@semdoc
@SpiritCroc
@wartomato
@Miccia
plus the rest of the crazy bunch that we call "team"
...




We are paying for servers that build weeklies and everything that comes with this, so EVERY DONATION will really be appreciated and be used to cover those expenses.
Thank you!!






Latest Stable Release Version 15.0

Download link: https://dwnld.aicp-rom.com/

Note: No official builds for now.

Test builds: https://androidfilehost.com/?w=files&flid=309318

Please note that official builds will be deleted from our servers every month due to maintenance services.
We advise everyone to keep at least the latest or best working build on their device as a backup.
Maybe copy it to a cloud service or USB too.






Full Changelog link: https://dwnld.aicp-rom.com/
(Just click the changelog button next to the download link in the list of builds available for your device)




- You tell... :p

FAQ:
Before using the ROM:
Q. Can I have an ETA for the next build?

A. Yes, just look here to see what day your device is built on.

No.

Q. Does this ROM support custom kernels officially?
A. No. You can still use them, but discussion should go in the thread of the respective kernel. We don't offer support for bugs you might encounter while using them!

Q. Why doesn't this ROM support Xposed?
A. Xposed is a hack that is geared towards AOSP. Custom ROMs modify the framework a lot, so Xposed can cause a ton of issues on custom ROMs. Now it might work for you, however it is not to be discussed in this thread, and you should refrain from posting bug reports.

Flashing the ROM:
Q. What do I need to know before flashing?
A. Check the flashing instructions...

Q. Can the builds be dirty flashed over each other?
A. Yes, this is the usual behaviour on flashing a new official build by (or using) the build-in updater service. However, please make sure to backup your device regularly in case something goes wrong.

Q. How do I 'dirty flash' builds?
A. Wipe the System, Cache and ART/Dalvik cache. Flash the ROM, GApps (only needed if you wipe the system), your preferred root solution and reboot. Or just use the OTA app to preform that task for you.

Q. How do I flash kernel builds?
A1. If it's a .img file, boot into TWRP and go to the install page in TWRP, in the bottom right corner select "install image", select the desired kernel, then select "boot" as the destination, then swipe to flash, then go back to the install screen and install your root method again, if you don't want to loose root and reboot.
A2. If it's a flashable ZIP, you can flash it together with a ROM update or separately. Go to the install page in TWRP, choose the kernel zip (or add it to the flash queue right after the ROM zip). Then add your root method to the queue if you don't want to loose root. Now swipe to flash and reboot afterwards.

Using the ROM:

Q. I installed a bad theme and now I'm getting a bootloop, how do I fix it?
A. In TWRP, flash the substratum rescue zip that's in the substratum folder on the internal storage.

Q. I'm having issues with WhatsApp, how do I fix it?
A. Read this

Q. Do I need to provide a logcat if I'm reporting a bug?
A. If you want it to be fixed faster (or at all) then yes, you should definitely provide a logcat AND the model name. (Note: Please just link the logcat from your GDrive, Dropbox, etc. and do not post the content here. Thanks.)

Q. How do I get a logcat, what type should I get and more questions that can conveniently be answered by my pre-determined answer?
A1. Read this thoroughly. Also, here's a good app for getting logs: https://play.google.com/store/apps/details?id=com.tortel.syslog (Root needed).
A2. If you are already rooted, you can use the built-in feature to make a logcat and provide that. Just look into the others section in the AICP Extras main page.




The ROM should contain everything you need to enjoy Android Q. You don't need to install any Add-ons, simply download the latest ROM and GApps, then follow the flashing instructions and go!
If you want the device to run the ROM "rooted", you can flash a root solution of your choice after the ROM Zipfile.

It is STRONGLY recommended to fully wipe your device before flashing and please avoid restoring system apps and system data with Titanium Backup (or with any backup/restore app) as this can cause stability issues that are very hard to debug, restoring regular apps is fine though.
If you believe you know what you're doing - then fine, go ahead, but please don't complain if you experience any strange behavior.

How to flash for the first time:
(Again: Don't do it if you don't know!)

0. Install the latest stock ROM, ideally to both slots or use the LineageOS copy-partitions.zip
1. Boot a current TWRP
2. Factory reset
3. Flash the ROM zip
4. Optional: Reboot to recovery, then flash add-ons like GApps, Magisk etc.

How to upgrade from an older AICP build to a newer test build:

1. Make sure you have advanced reboot enabled: Settings/AICP Extras/Auxiliary buttons/Power menu/Advanced Reboot
2. Press the power button, select "Advanced" and "Recovery" to enter the inbuilt TWRP recovery
3. Flash the ROM zip
4. Optional: Reboot to recovery, then flash add-ons like GApps, Magisk etc.


Old instructions:


1. Download the ROM and GApps and transfer them to your device.
2. Boot to recovery (TWRP recommended).
3. Wipe the System, Cache, and Data (you might need to format the data partition!).
4. Flash the ROM Zipfile.
5. Flash the GApps (optional, needed for e.g. Google Playstore to work)
6. Reboot and set up your device, enable developer settings and in them OEM unlock/Advanced reboot/USB tethering.
7. Reboot back into TWRP recovery.
8. Flash the root solution of your choice (optional).
9. Reboot your device.
The procedure may vary from device to device and is a bit different on system updates!

The ROM has GApps persistence in between dirty flashes, so you only have to flash them once! This might differ on AvB Devices.


1. Flash latest stock ROM (52.1.A.0.672)
-> either with sony flashtool ("emma") or xperifirm + newflasher

2. Unpack the ROM tar
Code:
> tar -xzvf the_file_you_downloaded.tar.gz
2. Flash the ROM
Code:
> fastboot flash boot boot.img
> fastboot flash dtbo dtbo.img
> fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
> fastboot flash system system.img
> fastboot flash vendor vendor.img
> fastboot flash userdata userdata.img
Skip flashing userdata if you are comming from an older AICP 15.0 build and want to upgrade without losing your data!

3. Reboot to the ROM
Code:
> fastboot reboot
First boot might take a few minutes.

4. Optional: flash GApps and/or Magisk
- Enable Advanced Reboot in Settings / AICP Extras / Hardware buttons / Power menu
- Press power button, select Advanced > Recovery
- Use the inbuilt TWRP recovery to flash zips




Currently supported Root Solution:

Magisk stable
Magisk versions >= 20.3 don't usually need to be flashed on every dirty flash.


PREREQUISITE FOR OTA ("Over-The-Air" Updates):
TWRP recovery is needed to be able to flash using the built-in OTA app.
Please make sure that you are on the latest TWRP recovery, keep in mind that this could also be an unofficial version!
On encrypted devices you will have to enter your PIN/password in TWRP before the process starts.


Note: no official builds for now.



If you want to contribute to AICP, or want see what is being worked on/merged, feel free to visit our Gerrit code review system. (Link is at the bottom!!!)

Kernel source:
https://github.com/AICP/kernel_sony_sdm845/tree/q10.0
Device tree source:
https://github.com/AICP/device_sony_apollo/tree/q10.0

ROM & Additional links:
AICP's Homepage
AICP Gerrit Code Review
AICP sources on Github
AICP Download page for official builds and media content
AICP Discord Community
AICP Telegram channel for server notifications on official builds


Contributors:
- Olivier
- Sjll
- MartinX3 - thanks to him for allowing me to include his TWRP
- The sony open devices team and contributors
- LineageOS team

You want to see a "normal" night at the "DEV office", click here!!

XDA:DevDB Information
Android Ice Cold Project (AICP) 15.0 (q10.0) apollo (Sony XZ2 Compact), ROM for the Sony Xperia XZ2 Compact

Contributors
SpiritCroc
Source Code: https://github.com/AICP

ROM OS Version: Android 10
ROM Kernel: Linux 4.x
ROM Firmware Required: Unlocked bootloader

Version Information
Status: Testing

Created 2020-04-26
Last Updated 2020-10-18
 

SpiritCroc

Senior Member
Feb 17, 2015
596
1,203
93
so in this rom will never be a gcam?:(
In case the sony open devices program at any point in the future catches up with stock-based solutions concerning performance and functionality, I might switch to it as well.
For now, I experience the best results with a stock-based approach.
 

SpiritCroc

Senior Member
Feb 17, 2015
596
1,203
93
I uploaded a new build.
I have not tested a dirty flash this time, so I recommend to do a full backup to external storage in case something goes wrong if you try to upgrade from the previous AICP build (otherwise, you need a clean flash either way).
This time, it's a flashable zip (instead of images for fastboot), I have updated the install instructions accordingly.

This update features enforcing sepolicy (thanks to @Olivier and @Sjll for their work on the offcial lineage trees).
It might be ready for official AICP builds, but I don't know if it's worth it since I have not received any user feedback yet and don't know if there is actually demand... so if you use AICP, would be great if you could provide some feedback ;)
 

SpiritCroc

Senior Member
Feb 17, 2015
596
1,203
93
I flashed the 52.1.A.3.49 using xperiafirmware flasher.
Then, i used the old method (fastboot method) to flash the AICP rom...

Did i miss anything?
So you flashed the old build (20200425_1435)? That one might need older firmware (around 52.1.A.0.672).
For the newest AICP build (20200731_1348), you need the new firmware (52.1.A.3.49) and the new instructions.
 

shamllakh

Senior Member
Oct 28, 2015
54
11
8
Gaza
So you flashed the old build (20200425_1435)? That one might need older firmware (around 52.1.A.0.672).
For the newest AICP build (20200731_1348), you need the new firmware (52.1.A.3.49) and the new instructions.
Thanks a lot for the hint
I re-flashed the 25.1.A.3.49 via newflasher33, then flashed the AICP ROM via fastboot.

Now it works fine.

:fingers-crossed:
 
  • Like
Reactions: SpiritCroc

old.splatterhand

Recognized Contributor
Nov 4, 2010
3,786
2,100
113
Saturn III
I finally found the time to flash my xz2c with this great rom and first i want to thank @Olivier for the official LOS base and second @SpiritCroc making this possible on this device!
As i use Aicp since years as my main Rom on my HTC One M8 i know what i'm getting with this.

However i had problems with installation: no matter what i did, i could not get the "zip" flashing to boot.
I first used Newflasher to update to the latest stock Rom, then i booted it twice to finish the carrier installation.
then i booted up twrp and flashed the zip file. Once, for the unused slot, then on the other slot. Spent a whole evening without succes...don't know what was wrong. Unfortunately i'm not used to this A/B flashing.
I then used this guide/files to extract the img files and flashed them with fastboot. That worked like a charm!

All in all this Rom has almost no problems and is faster than stock to me. Some things i noticed so far:

- biggest (and only real) problem (and as far as i heard it is the same on the LOS base) the ringtone/notification sound is is quieter than stock. I hope this can be solved, because stock was not really loud already
- flashlight brightness is not really bright, same like stock rom i think. I used some modded lib files from an Android 9 mod to make it brighter.
- i miss the option to change the visual appearance of the navbar button which was available until Android 9 in Aicp
- screen colors seems to be much more brighter, it looks much more better than stock to me

I will continue testing and see what i'll find.
All in all this Rom with it's many features is definitely worth flashing it!!!
 
  • Like
Reactions: SpiritCroc

Doman

Senior Member
Jan 13, 2007
275
39
0
!!! KUDOS !!!

AICP-q10.0_apollo_20200731_1348 is the first the most customizable and fully working ROM for Xperia XZ2C, if not the only one at all. I have not tested all the goods yet, but the most important features are here:
* fully working TWRP v3.4.0.0 - no issues with touch every time! until now the only TWRP working for me was the one booted with fastboot, all the flashed TWRPs had either touch issues or SD card issues
* SafetyNet basicIntegrity passed! - ctsProfile can be easily fixed with MagiskHide Props Config and therefor we have a full SafetyNet passed along with Magisk, allowing the banking and all the other sensitive apps to work
* WIFI
* Bluetooth (audio and calling)
* GPS
* fingerprint
* camera (but not the Sony one :()
* encryption with TWRP decryption working
* SD card with exFAT
* notification LED

A few installations points from me
The ROM Installation was very easy and quick, but I was doing a total clean install. Here is what I did
1. Install Sony's stock ROM 52.1.A.3.49 with newflasher
2. Boot TWRP v3.4.0.0 stock version with fastboot
3. Flash AICP-q10.0_apollo_20200731_1348.zip (please note the messages, it should flash to "inactive slot B")
4. In TWRP select Reboot => Slot B => Recovery... to reboot the phone into recovery in Slot B
5. Flash Gapps
6. Format data (just in case, many times without format with other ROMs I got bootloop)

If you need fully working Magisk with full SafetyNet pass (steps are not logical and obvious but it works, tried it w few times):
1. Flash Magisk v20.1 or v20.3.... later versions breaks the basicIntegrity! If you have flashed later Magisk version simply use Magisk Unistaller zip in TWRP and flash v20.1 or v20.3
2. Boot the phone and update Magisk Manager to the latest version 8.0.2 (307) with an option inside the Magisk Manager
3. Go back to the TWRP and now you can flash Magisk v20.4 or v21.0 - this time flashing does not break the basicIntegrity and those versions are required to fix the ctsProfile
4. Install MagiskHide Props Config module in Magisk Manager
5. Install Terminal Emulator
6. Run terminal and enter the commands su followed by props
7. Change fingerprint to XZ2C with the following options: 1 => f => 27 => 20 => reboot

Ok, so what are the drawbacks? Well not much and more personal preferences I think:
1. Missing Sony's stock camera app. I tried to flash those zips below but I get "unknown error" when I try to launch the app. Do you think it would be possible to make the Sony camera work with your ROM?
https://androidfilehost.com/?w=search&s=semccamera
2. Missing custom navigation bar buttons. On the RR ROMs I used to work the most it was possible to add extra navigation buttons and assign customized actions for tap, long press, etc.
3. Slow auto brightness reaction (I can live with that)
4. Veeery low flashlight level (there was a solution for XZ1C to fix that, I have to dig a little bit to see if it can be done here as well)
5. Ambient Display - to show notifications on blocked screen

Please don't give up the project. There is not much going with the XZ2C custom development, the last and only "normal size" Android phone.
Do you think you can take a look at some of my "drawbacks" and try to fix them?
Do you think you will make some other ROMs for XZ2C in the future, like ResurrectionRemix, EvolutionX, HavocOS?
 
Last edited: