yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] levone1:
Different ways to zip the app files - odex vs. deodex. Stock Sony framework is odex. Services.jar is one of the framework files. It needs to be patched in order to use MicroG, and best current way to patch it is with NanoDroid patcher, which will only work with deodex files. Super R's kitchen is an amazing tool which is capable of many kinds of mods, one of which is to deodex files. Other deodexers I've used over the years haven't been updated for newest fw. You can use the same deodexed framework files as mine, if you're on the same stock firmware, (latest update ...107).

eXistenZ is a custom rom that is based on stock Sony firmware, but amazingly modded by niaboc79. I would recommend to anyone to use it, instead of straight stock. As of right now, the newest eXistenZ is yet to be released, (it has to be updated with every security patch, and the last one was just a few days ago), which is the only reason I'm even bothering to do anything on stock. If you want to wait, niaboc79 said the new version will be out any time soon.

Good news - the newest MicroG Unofficial installer from ale5000, released last week, works on stock, (I just tested), so you don't have to go through all the manual copying/uninstalling, etc.

Anyway, this has been a lot of off-topic, so we should quit now, (sorry [MENTION=6031898]MartinX3[/MENTION]). Read up on some threads, and pm me, or post in appropriate threads, if you want...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
It's a nice opponent to GAPPS.

If someone can give me a link to a working installer, I'll add it to the instructions :)

(Signature spoofing patcher + installer confirmed working on sonyaosp and maybe omnirom)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] levone1:
Issue with stock is the deodexing. Maybe I can make a deodex patch, with modded services jar included, and post it with link and instructions for MicroG installer...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] levone1:
Tester here - https://xdaforums.com/xperia-xz2/themes/test-deodexed-framework-patch-t3948534

I can't test flashing at the moment, but I can confirm that the files work (I already copied manually).
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] mirhl:
There are literally buttons in the UI to disable all stock programs.

Maybe you might need adb to disable GMScore, but anyway even then you could already have done this on day one if you wanted.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
Without root ?

I don't trust the program nor the system to respect my "I want to disable everything" button, while they are root on the system. And it takes space.

I want to remove any proprietary stuff from google and so on, I can't trust them to respect my privacy.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] mirhl:
That's some tinfoil level of "worry" tbh.

Disabled means disabled, and no, it doesn't take space since /system as a whole would still span across the same amount of NAND.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TunerCP:
Why do you care what Google does with your data? Are you a secret agent? Or some kind of important CEO that does illicit business? If not, Google has literally no reason to use your data and they don't give a flying **** about what you do on your cellphone.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
Well, I'm not going to explain here (to avoid massive off topic) the big data privacy issues caused by Google business, which is based on using your personal data. This is very well documented. As well as their abuses even when you turned off all tracking parameters.

I'm searching for a solution to remove their stuff, no matter the reason why.

Yeah, as disabled as Google tracks you even when you turn of the "privacy" settings or GPS, WIFI and Bluetooth…

I won't trust a program from Google that is root on my system.

(for the space, I'm talking about their apps)

Anyway that's off-topic.

[MENTION=6283426]levone1[/MENTION] : thanks a lot for your help ! Thanks for the explanations too :)

I'll continue in PM I think, and maybe post the information that is relevant to archive in a separate thread :)

Thanks for testing :)

[MENTION=6031898]MartinX3[/MENTION] : before I unlock (root) my system, is there any meaningful way to backup the DRM*?

And sorry about the off-topic.

You mean you tested it on you ROM ? That's great news :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
"Why do you care what a Fitness Tracker Vendor does with your data? Are you a secret agent? Or some kind of important CEO that does illicit business? If not, Fitness Tracker Vendors have literally no reason to use your data and they don't give a flying **** about what you do on your cellphone."

https://events.technologyreview.com/video/watch/andrew-dsouza-bionym-heartbeat-password

"A live demonstratino of the new Nymi device, which uses your heartbeat for personal authentiation. "

Nice, a database and a sensor tool, we can combine it to hunt down enemies.

Enemies = People thinking different.

We germans know it (Hitler), or the turkish people know it with erdogan killing kurdish people, or the chinese killing Tibetans and uigures, etc.

I hate the people who say "people who want privacy are idiots".

It only shows that the person who says this is ignorant.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
[MENTION=9834068]Lp26[/MENTION]

thx for the answer for the point regarding google and their data business.

When you hadn't to answer the question of TunerCP i would have done that. I'm happy everytime when a user have a awareness for this topic.

