yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Compact Original Android Development] zxqw:
I was previously experiencing an issue where the a UI element on the screen would be "pre-selected" (it would be highlighted) as if my finger were on that element except that it wasn't. This makes it difficult or sometimes impossible to select the correct item in menus, on the home screen etc.

I recently discovered that the issue was triggered by me plugging my headphones in. I can temporarily make the issue go away by opening and closing the app drawer a few times but it returns when I press the home button from within an app. Tapping any UI element causes an soft but audible burst of static to play through the earphones. Rebooting the devices (soft reboot doesn't work) makes the issue go away if the headphones are plugged in during the reboot. Removing the headphones and reinserting them just starts the whole cycle again.

I've tested this with my earphones and a TRS cable connected to my speakers so it's not an issue with my earphones.

This issue has existed for me from before the 7/2/15 nightly and is still present as of the 14/2/15 nightly. Definitely wasn't there in early versions of CM12 but I can't say when it started. Wiping the device and starting fresh hasn't made a difference.
[Xperia Z1 Compact Original Android Development] nozz93:
I already had that issue with nightly 20150131 (maybe even earlier). The phone definitely behaves weird with headphones plugged in. Most of the time I can't even enter my PIN, the phone just starts vibrating forever when swiping up on the lockscreen and it says I entered the wrong PIN. The workaround is to tap the back button and swipe up again. I also experience the "pre-selected" menu items like you.
[Xperia Z1 Compact Original Android Development] thwolfi:
Wifi still not working

Tried it, Router gets the original MAC adress and shows now connected with a correct IP.

But Device ist still stuck on "trying to establish a connection"

I pulled a logcat and put into jira.
[Xperia Z1 Compact Original Android Development] Waffel22:
I tried installing the newest version, but I get this weird error in TWRP:

"This Package is for device: D5503, amami, anami: this device is tianchi."

Well I'm absolutely sure my device is a Z1 Compact. The model number is correct in the android settings, so what am I doing wrong?
[Xperia Z1 Compact Original Android Development] rzlatic:
flash the boot.img from the zip you've downloaded. its not twrp but it works.
[Xperia Z1 Compact Original Android Development] diepflanzen:
Can't find MD5; Error flashing cm-12-NIGHTLY.img

Hi guys, I downloaded the nightly and the gapps into my SD card and tried to flash by fastboot, but I keep getting error like:

Can't find MD5 file;

skipping MD5.....;

ERROR flashing cm-12-NIGHTLY.zip;

I'm using TWRP fotaZ1cTWRP2.8.5.0 for recovery, but there seemed to be the same error when I used CWM recovery as well.

Now my phone doesn't have an OS, what do I do?:crying:

---------- Post added at 06:57 PM ---------- Previous post was at 06:00 PM ----------
[Xperia Z1 Compact Original Android Development] Waffel22:
Thanks for answering. I'm not exactly sure how to do that, could you give me a link or a short explanation on how to flash this boot.img?
[Xperia Z1 Compact Original Android Development] tudki:
I`s not so easy if you`ve never done, but manageable.

You must install adb (android debug bridge).

If you are using windows, go to http://developer.android.com/tools/help/adb.html to download programm and install instuction.

It`s also importend that all USB-drivers are installed for the device.

With Ubuntu just apt-get install android-tools-adb and create udev rules for android in etc.

With windows you have to place the boot.img in the adb folder. Open a prompt and navigate to the folder.

In linux you can run adb and fastboot in any folder. Connect device to the USB of your computer in Fastboot mode. Finaly enter

fastboot flash boot boot.img

There are many detailed tutorials on xda. For windows look for adb, if you are using linux you can also check setting up build enviroment tutorials.

Like I mentioned already, it is a little tricky but worth the work because you can do lot`s of things with adb and fastboot.
[Xperia Z1 Compact Original Android Development] giober98:
Isn't it easier to use flashtools?

Jut hit the flash button

Select fastboot mode

Flask kernel

Select the img file

And done
[Xperia Z1 Compact Original Android Development] hihiman1:
Hi Guys,

does anybody know how to enable the Pause/Play-function of the headset button in Nuplayer? In CM11 it works perfectly...

Tanks in advance

HiHiMan
[Xperia Z1 Compact Original Android Development] rzlatic:
sorry i'm late with reply, also [MENTION=5206434]tudki[/MENTION] already answered. shortened official knowhow is summarized on CM's WIKI page for every device, so amami is also there: link.

first few paragraphs are related to installing sdk and adb, bootloader part is what you can skip, while last part ("installing...") is what you should read - everyone should read that before going into installing CM or custom ROM in general. :good:
[Xperia Z1 Compact Original Android Development] RunRaggs:
Restore Contacts

Installed CM 12 5.0.2 today and its brilliant.

I just have question. I don't backup in the clouds and didn't make a backup before installation. Only backup that i have of my contacts is a PC Companion backup, when I want to restore it doesn't allow me to restore. Is there any way that I can restore that backup?
[Xperia Z1 Compact Original Android Development] tudki:
true:good:

but only half the fun.:D
[Xperia Z1 Compact Original Android Development] Isti115:
UI glitch / playback control

I have experienced strange things with the UI too. I found it at first when I was missing the button press function of the headset, and tried to press it while watching the screen. It acted like pressing enter/space or something like that because I was able to enter applications from my homescreen, click buttons, check checkboxes, etc..

All this instead of the way it worked for me in CM11: playing/pausing music for short press (also jumping to next and previous track for double and triple press) and activating the voice assistant for long press.

The interface thing isn't a huge problem for me, because I usually use earphones with my phone that have a button and thus a fourth part on the jack connector too, and I don't remember the UI bug occuring while using that. In my opinion it could be coming from the fact that the usual stereo connectors (I have encountered the problem while using a headphone with a simple stereo jack) have only three parts, so they somehow mess up the fourth part in the phone that was originally meant for the button/microphone on the headset.

But that's just my theory and I cannot prove anything, so I hope that someone finds out something useful!

I do miss the playback control functionalities though, so I hope for a fix asap! :)

