yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Original Android Development] drakonizer:
Please elaborate more on how modifications to the recovery makes the device vulnerable. There's absolutely no way any app/program/script can utilize any vulnerability in the recovery, because it's inaccessible from Android. If it does become accessible, that would imply a vulnerability in Android, not in the recovery.

Most phones come with virtual data partitions. You probably know what that means, but for the sake of it, let me make myself clear. There's one eMMc with several partitions for various uses. Therefore there would be no special issue that would arise when a ROM is stored in the data partition, because it is on the same device as the main system. Therefore, I do not see tons of issues with this implementation.

Also, the secondary Roms are inaccessible from the primary OS, so no exploits can work on it.

As for your story, I don't think it's relevant to this discussion.
[Xperia Z1 Original Android Development] optimumpro:
SD cards are formatted differently and have different permissions. In other words, it is much easier to exploit whatever is on SD card than on system or data. And it really doesn't matter whether you have virtual SD or not. Also, it is not important that recovery is inaccessible from Android. It's the other way around: everything is accessible from Recovery: you are in total control of the device via recovery. And that's why my story is relevant: any access to system whether through recovery/fastboot/flashing/multiboot is a security threat... That's why I no longer like Xposed, which is yet another hijacking/exploit...
[Xperia Z1 Original Android Development] aidebe1:
Problem Installing the Rom

Hello thereI I am trying to install this rom following all the steps but every time I got in a boot loop showing Xperia...I am on c6903 could anyone please help me out what am i doing wrong... I would really appreciate it ;)
[Xperia Z1 Original Android Development] pokepokepoke:
rovo89 released new xposed ver. 86 .Will it work on Jaguar
[Xperia Z1 Original Android Development] Ænimal:
Don't install xposed ;)
[Xperia Z1 Original Android Development] diamantius:
Hi, I've installed the latest version on my C6903, but I can't get data services to work. Internet only works on WiFi. What am I doing wrong? :-/
[Xperia Z1 Original Android Development] optimumpro:
Tap data in Quicksettings to turn it on. If when wifi is off you have 2g/3g/LTE, then data is on, if you have an exclamation sign, it is off. Also, read OP. WIFI and Data work perfectly in Jaguar...
[Xperia Z1 Original Android Development] diamantius:
Thanks for the prompt reply!

That's the problem: The exclamation mark remains off no matter how many times I tap data in Quicksettings. It's as if it doesn't switch on at all.

---------- Post added at 01:27 AM ---------- Previous post was at 01:25 AM ----------

Aaaaaand, now I feel like a complete jackass. After 2 hours of trying, the stupid thing just turned on...
[Xperia Z1 Original Android Development] pokepokepoke:
Can anyone confirm if the new xposed v87 works
[Xperia Z1 Original Android Development] diamantius:
Alright, so after 1 full day of using this ROM., I have the following issues with it:

1. Gmail app crashes every single time. Google Play Services crash too often. Google Keyboard crashes almost always. I've used the Gapps version previously mentioned in an earlier post to work perfectly, as well as several OpenGapps versions.

2. Paste doesn't work! It's as if no clipboard exists.

I used clean install, after formatting data/factory resetting etc. Latest version (16 November) + cowfix update.
[Xperia Z1 Original Android Development] optimumpro:
Settings/Security/Enable background clipboard access. Keep in mind that normal apps can cut and paste even with the feature turned off. Only malware (like Gapps) crashes when not allowed background clipboard access...
[Xperia Z1 Original Android Development] benplay64:
Nope v87 don't résolve the problem unfortunatly it seems to be a ROM problem
[Xperia Z1 Original Android Development] aleksandar9999a:
This is with your rom and some of my settings. It is very stable and not lift more than 60 degrees. I noticed that benchmark not burden CPU max.

Google Translate.
[Xperia Z1 Original Android Development] pokepokepoke:
Care to share your settings buddy?
[Xperia Z1 Original Android Development] diamantius:
Thank you, once again. Indeed, copy&paste works again. It didn't solve gmail and google keyboard apps crashing though, so I deleted them and replaced them with inbox and swiftkey. The only app I use that doesn't work is SuperLive Pro (I use it to view the feed of security cameras). Everything else looks great, it's snappy and the battery lasts longer than stock.

It's a keeper!
[Xperia Z1 Original Android Development] aleksandar9999a:
This is my settings. On my phone it work very good. The tests I've done at room temperature of 20 degrees. I use Kernel Adiutor.

CPU:

- CPU Maximum Frequence - 2572 MHz

