yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Compact Original Android Development] levone1:
Anyone else having issues with downloading? I keep getting download failed after 1 second, whether WiFi or mobile. Internet is fine otherwise.

_update - it's only certain sites. I can't download from XDA, for example, but apk mirror works fine...
[Xperia Z1 Compact Original Android Development] jho55:
I found an even quicker way to solve it:

Download EMMA from Sony which seems to be meant for unlocked bootloader phones:

http://developer.sonymobile.com/open-devices/flash-tool/

Connect phone via flashmode and EMMA will recognize it immediatly. Then you can choose between Kitkat and Lollipop ROM. Only the newest.

After restart do the GPS fixes like mentioned above.
[Xperia Z1 Compact Original Android Development] GNUDroid:
Does anyone know a solution for the (known) twrp bug of not saving the date/time?

Even if I set time in twrp terminal, the date is not saved.

To things one can live with with, but on the other hand annoying:

- backup: I always have to filename from feb. 1970 to now

- somehow my afwall start is delayed. without afwall no NTP access --> after startup already whatsapp (and some other apps) complain about wrong date until i start afwall, switch airplane on/of. Then I get the right time by the network provider.

If TWRP would safe the date and time these two small annoying things would be solved. I'm on optimumpro's TWRP build.

Anyone a solution?
[Xperia Z1 Compact Original Android Development] levone1:
I themed some system apks, as well as scrolling navbar, with cursor keys, power, and volume,and made some dimens mods. Just sharing if anyone wants...

Note that 3rd-party apps with light theme might look a little funny in menus, etc...

Always make a backup first. Good thing to do with flashables is making two copies, rename one to 'revert', (or whatever), and replace the apks in the revert zip with your current apks before flashing. Then you can just flash revert if you don't like it, or something goes wrong...
[Xperia Z1 Compact Original Android Development] BearIV:
Anyone has solution gapps fc?
[Xperia Z1 Compact Original Android Development] chrikru:
I decided to switch from prerooted-Stock to Jaguar for my Z1C, cause I finally wanted some security patches for all the critical bugs in MediaServer and others.

Jaguar seemed perfect for my needs and is really a great ROM....

...I just really urgently need XPosed.

And I probably would not have tried Jaguar, if the 1st post of this thread would not say something like "If you use XPosed, flash the latest XPosed-Framework.".

[MENTION=7052208]Optimuspro[/MENTION]:

Could you please update the 1st post and change it to something like "XPosed is not/no longer working with this ROM". Not every user reads 100 of replies to find this out.

And maybe you can also reintroduce the link to your unofficial TWRP-build in the 3rd post?

I really would love to stay with this ROM cause the update service is better than for any commercial ROM and the security focus is great. Keep up this AWESOME work!!

I just need a way to accomplish at least the following things, that XPrivacy did for me in the past:

- Disallow apps to read my phone number, IMEI, Android-ID and so on by sending them random values, or values that I can control.

- Control read and write access to internal sd and external sd by folder-level.

Does anyone know a solution that does not involve XPosed?
[Xperia Z1 Compact Original Android Development] optimumpro:
Everything is already there. Go to navigation menu/navbar/buttons and assign camera to any nav button there.

