yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Original Android Development] earmuffz21:
Ah I see. Where in the source would I find the mechanism that keeps the backlight on?
[Xperia Z1 Original Android Development] optimumpro:
Look here: http://review.cyanogenmod.org/#/c/95557/2/healthd/healthd_mode_charger.cpp

As you see the backlight is set to 100 by CM. In my rom, it is set to 60. If you want it off, just set the bool off. Also, look down the same file...
[Xperia Z1 Original Android Development] optimumpro:
[MENTION=3816568]Myself5[/MENTION]

Coming back to 5.2x toolchain. Here is the relevant flag in rhine board configuration:

KERNEL_TOOLCHAIN := $(ANDROID_BUILD_TOP)/prebuilts/gcc/$(HOST_OS)-x86/arm/arm-eabi-5.1/bin

or wherever your toolchain is. If that helps...
[Xperia Z1 Original Android Development] ShadyGame:
This is my second lcd/touch screen, still have the ghost touch issues... Also changed the screen protector.
[Xperia Z1 Original Android Development] optimumpro:
What is important here is not the second or third screen or screen protector, but rather a screen with oleophobic coating. Some Xperia Z1 screens had no such coating, which is the reason for ghost touches. So, those who got a replacement from Sony had no longer any issues. Or, like myself, they got a glass screen protector with the coating. The result is the same: no ghost touches...

Edit: I doubt that Chinese aftermarket screens have the coating, but glass protectors do and some clearly state they do (and you will know once you start using it)
[Xperia Z1 Original Android Development] ShadyGame:
oh sorry i misunderstood, can you link me to one of those glass screen protectors with the coating?
[Xperia Z1 Original Android Development] Masterblop:
This is the screen protector that I've purchased: http://www.amazon.co.uk/Futlex®-Premium-Tempered-Screen-Protector/dp/B00NGKVZUK
[Xperia Z1 Original Android Development] ScatteredHell:
Latest rom gives bootloops every time after I wake up the device, switched to the Nov 1 kernel and all seems to be working fine, was there something I missed tho?
[Xperia Z1 Original Android Development] Ohhdayumm:
Can you make the kernel a normal zip that can be flashed through recovery? Cause I don't always have access to a PC :(
[Xperia Z1 Original Android Development] kinjal:
Let's use Rashr flash tool from GP. You dont need pc :)
[Xperia Z1 Original Android Development] optimumpro:
No, you haven't missed anything. The OP warns that you need to flash November 1 kernel on top of the latest release. Keep in mind that Nov 1 kernel was built with GCC 5.2.1 Ubertc tool chain. As of now, no other rom (except for my version of DU) has it. It is stable and causing absolutely no reboots.
[Xperia Z1 Original Android Development] ShadyGame:
Thanks, ordered one, hope it solves my problems :)
[Xperia Z1 Original Android Development] ScatteredHell:
Well, the temp gets too high sometimes. I was using stock rom and never got 70, but in this rom I get 70+ after playing asphalt 8 with performance governer and the clock is the highest. but ofc I clocked it same before with a custom kernel too. is there a fix to it or is it also normal?

thanks
[Xperia Z1 Original Android Development] optimumpro:
How do you know you never got 70 on stock? Does stock have temperature on screen? Limit overclocking and don't use mpdecision in kernel. And by the way, what do you mean "is it also normal"?!
[Xperia Z1 Original Android Development] ScatteredHell:
I used a xposed module that show the temp in status bar, when I playing ashpalt today i got 79 celcius, and it was undercloked too, to 15xx (don't remember exactly last two), yup also disabled mpdecision, still get overheated, by normal i meant if it's normal for a custom rom to go overheat

couldn't mention, even tho mp is disabled frequencies still go up, it ended up having 17xx for first cpu and others at 15xx
[Xperia Z1 Original Android Development] ShadyGame:
got the protector, went back to stock, ghost touch everywhere, can write properly most of the time, **** this phone, smashed it once for this, i think i will smash it again, only with this rom i got rare moments of ghost touching, but i still prefer stock rom than aosp, but got no choice in this case, keep up the good work.

edit: back to this rom, no more ghost touch's, lol, great work, my phone is usable thanks to you
[Xperia Z1 Original Android Development] kinjal:
What about r29? :)
[Xperia Z1 Original Android Development] AnrgKrshn:
Sorry for off topic, but damn, you have anger issues.
[Xperia Z1 Original Android Development] caki25:
[MENTION=5075064]optimumpro[/MENTION] I don't see that much into the details, but do you think this might be worth a shot to implement? http://xdaforums.com/showthread.php?t=3035162
[Xperia Z1 Original Android Development] optimumpro:
There might be some benefits, but I am not going to use a closed source toolchain. A maliciosly prebuilt toolchain can make holes in the system that are impossible to detect.
[Xperia Z1 Original Android Development] caki25:
Understood. There's little that could improve this awesome ROM anyway... :)