[MENTION=5983293]TunerCP[/MENTION]

Nobody must be secret agent only because he or she care about his/her privacy and protect them. I'm see it same as Lp26:

Google don't need to have all my data. It's my data and i decide whether and what i share with Google. If i say no then it means no. Simple as that.

IMHO most of the users are very much to tolerant whether Google ignores their privacy and attack them regarding this point.

To break it down to a real example: If somebody run behind you (even in your house) and track everything you do, say and think then probably it isn't ok for you. But when this happens online suddenly for the most users everything is fine. Sry but i can't understand the logic behind that.

It has a reason why i have AdAway, AfWall+ and no Gapps on my phone (Only microG and this has no Internet connection permission).

[MENTION=6031898]MartinX3[/MENTION]

Sry for off topic but that aspect needs as much attention as possible.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
New build will be shipped Friday or Saturday. :)

The kernel got upgraded, but there are still important bugs in the GitHub bug tracker. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
The XZ2 and XZ2c builds will be delayed I think, because of a migraine.

Maybe I can provide them today.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] laoli0913:
I failed to fetch deskclock when syncing nitrogen os. I will try again next week.:silly:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Make me happy!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] laoli0913:
Failed to build, seems some errors in gps.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Which error?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] laoli0913:
Forgot:silly:, but I will try lineage next week.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
LineageOS will make me the most out of happy :silly:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] xslamkal:
Can't wait! How does it look like? Any bugs?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Please use the bug links in the first post. :)

TAMA, AKARI, APOLLO or ALL are indicators

Akari is xz2

Apollo ist xz2c

:)

It looks like lineageOS / natural AOSP Android. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Redownloading Sources for new Build on latest Sony AOSP 9.0 revision (android-9.0.0_r16). :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
I'm already exited:)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
#MeToo

:victory:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
[MENTION=6031898]MartinX3[/MENTION]

Two request:

Can you report then how stable the new build is? I want know whether it's suitable for daily use.

And can you try to add MicroG support in your build? That's the only things which hold me to buy an xz2.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
In the Issue Tracker of the Project, you see the open bugs. :)

Sorry, I am not a AOSP developer, I only build and release the binaries made from the Sony AOSP Project. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
Totally ok dude. Then i hope for customs a la OmniRom, LineageOS and staying a little more time on my trusty Z3.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You could test this build on your XZ2 and still use your Z3. :)

Btw, The XZ2C, XZ2 and XZ3 are very similiar.

I think only the kernel differs.

A device maintianer could grab all 3 devices, like me for TWRP.

BTW, AOSP is like LineageOS without its extra features.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
The XZ2 Build is finish after 3 hours, now I build the XZ2C build. (Will be faster)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nasko_spasko:
[MENTION=6031898]MartinX3[/MENTION] I've built the aosp_eng Pie build a couple of days ago and it worked great except the fp scanner until I flased the userdebug one and after that no matter what I flash the screen will stay on the sony logo and adb. Waiting for your build. Maybe I did something wrong.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TunerCP:
Turkey is obviously an exception, you can get in a lot of trouble if the government gets acces to your data and I completely understand that. But I don't get how Hitler has anything to do with Google knowing what porn you watch lmao. You're really paranoic at this point. I didn't say people who want privacy are idiots, I only asked why you'd go through such a hassle just to hide from Google because I don't get it.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
Interesting: how do you manage to do it ?

It's safer than a per app permission ?

I guess the goal is to prevent any non free software app that uses Google services to access the Internet ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Hitler would use the google user database to see if you watched jewish or homosexual stuff.

Or looked at communist pages.

That would result in deportation.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
Simple answer. Because some people don't want to sell all her digital live to giant tech concern who lives from the privacy of their users.

It's the same problematic with facebook. They collect everything and don't care wether is it neccessary.

The most important currency for them are data which they sell around the world no matter whether the users want that.

That a scandal in my opinion and should stopped. Yes Google services are very comfortable but that doesn't make the data collection ok.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TunerCP:
Makes sense to me. Thank for the clarification!

---------- Post added at 07:40 PM ---------- Previous post was at 07:37 PM ----------

That's the thing, it doesn't affect you in any way. I'm actually ok with Google using my data if that means I get to use their great services for free.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
For me the price is too high:)

And it's not free. You pay. With your privacy.

And well that's the strategy of Google: Make it so comfortable as possible to gain the users in the golden garden so that they don't even try to use Google alternatives.

That's the sad thing.

Unfortanetly it works by the majority of them.

