yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Compact Android Development] elvetemedve:
Device encryption problem

Thanks. Probably they closed the registration for a good reason, so I'm going to share my findings here.

Yesterday I installed this ROM and enabled device encryption. From that point on, I couldn't unlock my SIM card, therefore unable to make or receive calls. Furthermore the SIM card locking options are disappeared from System > Security menu. So I had to do a factory reset and set up everything again. (I tried to get back to the latest configuration by running adb backup and adb restore, but it did not put back all of my apps and a lot of system settings were ignored as well.)

If this bug happens to others as well, it would be nice to either fix it or disable the encrypt option in the settings menu, because currently there is no easy way to decrypt the device permanently.

I also noticed a tiny bug within DU specific settings. When I go the the Settings tab and open the Power Off menu options and I enable to show the flashlight, it does not appear when I bring up the Power Off menu.
[Xperia Z1 Compact Android Development] Marv42:
Is it possible to make photos in 16:9?

EDIT: With the Patch and "Open Camera" 16:9 works
[Xperia Z1 Compact Android Development] SpiritCroc:
Yes, that's device specific, so the official DU team should not be bothered.

I might test your described issues later if I have time
[Xperia Z1 Compact Android Development] maz-1:
You will also need to modify external/e2fsprogs/lib/blkid for exfat detection and system/vold for exfat auto-mount

I replaced these sources from Cyanogenmod repository, works good. (I modified vold source to always asume there is exfat support in kernel , because for some reason kernel-space exfat support won't be detected and it falls back to exfat-fuse. )

And don't forget to include exfat utilities like mkfs.exfat and fsck.exfat :cowboy:
[Xperia Z1 Compact Android Development] Marv42:
I tried to restore my saved "wpa_supplicant.conf" in data/misc/wifi, but it didn't work
[Xperia Z1 Compact Android Development] paulo_andre:
Installed latest (May 27th) version.

Camera is a lot faster, looks ok now.

But, is there a way to open the camera app automatically when you press the camera button?

Also, is HDR enabled? I can't see that option in the camera app.
[Xperia Z1 Compact Android Development] levone1:
Modded launcher3 with rotation if anyone wants
[Xperia Z1 Compact Android Development] evantjie:
Does Snapchat work with the latest version?
[Xperia Z1 Compact Android Development] SpiritCroc:
New build (DU-m_amami_20160603_1031) is up!

Unfortunately, there's currently no built-in camera button functionality in DU.

I tried again replacing AOSP camera with Snapdragon Camera. In comparison to when I last tried it, front camera now works; so current build now includes Snapdragon camera instead of the AOSP one. It has lots of functions, including HDR.

There recently was a commit to the device tree that says "fix ril on encrypted device", so you might try SIM functionality on your encrypted device again with the current build. And it's always a good idea to make a backup of your phone in recovery before encrypting your device ;)

I did some investigations on the torch in power menu issue (which I'm having too). The same behavior applies to the lock down and the settings items in the power menu. I wasn't able to fix it yet, but I will try to do so later.
[Xperia Z1 Compact Android Development] elvetemedve:
Thanks, I will give it a try on this weekend. This time I will create the backup from TWRP before touching the encryption.
[Xperia Z1 Compact Android Development] maz-1:
You can try out a xposed module called "xposed additions" to bind camera button to your prefered camera app.
[Xperia Z1 Compact Android Development] Syssx:
So far sp great - using 20160603 as my daily driver and I noticed that if you dont want to reboot your phone dont use MACRO+ in camera, it crashes camera and you have to clear Camera app data and reboot your phone.
[Xperia Z1 Compact Android Development] Marv42:
Delete
[Xperia Z1 Compact Android Development] maz-1:
No 20.7mp resolution available in snapdragon camera. I think you need to edit xml files to add more resolutions. Refer to this : https://github.com/ZdrowyGosciu/SnapdragonCamera/commit/10848efa90c386f48af4f5728fe108a1dc0f6421 . 20.7mp should be 5248x3936 by the way.
[Xperia Z1 Compact Android Development] elvetemedve:
Test results

With the latest ROM on my device I cannot enable the device encryption. When I select the encryption option from the menu, the device reboots as usual, but come up without starting the encryption process.

I noticed another issue regarding LED notification. The color I choose from the settings menu is not be the same when the notification is triggered. For example I selected a green color for Google Inbox which is shown as green in the settings preview, but later when a new email arrives, the LED starts blinking blue.

The preview itself has problems as well. When I select different tones of green, the preview blinks the LED in other colors (red, blue whatever), however I would expect to see green all the time. Sometimes the preview stops and the LED goes dark and does not blink any more (when I close the application settings and open it up again, LED preview operates again).
[Xperia Z1 Compact Android Development] NeoAqr:
The camera performs full manual control, but takes 5mpx photos only. Fortunately, RAW photos are 20.5mpx though :) . Thanks alot and look forward to new improvements
[Xperia Z1 Compact Android Development] herrJones:
Have been using the 20160603 version for more than a day now.

Seems quite stable (no reboots), battery behavior quite normal when compared to 5.1.1 (though the test-period is too short to tell).

I'm not much of a camera user but it's seems to start, with lots of features (thanks for that :) ).