Thank you for even looking into it ;)
[Xperia Z1 Original Android Development] HarpingOn:
I agree. This ROM is awesome. Has given my handset a new lease of life. Many thanks op
[Xperia Z1 Original Android Development] krrishvaid:
The phone doesn't show up on pc through usb connection. Nothing happens on connecting it to pc
[Xperia Z1 Original Android Development] optimumpro:
Reboot your computer, update drivers if on Windows, stop flashtool if running. I don't have any problems on Linux and Windows 7.
[Xperia Z1 Original Android Development] morpheusgt:
Hi optimumpro,

First of all, thanks for the ROM. Looks very good! One thing I noticed is that if I want to open the Cellular Networks options (to choose your preferred GSM/WCDMA/LTE options, for example) I get a com.android.phone FC if I do it with the system language set to Spanish, but it works perfectly if I change the language to English.

Do you know what could be the cause of it and is there any solution? Thanks a lot in advance.
[Xperia Z1 Original Android Development] optimumpro:
Yes, this is known and was explained earlier in this thread: it relates to missing localization/translation in many apps. Unfortunately, no one is working on Lollipop anymore. But luckily, this does not manifest itself anywhere else. So, I guess the work around is to set the network once and for all in English and then switch to your language...
[Xperia Z1 Original Android Development] dape16:
My phone will reset itself to GSM/LTE after reboot. So to avoid having to change the system language to English and then back, I use the app "4G Switcher" to change the network to GSM/WCDMA/LTE.
[Xperia Z1 Original Android Development] optimumpro:
You should also be able to change network value in build.prop to 9, which is gsm/wcdma/lte or 12, which is LTE/WCDMA, unless your carrier defaults it to whatever it wants to through the simcard...
[Xperia Z1 Original Android Development] dape16:
Thanks, I have tried that but during reboot it will default back to GSM/LTE.
[Xperia Z1 Original Android Development] morpheusgt:
Thanks!
[Xperia Z1 Original Android Development] ahzhang452:
On release 28 and my phone randomly rebooted while in sleep, any idea what happened and how I can debug this?

I also realized that the bluetooth MAC address resets everytime I reboot or turn off my bluetooth leading me to have to repair my bluetooth device.