Please don't take my comments in my last posts here as personal critik on you. It's just that i get very emotional at topic.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
No problem, you're welcome :)

At the moment here in Germany we have a growing national socialistic underground being part of state organs, police, special forces and a growing political party called alternative for Germany.

And hearing that as example parts of the police using their database on a illegal way to get a list of assassination targets and stealing weapons from their armory scares.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
I decide for every app via Afwall+ whether they need Internet permission. Only apps which needs Internet to function get Internet permssion.

And if yes i analyse the app regarding their connection to Tracking and Ad modules and block the specific urls with AdAway.

My goal with MicroG is that apps which required Google play Services run on my phone. There are apls in the Play Store which don't use functions of Google Play Services but need it to even start. Without they refuse the work.

Because i'm not active in social networks or WA i don't need Services from Google anymore. So i can run MicroG without Internet permission.

Apps i download mostly on F-Droid or via Racoon on my PC. So no need for Play Store on my device, too.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
Ok, that's very good to know, thanks :)

This in addition to a custom rom seems a really good way to control which app does what on your phone :good:

Btw you might find this useful to know the trackers embedded in the apps: https://reports.exodus-privacy.eu.org/en/

(from https://exodus-privacy.eu.org/en/)

(Thanks for the explanation btw :)

And you do it with Afwall ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
I prefer Androlyzer (a app developed from german university) because it shows every url which a app use. So i know exactly which addresses i must add in the blacklist of AdAway and can block unwanted connections of a app before it even starts for the first time.

Only disadvantage: It doesn't show which urls is tracking or ad. So i must recognize the mentioned urls on myself. But after some time you know the evil guys:D

Exodus privacy shows only the modules but not the exact urls.

Yes. Every internet permission is controlled by AfWall+ by me.

And on top of that i have some tweaks on my phone activated (Private DNS, deactivation from the captive portal check).
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] mirhl:
No, it hasn't.

Every close reading of "scary reports", reveals either dumb journalists (google location history is a google maps thing which you are literally asked on the first time wizard, not an account setting) or dishonest ones (because OMG, if you leave telemetry and service improvement enabled, guess what, your anonymized voice will be heard by QA engineers)

First, you are mixing google location services (a phone setting) with IP logging (a web service thing)

Second gapps don't run as root afaik (and last time I checked there wasn't even a single permission I couldn't forbid to them)

Third and most important: yes, I'm telling you how to kill their apps. You aren't asking them to gracefully please go to sleep. If you are wary of this (i.e. you don't trust the base OS itself) then I'm afraid to tell you that probably not even aosp will fit your bill.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nos1609:
[MENTION=6031898]MartinX3[/MENTION] is the kernel ready for modification? Or I may face some issues? Sorry for "noobish" questions, last Xperia device i dealt with was Z3TC and porting features from Z3 was an easy trick. Pretty sure lots of things has changed since then?

And also, any hope for LineageOS submission in the near future?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Since years [emoji14]

https://github.com/sonyxperiadev/kernel

Feel free to submit stuff :)

At the moment we're at 4.9 and port 4.14 for all xperias

And if you're a dev you could join our slack :)

About LOS

It depends on the two Asians in the thread or if someone continues their work :S
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] manuerduarte:
hi [MENTION=6031898]MartinX3[/MENTION],

I leave you the files with which I believe that the clipping problem is momentarily solved ;), or there is less worries of damage the speakers, all files are from vendor/etc
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Can you upload them into the clipping issue ticket? :)

Then the SODP team can comment if they're harmless
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] manuerduarte:
​

I uploaded an explanation of the process I did and the modified files to https://github.com/sonyxperiadev/bug_tracker/issues/411, I hope it is useful, in my XZ2 the speakers are perfect now, in case you want to try replacing the 3 files. I will keep testing, now i will test the differents Gcams and try the best configs. Thanks for the AOSP man
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Woohoo, thank you very much :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
Ok I tried to start to root my phone.

I unlocked the bootloader.