ps.: if you don't know what I mean about the jack differences, check out this picture:

http://upload.wikimedia.org/wikipedia/commons/7/7d/IPod_and_iPhone_audio_plugs.JPG
[Xperia Z1 Compact Original Android Development] o-l-a-v:
Either try something like this: http://www.johannesdeml.com/blog/extract-data-sony-pc-companion-backup/

Or reinstall sony firmware (through custom recovery would be the easiest, pre-rooted zip for instance), restore the backup. Backup with something that is not restricted to Sony. Install CM12. Restore backup.
[Xperia Z1 Compact Original Android Development] LazyT:
Ok, have build the kernel with iris support and it works! I don't understand why this simple change is not enabled in the default cm kernel? :(

If somebody want to test it I've attached the boot.img and the defconfig diff.
[Xperia Z1 Compact Original Android Development] jdstrydom:
wow, thanks. Just tested with spirit fm 2, and works for me. Thanks a lot!

edit: i just flashed the boot-fm.img via fastboot over validus rom as well, all good.
[Xperia Z1 Compact Original Android Development] nonyhaha:
I have a question, and google does not help me with this.

I am using cm12 since its beginning, and while receiving calls, the screen stays off, it rings, flashblink is working, but i have to push power button and enter pin to unlock the phone, to be able to answer the call.

I have pinlock set by gmail using exchange account.

Is this normal?
[Xperia Z1 Compact Original Android Development] LazyT:
Ok, and here are the modules running with current cm12 kernel (3.4.0-cm-g9a1e8d7), but I don't know if the kernel version changes with every nightly...
[Xperia Z1 Compact Original Android Development] paulle:
fm-radio

Thank you. I tested with spirit fm 2, and it works. I don't understand too, because it isn't enabled by default.
[Xperia Z1 Compact Original Android Development] Waffel22:
Tried this, but now I'm stuck:

17/058/2015 15:58:11 - INFO - Connected device info: [ CB5A1YLTJD ]
17/058/2015 15:58:22 - INFO - Selected kernel (boot.img or kernel.sin): D:\Flashtool\cm-12-20150215-NIGHTLY-amami\boot.img
17/058/2015 15:58:22 - INFO - Flashing selected kernel
17/058/2015 15:58:23 - INFO - sending 'boot' (12826 KB)...
17/058/2015 15:58:23 - INFO - OKAY [ 0.404s]
17/058/2015 15:58:23 - INFO - writing 'boot'...
17/058/2015 15:58:23 - INFO - OKAY [ 0.860s]
17/058/2015 15:58:23 - INFO - finished. total time: 1.264s
17/058/2015 15:58:23 - INFO - FASTBOOT Output:
sending 'boot' (12826 KB)...
OKAY [ 0.404s]
writing 'boot'...
OKAY [ 0.860s]
finished. total time: 1.264s

17/058/2015 15:58:23 - INFO - Please check the log before rebooting into system
17/059/2015 15:59:10 - INFO - Device will now exit fastboot mode and start booting into system