- CPU Minimum Frequence - 300 MHz

- CPU Maximum Screen Off Frequence - 422 MHz

- CPU Governor - Alucard

- Muilticore Power Saving - Enable

CPU Boost:

- Interval - 20ms

- Synch Threshold - 1190 MHz

- Input Interval - 10ms

- Input Boost Frequence - 729MHz

CPU Hotplug:

- Alucard Hotplug - Enabled (other hotplugs are disabled)

- IO is busy - Enabled

- Sampling Rate - 30%

- Suspend - Enabled

- Minimum CPU Online - 1

- Maximum CPU Online - 4

- Maximum CPU Screen Off - 1

Thermal:

- Intellithermal - Enabled (VDD and core control are disabled)

- Frequence Throttle Temperature - 67 degrees

- CPU Throttle Temperature - 72 degrees

- Poll - 250ms

GPU:

- GPU Maximum Frequence - 533MHz

- GPU Minimum Frequence - 27MHz

- GPU Governor - Simple Ondemand

- Andreno Idler - Enabled

- Down Differential - 20

- Idle Wait - 10

- Workload - 5

I/O Scheduler:

For Internal and External Storage:

- Scheduler - cfq

- Read-Ahead - 1024KB

- Rotation Storage - Disabled

- I/O Stats - Enabled

- Add Random - Enabled

- RQ Affinity - 1

Kernel Samepage Merging:

- Kernel Samepage Merging - Disabled

- Deffered timer - Enabled

- Pages to scan - 100

- Sleep between scans - 20ms

Entropy:

- Read - 2048

- Write - 2048

This is all my settings. I have problem with battery (it heated) and on your Xperia might work better but I am not sure. If you want try this setting and tests.
[Xperia Z1 Original Android Development] optimumpro:
Explanation on Jaguar and Xposed Framework

As I have mentioned earlier, Jaguar includes plenty of commits taken from Nougat. I have identified the particular commit that is responsible for Xposed failure to boot. Here is the commit: https://android-review.googlesource.com/#/c/148143/ In Nougat Google has changed the way jar files are opened, i.e., opening more than once is no longer allowed. This has effectively prevented an exploit used by Xposed framework. I don't think this was done to ruin Xposed, but rather to secure devices against malicious apps and processes. I like it this way and therefore Xposed is not coming back, unless of course the author finds another way to break the system, but here is the problem with these modes: they create a security hole in system for themselves, however, even if the original mode was well intentioned, other bad apps/processes can use the same hole for nefarious purposes...
[Xperia Z1 Original Android Development] MacSeoin:
His guys, I'm trying to flash the latest ROM, it installed just as it should but my apps say I don't have root!? Isn't root built in?

Have I missed something? Tried to flash the November ROM straight after a full wipe (apart from recovery of course)
[Xperia Z1 Original Android Development] feb8born:
activate developer mode and activate root from there
[Xperia Z1 Original Android Development] johell:
I have the same issue with the Z1C Build, enabling the clipboard access does not solved gmail/google service crashes. Any advices ?

Thanks for your great work.
[Xperia Z1 Original Android Development] optimumpro:
1. Gapps, as well as any other app installed on system partition must be re-flashed every time you upgrade. During upgrade your system partition always gets overwritten.

2. Not all Gapps work smoothly with Jaguar. Read several posts from other users indicating no problems with their version of Gapps

3. After installing Gapps, you must give them internet access in Afwall, as by default, everything is denied (initially)
[Xperia Z1 Original Android Development] johell:
Thanks for your answer :

1 It was a clean install, gapps flashed and downloaded today (try with opengapps mini and opengapps pico)

2 It seems people are recommended opengapps

3 Yes i have enabled Afwall and allowed any apps to try out the rom, in fact gmail is opening retrieving email and crashing so it do have access to internet.
[Xperia Z1 Original Android Development] optimumpro:
Do Gapps crash, as well as Gmail or Gmail only? If it is Gmail, try an older version. You shouldn't automatically upgrade to a newer version if the current one works fine. You have to read changelog and see if changes are relevant to your version of Android.

Generally, I don't support Google apps including Gmail. Plus you will never know the reason for the crash unless you run a logcat...
[Xperia Z1 Original Android Development] jumika:
I had this problem also. For me it got resolved by these steps:

Enable Privacy Guard for Gmail app.

Start Gmail app.

Disable Privacy Guard.

Since then it only crashes when viewing emails with attachments that have preview. Like image or pdf attachments. I will post logs soon.

