yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Compact General] hahnjo:
I was successful here, too. I think I have also found the kernel bug in dwc3 so that the wake lock is correctly released after unplugging (will submit a Pull Request today). Together with the fix in https://github.com/SuperLamic/android_device_sony_rhine-common, my phone enters deep sleep. Will give it a few days before I report on battery usage though :o

Edit: Looks like David Viteri also found it: https://github.com/sonyxperiadev/kernel/pull/1130
[Xperia Z1 Compact General] derf elot:
Unfortunately, even with deep sleep working, I always got fairly bad battery life. For me, just leaving phone on airplane mode with mobile, WiFi, BT, ncf all off, battery is drained after 2-3 days. And I couldn't figure out what was causing this.
[Xperia Z1 Compact General] Micha_Btz:
[MENTION=4063475]derf elot[/MENTION]

i have build yesterday a LOS cm-14.1 to try how far it is. With this manifest https://github.com/Micha-Btz/local_manifests and your amami tree.

I can flash the cm-14.1 successfully and the device boots up but I'm not able to decrypt my data partition from your lastest cm-12.1. Is there something changed

in the way how it works?

Or is this because the difference between cm and sony asop kernel? did you know something?

thanks Micha
[Xperia Z1 Compact General] derf elot:
Hi,

not quite sure what the issue is there, haven't tried it myself either. For testing, I did encrypt my data with LOS14.1 and it was working fine. So there must be indeed some incompatibilities. But I don't know if they are L/N, 3.4/3.10 or maybe even blob related.

Cheers
[Xperia Z1 Compact General] _strauch_:
Hello derf elot,

i installed your lineage 14.1 and i have a bad battery life too, betterbatterytstats show me still the msm_dwc3 under the kernel wakeups with 100%. The phone don't get in the deep sleep mode. After a reboot this works. So tonight i will charge it again and reboot it after I unplugged it. Maybe it helps. Therefore it runs very smooth. Thanks for your work.

Best regards

strauch
[Xperia Z1 Compact General] derf elot:
Hi,

yes, a reboot will fix the deepsleep issue. But even with deepsleep supposedly working, I got a pretty bad battery life. And I couldn't really figure out why. Let me know how it goes for you :)
[Xperia Z1 Compact General] _strauch_:
Hi,

i have a Problem with youtube, if i look a movie in landscape sometimes the screen get black. Do you have the same problem? Akku draining today is until now ok. I plugged it of 4 hours ago. an now i am at 89% with 16min display time.

Greetings

strauch
[Xperia Z1 Compact General] levone1:
Did you try to disable hw overlays?
[Xperia Z1 Compact General] _strauch_:
Hi levone,

this works in a first test.

another bug the flashlight quicksettings didn't work. An extra app is no problem, but it needs camera permissions. Maybe there is a permission problem?

thnx

strauch
[Xperia Z1 Compact General] levone1:
Which ROM are you using? I have latest AICP and working fine... Try to remove from quick settings, then add again. Also, if you have option to add to power menu, test if that works...
[Xperia Z1 Compact General] _strauch_:
Thanks this work. I used the lineage-14.1-20170108-UNOFFICIAL-amami.zip from derf elot.

Thanks

strauch
[Xperia Z1 Compact General] foresto:
I'd like you to know that your continuing work on amami is very much appreciated. There are very few update options left for Z1 Compact users, but the hardware is still perfectly good, and it would be a shame to let it go to waste.

I converted my old cm-12.1 build environment to LineageOS repos this week, and successfully built a 12.1 February image using the manifests you posted in another thread. So far, everything seems to work that was working with CyanogenMod, including deep sleep and camera.

I'm looking forward to whatever progress you make on 14.1. I was following a dev thread a while back that looked like the camera, charging, and deep sleep problems were nearly solved, but sadly, the discussion fell apart. It would be outstanding to have our devices fully working on Nougat. I hope the new blobs help.

Thanks again for all your effort!
[Xperia Z1 Compact General] levone1:
I know fxp site has been down, but I stumbled across this today

https://www.androidfilehost.com/?w=search&s=amami

Using 2/27 AOSP build now, working well, camera still the same.
[Xperia Z1 Compact General] levone1:
Updated OP to be current and organized. I think there's another LOS 14 or something out there, but can't remember for sure. Let me know if I'm missing something/got something wrong...
[Xperia Z1 Compact General] levone1:
Just found this on AFH, if someone wants to try...

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

