yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Danj1:
Hi [MENTION=6031898]MartinX3[/MENTION] and [MENTION=9542156]dhacke[/MENTION],

can you tell me why the sonyasop rom and sodp-twrp for xz2c are twice the size on the dhsfileserver compared to androidfilehost?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Good question.

Maybe filesystem compression.

I first upload it to the DHS serve, because I can use an URL import in android file host for instant uploading.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Danj1:
Good to know.

I was wondering because both are tar.gz and end up very different in size on my local machine. Dual sim patcher v4alpha is the same though.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
But both are working?

If yes it's only the compression. :)

If no, ummhh, we've got a problem.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Danj1:
Hi [MENTION=6031898]MartinX3[/MENTION].

I compared the archives and content wise they are the same.

Seems like the dhsfileserver files are not gzip compressed.

dhsfileserver:

user@pc$ gzip -l 2019-08-10_17-49-21_twrp_sodp_xz2c.tar.gz
gzip: 2019-08-10_17-49-21_twrp_sodp_xz2c.tar.gz: not in gzip format

androidfilehost:

user@pc$ gzip -l 2019-08-10_17-49-21_twrp_sodp_xz2c.tar.gz
compressed uncompressed ratio uncompressed_name
36952511 74332160 50.3% 2019-08-10_17-49-21_twrp_sodp_xz2c.tar

I did not try to flash the uncompressed archive.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
The funny thing is, android file host downloaded it from the dhsfileserver

I didn't uploaded it again.

it's the same file.

But as long as you can open it.

But weird how the german strato webserver acts
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
I only use the files from my strato server (so the mentioned dhsfileserver) and had never problems (device: xz2).

Mayby android file host must spare space; my server not.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] samsc99:
Seems that when i patch the dual sim patch (V4) it gets stuck at the Google logo (not frozen the animation is still going) but after some time the phone reboots into recovery... When i don't patch the dual sim patch, it does boot and work well, but then it cant recognize the sim.. Any known fixes for this?

edit: found the fix, i reflashed the system.img, rebooted the device and it recognized my simcard :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
28.08.2019
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nos1609:
Any possibility of a Treble package in the near future?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I never tried, but can you use the system.img on its own in a PIE firmware?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TPlatt:
Bern reading through the pages since my lady time through. But didn't see (or saw and didn't understand) msny updates. Still rooting the same? Camera any better and do we have systemless root with magisk yet?

---------- Post added at 02:25 PM ---------- Previous post was at 02:21 PM ----------

Ohh and by any chance was a USA file ever used because without it, I could root but not get any cell service what so ever (using Verizon). When back to usa firmware and lost root but could use my phone again.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Monthly updates

I don't have time to make changelogs every month, but usually every update has many code changes

Yes magisk

Last camera update was April.

Soon a new one should come.

Don't know what do you mean about USA files.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TPlatt:
I mean the European firmware didn't work for me that you had for download. Only the USA firmware allowed me to use phone service (Verizon)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
The oreo firmware? that was just to downgrade the phone and flash xperifirm or the stock camerafix.zip won't work (only needed if PIE camera has black preview by default).

I recommend to always use the newest firmware for support and to have a secured, stable, fast, bugless phone.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TPlatt:
OK. I might try it again soon. Are we able to get xposed working?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I don't know exactly since when, but it works since a long time again (as magisk module).
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
To be exactly official xposed for Pie isn't available ( only riru core which offer the same functionality but is from different devs).

The last commit from the official xposed dev rovo89 was two or one year ago. So i don't have any hope for official xposed above oreo atm.

Personally i prefer official xposed (idk but i trust rovo89 more then the devs of riru core; i would have a better feeling when use a official xposed Version).

So don't use xposed anymore.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
New camera news

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

https://github.com/sraase/device-sony-common/commit/c590b79811ab15868b2a9a9c732e20c1e65c9dd72

Looks like we switch from 32bit camera hal to 64 bit camera hal

(And other responses in the github bug tracker about the camera progress)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
The 2nd link is broken, apparently.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Which what who where?

If you mean both download links, they are working.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
This link:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Ah, he removed the commit, it was part of the development.

We'll get an update later, since the Xperia 1 stuff is mostly finished.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] :
Please help to install this rom in my xz3

Now im in latest stock ROM flashed with newflasher

My big problem is untill now i couldn't install twrp