The only thing failing I found in this ROM is the FM-radio, which I use regularly at work. The radio-app crashes when opening.

I can try to provide a logcat.
[Xperia Z1 Compact Android Development] SpiritCroc:
In this case, I can get my own logcat, I'm having the same issue...

Thanks for reporting, will look into it

Edit: have you previously used any marshmallow ROM that had working radio? If yes, which one?
[Xperia Z1 Compact Android Development] levone1:
A few system issues with latest :

- On boot, takes a long time to start, (starting apps message), then when it finally boots, there's a 'systrm process not responding' message, with 'wait' or 'kill' options. If I just hit wait, it seems like everything's fine, but the whole process seems to drain battery.

- Adb over network switches on automatically on every reboot

- Recents disappear, and Adaway disables on every reboot.

Anyone else?
[Xperia Z1 Compact Android Development] herrJones:
I had a quick try of the aosp rom by freexperia. I had serious problems with android services but at least the radio started [emoji6]
[Xperia Z1 Compact Android Development] Ænimal:
Except for the adb over network (i think it's intended, but still too intrusive imho) I'm not experiencing any of these (though i wouldn't report it either, since I'm using xposed and stuff)
[Xperia Z1 Compact Android Development] levone1:
Same here. I only bothered to bring it up bc I'm pretty sure it was happening right away after flash, but can't say for sure.
[Xperia Z1 Compact Android Development] SpiritCroc:
Adb over network is annoying me too, will do something against that when I find time.

If you disable USB-Debugging, Adb over network gets disabled too and persists over reboots, so that can be used as a workaround if you don't need adb very often.
[Xperia Z1 Compact Android Development] tsai11:
Earphone cannot control volume

My earphone controls not working after flashed this ROM, does anyone got the same problem? :confused:
[Xperia Z1 Compact Android Development] maz-1:
I guess you need to add this to the manifest?

<project name="DirtyUnicorns/android_hardware_qcom_fm" path="hardware/qcom/fm" revision="m-caf" remote="github" />

---------- Post added at 07:28 PM ---------- Previous post was at 07:21 PM ----------

Another problem. Apps that uses sensors are problemtic, like compass and apps that have virtual reality support. It takes about a second to update the direction. I'm not sure if this is a driver-related problem, have any of you run into such problem with aosp 6.0?
[Xperia Z1 Compact Android Development] herrJones:
I have to switchback to a 5.1.1 rom. I lose in-call audio after 10-20s .

(I still hear the person talking but the other side doesn't hear me) We have perfect reception here in the building so I can only guess there's something wrong with the build.

I'll be happy to give newer versions a try.
[Xperia Z1 Compact Android Development] yjosipy:
Hi,guys does anyone have reboot to recovery issue?

I can't go ether with power on and down button or from reboot option in rom.

Really dont know what to do i have somehow corrupted my google play service framework and can't reflash of anything....

I can use flashtool but its a long process and i will lose all my data so....has anyone clue how to fix it?
[Xperia Z1 Compact Android Development] alf-endy:
Known issue ... Just off the phone, install TWRP via fastboot and reboot to recovery.

It worked , at least to me :D
[Xperia Z1 Compact Android Development] yjosipy:
Yup that did the trick thanks :good: :highfive:
[Xperia Z1 Compact Android Development] John.D..:
Really? On this ROM phone can make photo in 21mp RAW?
[Xperia Z1 Compact Android Development] paulo_andre:
I'm having troubles with push notifications, they are not working.

I'm guessing this is not related to the rom but to gapps, since I'm also noticing this in another phone on CM 13 (and same opengapps).

The gapps on the first post, is there any page describing what apps they include?
[Xperia Z1 Compact Android Development] SpiritCroc:
I don't know much about the DU gapps, I'm using the opengapps pico package without problems.

Do you have push issues with all your apps? When I experienced push notification issues in the past, I was able to fix it by re-installing the affected app (issue was probably caused by dirty flash or restoring apps with Titanium Backup, I don't remember exactly anymore).
[Xperia Z1 Compact Android Development] paulo_andre:
you are right, most apps have push working, it's only 2 that are giving me problems. And both were restored with Titanium backup.

I'll try to reinstall like you said.
[Xperia Z1 Compact Android Development] John.D..:
Yes, i do it with this kernel, photoshop on PC (DNG->JPG) and Camera FV-5. :victory:

RAW captured in 5mp mode, but when I processed the image, Photoshop automatically save photo in 20mp-size.

Original RAW:

https://yadi.sk/d/ftMHiwGhsMSjp

It remains only to realize processing RAW the phone automatically when shooting

P.S This RAW can also be edited (raw->jpeg) on the mobile app Adobe lightroom
[Xperia Z1 Compact Android Development] maz-1:
Maybe you can refer to these three commits to add camera button support :

http://review.cyanogenmod.org/#/c/100377/

http://review.cyanogenmod.org/#/c/52046/

http://review.cyanogenmod.org/#/c/51487/

I failed to build DU so unable to test it out. If these changes really work,I think I will ask DU team to merge them.

---------- Post added at 06:52 AM ---------- Previous post was at 06:50 AM ----------

The kernel doesn't do any thing magically with the camera :p . It is a feature brought by sony.
[Xperia Z1 Compact Android Development] SpiritCroc:
I once tried to add the camera button functionality to SlimLP, which was a little harder than I thought, so I gave up (too much effort for the use, as marshmallow had already been out for a while).

DU already had a commit concerning hardware buttons which said in the description something like "camera button functionality not added for now" (I didn't search it right now because their gerrit has been cleaned recently and github doesn't feature good commit search possibilities).

Probably, they have their reasons, so that's why I didn't try to implement it right away, but when I have free time, I'll look into it.
[Xperia Z1 Compact Android Development] Hazou:
I am the author of that first camera commit to cm-12.1 and it works smoothly on my custom cm11 and cm 12.1. So i maybe can help with getting that to work.

But i cant seem to get ril and camera working with the new vendor blobs of sony v5a. What vendor blobs are u using for this rom?
[Xperia Z1 Compact Android Development] SpiritCroc:
Thanks for the offer!

I'm using the v05a sony blobs for quite a while now.

For your issues, maybe you want to compare your local manifest with mine (I try to keep it updated in case anyone is interested in building themselves).

When ril wasn't working for me at first, I had to add:

<project path="vendor/qcom/firmware" name="SuperBenevolent/aosp-vendor-qcom-firmware" remote="github" revision="master" />
[Xperia Z1 Compact Android Development] SpiritCroc:
New build is up.

Changelog

- Add 20MP to Snapdragon camera

- Disable MACRO+ scenemode in Snapdragon camera because it leads to app unusability until reboot

- Fix some power menu entries not showing

- Fix adb over network being enabled by default

- FM radio crash on startup fixed; radio still doesn't work

- Enabled already built-in DU camera button support (now I feel silly :o)

Doesn't feature any settings. When device is on and camera button is pressed, camera app opens

- Also, DU version is now 10.3!
[Xperia Z1 Compact Android Development] Ænimal:
Rom's the s h i t :crying: (tears of joy)
[Xperia Z1 Compact Android Development] elvetemedve:
I can confirm that power menu fix is working fine with the latest (10.3) release. Nice job.

Thank you.
[Xperia Z1 Compact Android Development] maz-1:
I forgot something important ... This change is also necessary for mounting exfat, unless you set selinux to permissive : https://github.com/KuronekoDungeon/...mmit/d9953485d382c34b0e193ed6d6692489f39b0d43
[Xperia Z1 Compact Android Development] SpiritCroc:
Thanks. I guess I won't do any kernel modifications in the near future, though (sorry if this disappoints anybody), as I personally don't have any issues and anyone who has can still flash your kernel, so I can't justify the effort atm
[Xperia Z1 Compact Android Development] maz-1:
Never mind , I wrote this in case someone want to do the same job.
[Xperia Z1 Compact Android Development] MaxRink:
Hi, i got issues with the device encryption and charging (most likely connected)#

Charging behaves weird sometimes, so it won't charge while the OS is running. If i shut it down, it immediately charges

Also I'm unable to encrypt my device, i get a message to connect it to a charger even though the battery is full, its connected to the original sony charger and the green led on the top lights green, which should indicate "connected and full"

Edit: also displaying Weather data does not work

Edit2: also the general powerconsumption seems high

Edit 3: projected batteryusage seems broken for me (displays over 9 billion mah used for eery app)
[Xperia Z1 Compact Android Development] H0bi:
this rom is the best MM Rom i have seen so far!

thx for your hard work!

I am running it since yesterday, and it works like charm so far.

I found two bugs until now:

- if i change in selfiemod, Camera crashes

- if i start google goggles i lost conection to camera

bothtimes i hat to restart the device to get camera work again.
[Xperia Z1 Compact Android Development] herrJones:
Hi,

been testing this rom for over a day now. It seems quite stable to me.

But I am having an issue with the battery: going from 95% to -22% to 95%.

(screenshots attached)
[Xperia Z1 Compact Android Development] yjosipy:
I'd suggest using one of the apps for erasing battery stats and then test if its correct bcz. I didn't had those problems.:cowboy:
[Xperia Z1 Compact Android Development] MaxRink:
seems like i found the issues why it is not charging sometimes

AS soon as the battery hits 45°C the smartphone stops charging. This is related to the kernel and not present in the stock-LP-Kernel.
[Xperia Z1 Compact Android Development] david320te:
Got three issues:

1.: There is no ANT+ Support! I've recently started using the ANT+ Feature of my Garmin vivosmart HR+, but since there is no ANT+ HAL Service, it doesn't matter - i can't get the heartrate froom the garmin. I've tried shoving it in via some drity zip flash, but bootloops are definately not the way to go^^ Also: The Bluetooth LE connections seems unstable. I had to repair the Garmin quite often, because if Garmin Connect lost the connection, the whole setup had it and wont connect anymore, until i repair the vivosmart with the App.

2: I've had some lockups. It didn't even boot properly with Vol-Up and Power, i had to use "The Red Button" about 3 or 4 times now. No idea where they come from, logs are empty...

3.: I can't take calls instantly. It takes about 3-4 Seconds, when i accept the call, to connect.

Apart from that, it's still amazingly fast, but there are some features missing...like the color shift thing for the night, to not strain your eyes that much. Also, the camera has gotten worse in speed. Quality is very good, but the shutter speed and the low light quality is...well, it's not there anymore.
[Xperia Z1 Compact Android Development] SpiritCroc:
Open source screen filter app, there are probably also others on Google Play...

With camera speed, do you mean the Snapdragon camera in comparison with the AOSP one? It is possible that I include both, if someone is interested (might confuse some users)

I don't use garmin/bluetooth stuff, so I can't tell anything about those
[Xperia Z1 Compact Android Development] david320te:
Never knew about those filter apps...but i just used the one that CM-Roms had included.

Yes - but it isn't only the Snapdragon App. Open Camera, Camera HDR and other have all the same problem. It's way to dark and therefore very, very laggy, so i think it's related to the API...

Well, maybe you can just include that ANT+ stuff and deactivate it...so if some needs it, he can just activate it
[Xperia Z1 Compact Android Development] Turbopuschel:
For me the ROM is not quite stable as sometimes (about once per day) the phone just freezes for a few seconds before rebooting. It only seems to happen when I'm doing something on the phone but I can't find a pattern in the freezes.

Most times the phone will simply reboot although last time it continued doing the startup "DU color dance" and did not fully boot. When I force shut it with the red button and then rebooted, the date was set to some day in 2015.

But I haven't seen others complain about random reboots so maybe there is something else wrong. Somebody have an idea?
[Xperia Z1 Compact Android Development] david320te:
http://xdaforums.com/showpost.php?p=67328061&postcount=132

I complained, too ;) But tbh, it's not a real issue for me...as long as this is not happening while in a call...i'm fine with some occasional reboots
[Xperia Z1 Compact Android Development] herrJones:
I had no reboot in 3 days. As (almost) always, it 'll be forced under certain circumstances with an app forcing that behaviour.

I tend to lockdown the device and inhibit background activity (don't need automatic facebook popups while in a meeting ;) )

To be clear: I'm on the lastest version 10-06-2016
[Xperia Z1 Compact Android Development] Ænimal:
Try greenify, it should solve the issue (must be related to doze, I think)
[Xperia Z1 Compact Android Development] herrJones:
Hmm, I tried it but had the same behaviour

As shown on the screenshot...

I used the 'batterycalibration' app from the play store
[Xperia Z1 Compact Android Development] SpiritCroc:
New build is up.

I've copied some ANT+ stuff from CM device tree into the latest DU build, could you try out whether that achieves the desired result?
[Xperia Z1 Compact Android Development] -Thunderl0Rd-:
Multirom supp?

Hi there,

been testing the rom for some days now - eveythings very good, except for the camera of course.

Is it possible to use this Rom in combination with the Multirom-Project to run Stockrom as secondary for camera-usage? Doesn't seem to be updated since real recovery partition is available via bootloader..

Since i couldn't find any information on this to work with Marshmallow; Anybody got experience, whether and how it's possible to get this to work with DU (MM in general) or not?

Sorry, if it's obvious that it wont work (because of different android version/kernel etc., no idea), but I just had to ask.

Anyways thanks for your work, it's highly appreciated :highfive:
[Xperia Z1 Compact Android Development] maz-1:
Kernel with kexec-hardboot : http://xdaforums.com/sony-xperia-z1...kernel-exfat-support-mtkcamera-dirty-t3388396

twrp-multirom : http://xdaforums.com/sony-xperia-z1-compact/orig-development/mod-multirom-v30x-t3005654

Try at your own risk.
[Xperia Z1 Compact Android Development] GNUDroid:
Can somebody help me out? I have some issues with the kernel. My problem is described in the kernel thread: http://xdaforums.com/sony-xperia-z1...-exfat-support-mtkcamera-dirty-t3388396/page2

Thanks for MM on Z1C and thanks in advance for help!
[Xperia Z1 Compact Android Development] MaxRink:
ya, the kernel needs some work. For example the thermalsettings are suboptimal, the voltagetable needs some adjustments ( waay too high)

Also the standard gov is ineffective

Ill try to fix that stuff when i find time
[Xperia Z1 Compact Android Development] GNUDroid:
i think. it may be related to the hotpug logic. at the moment i'm on zen decision. at the moment freq. stick to values i adjusted.

but voltage. ... uv would be fine. but the kernel is quick and resonsive. :)
[Xperia Z1 Compact Android Development] paulo_andre:
Today I made a full wipe (including internal storage) and installed the latest version (20160617).

After the boot (and a few more), phone was not working. I could not make or receive calls. SMs was also not working right, sometimes I could not receive (did not try sending).

Shutdown, boot to recovery, flashed 20160610 (no wipes) and calls were working again.

Shutdown, boot to recovery, flashed 20160616 again (no wipes) and calls didn't work.

I'm back to 20160610 for now...
[Xperia Z1 Compact Android Development] H0bi:
Same here!
[Xperia Z1 Compact Android Development] silentexodus:
Same Here... recovery not working how can i Flash back to an older Version? Where can i find the right boot.img twrp file to Flash?
[Xperia Z1 Compact Android Development] H0bi:
did you you follwo the recovery instruktions from the OP?

normaly the should help you.

otherwise here is the link to TWRP

http://xdaforums.com/sony-xperia-z1-compact/general/twrp-3-0-1-amami-t3350827http://
[Xperia Z1 Compact Android Development] SpiritCroc:
Can you provide a log? What's the behavior when you're trying to call someone? I just tried, calls are working fine for me.
[Xperia Z1 Compact Android Development] paulo_andre:
Just a small add-up. Even in 20160610, I notices that disconnecting a call took longer than what it used to.

Anyway, the behavior is that it doesn't even connect. The call just stays "dialing" forever. If I try to disconnect it stays "disconnecting" forever as well. Only a reboot really stops it.

Also, if I try an incoming call, it does not ring or detect incoming call, but the line is not busy and for the caller it appears to be ringing.

For the log, I need to reflash the new version, so it may take a while until I have time.
[Xperia Z1 Compact Android Development] paulo_andre:
Here's the logcat I got.

This time I managed to make a call, but I wasn't able to disconnect. Also incoming calls didn't work.

The first part of the logcat is the outgoing call, the second is the incoming.
[Xperia Z1 Compact Android Development] david320te:
Just out of curiousity: How would you use the Stockrom? Flashing Stock, backing it up, moving it to the second rom position and then flash DU? Is it even possible to flash a Stockrom without using Emma or something like that, and wiping the whole phone blank again?

for me too! Even better now, i don't have any lags with newest version.

Also: ANT+ works like a charm! Perfect :)