My BL is currently re-locked, so I will try soon...
[Xperia Z1 Compact General] Barium:
I just tried "lineage-14.1-20170214-UNOFFICIAL-SonyLOS-amami.zip" to see if the camera was already improved. Unfortenately, focusing is still slow and the image is really dark, just as with the other Nougat ROMs. I still run Lollipop (CM) and the camera is really good (I don't know how the camera is in Marshmallow (CM), never tried it). The only thing withholding me changing to Nougat is the camera... although the ROMs are looking really good!:good: Can somebody explain (shortly) why the camera quality is so different?

Also checked the new AICP, the camera quality seems to be improved, but focussing is still slow..
[Xperia Z1 Compact General] levone1:
Nodded my system ui (AOSP) to include navbar tuner in sysui tuner options. Thanks to [MENTION=4648515]AL_IRAQI[/MENTION] - https://xdaforums.com/nexus-6p/themes-apps/mod-enable-navbar-tuner-nougat-t3447478
[Xperia Z1 Compact General] Micha_Btz:
you can use the rom I build but without any warranty. These are roms to learn to use git and for my personal tests.

By the way this roms have the same problems as all nougat roms for amami.

For build I use this manifest.

https://github.com/Micha-Btz/local_manifests
[Xperia Z1 Compact General] levone1:
Appreciate the work and interest. Since we never got official Sony after LP, we're glad for any efforts. Looking forward to good camera post-LP... I know this is dependent on Sony blobs, which may never come, but maybe still hope?...
[Xperia Z1 Compact General] levone1:
New Lineage build by [MENTION=6270042]freexperia[/MENTION] 3/12. Link in op...
[Xperia Z1 Compact General] levone1:
I don't understand much, but somehow camera quality is dependent on these special files called blobs. They come from the OEM, (Sony), and if OEM doesn't provide updates, you're up a creek, because you can't make up your own. Sony hasn't offered anything since LP, and so we haven't had a decent camera since then.
[Xperia Z1 Compact General] levone1:
Just tried it, and it boots to 'setup wizard has stopped', and you can't get past that. Deleted setup wizard in recovery, and it boots to 'com.android.provision has stopped', and you can't get past that. I don't think you can delete that. You can get to phone and camera from lock screen, and you can get to settings from pull down, but that's it. It might work to pull provision folder from older build, but not worth it to me...
[Xperia Z1 Compact General] Micha_Btz:
I can do nothing to improve camera. And for me it is not important since I take 10 pics a year so i can wait for focus.

But th rom has more problems I think. Mobile Data is not working correctly and the battery life also doesn't

came near to stock one. Maybe the are improvement in the future maybe not. I don't think the rom is ready for daily driver.
[Xperia Z1 Compact General] Micha_Btz:
it seems there is a fix for GPRS and EDGE. I will make a new build today.

https://github.com/hahnjo/android_d...mmit/2028849ac52b84dc1680366cb3abf878bd16e5c5 [MENTION=6425591]SpiritCroc[/MENTION] maybe interesting for you to.
[Xperia Z1 Compact General] SpiritCroc:
Already in, thanks for trying to help
[Xperia Z1 Compact General] Ephixi4:
Currently on AICP. Everything* seems to work well.

*Only issues I've encountered:

(UPDATES in bold)

- Faulty camera. It is glitching in FHD, max res 'works'. Seems like it tries to autofocus constantly. Not enjoyable to use, but it is possible to get a decent picture. Open Camera from PlayStore seems to be working better than the stock camera app.

- Battery drain. I blame it on the Nougat itself. Found this post on reddit, will see tomorrow if resetting all app preferences fixed it.

[Didn't work. The battery won't last a day with moderate usage and hours just laying on idle. Keep draining way too much battery on idle. No idea why. Lost like 80% in 10 hours. with 7 hours on idle. No gaming during that time]

- Used stock alarm app - I think it didn't go off / my phone was off? in the morning (while charging). I don't know what happened there. Was too sleepy to think and I forgot what exactly happened. But be aware of this and better check the alarm app on stock settings first before you go to sleep. (I might just sleep through 5 minutes of alarm, I'm a heavy sleeper, but still no idea why phone was off.)

[Alarms work fine. Using stock alarm app.]

- Can't find 5Ghz WiFi. Again might be Nougats fault, I read somewhere that it won't show 5Ghz SSIDs set to certain channels. Will try to change the channel tomorrow. (Other than that WiFi works.)

[Still didn't change the channel, but most likely it will fix this problem]

- Calling is a little jerky (might be providers fault).

[Pretty sure that is the roms fault. Sometimes I can't really hear other people, they often can't hear me, when I turned off the screen it was cutting the call every couple of seconds like it tried to hibernate or smth but active call didn't let it]

- Sometimes I need to turn airplane mode on/off to mobile data start working. No biggie.

[Still the same]

- Had problems with exporting contacts from the sim. Later suddenly some of them appeared in my contacts app.

Didn't update to the newest version xxxxx16 but I will soon and udpate again.

Not exactly sure if everything is the roms fault, might be Nougat, might be only me. But these are issues I've encountered.

So again apart from these everything seems to work fine. No crashing, no rebooting without warning, no freezes. Tons of customization.

I hope that the battery drain is fixed now. Will try to update tomorrow. Did Antutu Bench and got something around 51k on the first go.
[Xperia Z1 Compact General] levone1:
New Los build, (freexperia), 3/14
[Xperia Z1 Compact General] levone1:
Just flashed new Lineage, and boots fine and everything seems working so far...
[Xperia Z1 Compact General] Micha_Btz:
I have uploaded a new LOS build yesterday. Can someone please test if mobile data work also on EDGE and HDSAP?

For me it didn't. Yesterday I have also test aicp rom again which also don't work with mobile data beside LTE.

Now I build a aosp amami to test if there are mobile data work correctly.
[Xperia Z1 Compact General] levone1:
Something's screwy with WiFi. Keeps cutting in and out...
[Xperia Z1 Compact General] levone1:
I can try today.

I noticed all Los 14 builds I've tried so far (3) have unstable WiFi. Anyone else, or is it just my connection? Maybe a network setting or something that can help...
[Xperia Z1 Compact General] levone1:
Running it now, and you're right about 2g/3g, but I got it going, (screenshot), by switching preferred network in settings to 2g, then going to data service menu, (*#*#4636#*#*), and selecting 'gsm only', turning off 'cellular radio power', then back on, then hitting 'refresh' button next to 'smsc' field...
[Xperia Z1 Compact General] levone1:
Just tested with 3g, and working also...

Update - not persistent after reboot, so I went back to service menu, and just toggled cellular radio switch, and it came right back. I guess that's all you have to do...
[Xperia Z1 Compact General] Micha_Btz:
Also I did a lot of test the last two days and I'm not able to get mobile data working. One of my problems is that I can't install the right apn settings. Whether manual nor automatic

APN setting worked. I also build a Sony AOSP Rom but there is the SIM card not working so useless to test purposes.

Can someone please test if is the automatic APN settings possible per provider SMS? After I get this SMS i get this error in the log.

https://gist.github.com/Micha-Btz/5ffd198970abe85557d4ecfff7366373
[Xperia Z1 Compact General] levone1:
New builds on afh by [MENTION=7929484]MSe1969[/MENTION]. Link in op. Also something else, not sure what it is - https://www.androidfilehost.com/?fid=529152257862712490 - downloading now...
[Xperia Z1 Compact General] levone1:
Pretty nice... Seems to be a customized AOSP, pixel-style, with Gapps included...Camera still the same.
[Xperia Z1 Compact General] MSe1969:
Hi,

this is simply the outcome, if you use the build manifest in the "SonyAOSP" Git (for Z1C, use branch 'android-7.1-legacy') without any modifications. It refers to the "opengapps" git for the Google stuff, all built-in.

Even root is available through adb (adb shell, then su).

I've built it, because I wanted to see the camera behavior for something completely maintained by the Sony open devices project - but as already mentioned, camera too dark and does not focus properly. :(

Regards, M
[Xperia Z1 Compact General] levone1:
Nice​, thanks for your work. Keep at it...
[Xperia Z1 Compact General] MSe1969:
Hi,

a couple of hints, which may be helpful (finally, I am also stuck in getting a nicely working ROM incl. Cam and reasonable battery etc. - don't really have time to properly test and 'deep dive' further):

Sony AOSP ROM from Open device project w/o SIM:

I was annoyed about that too and switched my tree to the 'SonyAOSP' git config (saved me this way some download time and bandwidth). Nevertheless, seems you simply need to add the following repos to your tree to get the 'open devices AOSP' recognizing the SIM card:

<project path="vendor/broadcom" name="SonyAosp/vendor_broadcom" groups="device" remote="github" revision="android-7.0" />
<project path="vendor/nxp" name="SonyAosp/vendor_nxp" groups="device" remote="github" revision="android-7.0" />
<project path="vendor/qcom" name="SonyAosp/vendor_qcom" groups="device" remote="github" revision="android-7.0" />
<project path="vendor/qcom/firmware" name="SonyAosp/vendor_qcom_firmware" groups="device" remote="github" revision="android-7.0" />
<project path="vendor/sony" name="SonyAosp/vendor_sony" groups="device" remote="github" revision="android-7.0" />

I haven't tried, and don't want to download another tree and also don't want to switch back my AOSP tree currently pointing to SonyAOSP. If you still have your 'open devices' tree, you may want to give it a try?

The 'SonyAOSP' git normally builds a full-blown Google-enabled ROM (see the previous posts), but with some tweaks, I was able to build a 'naked' AOSP from here as well for reference purposes.

Mobile data

Try building LOS with SuperLamic/android_device_sony_rhine-common instead of the corresponding LOS repo.

Interesting enough, the 'SonyAOSP' git config uses the same overlay, but as overlay within their 'vendor_google' repo ('funny' to find it there). So that seems to be something, which is really needed . . .

Regards, M.
[Xperia Z1 Compact General] hahnjo:
For LOS, I have published my local_manifests which I personally use for building: https://github.com/hahnjo/local_manifests (I try to regularly update with content from https://github.com/sonyxperiadev)

With these repositories, SIM is recognized and mobile data is working as long as LTE is available when you activate the connection (later "downgrade" to 3G oder GSM seems to work for me). However, I don't see much benefit in publishing builds because battery life is still really bad :( (I imagine there *could* be some more incompatibilities with radio which somehow prevents power savings...)
[Xperia Z1 Compact General] levone1:
Also new 7.1 build by fxp
[Xperia Z1 Compact General] levone1:
If anyone is interested, latest SuperSU 2.79 zip will successfully root this rom. Need to temp-flash different boot IMG to get into recovery to flash it, (unless I'm missing something- I couldn't get recovery to boot with included boot IMG), but working fine. Got substratum, adaway, etc...
[Xperia Z1 Compact General] Micha_Btz:
thanks for this but I think i will not invest time to it since there are too many problems in LOS, AICP to use it as a daily driver.

ASOP misses the privacy guard which is important to me. I only want to take a look how far it is but when the asop rom has the same problems with

battery and mobile data there is no hope i think.
[Xperia Z1 Compact General] Ashish_117:
Help

I tried to install but stuck in patching system image unconditionally!
[Xperia Z1 Compact General] levone1:
Strange... It worked fine for me first time with no issue. Did you wipe system, data, and caches? I'm still using it, and no problems so far...
[Xperia Z1 Compact General] Ashish_117:
Corrupted zip file...redownloading!!!
[Xperia Z1 Compact General] MSe1969:
Couldn't agree more . . .
[Xperia Z1 Compact General] Ashish_117:
Thread

Is there any thread for this rom : androidfilehost .com/?fid=529152257862712490 by MSe1969
[Xperia Z1 Compact General] levone1:
Op of this thread has a link to mse1969's afh files...
[Xperia Z1 Compact General] MSe1969:
Yes, this thread (please scroll up) :)

There is not really more to say, it has been built using the build manifest on the SonyAosp git to see, how the camera behaves (in case it would have been behaving better than our other tries so far, there would have been a chance to adopt sources from there...)

Nevertheless, if there is interest, I can check, whether the April patches are available and make another build, when I am back from my vacations after the Easter weekend - please let me know.
[Xperia Z1 Compact General] levone1:
Would be great to have updates, but I think I would not use it steadily without some help for camera. Not sure what can be done. It seems like hope for new blobs is getting slim... Somehow [MENTION=6927050]maz-1[/MENTION] found a way to build a kernel for MM that actually enables a usable camera (https://xdaforums.com/sony-xperia-z...kernel-exfat-support-mtkcamera-dirty-t3388396) - maybe something similar could be done for N?
[Xperia Z1 Compact General] levone1:
New LOS build by micha-btz...

Also new fxp build
[Xperia Z1 Compact General] MSe1969:
New tries . . .

Hi all,

I've build two updates, both based on Nougat 7.1.2 with April sec. patches (2017-04-05):

1. AOSP-ROM

Based on SonyAOSP git (with GAPPS baked in), this time kernel taken from sonyxperiadev git:

https://www.androidfilehost.com/?fid=673368273298948587

2. LOS-14.1 ROM

Kernel taken from sonyxperiadev git (besides, built according to SonyLOS git), patched for microG:

https://www.androidfilehost.com/?fid=529152257862720449

In both cases unfortunately, camera as bad & crappy as before

(unusable, dark, does not focus, front camera upside down) :(

Regards, M.

---------- Post added at 06:20 PM ---------- Previous post was at 05:55 PM ----------

I've read through that thread - saw on the one-hand side your post referring to a set of MM kernels created summer 2016 on Google drive, which according to you seem to get a working camera, on the other hand a post from maz-1 in December 2016 stating, that "...marshmallow has intolerable bugs related to sensors and camera" . . .

Unfortunately, I am not that deep into kernel development or really understanding Android's HAL to be able to work on that.

However - based on what I know, I also more believe that the communication with hardware is done through the proprietary, vendor-delivered drivers (aka "blobs") and not really through the kernel. . .
[Xperia Z1 Compact General] levone1:
Both of these were taken with DU MM ROM, clean install with built iin camera, and no tweaks. You won't see this kind of picture quality on Z1c on any other ROM post-LP. The problems iit does have are related tto camera stability, where the camera will crash at random...

Thanks for the new builds. I really like the AOSP build. I was using iit for a week or so. Very solid. We'll just keep holding out hope for a camera...
[Xperia Z1 Compact General] MSe1969:
Short news to all:

Sony has published today new blobs on their open devices site, they weren't yet merged into github, so I downloaded manually and applied them and tried a new LOS build (did 'make clean' before), which just finished a couple of minutes back - unfortunately, no good news regarding Z1c camera, still same sad story :(

Hence not uploading the new build to AFH (not worth it) - pitty . . .

Now coming to your topic:

Thanks for the explanation - it seems, at least as far as I remember some previous discussions (don't remember exactly, in which XDA thread this was), that Sony somehow broke the amami camera with one blob update about a year ago . . .

Has somebody tried already to somehow get the 'old' MM version of those blobs from about one year ago? I am not a git geek, so does anybody know the syntax, how to get the 'original' commit referred to as 'AOSP_M_v04' from the SonyAOSP/vendor_sony git repository? Maybe using that to build could be worth a try? The Sony open devices site only offers the latest blobs for download, as far as I have seen . . . ?

Regards, M.
[Xperia Z1 Compact General] MSe1969:
Btw, I've been asked via PM to provide an AOSP build w/o Google stuff, so here it is:

AOSP build for Z1c Nougat 7.1.2 with April Sec. patches, without GAPPS (so pure AOSP) - bad camera as usual: https://www.androidfilehost.com/?fid=817550096634764045

(Built from SonyAOSP git, tweaked GAPPS out, took camera, kernel and FMRadio from sonyxperiadev git - newest blobs incorporated)
[Xperia Z1 Compact General] levone1:
Thanks for keeping up... Do you know exactly what security issues fxp is referring to on their download page? There's been a disclaimer up saying 'warning: pure AOSP for development only; major security issues, etc.'. What is actually the risk? Also, I would guess that wouldn't apply to your previous AOSP build, right, since it is built with GAPPS included...?
[Xperia Z1 Compact General] MSe1969:
Sorry for my stupid question, but what exactly is "fxp"? The Sony open devices developer site? Could you please share that link?
[Xperia Z1 Compact General] levone1:
http://fxpblog.co/

Blog page is down, but download links available...

It's 'Freexperia Project'; some sort of Sony-supported program for open source development. The main contact seems to be [MENTION=616412]Jerepelea[/MENTION], but it's rare to get much response or feedback. [MENTION=5075064]optimumpro[/MENTION] and [MENTION=4120742]munjeni[/MENTION] seem pretty convinced that he is actually unable to do much anyway, but is more of a pr tool than anything...