yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Compact Android Development] stiernacken:
Camera connection problem after first start, reboot and never saw this problem again!

Rooted with Magisk v12.0 and Manager 4.3.3 works great!

I tried OpenGapps arm 7.1 pico version and cant find any problems!

Phonecalls working for me, incoming and outgoing calls.

GPS seems working, i will testing it tomorrow.

So on, i will reporting problems when i find something!

btw, is it possible to change the icons from the aicp launcher?

Thanks for your work to make these phone great aigan :D
[Xperia Z1 Compact Android Development] levone1:
Same here. Magisk, camera, phone, etc. all good... Still problem with Substratum, though. You?
[Xperia Z1 Compact Android Development] nhicko95:
What twrp version should I use?

i tried twrp 3.1.0 and twrp3.0.2 just blackscreen
[Xperia Z1 Compact Android Development] DrtiBarta:
I also ended with blackscreen, also tried reboot And factory reset, still got blackscreen
[Xperia Z1 Compact Android Development] nhicko95:
what version of twrp did u use ?
[Xperia Z1 Compact Android Development] stiernacken:
I don't use substratum...

Here my steps to install the build:

You're device must unlocked!

1. Flash stock Lp. 236 with flashtool for open bootloader

2. Flash Twrp 3.1.0.0 with fastboot (fastboot flash recovery recovery.img)

3. Boot into Twrp with volume - and power

4. Make backup of stock Lp for easy restore

5. full Wipe

6. Flash aicp and gapps

7. Reboot for testing boot and Rom

8. Flash magisk v12 and manager app for root

9. Reboot and enjoy :good:

TWRP from here: Link to thread with TWRP
[Xperia Z1 Compact Android Development] nhicko95:
can you upload here the twrp did u use?
[Xperia Z1 Compact Android Development] DrtiBarta:
3.0.2
[Xperia Z1 Compact Android Development] stiernacken:
https://androidfilehost.com/?fid=529152257862711713
[Xperia Z1 Compact Android Development] nhicko95:
same here i gonna try 3.1.0

black screen appeared
[Xperia Z1 Compact Android Development] DrtiBarta:
3.1.0 Black screen, i came from cm 12.1
[Xperia Z1 Compact Android Development] nhicko95:
first try i came from cm12.1 3.0.2 twrp blackscreen

2nd try flash stock fastboot 3.1.0 twrp same result

ifollowed instruction

anyone can help us
[Xperia Z1 Compact Android Development] stiernacken:
Tried flash stock. 236 first?
[Xperia Z1 Compact Android Development] nhicko95:
yes
[Xperia Z1 Compact Android Development] stiernacken:
Unlocked?
[Xperia Z1 Compact Android Development] levone1:
[MENTION=6425591]SpiritCroc[/MENTION], or anyone else confirm that Substratum not working, or just me?

Also, twice it's happened that when I boot, no browser will be able to load Web pages. Internet is good, and other apps, like play store, Mega, etc, work fine, but if I open a browser and try to use Internet, it just stays loading indefinitely, and then closes, with fc error popup. After reboot, it's fine and works again.

