yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
MGC_6.2.030_RazerPhone2_V3_plus.apk Thank you [MENTION=5594246]goust[/MENTION]er4 for the tested GCAM with SlowMotion feature
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FcukBloat:
so just out of curiosity for my old phone is camera now working 100% and stable in aosp and with gcam? :o quality better than stock?:confused:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Camera is like in OEMv8 (see the uploaded camera photos) :)

OEMv9 got no camera updates because the development was too slow for a new release.

GCAM raises the quality over the buildin camera. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TheInfiniteAndroid:
Any support for XZ2 Premium?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Sadly someone would need to build custom roms with the xz2p stock firmware.

The XZ2P is not supported by SODP because the camera has a closed source component (BIONZ/AUBE) they aren't allowed to use.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] mirhl:
Or you could adapt IIRC myself5 and modpunk magic to get stock camera on aosp
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Qwertymo:
I can't seem to get twrp booting on the custom rom what do I have to do because I need the gapps and magisk
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
How do you start it?

And do you use the one matching the same security level of the SonyAOSP rom (march)? And the custom rom version?

And what's the symptom?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
It happens rarely and at the moment I get it only with the german O² provider, but it can be, that the screen become black for 3 seconds and you see your lockscreen again.

Or maybe with magisk 19.3 installed it may loop until you force restart the phone.

It doesn't do any damage and will get fixed with kernel 4.9.181.

But as I said, at the moment it seems to only get triggered with the german O² provider and very rarely.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
16.06.2019

Still uploading
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] koko.fr:
I can't find instructions for this patch. How does it work? Should I execute this on my linux or upload on SD card ? I'm using XZ2c dual sim H8324
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Which thing is missing in the Installation instructions on the first page?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] koko.fr:
I used newFlasher to get SW 52.0.A.8.50

Then I flashed with fastboot all partitions for XZ2c single sim

But I don't see what to do with sony-dualsim-patcher-v4alpha.zip

Is it too obvious?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
52.0.A.8.83 is newer.

Yeah, I put this part in the TWRP section of the instructions. :silly::silly::silly:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
As the twrp sections indicates:

Flash the zip via twrp:)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] koko.fr:
You mean this instruction ?

I do not see what I have to do concretely on the step 2.1. How the patch works :

- where I can find /system/build.prop ?

- where I should put sony-dualsim-patcher-v4alpha.zip ?

- "Reboot into SYSTEM" means recovery mode ?

Sorry I unterstand that it is obvious to you, but I'm not used to flash my phone and I can't find better step by step guide. I almost get throw it but on my first boot my touchscreen doesn't work
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Just install the zip in twrp :)

Oh, no touch? Xperia xz2c?

Oh nooo

Please add your logs there

https://github.com/sonyxperiadev/bug_tracker/issues/351
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Even if OEMv10 is out, these PR's will block the release until they get merged

https://github.com/sonyxperiadev/kernel/pull/2014 (crash fix on specific mobile providers)

https://github.com/sonyxperiadev/kernel/pull/2016 (performance boost by 67% due to backport from kernel 5.2)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] koko.fr:
Already did, I'm kostya-fr on GitHub.

I followed the followinf steps :

1. Newflasher the Official Firmware - OK

2. Boot system once - OK

3. adb reboot bootloader (DO NOT use hardware buttons !!! ) - OK

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

fastboot flash boot boot.img

fastboot flash dtbo dtbo.img

fastboot flash system system.img

fastboot flash vendor vendor.img

fastboot flash oem SW_binaries_for_Xperia_Android_9.0_2.3.2_v9_tama.img

fastboot flash userdata userdata.img

fastboot reboot

4. Boot system once AGAIN !!! - OK, but touch screen doesn't work

5. adb reboot bootloader (DO NOT use hardware buttons !!! ) - OK

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

fastboot boot twrp-xz2c.img
Sending 'boot.img' (34288 KB) OKAY [ 0.736s]
Booting OKAY [ 5.590s]
Finished. Total time: 6.387s

Screen show a bootloader unlocked logo and then black screen and led turns blue, and nothing happen

s ... how can I access TWRP?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I would wait until this weird touch problem got fixed.

I mean TWRP touch wouldn't work anyway.

Does the touch in my stock TWRP work?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TunerCP:
So they still didn't update the camera?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I don't know.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] koko.fr:
I tried 2019-06-10_15-44-48_sony_custom_rom_twrp_xz2c wirh 2019-06-11_11-39-39_omni_rom_xz2c_SS.tar and touch didn't work in TWRP.