Edit: Physical camera button works as intended for camera: focusing, taking shots, starting video recording. The only thing that is disabled is camera start, because it constantly is being pressed, while the phone is in your pocket and It needlessly wakes the phone causing battery drainage.
[Xperia Z1 Compact Original Android Development] optimumpro:
Next release will have time issues fixed in both TWRP and the rom: Qualcomm's time service is removed and replaced with Sony TimeKeep ported from Nougat. No internet is needed, everything is done locally.
[Xperia Z1 Compact Original Android Development] levone1:
Thanks for reply. I saw the settings options, but I'm more in the realm of general experimentation / learning. I've been using a list of keyCodes on an Android development site, and I've been finding that some work and some don't, and it varies from rom-to-rom. For example, the standard keyCode for camera is 26, (or something - I don't remember exactly), so I put that in xml to launch camera. On the last rom I tried it, it worked, but on this rom, it causes the search function, which is a different code, according to the site. Also, some codes don't do anything, like settings or zoom, and some work fine, like volume and power. I wonder how to tell which code is going to do what, from rom-to-rom. I also have found the same list from the development website in public xml, but with some kind of binary-type #, (0x00...), instead of a keyCode...

Anyway, I'm more just curious / interested...
[Xperia Z1 Compact Original Android Development] optimumpro:
An xml file would only work if commands are supported in Android. In addition, those codes are modified by OEM (blobs convert Android keycode to OEM specifics). As you know, no custom rom, except for Jaguar, has the camera button taking shots. This took hours of research and probes without any success and finally, after removing (in frustration) the whole chunk of Android code, the camera button started to work.

Camera button won't start camera on this rom, because I disabled it, since the button is pressed when the phone is in your pocket. Someone on Z1 thread complained and I confirmed it. it would also happen to me when I simply grab the phone.
[Xperia Z1 Compact Original Android Development] magusberlin:
i would love to have that button back, because I use a case (kewers, very nice though) where the knob is really hard to press, it never waked up my phone. would it be possible to include an option to use/not use that cam-wake-up button?

thx
[Xperia Z1 Compact Original Android Development] optimumpro:
Thanks for your donation. I will look into it, but I remember removing a huge chunk of code to make the camera button take shots. I'll see what I can do...

Edit: Also, if you have a screen pin, the camera would only start after unlocking...
[Xperia Z1 Compact Original Android Development] magusberlin:
hey, the donation was not meant as special feature request, but to support your work. you decide what can be implemented. i am happy to have a Rom that works and is somehow hardened.

see my wishlist as inspiration, not more...

cheers
[Xperia Z1 Compact Original Android Development] magusberlin:
hi, I have the same issues with GPS, don't get a fix. I am using OSM-android which worked 'sometimes' with the oct16 build, but now on Jan12 build, I can't get a fix. Left the app open for 45min outside, still no fix. I don't want to use GoogleMaps for obvious reasons, any ideas how to get OSM to work, other than doing that roundtour via emma? thx
[Xperia Z1 Compact Original Android Development] jho55:
I would suggest you do the tour with emma because you can keep your bootloader open. It went quite fast. And with flashtool I had a connection problem. With EMMA my phone was directly recognized and updated. After the gps fix I only need to flash TWRP again and restore my jaguar backup.
[Xperia Z1 Compact Original Android Development] optimumpro:
If you have never had stock LP 5.1.1 on your device, then you should fully install it, as it contains some hardware update separate from any custom rom. So, I would use flash tool and do an install with with full wipe. Then boot the device and let it settle. After that you can reinstall twrp (in fastboot) and then the latest Jaguar release.
[Xperia Z1 Compact Original Android Development] magusberlin:
thx for your help. what i did so far was flashing a stock 5.0.2 with emma (had a GPS fix!) and flashed your recovery again (prompted "ok"). now I couldn't enter the recovery again. tried every key combination. which key combo should bring me to recovery? sorry, I forgot that.:D.

now i'm stuck. can't restore my nandroid backup. where is the trick to enter recovery from stock 5.0.2 ?
[Xperia Z1 Compact Original Android Development] jho55:
Power off your device. Then Power on and keep on pressing the lower button off the sound button.
[Xperia Z1 Compact Original Android Development] magusberlin:
thx. but that doesnt help. sh**t! brings me to safe mode. what am i doing wrong here?:confused:
[Xperia Z1 Compact Original Android Development] levone1:
It took a while for me, but working well. Using micro g and unified nlp with backends shown. Install satstat app, open to map interface, and travel around. Eventually it kicked in..

(still can't get Chronus to work, though).
[Xperia Z1 Compact Original Android Development] bigsmoke9250:
Does it support auo display? Thanks
[Xperia Z1 Compact Original Android Development] AlexandreVegetaroux:
Slowly I falling in love with this Rom. The layers theme engine is total new for me. Its there a possibility to add icons?

Thanks so far
[Xperia Z1 Compact Original Android Development] levone1:
I don't think layers supports flashing icon packs, but you can do it with unicon, etc., or try out some flashable packs in the forums.
[Xperia Z1 Compact Original Android Development] baris27:
Can someone give the link of gapps for this rom please?
[Xperia Z1 Compact Original Android Development] onmail:
Try http://opengapps.org/ (5.1 ARM, I use nano) - Edit: oops, if you use AOSP keyboard it will not work with it.
[Xperia Z1 Compact Original Android Development] onmail:
Problem with Settings - Network - More - Cellular networks when changing language

Funny, I have found that when I change my system language to my native (Czech), I cannot access the cellular networks menu in settings - I got something like "com.android.phone process was stopped and will be terminated" (in Czech language) and I cannot change anything. But when I change back to English it is working perfectly :) I have tried wiping, reinstalling but nothing helps.
[Xperia Z1 Compact Original Android Development] Ænimal:
Although I may not like to admit it, I have to agree on what op states in - well, op. MM is and probably will stay a pretty much half-baked strain on the amami-hardware.

Therefore I decided to downgrade and give this a shot.

Props for the decision to make a 'firewall' mandatory and getting rid of the selinux poophole! Camera is a treat and hopefully we will see an open-source su sooner than later..

Rom's running as expected so far, smooth and stable. Thanks.

Edit: And it's kinda nice to have an actual working radio set..
[Xperia Z1 Compact Original Android Development] levone1:
Have you seen this - http://xdaforums.com/android/software-hacking/wip-selinux-capable-superuser-t3216394

It's a little bit over my head, but seems like it's working for some...
[Xperia Z1 Compact Original Android Development] Ænimal:
Yep, but it seems op's put it on ice: http://xdaforums.com/xperia-z1/orig-development/source-superuser-jaguar-tesla-redux-t3316830 ?
[Xperia Z1 Compact Original Android Development] optimumpro:
You should read the thread: the workaround is to change to English, set whatever you need and then return to your language. The settings will hold.
[Xperia Z1 Compact Original Android Development] optimumpro:
Yes. This is open source superuser that I compiled a while ago. It works perfectly on all my roms where Selinux is disabled. On other roms you have to make changes in init to allow superuser...
[Xperia Z1 Compact Original Android Development] Ænimal:
Are you using it atm? If so, why didn't it make it into this rom? Any disadvantages/incompatibilies? So many questions..
[Xperia Z1 Compact Original Android Development] optimumpro:
I have used it. It is fine. It is actually better than SuperSu, because, when you have a password, the timing for granting root to apps does not hold on SuperSu. The only thing I am not sure is the tap hijacking feature which is available in SuperSU. I don't know whether it is an issue in Superuser...
[Xperia Z1 Compact Original Android Development] Ænimal:
Just tried it, got stuck at 'su binary needs to be updated'..

Reverted back to SuperSU for now
[Xperia Z1 Compact Original Android Development] optimumpro:
I think the reason is that SuperSU which is in TWRP won't let you override old su binary during flashing, but you can do it manually. I just installed Superuser this way:

1. Unpack supersu zip, extract su binary (which is in xbin) and put it on your SD card. Uninstall SuperSu

2. Reboot, go in recovery and flash superuser.zip. Then without rebooting, go to

3. Mount and mount system, then go to

4. Advanced/File manager, pick that su binary (from SD card) and copy it to /system/xbin. Then reboot and you will have superuser working...
[Xperia Z1 Compact Original Android Development] bigsmoke9250:
no touchscreen support on auo, confirmed
[Xperia Z1 Compact Original Android Development] Ænimal:
What do you mean? I have an auo display and no touchscreen issues:confused:
[Xperia Z1 Compact Original Android Development] bigsmoke9250:
O_O

then why it doesnt work for me? all lollipop and upper roms dont work for me, i tried almost EVERY rom available and i didnt get any good results except for 3 second touch on validus

---------- Post added at 11:15 PM ---------- Previous post was at 11:14 PM ----------

this is becoming a nightmare for me, i dont like stock lp
[Xperia Z1 Compact Original Android Development] Ænimal:
Unfortunately that didn't work either. I get the same notification that su binary is outdated..

I checked xbin and su was in place - do I need to fix permissions after copying su to xbin?:confused:
[Xperia Z1 Compact Original Android Development] optimumpro:
Well, you are doing something wrong. Are you sure that when you copy su to /system/xbin, you get "successful" in TWRP? I bet, you are not transferring right. Look at su in xbin and su on your SD card, they should be the same size, if you moved it right. But anyway, I am going to post another Superuser.zip with better install script soon.... And another build of Jaguar_Amami is on the way. This one will have options to randomize WIFI Mac and Host Name on every boot; separate password for boot and screen (if encrypted); and protection against brute forcing of your screen PIN/PASSWORD - the phone will reboot after 3 unsuccessful attempts...
[Xperia Z1 Compact Original Android Development] jho55:
You can try this:

use fastboot on pc (download minimal_adb_fastboot_1.4.1_portable)

There is a fastboot exe and you have do be on a command prompt. Type in

fastboot flash recovery recovery.img

fastboot boot recovery.img

Then it should start TWRP. If this is not working there is a workaround with Philz Dual Recovery:

Download dual recovery from here: https://xdaforums.com/showthread.php?t=2647480

It will install recovery via a batch file. Then you can go into TWRP 2.8 and from there you can install the TWRP 3.02 image. You have to change the file filter to image in 2.8.

Then you can start 3.02 via button down during start.

I think you are from Berlin so:

Fastboot-Modus

Wir schalten das Z1 Compact aus.

In den Fastboot-Modus kommen wir, indem die Lautstärke+ gedrückt und gehalten wird, dabei verbinden wir das Z1 Compact über das USB-Kabel mit dem Computer.

Jetzt sollte die LED Blau leuchten.

Flash-Modus

Wir schalten das Z1 Compact aus.

In den Flash-Modus gelangen wir, indem wir die Lautstärke- gedrückt halten und dabei das Z1 Compact über das USB-Kabel mit dem Computer verbinden.

Die LED sollte jetzt Grün aufleuchten.
[Xperia Z1 Compact Original Android Development] optimumpro:
This recovery should start by pressing volume up when the led is lit. You have to make sure you have installed recovery. In fastboot: fastboot flash recovery recovery.img

If that doesn't work (which it should), then install another recovery (official) and install the rom.
[Xperia Z1 Compact Original Android Development] colarus:
Edit: Forget my Post - Page 39 didn't show up.
[Xperia Z1 Compact Original Android Development] jho55:
Please see my edited comment.

For getting the GPS fix using EMMA (official flash tool from Sony for unlocked bootloader) is enough. It worked for me. Of course you have to do the GPS related stuff which is mentioned in Colarus link. But for getting a Lollipop version, EMMA is enough.
[Xperia Z1 Compact Original Android Development] magusberlin:
wow, even german translation, yo!

as it is late here and i had some whisky, i am looking at this from a distance.;)