(I'll get a logcat next time...)
[Xperia Z1 Compact Android Development] nhicko95:
yes of course
[Xperia Z1 Compact Android Development] SpiritCroc:
I can confirm that Substratum fails to compile the overlays, will see what I can do.
[Xperia Z1 Compact Android Development] SpiritCroc:
So the issue with Substratum on the test build is that it can't install the compiled package (seems like packagemanager doesn't get permission to read it, still don't know why, file permissions seem to be the same with the aosp-based build which works).

As a workaround, you can

- Compile overlays with Substratum

- Go to /sdcard/.substratum with a file explorer and install the overlays from there

- Enable the overlays with Substratum
[Xperia Z1 Compact Android Development] einfachgaer:
Same here... Can we provide some sort of log to help finding the issue?

Or does it just take very long to boot the first time? The phone heats up a lot during the blackscreen.
[Xperia Z1 Compact Android Development] stiernacken:
You need the latest lollipop stock Rom (.236)!

What's your stock rom?
[Xperia Z1 Compact Android Development] einfachgaer:
That's the version I was on (14.6.A.1.236), before I wiped everything via TWRP and flashed the newest AICP from this thread. I tried with TWRP 3.0.2 and 3.1.0.

I let it boot for a while. I guess it booted up successfully, since it does the locking sound when pushing the power button. The screen lights up, but stays black. [MENTION=6425591]SpiritCroc[/MENTION] , may I ask, if the display type can cause this issue? I know that sony put in atleast 2 different types in their Z1c.
[Xperia Z1 Compact Android Development] nhicko95:
what is !trim area! (2Mb)

i found it when im trying to backup stock firmware i forgot to take a picture of that any one know?
[Xperia Z1 Compact Android Development] levone1:
https://www.google.com/amp/s/xdaforums.com/xperia-z2/help/trim-twrp-backup-t3143392/amp/
[Xperia Z1 Compact Android Development] drbrutalo:
Awesome

Finally a decent Camera. I had no issues flashing following the Instructions given. There's one small quirk for me though: wifi detects only some of the APs at home, sadly not mine. I live in Germany, will try to change region code to Europe and report, how it was going this afternoon.

Another question: how do i update from test to a regular release later on?
[Xperia Z1 Compact Android Development] stiernacken:
GPS navigation not working.

Try Gps fix, no chance.
[Xperia Z1 Compact Android Development] drbrutalo:
Nevermind the wifi problem, changing the channel fixed this. I can confirm the gps problem though. No fix, only NLP-
[Xperia Z1 Compact Android Development] SpiritCroc:
dmesg

Might be...

I guess you can find out the panel by executing in terminal

cat /sys/devices/mdss_dsi_panel/panel_id

which outputs auo novatek 720p cmd for me
[Xperia Z1 Compact Android Development] nhicko95:
i hope they can fix the black screen issue im jealous
[Xperia Z1 Compact Android Development] einfachgaer:
Mine is jdi novatek 720p vid.

dmesg is here: https://pastebin.com/GAxN4eJm

My guess is, that there are some drivers missing for jdi panel, but don't rate my guesses high. lol...
[Xperia Z1 Compact Android Development] nhicko95:
jdi novatek 720p vid is mine
[Xperia Z1 Compact Android Development] stiernacken:
Can someone check the GPS issue?

Without GPS not usable for me...
[Xperia Z1 Compact Android Development] drbrutalo:
Still no lu(o)ck with gps. I tried removing anything unifiednlp-related, should it interfere, wiped caches and still can't get lock. is there anyone else besides [MENTION=3437623]stiernacken[/MENTION] and me experiencing this problem?

btw.: my display panel (which works) is a novatek.

Edit: auo novatek 720p that is
[Xperia Z1 Compact Android Development] SpiritCroc:
New test build is up that might fix the blackscreen issues, please test
[Xperia Z1 Compact Android Development] drbrutalo:
Does it address GPS problems also? Thanks.
[Xperia Z1 Compact Android Development] -totonio-:
The honami thread states that DRM are broken, is for your 3.4 rom too?
[Xperia Z1 Compact Android Development] SpiritCroc:
No, black screen has a higher priority

Probably
[Xperia Z1 Compact Android Development] -totonio-:
Ok, I have my screen broken now, but if I find an otg cable near here I'll try the rom
[Xperia Z1 Compact Android Development] drbrutalo:
new build works flawless for me - besides gps... anyone with jdi panel?
[Xperia Z1 Compact Android Development] nhicko95:
its boot up no blackscreen thanks [MENTION=6425591]SpiritCroc[/MENTION] checking for other bugs :)

---------- Post added at 10:54 AM ---------- Previous post was at 10:46 AM ----------

i didn't try gps