EDIT: it just rebooted again as I was typing this :(
[Xperia Z1 Original Android Development] optimumpro:
You just need to read the OP: at the very top it tells users to flash Nov 1 kernel on top, as the one included with the rom causes reboots.

As far as BT, search for an easy fix and follow directions.
[Xperia Z1 Original Android Development] hitesh1792:
Hi [MENTION=5075064]optimumpro[/MENTION] i want to ask you one question.my friend has a 1st generation motog(2013),Motorola said 1st gen moto g will not get the 6.0 update and it will not support moto g 2013 but in the xda thread they already have marshmallow roms with major features working properly and even 6.0.1 based roms are available for moto g 2013.my question is even being a mid range device with no support from Motorola they have roms..why we have to be always dependent on sony?i am asking you this question because i thought u would be able to answer it properly.i knw its not related to this rom,if u want I'll delete it .thank you.
[Xperia Z1 Original Android Development] optimumpro:
There are several reasons: Motorola at the time was owned by Google, so, naturally, it is easier to adapt to changes, but Motorola phones are way down in quality, as compared to Sony. Another reason is that Sony developers are under strict control from the company, which won't let them open their "secrets." This whole charade with Sony being "friendly" to open community is just BS. They keep their open developers as PR characters...
[Xperia Z1 Original Android Development] ahzhang452:
Whoops, completely skipped over the kernel thing, it's all good now, not the bluetooth though, can't seem to find any solutions on google.

EDIT: found another problem, the "camera" folder is on my SD card, the problem here is that the gallery and the camera app (when you swipe to the left) does not see the photos in there although when you actually take a picture, it does go into the folder.
[Xperia Z1 Original Android Development] optimumpro:
Don't Google bluetooth, search on XDA for the fix for Z1.

Gallery has no problem showing photos on SD card, but camera saves only onto internal SD. You need to get something like Open Camera (from F-Droid) that has this and many other options...
[Xperia Z1 Original Android Development] ShadyGame:
Does your kernel have kexec-hardboot patch? i would like to multiboot your rom with android 6
[Xperia Z1 Original Android Development] optimumpro:
I think it does in November 1 kernel, although I subsequently removed that...
[Xperia Z1 Original Android Development] T/-_j@$:
how to update the bootloader?
[Xperia Z1 Original Android Development] ShadyGame:
Can you port the touch screen fix to another rom's? like a flashable zip or so? I really like aosp, but i miss some sony apps like the camera, i would like to multiboot but the touch screens on others roms goes crazy, cant even type messages right
[Xperia Z1 Original Android Development] optimumpro:
Well, it is not easy, because changes are in kernel and I haven't touched stock based kernels...
[Xperia Z1 Original Android Development] ShadyGame:
would your kernel work on stock roms? guess nah.. stupid question xD

Well if you search around the board, its a common issue, annoying random touch screen touche's, that would be a definitely fix, atleast for me, thats why i stick to this rom, on others its just go crazy, its useless.
[Xperia Z1 Original Android Development] roushan84:
Can someone please tell me if this ROM is for C6902 or C6903

I have just installed it on my Z1 (C6902) and I cant see any network. No IMEI no. also.

Update#

Flashed c6902 modems, got radios and IMEI nos.

thanks
[Xperia Z1 Original Android Development] T/-_j@$:
can you give me the link for that modems ??
[Xperia Z1 Original Android Development] kathanpatel1001:
http://xdaforums.com/showthread.php?t=2614645
[Xperia Z1 Original Android Development] bahmanxda:
[MENTION=5075064]optimumpro[/MENTION] , Hi, is there any chance you could release a version of this ROM's kernel that would run on cm12.1 please? The ghost touches are driving me mad. Hope you have some free time to help us out. Cheers.
[Xperia Z1 Original Android Development] optimumpro:
Post CM 12.1 boot.img and I'll see what I can do...
[Xperia Z1 Original Android Development] bahmanxda:
I attached the boot.img. thanks a lot mate.
[Xperia Z1 Original Android Development] optimumpro:
Here you go. Keep in mind there is no recovery in the boot.img, so, you'll have to get TWRP in Fota or Recovery partition.

Unzip and flash boot.img in fastboot: fastboot flash boot boot.img
[Xperia Z1 Original Android Development] bahmanxda:
Wow, that's great! Thanks a lot for that.
[Xperia Z1 Original Android Development] bahmanxda:
I flashed the kernel and it boots fine, it made cm12.1 smoother and snappier and didn't seem to get any touch issues. The only problem is it broke the wifi. I can turn the WiFi on but it won't show any network. Any idea what is causing it? Thanks.
[Xperia Z1 Original Android Development] optimumpro:
Flash the attached in recovery. But before doing it, go to your /system/etc/firmware/prima/wlan/ and save the 3 files there on your external card. In case you return to CM kernel, you would need to restore those files.
[Xperia Z1 Original Android Development] optimumpro:
Finally, TWRP works with LP 5.1.1 data encryption

New TWRP recovery image that works with LP 5.1.1 encryption. In addition, TWRP can now see and do operations with TA and Recovery/Fota partitions. See OP for download link.
[Xperia Z1 Original Android Development] p@to:
[MENTION=5075064]optimumpro[/MENTION]

Could you make it for Z1 C???
[Xperia Z1 Original Android Development] optimumpro:
New Release

Rom updated to release 33. See OP for download and description.
[Xperia Z1 Original Android Development] optimumpro:
New release

I have updated the rom for 2 reasons: the previous release used a prebuilt webview, which gave problems in some apps. So, back to fully compiled webview in this release, which is flawless. Also, ram bar showing available ram is added to recents. See screen shot below. If you are on the previous release, you can flash dirty without wiping anything...

Download link is in the OP. Enjoy...
[Xperia Z1 Original Android Development] MrOsamaful:
With the latest build WiFi isn't working for me. It shows ! near WiFI singal icon. I can connect to wlan but no internet.
[Xperia Z1 Original Android Development] optimumpro:
You should read the thread. You have a !, because Google won't let you connect to the internet unless you have captive portal and all your traffic goes through their servers. I have removed captive portal from the rom.

Here is how to setup wifi/data. You need to do it one time only.

REMEMBER, IF YOU USE GAPPS, FLASH THEM FIRST, OTHERWISE, GAPPS WILL DESTROY YOUR SETTINGS

Now, do the following:

Delete your wifi access point and turn off wifi. Enable firewall. In firewall preferences/ui/ untick lan control. Then you have to open terminal app (get it at F-droid or use adb, if you know how). In terminal, do this:

1. su

2. settings put global captive_portal_server 127.0.0.1 [Enter]

3. settings put global captive_portal_detection_enabled 0 [Enter]

4. settings put global ntp_server 127.0.0.1. [Enter] Enter is not part of the command...

If you are doing adb, then do su and then get rid of 'settings put global', the commands should start with captive_portal....

Reboot, turn wifi on and setup the access point. You'll have a faster internet without any ! signs... Look at the screenshot: perfect wifi.
[Xperia Z1 Original Android Development] MrOsamaful:
I've done this and ! is gone but internet still doesn't work.

[MENTION=309187]edit[/MENTION]:

Well, it works after disabling firewall.
[Xperia Z1 Original Android Development] optimumpro:
Then you didn't setup the firewall correctly. If you use white list, which is default, you need to tick the apps you want to connect to the internet. Otherwise, they won't have the internet. You also have to untick LAN in settings
[Xperia Z1 Original Android Development] MrOsamaful:
Thank you. Now it works.
[Xperia Z1 Original Android Development] Ohhdayumm:
how to do you get a terminal app if you dont have wifi to download it and there is no file manager to install the apk?

edit: i installed terminal emulator through adb and trying the commands

edit2: I restarted phone and did the afwall settings and allowed all apps to get access to internet and it works yay! I was very confused in the beginning but now i think i got it all working.

how would using afwall help with battery life?
[Xperia Z1 Original Android Development] optimumpro:
With afwall, the apps that are not supposed to connect will only be checking once in a while if there is a connection, instead of connecting/transmitting/receiving. And that, in addition to privacy issues, translates into battery savings.
[Xperia Z1 Original Android Development] earmuffz21:
Should we follow your instructions for enabling WiFi after we install Gapps? I did your instructions and got rid of the !, then I installed Gapps, and then I got the ! but could access data on WiFi and cellular. Then after a reboot no data is going through either WiFi or cellular. Is there a way to make data work with Gapps?
[Xperia Z1 Original Android Development] Ohhdayumm:
Yea I flashed gapps then did the WiFi thing and now my WiFi and data works fine
[Xperia Z1 Original Android Development] Abu Badr:
Ext4

Is there an easy way to mount ext4 formatted sd card in this ROM?

Edit:

It's working now. I installed this kernel here:

http://xdaforums.com/xperia-z1/development/kernel-m5-kernel-t3164480
[Xperia Z1 Original Android Development] optimumpro:
Well, the kernel you have installed is the same M5 that I use with some modifications. Now, you have lost cpu and gpu overclock, all the hardened features; you are going to have ghost touches and you have NSA in your phone (Selinux)...
[Xperia Z1 Original Android Development] Abu Badr:
oh my.. ALL THAT!! :)