Edit:

I'm on this rom and using z1c.
[Xperia Z1 Original Android Development] jumika:
Ok. I give up. I can't make it work again. I don't know how did i managed to get it working. I've tried it again with a new install (again), and i've failed.

Logs still coming, but I will post them in the z1c thread.
[Xperia Z1 Original Android Development] optimumpro:
New Release

New build posted, which includes December security patches, signature spoofing and USSD fix (maybe). See post #3 for download...
[Xperia Z1 Original Android Development] optimumpro:
Guess what? Stereo sound is here. No gimmicks, just pure stereo: ear piece and loud speaker - for games, videos, songs etc.. Confirmed working...

Download is in post #3...
[Xperia Z1 Original Android Development] santeria27:
Thx optimum i will test it! :)
[Xperia Z1 Original Android Development] rama.91:
Affter install xposed stuck bootlogo (bootloop)
[Xperia Z1 Original Android Development] optimumpro:
http://xdaforums.com/showpost.php?p=69881350&postcount=1066
[Xperia Z1 Original Android Development] Nihas61:
i installed the lastest version . I flash the opengapss in twrp , after that when the phone rebooted apps optimizing got stuck and it undergoes boot loops , i can access rom without flashing gapps but this app optimizing after flashing gapps got bootloop please fix this
[Xperia Z1 Original Android Development] MacSeoin:
[MENTION=5075064]optimumpro[/MENTION] off topic but I know you have taken your phone apart many times.

My battery is bulging, it looks like i have had a water breach too. The device switches on but unfortunately it doesn't stay on for long!

Do you think I should attempt to fix my z1 or would it be a waste of cash iyho????
[Xperia Z1 Original Android Development] optimumpro:
Difficult to answer. Your phone must be opened and examined. The battery has to go. If water damage does not affect screen, there is no short circuit and both sim and sd cards work, you just need to clean motherboard with a tooth brush (where water damage is). If you do everything yourself, the cost is minimal: $12-$15 for OEM battery; $6 for back glass (if you break it while opening); and $5-$7 for glue (I used B-7000).

The last time I opened my Z1, I also put several layers of aluminium foil on both sides of CPU/GPU, which reduced heating by 5-6 degrees (Celsius). I also removed the yellow wrapping on the new battery and put foil there. Now, no matter what I do, CPU temperature doesn't go above 55 and battery is no higher than 22. That takes care in of itself of any lags or slow down.

That is if you do everything yourself. Someone else will charge you about $80-100. It will still be considerably cheaper than buying a new phone. If you buy another phone used, you don't know what you are buying. Display is a major concern, as I am yet to see one after-market display (which you may get) that doesn't have visible defects.

No recent new version of Android is worth of a new phone, in my view. The same goes to newer phones. Z1 has enough processing power and ram to do any task. If you noticed, in the past 10 years, CPU clock speed and basic technology hasn't changed for PCs: 3000 clock seems like an unpenetrable barrier. Smart phones (including Z1) have done their catching and now stand in front of the same barrier. So, my answer is: if you are within $100-$120, stay with Z1.
[Xperia Z1 Original Android Development] MacSeoin:
I'm gonna take the plunge and try a self fix, will be in the new year now though.

I've attached a picture of my lovely water marked/damaged screen

And as always thanks for the advice and this truly amazing ROM.

In the great words of Arnie "I'll be back!"

EDIT: That was my water damaged screen I've just broken it lmao
[Xperia Z1 Original Android Development] aleksandar9999a:
Hello [MENTION=5075064]optimumpro[/MENTION]. I have in the future a plan, but I wonder if will give effect. I think to open my Sony Xperia Z1 and to replace the battery. It is heated to 42-45 degrees and... More importantly, I want to do is instead put him back glass, to buy aluminum bumper and put him. As between the CPU, GPU, battery and bumper to put termal paste or termal pad. Whether this will make much difference in the temperature of the device?

Google Translate.
[Xperia Z1 Original Android Development] optimumpro:
You definitely need to replace the battery. However, if you throw away back glass and instead use a case/bumper, you will have dirt and dust inside the phone, which is not good. I wouldn't do that. But if you want to put thermal pad or something similar around CPU/GPU, and if done properly, that would help with overheating. I used aluminium tape that you can buy in hardware stores and it works...
[Xperia Z1 Original Android Development] aleksandar9999a:
Yes, this is right, but on other hand if we put aluminum bumper without back glass, some future problems will be easier to solve. And aluminum is a good conductor of heat.

