yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Original Android Development] optimumpro:
Try to set GPS to device only, as opposed to data/wifi. You don't really need assisted gps, as the good GPS app has its own memory and mechanism. I use Sygic and it takes about 3 minutes to lock using gps only (the first time) and thereafter - about 10-15 seconds. Turn GPS on via quick settings, then go to Settings/Location and set to device only. Don't turn it off/on in settings, as it will reset to AGPS, do it in Quicksettings only.

With regard to keyboard, file an issue with opengapps regarding AOSP kehyboard or use Google keyboard

EDIT: I think the reason Googleplay crashes is that it is looking for CaptivePortal when you turn GPS on. If you want to have full AGPS, then run a logcat and submit an issue to Opengapps: all they have to do is to slightly modify code so that when there is no CaptivePortal, the app would go to "log error" instead of crash...
[Xperia Z1 Original Android Development] MacSeoin:
Strange how its only just started to happen, all previous versions have not had this problem. I'll see what the open guys say and get back to you.

I use Swype for my keyboard but the aosp keyboard error still displays so I doubt using Google keyboard is gonna make a difference
[Xperia Z1 Original Android Development] optimumpro:
Try to restrict internet GPS services in Afwall; the system may think you are not connected to the internet and Googleplay won't crash.

I think that these things appear as one starts experimenting with Afwall (restrict this, allow that). I, for example, have Xprivacy and recently I needed to use flashlight at night and it didn't work. I have found out the culprit was restricting camera permission to Android System. Once I enabled it, the flash started working. Interestingly the same restriction didn't prevent camera from working...
[Xperia Z1 Original Android Development] anotherstarlord:
I just flash this rom with afwall.. Somehow I cant use Mobile Data..

Location Region Asia..

Country Malaysia..

Network Celcom LTE..

Any fix that will enable me use mobile data.. even using Wifi connection doesn't make me connect to the internet..

Test online game : error due to no network connection

Browser : error due to no network connection

BTW this rom is great..
[Xperia Z1 Original Android Development] hasnol89:
From afwall, allow all app you want to give access to connect. Don't have any problem here to connect to internet, I'm also using celcom. Just ussd not working.
[Xperia Z1 Original Android Development] Sl4shr:
Sim card problem...

Hi... I have the problem that my device is not detecting my sim card and some apps are not working. Yesterday I changed some settings in mobile plan (settings/more/mobile plan) and everything worked fine, but when i rebooted my phone I become the message that the process com.android.phone has stopped and the Sim card is not detected (i checked the card on a another phone and it worked) and some apps are also not working. I not wanted to delete all my data when i reset my phone... Plz help me

(By the way: amazing rom you guys have build.....and sorry for my bad orthography ..google translator helped me;))
[Xperia Z1 Original Android Development] optimumpro:
You might have 2 problems:

First, If everything worked fine until you changed something in mobile plan, then reverse those changes...

Second, if the phone language is not English, then set it to English (temporarily), adjust mobile settings, then return to your original language...

Keep in mind that you have a lot of settings in mobile, which no other rom has. For example, if you mistakenly set the phone to LTE only and your carrier has no LTE, you won't have signal at all. Or if you set it to CDMA, which your phone is not, you'll get the same result... So, be careful with those settings and only touch them when your phone is set to English.
[Xperia Z1 Original Android Development] Huandney:
Hello, I have a problem, some headphones does not work (it seems that has to do with the pin number), this problem is known?
[Xperia Z1 Original Android Development] optimumpro:
Some headphones don't work because they have a chip for Apple devices. However, straight headphones even for Iphone (without the chip, but with the mike) work fine. If you want to have volume control and chip, there is a bunch of those that work fine with Android phones. You can search in accessories section for Z1 and Z1c...
[Xperia Z1 Original Android Development] optimumpro:
I am not sure what you are referring to: system.img for this rom is about 500 mgb compressed. When it is unpacked, it is bigger, but way less than in a stock rom. So, having 1gb available after install is normal.

Edit: When I talk about system.img, I mean the raw image that you can flash the way it is done with pure AOSP, where you have 3 files to flash: system.img; userdata.img and boot.img. The zip that I post is different, although it contains the same files, and compressed even more. But after either installation, you have about 500-700 mgb system plus unpacked kernel which also takes space...
[Xperia Z1 Original Android Development] optimumpro:
I don't know, but where do you think /dev sits? Probably in that missing 1gb...