It's annoying issue, like stuck on 99% of Windows copy :mad:

I guess, I will wait for next OEM :silly:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
The clearpad drivers should be part of the sodp kernel. :)

I ask the team again, maybe I can speed up things.... :(
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MDLB:
I got AOSP r40 flashed over the firmware v52.0.A.8.83_R4B, and installed 2019-06-10_15-44-46_sony_custom_rom_twrp_xz2.tar

The Magisk.v19.3.zip installs and works perfectly.

AOSP r40 works like a charm, except the following problems:

1. Camera AutoFocus

2. Speaker sound-clipping (volume under 15 is OK)

3. Weak mobile signal
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
Is it possible to install MicroG with those AOSP builds ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
On OmniROM without problems because it supports signature spoofing out of the box. I'm at the OmniROM build from MartinX3 and microG is installed on my phone.

On the Sony AOSP (means this rom in this thread) i don't know. I believe Sony AOSP doesn't support signature spoofing out of the box. So it depends on the microG patcher in the NanoDroid zip.

When i'm remember right the patcher should work when this rom is deodexed.

TLDR: OmniROM builds yes, on Sony AOSP test it with the patcher.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] tainhao:
I have installed your Rom (with v9 OEM），installed gapp，magisk19.3，I'm use xz2 dual,boot to system success，but i find

1. cant login google(or any other account,like WeChat I'm in China)，when i put password then confirm，the screen turn to black and nothing happen, only use home button can go back ,

2.bad signal （I'm in China）

3.use gcam take pictures success,but the. Picture was Excessive exposure ,(i dont know how to say ,but its too bright )?,do you know i mean?

Besides that the rom is very good, thank you.

Sorry for my bad English ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
1. Because China

2. Because China

3. Because C...am is still under development :silly:

And thank you , you're welcome :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MDLB:
Hi, dude

1. You should hear about VPN ? Actually VPN or SSH is very much popular and neccessary to use Google services in China Mainland;

2. Stock firmware (India, China mainland or Hong Kong SAR of China, I didn't try Taiwan of China) provides stronger signal;

3. I use GCam too, but no excessive exposure, only AutoFocus failure;

PS, I think your English is pretty good:)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] tainhao:
1.I use VPN，so i can login google in sony stock rom, but in aosp,it will become black screen, I don't know why

2.i will flash stock version of China again, and see if have a good signal,

3.i have no idea what can i do ?, wait you fix that

---------- Post added at 05:42 AM ---------- Previous post was at 05:40 AM ----------

About bad singal , maybe is the problem of OEM v9?i don't know ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MDLB:
AOSP OEMv9 signal is wired on my case, too. The signal indication on the notification area often flucurates from full to zero (4G LTE)

OEMv8 had no signal issues for me.

Google services work perfectly on my AOSP r40 (with OEMv9) via VPN.

PS. I've visted the Humboldt-Universität zu Berlin in 2007.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Did you install the June stock firmware Firmware first and Booted it once?

There is no baseband driver in the OEM.

It gets flashed into your mobile network hardware on every first boot of a new stock firmware (and then restarts your device).
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
1. Hmm, i would try to download a newer version of gapps and try the pico version :S

The STOCK package version should be identical with the stock firmware version.

2. Yeah, the baseband is in the stock firmware and only gets updated by the region specific stock firmware

3. Yeah, just wait. I hope OEMv10 has an update for the camera. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MDLB:
OEM blob is essential for the mobile telecommunication, that's what I've learned from your installation-tutorial for a long time. Thank you very much !

First of all, I did newflash the indian stock firmware H8296_Customized IN_1314-9934_52.0.A.8.83_R4B, then booted once before flashing AOSP r40 images via fastboot.

Signal is usable, but not stable enough (signal-off sometimes happened), not comparable to OEMv8.

It seems that the OEMv9 is not set to be always ready to repeat the base-station search, especially when the mobile is on the move (e.g, after getting out of underground metro-line).
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
So OEMv8 makes it better at them moment? And the stock firmware too?

Or is it maybe coincidence and your provider has troubles?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MDLB:
The signal of 52.0.A.8.50 with OEMv8 is better than that of 8.83 with OEMv9, all compared under the same condition.

Provider is undoubtfully good.

In most static scenes (indoor, for example), signal is fine. Yet while moving, signal often lost in a sudden. OEMv8 or stock-firmware(8.50 and 8.83) never produced that issue.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
and whats about OEMv8 with 8.83?

are there useful infos in the logcat -b radio or dmesg?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MDLB:
Please accept my sincere apologies for my mistake,

Signal issues were not of software problem at all, my cellphone ran out of credit before I realized and recharged .

However, the GCam/OpenCamera presents wrong colors with incorrect white-balance (too much cold-temperature under “auto/ fluorescent/ tungsten" mode) so that I have to switch to "cloudy" mode under strong sunshine, unfortunately the side-effect is that the colors becomes too saturated.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Accepted, happy to know that there is no OEMv9 signal degrades :)

Yeah, let's see what OEMv10 will do

The gcam should compensate the camera issues
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
OEMv10 delayed due to Xperia 1 preparations.

Camera development still continues.

The xperia maple camera development progress was slower and now it has good pictures.

(If someone may be scared about the delay and the "under construction" label of the camera). :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] zhka:
What version you're using? I'm currently on latest beta from Arnova (Gcam_6.2.030_Advanced_V2.2beta5.190704.1015.apk ) with working 17mp resolution.

Try, maybe it will help. Here my settings (but first you need to enable advanced mode in "About" section ):
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MDLB:
Gcam_6.2.030_Advanced_V2.1.190614.0200, I'm about to follow your recommendation soon.

thank you very much for your help !
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
Where did you find it ?

Which phone are you using ? (I have a XZ2C)

Is OmniROM working well ?

MartinX3 do you have any information ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I use OmniROM since April and I'm happy.

Just the camera is work in progress.

Ummmhh, I never tried microG with the ROMs I published for the xperia tama platform.

But I am sure if it is not supported by default, a signature spoof patcher should add it.

If not, I could look into your bug report and maybe it is fixable.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
To be honest, I'm reluctant to test a microG installation that hasn't been tested before, and potentially break something...

And I wouldn't want to reinstall the phone several times to fix any problem with MicroG.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
With which phone ?

I didn't really understand by reading this topic: right now, the camera is working, but the quality is not (always ?) that good, correct ?

What is a a signature spoof patcher ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
With the XZ2/akari

The camera is developed from scratch, at the moment we wait for OEMv10 for the next closed source hardware driver update.

The SODP camera doesn't contain the stock DRM and always supported RAW for as example gcam applications in the past.

(Not everyone at Sony likes the DRM thing and big company's can contain departments following different targets, hihi)

The progress is a bit slow, because Sony doesn't earn money with their open source work. The team of paid Sony employees is not big.

About signature spoofing

https://github.com/microg/android_packages_apps_GmsCore/wiki/Signature-Spoofing

You can use xposed as magisk module and the signature spoofer as xposed module.

Yes, that sounds like a snake trail.

And I am not sure if that works, because I'm asking myself why I can't have directly a magisk module to patch the signature spoofing.

But also I would need to read into the technical stuff to know why we need to do it this way.

Ah, and by reading the link I gave you I save that it should be possible to include it in every ROM by default via 2 linked commits (making a signature spoofing switch in the developer settings)

But I don't know if I would need to adapt the source code or if it just works.

If more people mentioning that they want it, I could try to integrate it.

I just don't know if it would bother the majority of users. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
Thanks for your answers.

Ok, I have a XZ2C, any idea for this one ?

But it's working (I suppose worse than the original one with the DRM*?), right ?

Ok thanks, good to know :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
The entire tama firmware I provide is almost identical except a few differences :)

And for the signature patching, it should be compatible everywhere since every ROM is based on AOSP :D

Yea, the camera works and with a gcam app (needs google framework to run) it raises the photo quality. I did upload a few photos on the first page :)