I can only get the Sony Logo to show and access Fastboot / Flash Mode, no Recovery and no OS of any kind. My device is rooted and has an unlocked bootloader. How can I fix this?

---------- Post added at 04:18 PM ---------- Previous post was at 04:04 PM ----------

I can't seem to edit my own post, but I tried it again with a newer nightly version, this time I can get a battery charging icon to show after I flashed the kernel:

17/015/2015 16:15:27 - INFO - Device connected in fastboot mode
17/015/2015 16:15:45 - INFO - Selected kernel (boot.img or kernel.sin): C:\Users\butter\Downloads\cm-12-20150217-NIGHTLY-amami\boot.img
17/015/2015 16:15:45 - INFO - HotBooting selected kernel
17/015/2015 16:15:45 - INFO - FASTBOOT Output:
downloading 'boot.img'...
OKAY [ 0.403s]
booting...
OKAY [ 0.055s]
finished. total time: 0.459s

17/015/2015 16:15:45 - INFO - Device should now start booting with this kernel
17/015/2015 16:15:46 - INFO - Device disconnected
17/015/2015 16:15:59 - INFO - Device connected with USB debugging off
17/015/2015 16:15:59 - INFO - For 2011 devices line, be sure you are not in MTP mode

But how can I get CM to work now? Thanks for all your help!

---------- Post added at 04:24 PM ---------- Previous post was at 04:18 PM ----------

Alrighty, tried it a third time, this time I was able to access CM Recovery by pressing the Volume-Down button while booting, installed CM and booting it now, hope it all works out! :)
[Xperia Z1 Compact Original Android Development] lonkhuijzen:
I fixed this by editing:

/system/usr/kelayout/Generic.kl

Switch key 226 with key 259

The headset button registers as keycode 259 while in the file it keycode 226 was assigned to the headset button so just swap them and it works.
[Xperia Z1 Compact Original Android Development] einfachgaer:
That worked for me! How did you find that out? Only thing that concerns me is that on my headset there are 3 buttons and they do all the same now. I would like to change that to the behavior they had on KitKat. One for Vol+, Vol-, Play/Pause.
[Xperia Z1 Compact Original Android Development] netmen5:
after lasters update i lost my recovery. phone dont boot into recovery. i flash again in rarsh img of recovery from this topic, but stil this same, no recovery, phone boot normaly. i try boot to recovery from rarsh and from extended power menu
[Xperia Z1 Compact Original Android Development] giober98:
There was an official post from cyano that said that the new build needed to have the boot.img flashed again since they made some changes. This needed to be done in order to obtain recovery access again
[Xperia Z1 Compact Original Android Development] Zentori:
This is the referred link: http://www.cyanogenmod.org/blog/public-service-announcement-sony-cm12-users
[Xperia Z1 Compact Original Android Development] netmen5:
i must do this after every update nightly? or only once time
[Xperia Z1 Compact Original Android Development] lonkhuijzen:
you could try this:

If you google on keytest.apk you get a little program from chris boyle on github. It reads the keys pressed and shows the keycode. Use those keycodes and add (or change if the correspoding keycodes already exist in the file):

key xxx VOLUME_DOWN

key xxx VOLUME_UP

Dont change keycode 114 and 115 or the phones volume buttons wont work anymore!

I cant test this cuz i have a onebutton headset. and after every CMupdate you need to change it.
[Xperia Z1 Compact Original Android Development] rzlatic:
i guess nobody else stuck in bootloop with 0217 and 0218 builds?
[Xperia Z1 Compact Original Android Development] giober98:
Only once
[Xperia Z1 Compact Original Android Development] marsa47:
Tried them both, no boot problems.
[Xperia Z1 Compact Original Android Development] rzlatic:
guessed so as nobody else complained. well adb logcat here i come.
[Xperia Z1 Compact Original Android Development] goeland86:
I'd expect not. Of course "pinlock set by gmail" doesn't really mean much to me. Do you mean you have a pin to unlock that was forced by your exchange account? In that case you could try to setup the pin unlock while having your phone decoupled from the exchange account, and see if it behaves any differently.

I've not used the pin or pattern unlock screens other than just testing, so I don't know what the expected behavior is when receiving a call.
[Xperia Z1 Compact Original Android Development] nonyhaha:
The pinlock is enforced by using an exchange account but is imposed by gmail app becoming a device administrator.