There is no reason whatsoever for any third party app to be in system...
[Xperia Z1 Original Android Development] Huandney:
The funny thing is that this same headphone worked at Jaguar, and now does not work anymore (after what happened this error tested in other rom as CM and not also work). He stopped working an hour to another, googled and saw reports of other people with similar problem, however not think solution. My headphone works in rom stock perfectly.
[Xperia Z1 Original Android Development] optimumpro:
Let me ask you this: Did it stop working by itself or only when you upgraded to the latest release?
[Xperia Z1 Original Android Development] Huandney:
He stood alone, it worked well in the latest version of Jaguar, woe Suddenly he stopped mysteriously, since deleted, reinstalled and still does not work anymore, I tried to an older version and nothing.
[Xperia Z1 Original Android Development] optimumpro:
Doesn't sound like rom related. See if the same headphones would work on another phone or laptop. Also, try another set with your phone. If it doesn't work, you might have a problem with the socket...
[Xperia Z1 Original Android Development] vrsoldiers:
Can I use it with Z1 Docomo model (SO-01F)???
[Xperia Z1 Original Android Development] Mirza_H:
sorry what I want to ask might be a stupid question, how do I go into recovery? because when restarting the phone and then try pressing the volume + or - but do not go into recovery

the kernel does not include recovery (twrp / Philz touch)?
[Xperia Z1 Original Android Development] optimumpro:
Please read the OP. Recovery for this rom is in the download section. Here is the link again: http://xdaforums.com/devdb/project/dl/?id=19034

You need to flash it in fastboot: fastboot flash recovery recovery.img. Or use a program that installs recovery (put the file in your SD card first)...
[Xperia Z1 Original Android Development] optimumpro:
If your phone is Z1 compact, you can't flash this rom, instead, get Jaguar from Z1 compact original development. Also, if your phone's internal SD is bigger in size than non Docomo models, you will lose the extra size. If it is smaller, the rom probably wouldn't install. But back up your current rom and try...

Also, you obviously need unlocked bootloader...
[Xperia Z1 Original Android Development] vrsoldiers:
well I have Z1S, not compact. I am new at this so kindly let me know how can I check the SD (and what does SD stands for :eek: ) and finally where to get an unlocked bootloader :confused:
[Xperia Z1 Original Android Development] Mirza_H:
thanks for fast response sir, but i tried flash recovery recovery.img using flashtool, then choose flash kernel menu,after that,my phone it will not boot into rom, just always in twrp.I finally install dual recovery, and successful, hehehe :o
[Xperia Z1 Original Android Development] optimumpro:
Z1S is a T-Mobile USA version. I don't think your can unlock bootloader on that phone and as a result, you can only have stock roms... Sorry for bad news.
[Xperia Z1 Original Android Development] optimumpro:
You are not supposed to flash recovery with flashtool. And if you chose flash kernel, then you probably flashed recovery image into your boot partition where kernel is supposed to be. You don't have a kernel, that's whay the phone doesn't boot.

Just reflash the rom in TWRP and you will be OK, but if you encrypt your phone, dual recovery won't be able to decrypt it.

Once you've re-flashed the rom and everything is ok, get my recovery, put it in some directory on your computer. Then start terminal in that directory. You need to put your phone in fastboot. Connect usb cable into computer. Then hold the other end, press and hold volume up and insert the other side of the cable into the phone. Hold volume up until violet led is on. Then put the phone aside. Type in the terminal: fastboot flash recovery recovery.img. When it says done, type fastboot reboot. You should have my TWRP and the rom.

If you have LInux, you are all set for fastboot. If you have Windows, you need to install some drivers. Read Z1 thread for instructions...
[Xperia Z1 Original Android Development] Mirza_H:
thanks sir,problem solved :good:

now want to ask about underclock, when I set cpu max 1497, max cpu screen off 300 and had made a profile, but after rebooting, I check again, it turns max cpu / cpu max screen off back to normal.so it should be how do not go back to the original?