I tried everything always stock in sony logo

I want all steps ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Please boot newest pie stock first

Then follow the Sony aosp steps

Then follow the twrp sodp steps.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] :
cant install twrp

tape this command fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img

and fastboot boot twrp.img

boot in fastmode blue light no recovery
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
did you follow the FAQ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] :
Can you give me all steps +files needed to install twrp

I tried everything without success

This phone make me crazy f...

---------- Post added at 12:45 PM ---------- Previous post was at 12:45 PM ----------

Can you give me all steps +files needed to install twrp

I tried everything without success

This phone make me crazy f...

---------- Post added at 12:48 PM ---------- Previous post was at 12:45 PM ----------

I'm a beginner all i want before is unlocking bootloader to change region to get better update but now its impossible to relock
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Please repeat carefully what you did, in the right order, without excluding steps.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] :
i unlock bootloader

install 131 firmware via new flasher

boot to fastboot

run this commande all is ok

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

and run this

fastboot flash recovery recovery.img (recovery the same file name)

"cannot load 'recovery': No such file or directory"

i try fastboot flash boot recovery.img

all is ok

fastboot boot recovery.img

done

and no recovery huste blue light or sony logo +blue light

i try alot of steps but nothing

whats wrong :confused:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Sadly you didn't follow the instructions declared in the beginning of this thread or the TWRP thread.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] :
and what i can do now

i cant found a easy way im beginning i sreach in google and xda but its hard to me

give me the correct step whts i can do now

ps i dont speak english just i try :D
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Just look at the first page :D
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] :
if you mean

flash the OEM binary to oem_a and oem_b

i dont understand it
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
i didn't wrote that.

Just follow the instructions part :)

https://xdaforums.com/xperia-xz2/development/aosp-aosp-8-1-h8266-t3843269/page1
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] :
No instructions to flash twrp in this thread

Now i want just flashing twrp in stock fom not aosp rom this is my big problem twrp?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You never looked there? :P

https://xdaforums.com/xperia-xz2/development
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] :
so finally its work the probleme is i wait 5min i think its boot quickly like others phones

now twrp is installed but stock in sony logo wht i can flash to boot the phone
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Please ask twrp problems in the twrp thread and i hardly recommend to follow the FAQ and instructions to get success. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] :
ok thnks all is ok now

are you test the new magisk 19.3 it give me bootloop just 18.1 work
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Just flash the magisk 19.3 uninstaller, reinstall 18.1 and wait for 19.4, which should work again. :)

And happy to hear, that it works! :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
07.09.2019
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] :
uninstaller.zip give me error i reflash the stock rom again and install 18.1:good:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Did you use the matching uninstaller?

And you don't need to reflash the entire stock rom, just put the boot.img file and the newflasher into one folder and execute newflasher :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] :
i dont now but i flashed the file in original thread magistk latest uninstaller

ah ok thats great to flash just boot img with newflasher

and where i can find the boot.img to flash

there is no boot.img in folder newflasher
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
weird. it should work if flashed 19.3 before.

Woops. Sorry, I did mean boot.sin.

You can make boot.img by executing UnSIN.exe from XDA.

But you don't need it.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] :
ok thnks sir
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] :
Any news or fix for sound crispy in xz3
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Please follow this issue ticket:)

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

And until it got fixed, please don't use max volume.

75% should be your limit for now.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] :
Ok sir

And what about ota update in this rom

---------- Post added at 06:45 PM ---------- Previous post was at 06:44 PM ----------

And 75% its equal to 100% in stock
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Don't know if SonyAOSP will ever get OTA.

It is only from a small group of SODP members to make an AOSP ROM.

OmniROM will of course get OTA after becoming official. It has already the server infrastructure, the build servers, etc. LIke LineageOS.

That's maybe the cause for the volume issues. Or the hardware initialization is not 100% like stock.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
I hope that happends the near future. It would make the Installation process easier when we would have only one zip to flash in twrp.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Yeah, but first, we need the better camera (which comes).

And the custom roms, must be bootable on slot B, too.

Either it is a bootloader bug which may get fixed with Q (like the fastboot boot twrp bug, i got a workaround for) or we achieve to fix/workaround it in the open source code.

Mainly after the Slot B bug got solved, the ROM should be accepted by the official OmniROM team.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
I had the same issue with the uninstaller.