so your minimal adb suggestion gave me:

"...writing recovery ...

OKAY ( 0.764s) "

but unfortunately "fastboot boot recovery.img" did not work:

"....No such file or directory"

neither did "volume up" after powering up- no LEDs (wtf??)

anyway

listening nice music and trying ur other suggestions

cheers
[Xperia Z1 Compact Original Android Development] colarus:
Maybe...

In your fastboot directory is an other (wrong) recovery you are flashing?!?

What you could do:

- check the Files you are flashing, maybe download agian

- try to use FlashTool to flash recovery

- start from scratch and flash .FTF file, you could use my Post #340 for orientation

Good luck!:good:
[Xperia Z1 Compact Original Android Development] jho55:
but unfortunately "fastboot boot recovery.img" did not work:

"....No such file or directory"

Something is wrong here. :) Just put the recovery.img to the folder of fastboot.exe. Can you paste the full command line here?

---------- Post added at 09:10 AM ---------- Previous post was at 09:02 AM ----------

For me it is volume down. :confused:

Flash Button: http://developer.sonymobile.com/open-devices/flash-tool/supported_phones/

Fastboot Button: the other one.

Or see my anwser above. It is german above but the core info is readable I think.
[Xperia Z1 Compact Original Android Development] magusberlin:
guys, you are great, helping me out of this sony swamp ;)