im using kernel adiutor/kernel adiutor-mod.
[Xperia Z1 Original Android Development] optimumpro:
That's one of the bugs in Kernel Adiutor. It says so in the wiki on github that min/max frequencies don't hold on some devices after reboot, but putting max at 1497 would slow down Z1 without any noticeable battery gain. In fact, cpu will be working more to perform the same instructions. It is better to leave min/max default and instead do temperature adjustments in thermal hotplug. Also, setting minimal on screen of to 300 will result in dealyed wakeup. Any mpdecision you have in kernel will keep cpu at minimum while screen is off. I have maximum screen off at 900...
[Xperia Z1 Original Android Development] Jbazt_katuforzs:
flashed this and its very fast thanks for your hard work man. i got no force closing at all. but my screen is having some graphical glitches. tried to change dpi settings but it still persist. any possible fix?

came from X Features|Mx ROM|V8.5.0 with LB without the graphic glitch. i just unlocked BL to flash this and flash January TWRP from 1st page.
[Xperia Z1 Original Android Development] vrsoldiers:
I have Z1s from Docomo (Japanese) not T-Mobile, is there any bootloader available for this model? :confused:
[Xperia Z1 Original Android Development] optimumpro:
Just read the unlocking guide. It also tells you how to check if your bootloader could be unlocked...
[Xperia Z1 Original Android Development] optimumpro:
Check if nothing is ticked in Developer options. Also, if you have aftermarket display, this could happen, because your new display is not calibrated. No one with the original display has this issue...
[Xperia Z1 Original Android Development] Jbazt_katuforzs:
Yes I'm using an aftermarket display and I found a fix by scaling down the RBG color calibration values to all 70% in settings > display > live display. And I noticed too after doing that my ghost touch was gone. BTW I'm not using any screen protector or tempered glass. Can you suggest any GAPPS to fixed the google services error? hope you're working for a quick fix. Thank You for this rom, you did a very good job
[Xperia Z1 Original Android Development] optimumpro:
I am not using Gapps, but there is plenty of suggestions in this thread. Just remember, with every update you have to re-flash Gapps and whatever additional things you might have in system. And don't go Superuser above 2.65, as it is for MM and breaks Gapps on LP.
[Xperia Z1 Original Android Development] Jbazt_katuforzs:
Iam trying to look for the problem and thus is what i found
[Xperia Z1 Original Android Development] optimumpro:
Qualcomm's time service is disabled, because it connects to some servers over the cell emergency channel. You need to set time/zone to automatic to get those from your carrier...

For future references: most of the issues like this one have already been described in this thread...
[Xperia Z1 Original Android Development] Jbazt_katuforzs:
I'm on automatic all the time, so there's no sure fix yet for the google play services error? which released is the most stable and got the play services running?
[Xperia Z1 Original Android Development] optimumpro:
Is the error just the date 1970 or Google play does not work? If it works, there is no error. If you don't like 1970, install googleplay from store, as opposed to flashing, when the time is right. If you can't get the correct time from your carrier, then set the time manually. If Googleplay f/c, then you need to use different Gapps.
[Xperia Z1 Original Android Development] Jbazt_katuforzs:
yeah just the annoying play services stop. i think no fix yet? no gapps link recommended in page 1 for the July update. thanks regards
[Xperia Z1 Original Android Development] optimumpro:
I don't use any Google services and I have no f/c or any other bugs.

There are many Gapps packages. Try to use the ones that get updated more often. Some users reported that when you turn location services off, there are no crashes. Make sure that in Afwall you allow internet for all Google apps. Allow internet for google location services. Allow internet to Google Services Framework. Try different Gapps. Some versions cause AOSP keyboard to f/c, but work fine with Google keyboard.

In the last few releases I switched to Webview v52 instead of outdated v39. Webview gets updated constantly, so, it is possible that Gapps maintainers are behind. Some security patches have closed unsafe holes in Android used by malware, and keep in mind Gapps are malware nothing less, nothing more.,,

Just look/search XDA and you'll see there are multiple complaints of various Gapps f/c on different roms.

If anyone thinks this is rom related, run a logcat and post it here and at a Gapps thread. Please note, I can't and won't look at Gapps related problems without a logcat...