I did roughly the same:

- fastboot restart-bootloader

- fastboot flash boot boot.img

- fastboot boot twrp.img

- install magisk 18.1 again

It worked.

Do you know what's the issue with 19.3 ?

---

Also I tried to install Bromite WebView (to get rid of Chromium WebView, for privacy reasons), I couldn't do it with this app https://f-droid.org/en/packages/de.j4velin.systemappmover/ (it can mount /system, with some research I understood that this can only be done in debugging builds, correct ?). Then I tried the Magisk module (this one: https://invidio.us/watch?v=Bpz4TJcNkpw&hl=fr&local=true&autoplay=0&subtitles=,,) but it doesn't seem to work well (maybe because of Magisk 18.1 ?), I had a boot loop.

Flashing again boot.img solved the issue.

---

That's a very cool piece of news :victory:

---

For the camera, a quick feedback: I tried Open Camera versus AOSP Camera app:

- AOSP: cropped image, focus fails most of the time (a bit too close focus). Colors seems barely ok, image sharpness is low/average.

- Open Camera: non cropped image, laggy focus (excellent focus very shortly, then defocus and focus again, correctly) with some fails (a bit too short too), colors are quite bad, image sharpness is too high. Image saving is quite long, several seconds.

I can provide a few pictures to show the difference (from both apps, another phone, and a camera) if you want :)

---

What do you mean ?

We could install 2 operating systems ? (a testing one + daily driver one ?) That would be neat :)

(how can we do this ?)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Newer Android phones are dual partition devices

So the mirror can get a newer firmware why you all use the Phone

A fast restart will switch the slots.

Dual boot isn't possible, they share the same userdata.

These camera issues are adressed.

Unfortunately we get an update this month, but only for kernel 4.14.

Kernel 4.9 is feature frozen and only receives fixes and security updates.

4.14 is too new to get used as daily driver.

So it will take some time until we can use it and the new OEM blobs.

Hmmm, perfect month for by development break for exams.

No September aosp/stock update so far, all focus on Android 10/Q(uenns Cake) fixes. :D
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
Even a dual boot using the same userdata ? (I guess it's not possible ?)

Thanks for the information regarding the camera :)

I'll wait calmly ;)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
Any idea about BromiteWebview install ?

Should I wait for magisk 19.4 to try the magisk module, or is it likely to be an issue with the ROM / something else ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
Try it with the Nanodroid WebView Package. Flash the zip in twrp.

At least on my xz2 with MartinX3's OmniROM that method worked always in the past by me.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
Oh thank you, I just discovered it, that sounds like a good way to install microG too if I want to.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
Yes microG is very good thing to get apps working which requires the Google Play Services.

It can't offer all the functionalities from the official Google Play Service but that is no wonder because the whole MicroG has only one dev.

Nevertheless it's a great project in my opinion.

If you want to install microG, too i would suggest you to use the OmniROM from MartinX3. It has the needed signature spoofing out of the box while Sony AOSP must be patched as far as i know.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
But be aware that in-app payments doesn't work, because it would be a license violation by google, if I understand it correctly.

That's the only thing preventing me from using microG.

(PS: I like aurora as play store replacement.)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
Well i didn't have any problems with the payments in the past.

The important thing is that you use the patched play store from Nanodroid when using custom roms. Then purchases should be working.

Look at page 716/717 from Nanodroid thread.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
yeah, I did read, too, that a manipulated play store works, too.

But do I need to update it by hand all the time? Or has it an auto updater?

(Sad that I can't get rid completely from the closed source google stuff then).
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
I don't care about in-app payment (I'm not planning to use it ^^) so it's fine for me :)

+1 for Aurora Store, and not only because it includes Exodus Privacy reports about trackers and permissions.

That's a very good thing, it will be even easier :)

I don't need it so far, but I'll see in the future if I need to ;)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
Should have a auto updater. But you can update all microG stuff via the Nanodroids F-Droid Repo (including the patched Play Store).