I removed exchange account. With no screen lock the usual phone app appears. With any screen lock, even with swipe, every time i receive a phone call i have to unlock the phone first. This is a pretty stupid thing.
[Xperia Z1 Compact Original Android Development] goeland86:
Then something is wrong. If even on swipe mode you need to unlock the screen to pick up, you have a problem I don't. Best bet is to backup and wrote then reflash.
[Xperia Z1 Compact Original Android Development] charnocc:
Did anybody try to use the nightlies with encryption? Does it work, also with updates?
[Xperia Z1 Compact Original Android Development] zxqw:
Can you explain what you mean by swapping them? I tried changing the entry for 226 to 259 and vice versa but it didn't quite work. It solved the original problem I was having but plugging my headphones in would cause other functions to trigger uncontrollably.
[Xperia Z1 Compact Original Android Development] einfachgaer:
Thanks for the tip, sadly all 3 buttons have the keycode 79 on z1c cm12. Friend of mine with Nexus5 and cm12 has other values.

Keycode: 25 ;KEYCODE_VOLUME_DOWN, scanCode=114

Keycode: 24 ;KEYCODE_VOLUME_UP, scanCode=115

Keycode: 79 ;KEYCODE_HEADSETHOOK, scanCode=226

Seems like I can't fix this in this file :crying:
[Xperia Z1 Compact Original Android Development] giober98:
Can someone post a review of Te rom on YouTube? I want to be sure that it is worth to unlock the bootloader before doing it. Thanks in advance.

Are there still bugs left? How does this perform compared to stock? And what about the camera?
[Xperia Z1 Compact Original Android Development] cgrizz:
DOes camera still not work on the latest nightly?
[Xperia Z1 Compact Original Android Development] jdstrydom:
Not sure what you mean. Camera has been fine for quite some time including with the latest nightly for me.
[Xperia Z1 Compact Original Android Development] goeland86:
Camera has been working for a couple of weeks now...
[Xperia Z1 Compact Original Android Development] rzlatic:
here :)
[Xperia Z1 Compact Original Android Development] goeland86:
Has anyone noticed WiFi stability issues for the last few nightlies? (started getting random disconnects with 02-17, and it's worse with 02-19...)

I've not done a wipe in forever, but I did clear the cache when I noticed the issue. Clear cache didn't fix it, and I'd like to know if it's just a dirty install or if it's the rom that has an issue before I do a clean wipe.

Thanks
[Xperia Z1 Compact Original Android Development] Clem74:
Just made a full wipe, still no proximity sensor. And I have a new issue, I can't disable vibrate on touch buttons (back, home etc...) :good:
[Xperia Z1 Compact Original Android Development] Waffel22:
I'm using a fresh installed 02-17 and have the same issues, did a full wipe etc.
[Xperia Z1 Compact Original Android Development] Marvel1403:
For me proximity sensor stopped work too. When i was using first buildes of CM12 it worked great but when i flashed latest nightles i have problem with it. Also with ressurection Remix ROM i have same problem. If i Flashed Original Kitkak 4.4.4 i didnt have problem with this Sensor. I performed a full wipe and it doesnt helped.
[Xperia Z1 Compact Original Android Development] zxqw:
So I followed the instructions to flash boot.img manually and I've still got problems updating to the latest nightlies. I can install the updates fine but I have to do it manually through the recovery. Is this correct?
[Xperia Z1 Compact Original Android Development] rzlatic:
yes, lately the cmupdater doesn't work automatically - again - but they will fix it eventually. patience is a virtue with custom roms ;)
[Xperia Z1 Compact Original Android Development] zxqw:
Ah ok thanks. Was wondering if I made a mistake.
[Xperia Z1 Compact Original Android Development] paulle:
fm radio spirit2

Seems with the next nightly fm-radio will be supported. (Spirit2)

http://review.cyanogenmod.org/#/c/88943/
[Xperia Z1 Compact Original Android Development] Saaber:
I installed CM12 the other day, and noticed a few little issues. Battery life seems to be considerably lower than it was. The notification LED is also about half as bright as it used to be. Has anyone else noticed this? The phone also says "No service" in the upper left-hand corner of the lock screen most of the time, even when I have service. Once in a while it will say "T-Mobile", but not usually. These are all pretty minor problems, and other than that, everything seems to be running great.
[Xperia Z1 Compact Original Android Development] LazyT:
Yeah, works!
[Xperia Z1 Compact Original Android Development] Robilony¨:
Need help..

Is it possible to get the old sonys version of android back? Backups has been deleted for some reason, so I don't have those anymore. I wonder if the original one can be downloaded from somewhere?
[Xperia Z1 Compact Original Android Development] Schlengge:
Yes. Just download a ftf file (original firmware) from the Z1 Compact Genral thread and flash it with flashtool.
[Xperia Z1 Compact Original Android Development] REUBENBARCA98:
List of Bugs

Hi,

Great work with the devolopment,

I've done this stuff before on my SGY ,

But I'm new to all this on Xperia Z1 C,

Can someone reply with a list of bugs found in the latest official nightly version of CM12 for Z1C.

Thanks.
[Xperia Z1 Compact Original Android Development] rzlatic:
if you're on CM12 for a few days then you're already aware of basic issues :) there are glitches here and there that are fixed in next nightly so no biggie, but permament bugs are dimmed notification LEDs and notification sound that plays randomly (the length of the ringtone: sometimes you'll hear only the last second, sometimes only the last half, etc). some users reported video recording/playing/youtube issues. for me the video recording works but i don't play videos much so i don't know exactly. incall ui also acts a bit weird through a few latest nightlies but works. some users reports serious proximity sensor not working issues, although not all.
[Xperia Z1 Compact Original Android Development] EpicLPer:
It seems that they finally fixed the Bluetooth Audio bug on one of the latest official Nightlies! Yay :highfive::victory::good:
[Xperia Z1 Compact Original Android Development] Marvel1403:
I have a problem with stock keyboard. I cant write using swype in polish language. I heard there was a method in CM11 to manually add polish dictionary into keyboard files. Can i try this on lolipop? For example from friend's Nexus 5?
[Xperia Z1 Compact Original Android Development] goeland86:
It is known that swipe doesn't work on stock keyboard for cm 12... I installed Google keyboard and it works perfectly.
[Xperia Z1 Compact Original Android Development] rob rich:
Here is a fix ;)