Edit: the rom was downloaded over 4000 times in 3 weeks. Ask other users what Gapps version they use. Update to the latest webview, which is v52.0.2743.91...
[Xperia Z1 Original Android Development] optimumpro:
Returning to space issue: I have looked at CM honami tree and this is how they partition the device: 1gb System; 2 gb user data and the rest internal SD card. It is different from the way Sony does it, but the total available space is still the same. Interestingly, they format Z1 compact differently, but at the end it makes no difference, as there is no system.img that is larger that 1gb in custom roms whether it is LP, MM or even N...
[Xperia Z1 Original Android Development] Jbazt_katuforzs:
Thank you very much for your fast reply. Ive already fixed the issue just by checking AfWall+ in the device administration settings. dunno if that did it but im happy its gone. unlocking the bootloader is well worth it. i will stick to this rom and look forward for your future updates. im on the scren the whole day and no annoying ghost touch even once, crazy fast rom, and the Afwall firewall felt more privacy. Thank you very much for this wonderful rom
[Xperia Z1 Original Android Development] optimumpro:
I have just posted an updated Afwall. Get it in the OP...
[Xperia Z1 Original Android Development] vrsoldiers:
I have checked it can't be unlocked officially, any other way around?
[Xperia Z1 Original Android Development] optimumpro:
If it says bootlocker unlockable: No, there isn't any other way.. The most you can do is use debloated pre-rooted stock roms with unmodified stock kernel. In other words, you can flash modified stock rom, but you can't flash any modified kernel, as the phone won't boot...
[Xperia Z1 Original Android Development] vrsoldiers:
So the bottom line is I am stuck with this version? :)
[Xperia Z1 Original Android Development] optimumpro:
As soon as Google posts August security patches, there will be a new build, which would also include the following:

1. Option to disable device cameras: back, front, all or none

2. Option to disable tombstone writing
[Xperia Z1 Original Android Development] optimumpro:
August Security Patches are Here

Rom updated. See OP for download and description....
[Xperia Z1 Original Android Development] optimumpro:
New build with properly running USSD is posted in the OP...
[Xperia Z1 Original Android Development] kalte:
Hi! I've been using your ROM for a couple of days. Has amazing speed and no bloatware. I liked it a lot.

I'm having FC on Play Services, so here's a logcat attached.

Would it be possible to have D2TW and Stamina Mode (or something like that)? I think they would be nice additions.

Thanks for everything! Keep the good work.
[Xperia Z1 Original Android Development] optimumpro:
This has been discussed already:

1. Don't upgrade Supersu above 2.65

2. Make Afwall device administrator and grant it permanent root

3. Allow all Gapps internet access including com.google.android.gms

4. Use any file manager with root, go to /system/etc/hosts and delete everything below '127.0.0.1 localhost', make sure there is an extra empty line at the end of this file, save it and reboot the phone

Also, you really don't need to have Google Location Services enabled: they do nothing good, but wasting battery...
[Xperia Z1 Original Android Development] optimumpro:
Quadrooter patches

You have probably read abour Quadrooter vulnerabilities and patches. Well, the August 4 release includes fixes for all 4 of them, because I take the patches directly from Code Aurora, which publishes them before Google...
[Xperia Z1 Original Android Development] zawy.:
Amazing smooth ROM, but I cant use it. Cant add google account, internet doesnt work.
[Xperia Z1 Original Android Development] [Fenix]:
Really? xD

Just read what OP said, you need to put right things in your phone before start flashing the ROM...

Make sure to have latest gapps (for android 5.1.1 ofc), terminal emulator app (grab it from apkmirror) Afwall/kernel adiutor and recvoery package (on download section of this forum)

Flash the ROM and then follow the instruction to activate Afwall: it's all written clear you can't do wrong :D

Last but not least ;)

Tested by myself and works fast and clean, don't ask this anymore please.

P.S Sorry OP for the quote LOL. Want to congratulate with you for the excellent work btw, keep doing buddy :good:
[Xperia Z1 Original Android Development] Jbazt_katuforzs:
tried all this from fresh install and still getting the service stop.

1. deleted afwall and its script

2. dindnt upgrade SU

3. deleted all below '127.0.0.1 localhost' in the host file

4. tried many package of gapps