But in the end the quality should be similar or better. It just takes its time.

Happy patching :D
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
Oh, too bad, I'd prefer an app without any google stuff ^^

(and I'm not sure yet about MicroG, and if gcam is working well with it)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You could try OpenCamera too

It's an open source camera app with much more settings than the buildin vanilla camera app. :)

Primary we have a focus problem.

I added a workaround b kholk into the kernel, but of course it's not perfect.

OpenCamer as example provides a "continuous focus" mode.

And yes, I don't know if microG and gcam are working together.

Last time I tried microG in 2017 or 2016.

And moved back to the normal GAPPS because the inapp payments and the paid apps wasn't available I bought before. :(
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
With NanoDroid the inapp payment and paid apps should be accessible because it uses a patched play store which allow payments (of course under the condition that the right google account is in use).

I use MicroG since surely more than a year and as far as i know basic stuff works (GCM/FCM, Play Store, App payments and Maps API which are at rewriting atm).

And just to start and use Apps which deny the start when the Play Services is mssing MicroG is perfect.

But it could be that not all functions work.

[MENTION=9834068]Lp26[/MENTION]

I think by gcam it could happen because i guess it uses many google apis. Mayby OpenCamera from f-droid is a option? I don't think it needs google stuff.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] levone1:
I've been using MicroG files from [MENTION=5627087]ale5000[/MENTION] on stock rom as long as I can remember (I don't even remember the last time I signed into an official Google account), and purchases, and app history, etc