This is one who I like. But it have two hole for Sony logo and camera. I think to buy one aluminum bumper and one back glass. If the result is not good, I will put back glass. On stock rom my phone often heat and in this case I have problem with touch, but with your rom I don't have any problem with touch. My phone not heat more than 60 degrees with Jaguar rom, but for me this is highly. If with aluminum bumper without back glass bring down more temperatures, this will be great. The phone will be more stable. I use my phone every day and it really intense for facebook, browsing, youtube, camera and etc. and for me is very important to have stable phone.

http://m.ebay.com/itm/Luxury-Mirror...or-Sony-Xperia-Phone-/141970882916?nav=SEARCH
[Xperia Z1 Original Android Development] optimumpro:
The bumper/case you linked has aluminium around the phone (bumper), but acrylic on the back, which will do no good in terms of cooling. And there is a reason for back plastic: metal back may block signal and/or wifi reception. In addition, the point of cooling is to have a direct contact with metal that covers CPU/GPU. So, even if you put metal instead of glass on the back, there won't be any cooling effect...
[Xperia Z1 Original Android Development] aleksandar9999a:
Ok, thanks for reply. I knew I missed something and so I turned to you because you have experience with the phone.
[Xperia Z1 Original Android Development] optimumpro:
I have just built two applications that could be useful:

1. Snapdragon Version of Chromium Web Browser; and

2. Webview System Apk also based on Snapdragon Chromium

Both are based on Code Aurora version M54. For those who don't know: Snapdragon is a Code Aurora Version of Chromium optimised for CAF/Qualcomm devices

Modifications:

1. Google host detection disabled

2. Sandbox enabled

3. Gaia disabled

4. GCM disabled

5. Crash reporter disabled

De-Google changes cherry-picked from here: https://github.com/Eloston/ungoogled...ogled-chromium

Download for Webview: http://xdaforums.com/devdb/project/dl/?id=22166 Uninstal your other webview app and install this one as a regular app.