would you please add ext4 support?
[Xperia Z1 Original Android Development] Netzheimer:
No mobile data settings

Hi,

I have the same problem as dejawho. I would like to open the mobile data settings. But all I get is "Der Prozess com.android.phone wurde beendet", which means: "The process com.android.phone has stopped.

I did a

fully clean installation

, which means: I removed my sdcard. I wiped Dalvik, System, Cache, Data, Internal Storage. Installed at first the Rom than gapps :p

I checked the md5sum of the zip file from Download Site and the one on my phone: Correct

I already tried the app "4G LTE Switch" with root permissions as suggested by dape16

Please optimum: I really love this ROM. It is stable, slim and always updated. I would really like to use it as daily driver, but that doesnt work without mobile data.

Thank you for your help
[Xperia Z1 Original Android Development] optimumpro:
This happens in some languages due to a lack of localization/translation.

Make sure your apn settings are updated, as carriers sometimes change those and it is not reflected in roms (just compare settings with those at your carrier's website). If that doesn't help, then switch to English and set mobile to GSM/WCDMA/LTE, make sure that data works and then switch back to your language.
[Xperia Z1 Original Android Development] Netzheimer:
Hi optimum, thank you so much for this fast reply,

I switched it temporally to USA changed my mobile data settings and switched back to my language. Works without any problems! :good:
[Xperia Z1 Original Android Development] junk33:
Hello guys, i am a little bit confused about the 31'st update.

I have TWRP on fota partition( the latest one from the official page) and i come from another rom, this is the first time i'm flashing this.

Do i only need to do a full wipe and flash the rom or do i need to flash the recovery from January 13 section and then flash the rom?

i am asking this because after flashing the rom with both recovery images the phone is hot as hell on the first boot( never happend with other roms , although i know some heat it's normal)

With the January recovery, after boot i see only the wallpaper i can;t do nothing.

I've tried to clear the recovery partition and start from scratch same result, i also tried this with fastboot:

-clear boot, clear recovery -> flash boot, flash recovery => install zip wait to boot same problem with both recoverys

- flash rom reboot to fastboot and flash boot.img

same problem. What do i do wrong

Thanks a lot and sorry for loong noob post :(
[Xperia Z1 Original Android Development] optimumpro:
The rom is independent from recovery. You only need Jan 13 recovery if you plan to encrypt data partition and have TWRP decrypt it. The official recovery can't do it and the devs are not interested in implementing it, because they think no one uses encryption anyway. Also, the official twrp has selinux support, mine doesn't. There is no purpose in flashing boot.img before flashing the rom, as the rom will overwrite the boot partition. I have no issues booting Jan 13 recovery.

Heat: you shouldn't have more than 56-58 after the first boot. And after that, use kerneladiutor: disable mpdecision and enable msm mpdecision with idle frequency set to 1497; use only intellithermal and disable the other two. Set temperature control to 63 in frequency throttle and 60 in core throttle. Use on demandplus governor.

If your sd and internal cards contain a lot of data/media, it will take ages to scan it all on every boot and you may have heat issues. Your internal card may contain remnants from other roms, so it is recommended to wipe it periodically, especially if you are a flashacholic..

To give you an example of my usage: playing asphalt racer 1.6.0 for 40 min, cpu doesn't get higher than 58 with no lag.
[Xperia Z1 Original Android Development] kentexcitebot:
Is anybody else having audio balance issues with Jan 31st build? When I my plug my earbuds in, my left side of my earbud is louder than my right. I tried to balance the sound through V4A via channel pan; to balance I had to select 0.1 : 0.9, but it caused distortions with the bass. I even removed V4A and tried a different pair of earbuds, but no luck.

EDIT: I flashed Myself5's kernel and that fixed the issue. I saw on the V11 changelog:

Has this not been implemented correctly on Jaguar's M5 kernel (causing conflicts?)?
[Xperia Z1 Original Android Development] tomascus:
Probably missing this https://github.com/Myself5/android_...mmit/84f4de947334060eb97431513e83beef6535d125
[Xperia Z1 Original Android Development] optimumpro:
Are you sure you didn't mess with sound settings in kerneladiutor? And then when you flashed another kernel, the adiutor reset to default and the problem went away...
[Xperia Z1 Original Android Development] optimumpro:
Not possible: this is not in Jan 31 kernel and the issue was not there in prior releases.

But an updated M5 is coming with r34 anyway...
[Xperia Z1 Original Android Development] tomascus:
oh actually saw you fixed it in the feb 2 commit
[Xperia Z1 Original Android Development] Elfeno:
Hi,

I'm using your rom since few days and I face the time bug. Everytime I reboot time is resetting itself to 1970. I've seen that you've disabled the time service provided by Qualcomm so we have to sync the time with carrier, but it seems that it does not work for me. So can you tell me if I can reactivate the time service, and if yes, how, in order to not have to set manually time after each reboot. Thx ! (btw your rom is pretty cool !)
[Xperia Z1 Original Android Development] optimumpro:
Did you try /Settings/Date & Time and set automatic date and time and time zone. Works for me and others.

You have to recompile the entire rom for time services to work. Sorry...
[Xperia Z1 Original Android Development] optimumpro:
New Build is Up

Rom updated to release 34 - February Security Patches and more. See OP for download and description.
[Xperia Z1 Original Android Development] Elfeno:
Yes already tried but no change :/ Is there a way to know if the problem is my phone or carrier ?
[Xperia Z1 Original Android Development] optimumpro:
That's not the phone. Your carrier must support that service. If you don't put your phone in airplane mode, then it gets the time as soon as gsm radio is on, which is pretty early, way before you see the screen...
[Xperia Z1 Original Android Development] Abomb:
Not sure if I'm missing something, but trying to access the statusbar Settings crashes the "Settings" app. Running release 34, fresh install after full wipe.