http://xdaforums.com/showthread.php?p=59031514
[Xperia Z1 Compact Original Android Development] Marvel1403:
Thx for the fast answer. Google Keyboard work well for me too :)
[Xperia Z1 Compact Original Android Development] hihiman1:
Any suggestions??
[Xperia Z1 Compact Original Android Development] giober98:
For me video playback is definitely a deal breaker. I will wait for it to be fixed, or official lollipop lol
[Xperia Z1 Compact Original Android Development] EpicLPer:
Can someone confirm that, when plugging in normal headphones there's some kind of "fake button press" going on? As example seen on the homescreen. When you plug in the headphones there will appear a square on the first element on the homescreen, aka. a "fake button press". Or in the YouTube app, you can't scroll anymore when headphone is plugged in (rarely it works tho) since the system thinks a button is pressed.

If you guys can confirm this too can someone report it? I have no idea how to use the bug tracker. I tried it, but there seems to be no CM12 section?
[Xperia Z1 Compact Original Android Development] Wind07:
Prepare yourselves for

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

This allows CM FM Radio app to work
[Xperia Z1 Compact Original Android Development] marcoms:
Look guys I posted before about laggy touch movement in all parts of the OS and I would really appreciate it if anyone can confirm it.

Its very simple and will take less than 15s. Just go to somewhere where you can scroll and scroll up/down - do you experience lag?
[Xperia Z1 Compact Original Android Development] :
I also face this issue sometimes, just reboot and it should go away.

Also, if it happens again, a logcat would be helpful :)
[Xperia Z1 Compact Original Android Development] marcoms:
Thanks for the suggestion, but unfortunately this happens 100% of the time with all touch input, so its likely you have a different issue. BTW it only happens with CM-based ROMs or any other non-stock ROMs, so there has to be a fix.

But I'll try and get a logcat from boot and see what happens :)
[Xperia Z1 Compact Original Android Development] :
You mean that Spirit FM will work ? OR Cm's own Radio Fm app ?
[Xperia Z1 Compact Original Android Development] paulle:
spirit2 is working since a few days.

As far as I know there is no fm-radio app in cm12 or I'm wrong?
[Xperia Z1 Compact Original Android Development] Wind07:
CM's own FM radio app
[Xperia Z1 Compact Original Android Development] hihiman1:
Regarding the not working headset button I checked CM12 installed on my daughters SIII mini as well as on my "old" S2 - it seems to be a special sony or Z1C issue. On Samsung the heatset button works perfectly (play/pause).

The keyboard.kl is same as in CM11 where the headset button woks too - really strange
[Xperia Z1 Compact Original Android Development] s0801140:
Someone has already provide a way to fix

swap button 226 and button 259 in

/system/usr/keylayout/Generic.kl