Download for Web Browser: http://xdaforums.com/devdb/project/dl/?id=22167 This is a Chromium Web Browser. Install as a regular app.
[Xperia Z1 Original Android Development] babyboy3265:
Gents i installed the Stereo sound MOD and my top speaker is crackling a lot... Is there a way to uninstall the MOD, given that i forgot to make a backup :( ?
[Xperia Z1 Original Android Development] nemesisexsp:
Just flash the ROM again:

http://xdaforums.com/devdb/project/dl/?id=21987
[Xperia Z1 Original Android Development] babyboy3265:
Well, i am on an older version of the ROM with quite a few modifications so it's not an option yet. I am considering to Wipe all soo and flash the latest version. However, i copied the mixer file from the ROM to the system and I got MONO again. Then I recalled that to have proper stereo without the crackling I had to make a phone call for a second. So I reflashed the MOD and made the call and all is fine now :)
[Xperia Z1 Original Android Development] optimumpro:
Yeah. That's re-calibration. I'll put it in that post...
[Xperia Z1 Original Android Development] pd12:
Bug 1:

Bug 2:

I'm getting both these bugs on December 9 build (didn't flash Stereo Sound). I tried both latest OpenApps and the Banks Apps from here that [MENTION=5075064]optimumpro[/MENTION] mentioned (it didn't work):

Did anyone fix this bug on their phone? If I provide logcat can someone help me please?

I'm more anxious to get Bug 1 fixed because all voice input will force close the voice input. Since I rarely use earphones, I can live with that bug.
[Xperia Z1 Original Android Development] aleksandar9999a:
I use this rom and I don't have problem with my earphone. For gapps... Problem is in build.prop, you must change ro.build.version.release=X.X.X to ro.build.version.release=5.1.1.
[Xperia Z1 Original Android Development] Ænimal:
...

OP repeatedly stated that he doesn't support gapps (anyway, maybe somebody here can help you with that).

As for paste from clipboard, go to settings>security>allow background clipboard access
[Xperia Z1 Original Android Development] pd12:
Thanks [MENTION=5478526]Ænimal[/MENTION]! Got clipboard again.

Update: I tried the August Jaguar ROM - the build.prop already had version 5.1.1 from the ROM, but voice search/input still failed for some reason.

It seems to be voice recognition that uses Google recognition that doesn't work, as my Swype voice input works.
[Xperia Z1 Original Android Development] aleksandar9999a:
Try slim zero gapps, I don't have any problem with it.
[Xperia Z1 Original Android Development] aleksandar9999a:
I think, the problem is in webview. Try to delete from system/app and install google webview. When I change it with google webview Facebook lite stop lagging and Sony Battery Adviser start to work.
[Xperia Z1 Original Android Development] optimumpro:
New Release

January release is ready. See post #3 for download and description.
[Xperia Z1 Original Android Development] pokepokepoke:
warnings about unsafe sites,no site is opening .Also apps like adaway say no internet access
[Xperia Z1 Original Android Development] optimumpro:
You have to give internet access in Afwall to any app you want to connect. Also, after upgrade, it takes longer on first boot for all system apps to fully activate.
[Xperia Z1 Original Android Development] pokepokepoke:
I'm not using afwall (also removed the crashdod file) .Internet is working good on Dec build.On latest build browser says error in security certificates ,if we click continue regardless then site opens but clicking 20 times for opening 1 site isnt too viable
[Xperia Z1 Original Android Development] optimumpro:
I have none of your problems. Check if you have the correct date and time; clear browser data in Settings/Apps; and don't use stock browser, because it is outdated. If you use a firefox type, you might have messed with 'about:config', so set it to default.
[Xperia Z1 Original Android Development] Pulsa:
[MENTION=5075064]optimumpro[/MENTION] hey, i always have random reboots everytime i'm using you rom. Do you know what causing it? Or maybe beacuse of gapps? I've tried OpenGApps and TKGApps. Hope you can help. Thanks for your great rom.
[Xperia Z1 Original Android Development] optimumpro:
Jaguar does not have random reboots. You probably set cpu voltage too low. Never do this and don't listen to those who tell you to. Undervolting has zero benefits...
[Xperia Z1 Original Android Development] Pulsa:
I didn't do anything to voltage related stuffs, i don't even install kernel adiutor. Just install the rom and opengapps pico, boot up, set up afwall, login google account, and then the phone reboot itself. And once rebooted, it will keeps rebooting randomly.
[Xperia Z1 Original Android Development] optimumpro:
Then install Kernel Adiutor and increase voltage by 20 on 4 highest frequencies...
[Xperia Z1 Original Android Development] Pulsa:
Ok, thanks a lot for your support. I'll try it soon
[Xperia Z1 Original Android Development] optimumpro:
This build might have an experimental kernel. So, flash the attached in fastboot. First unzip and then in fastboot do: fastboot flash boot boot.img
[Xperia Z1 Original Android Development] Pulsa:
wow, thanks a lot dude, you're such a great dev ?. Gonna try it when i have free time.
[Xperia Z1 Original Android Development] caki25:
My device seems to reboot right away too .. got an aftermarket display & battery. For some reason, the phone thinks it is overheating. Noticed that kernel adiutor reported 104C and then rebooted. When I entered recovery, only 60C was shown. Trying to get a logcat, but the phone does not stay up for that long and trying to grab it using ADB is not working for me .. probably disabled in settings? Not sure where to go now .. probably will need to revert to something older again ..
[Xperia Z1 Original Android Development] optimumpro:
Just get kernel from post #1113. But those are extreme temperatures. You might have a bad battery... Never had 100 degrees. In recovery, I have maximum 45 after flashing; at runtime - never higher than 55. I may have 5-7 degrees lower, because I have aluminium foil around CPU/GPU, but even before that, I never had more than 65 under a heavy load... And keep in mind, I use this rom daily...
[Xperia Z1 Original Android Development] Mr saxobeat:
Is january build have the dirtycow fix and no-overclocked kernel already?

I have two requests:

First:can you please update the OP instructions? Add the modem backup step and the step to enable mobile data..

Second: after flashing every ROM in the forum..In my opinion this ROM is the best AOSP ROM ever! But it seems that you have already get it to perfection..I mean in every build you only update the security patches

So..Building a stock-based Jaguar ROM would be AWESOME!!
[Xperia Z1 Original Android Development] optimumpro:
I don't only update security patches. I also take numerous commits from Android Gerrit. I just don't have time to list everything. Also, NFC-HCE is coming in the next release...
[Xperia Z1 Original Android Development] Mr saxobeat:
What about making a stock-based Jaguar? You are one of the best developers in the forum to do this
[Xperia Z1 Original Android Development] optimumpro:
Impossible even in theory: Whatever Sony does with Android is closed source and you need open sources to build a rom. You also need open sources to implement security patches or modifications...
[Xperia Z1 Original Android Development] Mr saxobeat:
I see..

So the current stock based Roms just use some ports and mods without ”building” a ROM

Thanks for the quick reply