however i observed it will be fixed by putting Location mode settings to Device only. The High accuracy and the Battery saving mode results to a persistent services stop. This is a permanent fix that works for me. Can anybody confirm that the Cellular data works here? because both High accuracy and battery settings mode on Location settings uses the cellular data to assist the builtin GPS to lock on your location.
[Xperia Z1 Original Android Development] optimumpro:
You only need to setup and activate Afwall and you will have both wifi and data.

Speaking of agps. It is disabled by default and maybe that's why it is causing googleplay f/c with gps enabled. And it makes sense that f/c stop when you switch to device only. If you want to enable agps, go to /system/build.prop, find ro.gps.agps_provider and

ro.qc.sdk.izat.premium_enabled, change both to 1 and reboot.
[Xperia Z1 Original Android Development] kalte:
Thanks. I tried all that, but just realized that Supersu got autoupdated. That could explain why I didn't had FC for the first couple of hours and restarts. I'll reinstall from scratch.

Would there be any problem by using Greenify and Amplify with this ROM? Battery life for me is way too behind Sony stock so I'd like to further improve it.
[Xperia Z1 Original Android Development] optimumpro:
You are simply wrong. On this rom the battery lasts about 30% longer than stock and without Gapps, it lasts for 48 hours with wifi/email on 24/7. You have to stop experimenting and instead use the rom for at least a week to have a feel on battery life.

And no, Greenify is no good for custom roms or, in my view, for any rom, because the app itself takes more battery juice than the apps it "greenifies." Also, don't use Gravity: it only works well on stock roms and the developer tells you this in the app...
[Xperia Z1 Original Android Development] Aaskereija:
Gravitybox don't work "well" on stock-roms. the dev tells you that also... and personally, i use greenify for years now and i never noticed any battery drain because of it... pls stop taking your opinions as facts...
[Xperia Z1 Original Android Development] optimumpro:
You stated in the past you didn't like Jaguar and I have already suggested once that you find another thread to express your expert opinions or pick a fight. The advice still stands...
[Xperia Z1 Original Android Development] Aaskereija:
and that's the reason why i'm not allowed to correct your false facts? lol...
[Xperia Z1 Original Android Development] smith314:
I'm sorry but again I'm stuck on the encryption. As far as I understood the releases before "June 28" ain't compatible to the new ones if the device is encrypted. So I wiped everything and flashed "June 28" but if I try to encrypt I get the old problem - it just reboots. I also tried with the latest one (August 4) with the same result. Is there a way around?
[Xperia Z1 Original Android Development] optimumpro:
I did encryption on a June 28 release without any problems. Don't do it from Settings. Do it via adb, because you can have a separate boot password right there without changing anything later:

1. Install rom, set a short screen pin

2. Enable usb debug in developer settings

3. Make sure root is granted to both apps and adb

4. Separately, choose a long boot password, then convert it to hex using this or any other converter: http://www.online-toolz.com/tools/text-hex-convertor.php

5. Connect the phone to computer; on computer type adb shell; then su; then you'll have a prompt on the phone for root, grant it

6. Then type this on your computer terminal: vdc cryptfs enablecrypto inplace password "hexed password"

Paste your hexed password where it says "hexed password", but without quotes

If you have LInux computer, you are all set. If Windows, you have to install adb drivers...
[Xperia Z1 Original Android Development] sanjayi0106:
Sorry i'm new to this rom, can u please walk me through how to use AFwall and to set it as device admin. i installed new update today, but no data for me......
[Xperia Z1 Original Android Development] smith314:
Tried via adb but nothing changed - logo is displayed and then it reboots. I started logcat before encrypting to see if there is anything interesting and I got:

E/Cryptfs ( 412): Bad magic for real block device /dev/block/platform/msm_sdcc.1/by-name/userdata

After some google search it seems to be related to the partition layout and the solution could be to reduce the size of the userdata partition. With adb in recovery I tried:

resize2fs -f /dev/block/platform/msm_sdcc.1/by-name/userdata 3147159 (100 blocks less)

But unfortunately the "bad magic" error remains.

Edit:

Now I also got:

E/Cryptfs ( 381): Orig filesystem overlaps crypto footer region. Cannot encrypt in place.

So it really is a problem with the partition size. Can you post your partition and filesystem size so I can compare it with my system?