Would be the better solution i guess because i don't know which version of the play store will be installed when using autoupdater.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
Nanodroid install (as a Magisk module, using TWRP) requires Magisk >19.0 :(
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Perfect, 19.4 works fine on all xperias (and introduces Q support). :P
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
Oh, there's a new version ?

I only saw 19.3… can I already install it ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
either download it from xda and flash it in twrp, or switch your magisk app to the beta channel, refresh it, install 19.4 ( 4 4 4 4 4 4 4 4) and then switch it back to the normal release channel, since you should stay on stable releases.

Restart the device and bonga bonga gracias bueno 19.4 party.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
Oh yeah, that's for the information :)

I tried with the beta channel… Stuck on sony logo :(

(and it was v194000[some 0 I don't remember], not 194444…)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
19.4? or 19.3 by accident? I head from some that 19.4 works. :(
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
For sure it was 19.4.

I'll try again with TWRP.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
yeah, please try to flash 19.4 via twrp to be sure.

After that you can use the twrp 19.4 uninstaller and flash 18.1. :)

(19.0 was the last version working before but caused a battery drain by magisk hide if I remember correctly).

PS: I use 19.4 on OmniROM (SODP rom, too) and used 18.1, 19.0, 19.1, 19.2, 19.3 (the 19.1 2 3 worked only as initial upgrade from 18.1)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
When it doesn't work I install 18.1 again, it worked before (with the failed 19.3 install).

I didn't know they were an uninstaller. It is an issue if I reinstall a previous version without uninstalling it ?

I'll try again with TWRP.

---------- Post added at 09:26 PM ---------- Previous post was at 09:14 PM ----------

Ok I did try again with TWRP.

Stuck on Sony logo again :(

Is it possible to install 19.1 and disable Magisk Hide, to save the battery ?

By the way, TWRP isn't installed as a recovery, is it expected ? I did follow the steps to install it, it didn't work.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
That's not intended to happen.

You need to use the "install ramdisk" button in twrp to install twrp as recovery on your phone.

19.0 is the one with battery drain.

The magisk uninstaller : https://lmgtfy.com/?q=magisk+uninstaller&iie=1
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
I did. It didn't work, apparently.

Is it possible to disable Magisk Hide for 19.0 ?

Thx for the link. Do I need the uninstaller if "just" installing again works ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Weird

Yes, in the settings.

Execute uninstaller, maybe you need to boot once, then apply magisk 18.1/19.0 in twrp
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] rinigus:
SailfishOS

I am considering to port Sailfish OS to XZ2. Its one of the possible options and please don't consider it as any kind of announcement. However, before deciding on which device to take on next on SFOS, I am collecting some information regarding XZ2 state with the respect of AOSP9.

For background: Sailfish OS on Sony devices is ported officially by Jolla. So far, they have worked on X, XA2, and now on Xperia 10. For Xperia 10, they use AOSP9 as a base and it is expected that the similar approach would work for XZ2 (and others in open devices program) using https://sailfishos.org/wiki/Sailfish_X_Xperia_Android_9_Build_and_Flash as guidelines. Porting on the basis of Android releases takes time and we are getting to the stage where version 9 can be used as a base. It will probably take ~1 year or more before we can base ports on version 10, as based on following the progress.

Now for my questions:

As far as I understood, the work is ongoing with AOSP9 camera as it is a new framework for cameras (https://github.com/sonyxperiadev/bug_tracker/issues/462#issuecomment-533575998). As mentioned by MartinX3, some camera fixes have landed, but to 4.14 kernel only with 4.9 in feature freeze. Hence the question: can we expect these fixes to land in AOSP9 as well? If yes, would that be using kernel 4.14 or 4.9? Or I could already use 4.14/AOSP9 combo with the fixes? Has anyone tried it?

From issues, I could see sound clipping that is considered critical worked upon (https://github.com/sonyxperiadev/bug_tracker/issues/411). Anything else which is not working as it should?

I am aware of removal of functionality while unlocking. In context of Sailfish, I presume it will mainly affect camera. Or am I missing something?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
The current camera implementation (camX hal by Qualcomm) is very basic and a gcam can somehow workaround the issues.

(Example photos are in this thread).

Since 4.9 reached feature freeze further camera upgrades getting implemented only in 4.14 and its new OEM blobs (October and newer).

4.9 works with Q

And 4.14 should work with P

The first kernel development was made with P.

But 4.14 should be seen as stable later (it may take up to OEMv5).

Since I plan to release Q with 4.9 here, the changes to switch to the 4.14 kernel should be similar. (I put a to do entry in my github android bug tracker)

PS:

I missed more sailfish ports, so you made me happy.

In theory every sodp xperia could get a sailfish port.