so, here is what i get from cmd (replaced username with "xxx"), I dragged the "recovery.img" from its folder into the cmd line:

C:\Users\xxx>fastboot flash recovery E:\Android\Sony\jaguar\recovery.img

sending 'recovery' (11456 KB)...

OKAY [ 0.363s]

writing 'recovery'...

OKAY [ 0.758s]

finished. total time: 1.121s

C:\Users\xxx>fastboot boot E:\Android\Sony\jaguar\recovery.img

downloading 'boot.img'...

OKAY [ 0.364s]

booting...

OKAY [ 0.020s]

finished. total time: 0.384s

then the phone screen lights up, but stays black. nothing else.

and for my phone here at least, with switched off phone, I press vol-up while I connect to USB to get to fastbootmode (blue LED)

confusing...

grz m
[Xperia Z1 Compact Original Android Development] levone1:
If boot img and recovery img are both in the same folder as fastboot exe, just:

'fastboot flash boot boot.img', then

'fastboot flash recovery recovery.img'.

If you use 'boot' command for recovery, you will get success message, but you just successfully flashed something that won't work. If you use 'boot' command without 'flash', it is a temporary flash.

Also, which img files are you using?
[Xperia Z1 Compact Original Android Development] jho55:
Flashing is sometimes really tricky. What you can try because it worked for me:

Download http://nut.xperia-files.com/path/XZDualRecovery/XZDualRecovery_2.8.26. There get the Z1C version.