---------- Post added at 11:00 AM ---------- Previous post was at 10:54 AM ----------

cant take picture using back cam and front cam
[Xperia Z1 Compact Android Development] drbrutalo:
Had that once, needed to set up memory, since then it works.
[Xperia Z1 Compact Android Development] nhicko95:
how?
[Xperia Z1 Compact Android Development] drbrutalo:
set up sdcard (or whatever works for you) as location to safe images. In the settings-apps menu i took away memory access rights and then granted them again to the camera app.
[Xperia Z1 Compact Android Development] nhicko95:
i tried that same thing happen
[Xperia Z1 Compact Android Development] einfachgaer:
With the new test build everything seems to work for now! Thank you very much.

I tried taking pictures and videos with front and back camera.

Edit: Even the bug since M roms, where you had to disable HW-Overlays for fullscreen 720p videos, is gone.

Edit2: GPS fix not working... Sorry for false information!
[Xperia Z1 Compact Android Development] stiernacken:
Tried dirty flash an GPS still not working.
[Xperia Z1 Compact Android Development] drbrutalo:
Did you dirtyflash or go through whole procedure again?
[Xperia Z1 Compact Android Development] einfachgaer:
I completely wiped my phone including internal storage.

Then flashed: 1. Rom 2. Gapps pico 3. Magisk beta v13 with TWRP 3.1.0.
[Xperia Z1 Compact Android Development] nhicko95:
on my z1c cant take picture front and back taking video is fine on at least the battery was great i leave it on 62% then i pick it after 4 hrs 59% great rom except that i cant take pictures
[Xperia Z1 Compact Android Development] MajinJoko:
I'm really excited about the camera now working.

Unfortunately the problem with gps is a major issue for my daily use, I should wait until it will be fixed.

Does this rom have any other "disadvantage" I should know?

Thanks for your work!
[Xperia Z1 Compact Android Development] nhicko95:
i found a rom on z1 Ls14.1 with Xperia UI anyone make that here or port it to z1 c that would be great

edit is in z3 compact i was wrong
[Xperia Z1 Compact Android Development] drbrutalo:
Hm, strange - flashed stock with emma -> twrp 3.1.0 -> full wipe - > testbuild: no sat fix. Are you sure your position comes from gps, not network services?
[Xperia Z1 Compact Android Development] levone1:
Maybe request from Z1 dev. I think it's easy to port from Z1 to Z1c. Problem is going to be the kernel, since AICP is the only post-LP rom for Z1c with a usable camera, and AICP kernel doesn't work on LOS, (I tried).
[Xperia Z1 Compact Android Development] Hazou:
Don't know what u mean with aicp kernel, but the kernel in this build works great with LOS. GPS was an issue, I think I got that sorted out and the smartcard API works fine. Still need to figure out why some things won't get copied over in LOS build and it does in AICP.
[Xperia Z1 Compact Android Development] levone1:
I haven't built my own, but I tried booting a couple of LOS builds with the AICP kernel and it wouldn't boot. I figured that if it would boot with this kernel, maybe the camera would be good, (but not sure). If you know of a build that will boot with it, please share. It would be great to have an LOS rom with a usable camera.
[Xperia Z1 Compact Android Development] Hazou:
Is doable. Will share one this weekend if no one else already did.
[Xperia Z1 Compact Android Development] levone1:
[MENTION=6425591]SpiritCroc[/MENTION] - browser freeze thing happened again

Here's log...
[Xperia Z1 Compact Android Development] einfachgaer:
Well, I need to correct myself... Sorry!