Then I wanted to boot to TWRP, and… ended up flashing it by error, with fastboot flash boot, not fastboot flash recovery… Which means I have no longer any android installed, right ? :(

Then I tried to install Magick to root my phone (I don't know if TWRP can do that, I didn't find anything).

Using fastboot boot didn't work. Then I added the Magisk-v18.1.zip file on a SD card, and installed it with TWRP.

And now… I have boot loop :((

The first screen says the device software can't be checked for corruption, then I have screen with Sony logo… and reboot.

Adb devices and fastboot don't see the phone, I can't flash anything :(

What can I do ?

edit: finally I successfully flashed a recovery, I don't know why it worked this time.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
Flash stock firmware from july (with the userdata.sin. file) via Newflasher and follow exactly the instructions.

Don't take the august version of stock because the twrp images aren't adjusted yet.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
Ok I think I flashed AOSP rom correctly, following the tutorial from the first post.

It boots, with Google logo, and AOSP interface (I guess, it looks like stock android, but uglier ^^)

But… the screen doesn't seem to be working.

I can't touch anything.

Do you know what's going on ?

Also I did not understand how to install the dual sim patch: do I need to open and install it with TWRP ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
I'm using OmniROM since month so i can't really answer that question. So i throw the ball at MartinX3's side:)

(Or to other users of this rom).

Flash the zip file in twrp. Same procedure as by Magisk.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
If you an user of a special XZ2 compact variant, please report there

https://github.com/sonyxperiadev/bug_tracker/issues/351

:(
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
Ok I tried the OmniROM too, same result, touchscreen not working :(

Ok I'll report on github.

edit : BTW I can't figure out how to install TWRP as a recovery or so.

fastboot boot twrp-xz2c.img doesn't work.

fastboost flash recovery twrp-xz2c.img also fails.

How can I install it ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Did you follow the bugs section of this thread? :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
[MENTION=6031898]MartinX3[/MENTION] : I don't understand what you mean.

By the way if, using the recovery menu, I wipe user data, I come back to Sony stock ROM, as a factory reset.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
There is described in which case the "fastboot boot twrp.img" doesn't work :)

And don't forget to wipe the internal storage, too, or you'll get weird issues.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
Btw I just discovered in this post from [MENTION=6283426]levone1[/MENTION] that I don't seem to see the full thread here… https://xdaforums.com/showpost.php?p=79402539&postcount=22

Your post #3 in this thread only contains "Reserved"… is it normal ?

I don't see those instructions to install/boot to TWRP… And I can't figure out how to do it.

How can I do that ? With TWRP ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Please use the first link in the first post there to open the main twrp thread :)

Yes, in twrp.

BTW

I'm uploading now a dtbo.img for further tests about the touch issue for a special kind of xz2 compact hardware

I put the usage instructions in the issue ticket, too. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
You mean this link ? https://developer.sony.com/develop/open-devices/more-information/contribute-and-support/

(I'm a bit lost, sorry ^^)

Thanks for your help on github with this bug :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
There :)

https://xdaforums.com/xperia-xz2/development/recovery-twrp-3-2-2-0-touch-recovery-t3821597

You're welcome, hopefully we kill this XZ2 compact bug finally. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
Ok, then that's the TWRP file I was using.

Thanks a lot for the link ! :)

Still, using fastboot reboot-bootloader, then fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img and fastboot boot twrp.img, it doesn't work, black screen with blue LED.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
And you did a "fastboot reboot bootloader" before doing "fastboot boot twrp.img"? :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
Yes I did.

I just tried again:

- adb reboot-bootloader

- fastboot reboot-bootloader

- fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img

- fastboot reboot-bootloader

- fastboot boot twrp-xz2c.img
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
But you aren't accidentally to use the STOCK twrp?

It could make the same issue.

PS: About the touch problematic

It seems that every reported device has the panel ID 8 (TCM touch) while SODP wants to use the clearpad drivers (ID 4)

Maybe a fallback

Maybe we're looking into the wrong direction

Lets see
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
Oh yeah it's the stock one !

Ok I'll try again (and edit if it works).

edit: It works ! :)

Ok, I'll let you investigate as it's far too much for my current knowledge ^^

I'm available for some tests if needed :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Nice! :)

We're on it, but need to do a internal discussion in the team, because something in relation with the TCM touch got removed in 2018 for some reason and we need to wait for a response of the author of this change. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
I can confirm the touchscreen issue is here with custom ROM TWRP.

edit: ok thanks, don't hesitate to ping me when you have some news ;)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Yeah, they share the same touch drivers :)

Will do in the github issue ticket :P
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Ping! https://github.com/sonyxperiadev/bug_tracker/issues/351 :laugh:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Ping the second

https://github.com/sonyxperiadev/bug_tracker/issues/351

:laugh:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
08.08.2019

And the in the past forgotten news

12.07.2019
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Ping the third [emoji14]

https://github.com/sonyxperiadev/bug_tracker/issues/351
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Ping the fourth :)

https://github.com/sonyxperiadev/bug_tracker/issues/351