It is a batch file which installs DualRecovery on your phone.

If you can get into TWRP 2.8 you can install 3.0.2 from there. Just flash the recovery.img inside 2.8. You can flash an img in TWRP, not only zip.

Another thing that helped me: I flashed my boot partition from my TWRP backup. This helped me out of a bootloop.

fastboot flash boot boot.emmc.win
[Xperia Z1 Compact Original Android Development] magusberlin:
When I try to flash the dualrecovery, I get:

"error, only position independent executables (PIE) are supported"

I kind of remember that we had to flash the "optimumpro-recovery" in a new partition.

May it be in that direction where i Have to search?
[Xperia Z1 Compact Original Android Development] jho55:
Can you test that your phone is really unlocked? Sometimes it is locked again.

In that post from dual recovery thread someone had the same issue:

https://xdaforums.com/showpost.php?p=60087582&postcount=90

I think your phone is not unlocked.
[Xperia Z1 Compact Original Android Development] optimumpro:
You can't install dual recovery without root and if you just installed 5.0.2, you have no root. Also, you need to flash stock LP 5.1.1, not 5.0.2, because in the latest 5.1.1 Sony introduced a new recovery partition. If you never had LP 5.1.1, then you have no recovery partition, which would explain why there is no TWRP on your phone. So, flash the latest official LP 5.1.1. Then, you can easily fastboot flash recovery...
[Xperia Z1 Compact Original Android Development] levone1:
[MENTION=5075064]optimumpro[/MENTION] - just curious... No smali in framework-res. Is that a Nougat thing? Where's package manager service, etc? Also, no navbar key png files, except for back, just vector drawables, or am I missing something?
[Xperia Z1 Compact Original Android Development] optimumpro:
You might want to get a better decompiler. Real developers don't deal with smalis. Last time I had to do decompiling was when I had a bootloader locked Xperia ION. And yet then I stopped, because there were custom roms available for locked ION (I contributed to the project). The proper way to develop is working with sources.
[Xperia Z1 Compact Original Android Development] LupoSpeed:
Thanks for the great ROM!

All of a sudden my phone doesn't sync the time after reboot. It defaults to 29th of October 1972.

I ran NTPSync which syncs ok but for some reason the time is not updated even though it has root access..

I have the phone set to "Automatic date & time" and "Automatic time Zone".

Is this fixed in the next release? Is there anything I can do to get the correct time now?
[Xperia Z1 Compact Original Android Development] levone1:
Set Afwall to allow 'any app' and make sure mobile data is on with good apn settings. There's probably just some network service being blocked. After time and date refreshes, set back how you like.

---------- Post added at 07:52 PM ---------- Previous post was at 07:50 PM ----------

I'm definitely not a real developer, just messing around... Just curious - seems like quite a different structure in some ways than what I'm used to. Didn't know if there was significant changes in N...
[Xperia Z1 Compact Original Android Development] optimumpro:
Next release will include Sony TimeKeep ported from Nougat. So, time will be be set locally without the Internet or GSM signal.
[Xperia Z1 Compact Original Android Development] magusberlin:
thx guys for all the help and suggestions. I finally got the recovery back.

Just for the record:

Appearently my phone lost root during the EMMA procedure. In Emma, only two Lollipop versions were offered: 5.0.1 (14.5.A.0.270) and 5.1.1 (14.6.A.1.236). Did I choose the wrong one, when I took 5.1.1 ??

I had to flash a 4.4.4.Rom with flash tool like colarus suggested, root that ROM, update to 5.1.1. , then fastboot flash recovery.

Now the GPS works nice. for other noobs like me:p: turn off "allow mock locations" in developer settings.

so, now that my google independant navigations (openCPN and OSMandroid) are working, can somebody point me to a discussion on how to get rid of all google content and still be able to download apps? thx
[Xperia Z1 Compact Original Android Development] jho55:
Really strange that EMMA "destroys" the root. That was not the case for me. 5.1.1 should be correct.

Another topic: Does anybody experience problems with Wifi/ mobile data (3G) connectivity? When my phone is in deep sleep I think my connection is gone after wake up. Often I need to disable and then enable the connection. Then it works again.
[Xperia Z1 Compact Original Android Development] Ænimal:
Do you use wakelock blocker? Also make sure you enable wifi during sleep in advanced wifi settings..
[Xperia Z1 Compact Original Android Development] jho55:
Yes, I had blocked *alarm*. I deactivated it now.

In advacned wifi it is set to: only when connected.