I forgot I had data enabled. I tried GPS only and no fix. You are right.
[Xperia Z1 Compact Android Development] nhicko95:
here my logs can't take picture using latest build [MENTION=6425591]SpiritCroc[/MENTION]
[Xperia Z1 Compact Android Development] nhicko95:
[MENTION=6425591]SpiritCroc[/MENTION] 3.4 kernel include in this build http://dwnld.aicp-rom.com/device/amami/NIGHTLY/aicp_amami_n-12.1-NIGHTLY-20170708.zip ?
[Xperia Z1 Compact Android Development] SpiritCroc:
No, it's obviously not ready for daily use yet
[Xperia Z1 Compact Android Development] nhicko95:
Thanks
[Xperia Z1 Compact Android Development] tsai11:
What I encountered is my phone cannot charge when using micro USB.
[Xperia Z1 Compact Android Development] nhicko95:
what build are you using?
[Xperia Z1 Compact Android Development] tsai11:
I am using the latest build (please see my screenshot), and I also found the Developer Option - Select USB Configuration is not working.
[Xperia Z1 Compact Android Development] levone1:
I'm using July 4 test build, but I noticed that when I pick a different USB mode, it still shows 'charging' in the settings tile summary, but the mode is actually changed, it just doesn't show it on the tile. Try choosing a different mode, then close settings app, (swipe from recents), then open again and see...
[Xperia Z1 Compact Android Development] nhicko95:
I've encountered this on 3.10 kernel what I did is when I plug In my z1 to PC it nothing happens but I swipe down on statusbar then change mode to file transfer mode it charge I didn't test it on 3.4 kernel
[Xperia Z1 Compact Android Development] Horst the Animal:
I have the same problem, my phone will not charge, I'm on the latest build.
[Xperia Z1 Compact Android Development] nhicko95:
Is anyone here have a same issue when I grant a permission on an app the app force close immediately maybe that's the reason why I can't take a picture [MENTION=6425591]SpiritCroc[/MENTION] Help :(
[Xperia Z1 Compact Android Development] drbrutalo:
It happens when opening an app for the first time. Restarting helps. [MENTION=6425591]SpiritCroc[/MENTION] do plan on releasing new testbuilds,addressing the GPS issue?
[Xperia Z1 Compact Android Development] Vijayraj_kp:
Can anyone tell me if the camera (both front and rear)working fine ?? i mean focusing and brightness of camera?
[Xperia Z1 Compact Android Development] nhicko95:
Mine cant focus and can't take picture but I can record a video and panorama
[Xperia Z1 Compact Android Development] Vijayraj_kp:
so recording works fine? and not snaps?
[Xperia Z1 Compact Android Development] nhicko95:
Yes I didn't know the reason help pls
[Xperia Z1 Compact Android Development] Vijayraj_kp:
The camera of new update isn't working for me (blurry and dark camera)...

But the test build with kernel 3.4 works just fine for camera...
[Xperia Z1 Compact Android Development] -totonio-:
There is a new build in the z1 thread, all the major issues seems to be fixed1
[Xperia Z1 Compact Android Development] nhicko95:
devs are working at it. I guess?
[Xperia Z1 Compact Android Development] SpiritCroc:
Uploaded new test build, since people seem to be waiting for it...

All permission related issues (including Substratum) should be fixed now, and maybe some more.

What's keeping it from official builds is some more testing and sepolicy
[Xperia Z1 Compact Android Development] nhicko95:
Link?
[Xperia Z1 Compact Android Development] levone1:
https://drive.google.com/drive/folders/0B7dII2zY5kCLUF90NGhWS2JCQkU
[Xperia Z1 Compact Android Development] SpiritCroc:
Same as all the other ones and in the first post
[Xperia Z1 Compact Android Development] nhicko95:
Tnx camera is working now
[Xperia Z1 Compact Android Development] stiernacken:
And GPS?
[Xperia Z1 Compact Android Development] nhicko95:
Didn't try
[Xperia Z1 Compact Android Development] stiernacken:
I tried the last test build.

GPS is working now! Thanks.
[Xperia Z1 Compact Android Development] drbrutalo:
Thanks a lot! GPS is fine now. I kept the testbuilds during my vacation because of the brilliant camera. Finally I'm able to navigate using the phone and not pen and paper. Thank you very much again [MENTION=6425591]SpiritCroc[/MENTION]
[Xperia Z1 Compact Android Development] drbrutalo:
Also no more fc on granting permissions.
[Xperia Z1 Compact Android Development] xBastek:
So i've installed the test build, but when i try to change the camera to front the screen goes black. The camera seems to be working just no display. Is this my fault or the builds?
[Xperia Z1 Compact Android Development] nhicko95:
disable HW Overlays
[Xperia Z1 Compact Android Development] DcR-Nl:
Same issue here, also with videos. Seems to be fixed when you enable Disable HW overlays inside the Developer options.

//edit: Oops, already answered by nhicko95
[Xperia Z1 Compact Android Development] einfachgaer:
The build "AICP-n7.1_amami_20170706_2234_laos.zip" didn't have the issue with a black front camera, when I tried it. Same with videos playing in 720p landscape.

Also I didn't disable HW overlays. Maybe it was forced to be disabled? Don't know exactly.
[Xperia Z1 Compact Android Development] SpiritCroc:
Try disabling hardware overlays (more information in first post)

Edit: Sorry, didn't see the new page.
[Xperia Z1 Compact Android Development] xBastek:
Disabling HW overlays helped, Thanks!!
[Xperia Z1 Compact Android Development] stiernacken:
My wifi disconnects everytime i lock the screen and doesnt reconnet Automaticly when i turn it on.
[Xperia Z1 Compact Android Development] nhicko95:
can you add micro g support Google play services eats a lot ram
[Xperia Z1 Compact Android Development] levone1:
You can easily patch with Tingle, but problem with AICP is that method index is maxed out, so you might need to delete some smali files to get it to recompile, (although not positive with spoof patch, since it might actually make it smaller...). Anyway, when I patched my framework, I just deleted a few files in the 'TV' section.

BTW - I posted a micro g patched framework for LOS in Nougat rom thread.
[Xperia Z1 Compact Android Development] nhicko95:
Los build how battery it was better than Aicp?
[Xperia Z1 Compact Android Development] levone1:
Can't say yet. I just flashed it this morning and had it turned off for a few hours a couple of times. Seems OK, but I think it's good to use some optimization/restriction apps...
[Xperia Z1 Compact Android Development] DcR-Nl:
Been using the AICP-n7.1_amami_20170712_1403.zip test-build for almost a day now. First build I'm trying.

Encountered some issues not mentioned in the known issues (also not present on my previous 5.1.1 stock based ROM):

WiFi doesn't automatically connect to my network after turning WiFi on. Same thing when rebooting. I do see my network with the sub-title "saved". Manually connecting works fine, but it doesn't automatically restore the connection if lost. This is a big issue for me.

Adaptive brightness not calibrated; it goes all over the place. From full brightness to dark - and vice versa - when moving just a little.

Mobile NFC pay app of my bank shows a "Your device isn't compatible with this version." notice in the store; unable to install. Contacted support and they told me this only happens if there is something wrong with the NFC. :confused:

One of my outgoing calls disconnected after about a minute; *beep* and screen returned to contact list as if I wasn't calling.

Known issues present for me:

Touch not responding on first boot. Reboot fixed it.

Black screen on video playback and switching camera. Disabling HW overlay fixed it.

Good things I noticed:

Many features compared to stock. For example the easy to use density options.

Android 7.1.2 with security patch level July.

Magisk systemless root and SafetyNet hide seems to work fine.

Average battery life; nothing out of the ordinary.

PSA for the other users: If possible, please consider donating. See OP for details. :)
[Xperia Z1 Compact Android Development] Hazou:
The ROM is missing the smartcard api to get it working, I had the same thing with my Rabobank app. Build a rom with it and it's working great now (needed to give it extra permissions tho)
[Xperia Z1 Compact Android Development] DcR-Nl:
Interesting, thanks for sharing. After some searching I came across the Open Mobile API. This API also seems to be missing on the OnePlus 3, but a XDA user released a flashable zip to fix this. I'm a bit confused since the sources I've found refer to the SIM and not the NFC (my bank doesn't use a special SIM, just the NFC). Also no OpenMobile API permissions in the AndroidManifest; I do see a requirement of android.hardware.nfc.hce.

Can you confirm this specific API being the culprit? I'm asking this in the hopes of it being added to this rom, but also because I want to add it to my wish list for my next purchase.
[Xperia Z1 Compact Android Development] Hazou:
Oh, i thought the ING does also use a sim card to use nfc pay. Than the open mobile api will not work. I will have a look at it why it doesn't work then.
[Xperia Z1 Compact Android Development] newjoerg:
I did install AICP-n7.1_amami_20170712_1403. Camera works, which is great! However: recovery is gone or cannot be started. Reinstalling recovery via fastboot works, but still cannot enter the recovery. Any ideas?
[Xperia Z1 Compact Android Development] SpiritCroc:
If you have real recovery, you can still boot to recovery by pressing volume down (until sony logo appears) while powering on.

If you don't have real recovery, you didn't read the installation instructions carefully enough
[Xperia Z1 Compact Android Development] SpiritCroc:
Since development now concentrates on the 3.4 kernel builds and many of you are using the test builds already either way, I'm thinking about switching to the new device tree on official builds, so please vote whether you think it's ready!
[Xperia Z1 Compact Android Development] lopra:
who the heck is responsible for the AICP Extras easter egg? (tap a few times on the logo in the app)
[Xperia Z1 Compact Android Development] levone1:
Let's make sure to appreciate and give feedback on this, lest we find ourselves complaining later... Personally, I haven't had any issues with latest test builds, but I don't use a very wide range of features and functions. I would like signature spoof support, but I can patch myself if necessary...
[Xperia Z1 Compact Android Development] nhicko95:
me too play service eats a lot of ram
[Xperia Z1 Compact Android Development] SpiritCroc:
We had that in for some time, but it was reverted since it was causing bootloops in some scenarios
[Xperia Z1 Compact Android Development] newjoerg:
Recovery not loading

Well, the official AICP ROMs worked just fine: I was able to access the TRWP recovery. That's how I installed the Test build. Only after installing the Test build from July 12 I cannot access the recovery any more. Tried to flash the recovery again, but that does not help. When I understand this correctly, the booloader changed. I am just wondering why/how? And is there any way to correct it via fastboot?
[Xperia Z1 Compact Android Development] SpiritCroc:
Test builds with 3.4 kernel use a completely different device tree, based on the old cm-12.1 trees that was updated to Nougat (official builds are currently based on the sonyxperiadev AOSP device tree with 3.10 kernel), and apparently cannot reboot to real recovery yet. You should still be able to boot to real recovery directly as I described; if it was working for you on official builds, there should be no need to flash anything via fastboot.
[Xperia Z1 Compact Android Development] newjoerg:
Thanks for the answer. However, it does not work. Is there any other way than to install the original stock ROM all over to re-install / activate real recovery?
[Xperia Z1 Compact Android Development] levone1:
Last time I patched framework, I deleted some smali files from /smali/.../TV/ in order to get a recompile, since too many methods... I don't need anything to do with TV on my phone, but also, I'm not aware of any TV-based functions being available. Would you say that this is safe, as far as phone function and stability?
[Xperia Z1 Compact Android Development] FaTlip82:
WiFi disconnects often, when i am not using the phone.
[Xperia Z1 Compact Android Development] levone1:
What is required for real recovery is:

- Updated Sony bootloader, which comes by flashing official 5.1 update through Emma or official Sony ota update, (probably flashtool also, but can't say for sure), and

- Real-recovery-compatible recovery img, (twrp 3.x), flashed to recovery partition.

If you have both of those, it will work. If not working, just flash both again, to be sure.