working fine... I don't flash the installer, but manually delete/replace files...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
What do you mean ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] levone1:
Delete Phonesky, Gplay Services, and GMS apks from /system/priv-app, (backup if you want), and copy the 3 MicroG apks to /system/priv-app, and copy the MicroG files from the installer to /system/etc, overwriting the stock maps xml and jar. I haven't gotten the installer to work on Pie, but this method works... (note that I haven't tried the newest version - 1.0.3.4 - which was just released...)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
Ok, thanks for your feedback :)

I might give it a try.

That's something doable after installing the system, right ?

(you need to be root ?)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] levone1:
Yes, need root.

You need to delete stock apks first, then reboot. You will get continual messages about Gplay Services crash, etc, but keep dismissing them and go to app info and uninstall Play Store and Play Services, (they will still show as installed, but the uninstall button will be available). Then manual copy all MicroG files to priv-app and etc and reboot.

Of course you need signature spoofing enabled, and nlp location backends installed.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
Even if (as far as I understand) [MENTION=6031898]MartinX3[/MENTION] build doesn't contain Gapps by default ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] levone1:
I haven't tested on custom rom with Pie, only stock, (sorry, I was trying to make that clear from the start...)

I would guess that on a custom rom without Gapps that the installer would work fine. I was just thinking that if you were having trouble getting MicroG to work properly, maybe try a different install method, (like ale5000's files instead of NanaoDroid) since it has been working fine for me...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
You mean that you took the stock phone, with sony ROM, rooted it and removed all google stuff ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] levone1:
It works fine to just remove the 3 priv-app folders I mentioned, reboot, "uninstall" the 2 Google Apps from Settings, (even though you already deleted them), then copy all needed MicroG files to proper directories in /system, overwriting the 2 stock ones, (maps jar in framework and maps xml in permissions).

Reboot and install location backends, and MicroG will be functioning normally.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Yes, I removed GAPPS and added chromium.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
Do you still have the Sony interface and softwares ?

Then that would means that I don't need to install a custom ROM to remove all google stuff (and proprietary software) from my phone, right ? (that's awesome !)

[MENTION=6031898]MartinX3[/MENTION] thanks for the confirmation :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] levone1:
Nothing else is changed besides those files.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
Which means that you keep Sony UI and their software, right ? (sorry but I want to be sure I understand correctly)

And you keep Sony DRM and so on ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] levone1:
drm is gone with bootloader unlock, which you need to use root functions.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
But you can still use the camera ? (Does it work well ?)

I guess OEM improvements that [MENTION=6031898]MartinX3[/MENTION] is putting in the ROM are not available ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
That's the custom ROMs, not the stock ROM nod existence.

And yes, unlocked in PIE doesn't kill the cam.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
Ok, that's clearer for me now.*Thanks :)

I suppose that if I unlock it, but later I want to switch to the custom ROM (when the stock one is outdated), it's doable ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Unlocking = userdata erasing & freedom to do whatever you want :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
That's great !

Then I think I'll start with this method, it seems easier (and less risky ?).

I'll have to check again the several steps when I'll have time to do it.

(@levone1 I might ask you a few more questions at that time, is that ok for you ?)

Thanks for you help :) :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] levone1:
Let me know if you want to try MicroG on stock. Services jar patching is required, which means deodexing, which is not the simplest thing on new Pie fw, (Super R's kitchen is the most trusty option I know of), but I have deodexed framework folder for latest fw, 107, and patched services jar if you want.

I'm currently running MicroG on latest stock, while waiting for new eXisteZ...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Lp26:
I've to say that I don't understand at all :confused: ?

I think I'm going to give it a try :)

What does that means ?

What is deodexing ?

What is Super R ?

You mean I could reuse those…*files (?) ?

What is it ?