yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TPlatt:
Do I need to delete any files from the firmware folders before going through with newflasher?

---------- Post added at 12:31 PM ---------- Previous post was at 12:27 PM ----------

here is my log from newflasher.

newflasher.exe v20 by Munjeni @ 2017/2019

--------------------------------------------------------

Determining available free space by GetDiskFreeSpaceEx:

Available space to caller = 212936 MB

Total space on current drive = 282994 MB

Free space on drive = 212936 MB

Optional step! Type 'y' and press ENTER if you need GordonGate flash driver, or type 'n' to skip.

This creates GordonGate.7z archive in the same dir with newflasher.exe!

n

Device path: \\?\usb#vid_0fce&pid_b00b#5&4547346&0&2#{a5dcbf10-6530-11d2-901f-00c04fb951ed}

Class Description: Sony sa0118

Device Instance Id: USB\VID_0FCE&PID_B00B\5&4547346&0&2

Optional step! Type 'y' and press ENTER if you want dump trim area, or type 'n' and press ENTER to skip.

Do in mind this doesn't dump drm key since sake authentifiction is need for that!

n

Optional step! Type 'y' and press ENTER if you need to flash bootloader,bluetooth,dsp,modem,rdimage to booth a,b slots, or type 'n' to skip.

By default it is NOT flashed to booth slots, do on your own risk!

n

ERROR: GetOverLapped_out_Result: failed with error code 1 as follows:

Incorrect function.

- Error write! Need nBytes: 0x18 but done: 0x0

nBytes[0x0]:

- Error writing command getvar:max-download-size!

End. You can disconnect your device when you close newflasher.exe

Press any key to continue . . .
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
That sounds that either your usb slot, usb cable,computer or device slot making problems.

I would try different ones and look where the hardware problem is.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TPlatt:
Do I delete the .ta files in firmware folder or no?

---------- Post added at 02:05 PM ---------- Previous post was at 01:35 PM ----------

At this time I am flashing lastest firmware to unbrick phone. Once I get to the two step, how is it written??

Fastboot boot twrp

Then what do I type because phone will boot into recovery mode, however it's just a black illuminated screen.

---------- Post added at 02:08 PM ---------- Previous post was at 02:05 PM ----------

So I can't just type a fastboot command, because it will say waiting on available device, if I try to

"fastboot reboot bootloader "

Command you mentioned earlier
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You don't need to delete the .ta files.

Yes, just flash the newest stock and boot it once to update you baseband.

Then flash the 9.0 custom ROM you wanted and then for the SODP TWRP the v10 vendor/boot and go into fastboot mode with adb or fastboot and boot the v8 TWRP, to get your touch.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TPlatt:
I'm not really using a custom rom. I'm fine with stock room. Just need it rooted with magisk bad have twrp for recovery.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Oh, the v10/8 stuff was for the 9.0 custom rom.

Please ignore them for stock 9.0 and just use the stock 9.0 TWRP with the correct firmware version in its zip file name :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TPlatt:
Ok. So which files do I need to download from because I'm using firmware:

H8314_Customized UK_1313-5398_52.1.A.0.672_R3C
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
The last firmware with TWRP support is the .618

I need to wait for the next sony kernel source release to create a TWRP with working decryption on newer firmwares.

And the next time I've got some free time I will create an universal TWRP without decryption which always works.

To root you could extract the boot.sin from the firmware folder with UnSin.exe from XDA and execute the Magisk Manager App bootimage patcher on it, then flash it via fastboot and deactivate the vbmeta.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TPlatt:
So I can just download a different firmware from another country to get by as long as it matches what you have in file name?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Yes, that's true.

Just VoLTE and VoWIFI may stop work depending on your provider and region.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TPlatt:
I will just be using device on WiFi network. So that should be good correct?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
That's correct.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TPlatt:
Downloading older firmware from Canada now. Will try and update. Also for camera fix could you message me on private messages about that. Just need to know when and how to use those files as well. Thanks.

---------- Post added at 03:44 PM ---------- Previous post was at 03:43 PM ----------

And also what do I do with the permissive zip folder under the twrp files I unzipped.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Since 10.0 almost everything, including the camera, works out of the box. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TPlatt:
Martin, you are awesome. Thank you. I got magisk root. But no twrp for recovery and no camera, still black screen.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You're welcome :)

What?

On a full wiped phone no camera in 10.0?

Hmmm, you did unlock in on 8.0?

And option would be to boot the phone with the drmfix on 8.0 once and use the camera there, before you upgrade again to 10.0

(Fullwipes needed)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Harry500:
Missing folder in TWRP Backups

Hello,

I needed a single file out of one of my TWRP Backups. I checked the recovery.log file and noticed that the folder /data/misc/keystore is missing, so this folder has not been included in the backups. I am using the TWRP version 3.2.3 for Android 8. Is this a known problem in this version? Is it a bug and if so, is there a newer version of TWRP?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I don't know

I only actively support the newest 3.4 tarp for stock/sodp 10 ROMs

For backups I use titanium backup or migrate.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Harry500:
This is what I tried to do. After restore the app with Titanium Backup the app crashes at startup. This is because a special keyfile from the folder mentioned above is missing because Titanium Backup does not include this file in its backups. This is why I just try to restore it from a TWRP backup. What do you mean by "newest 3.4 tarp for stock/sodp 10 ROMs"? You created this modified version for XZ2 with Android 8? So you mean you don't update it anymore?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Yes

At the moment the supported release is twrp 10

But if I finished my work unifying the two twrp versions it probably works on any android version if the keymaster doesn't prevent it using twrp on an older android version decrypting the userdata.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Harry500:
Ok, thank you. But shouldn't there currently be three TWRP-versions? One for Android 8, one for 9 and one for 10? Where should I have an eye on to get the information if the TWRP-migration was successful? Will there be a post somewhere or is there another way to get informed?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Yes but I only support the newest android version

If previous ones work it's a nice side effect

Please stay tuned In the twrp 10 thread :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Harry500:
Ok, so I suppose I would have to test this on my own? If so, could it lead to damage or data loss of any kind if the TWRP version is not compatible with the Android 8 ROM you provided? Or could I just re-flash with the provided version 3.2.3?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You don't need to flash it to test

"fastboot boot twrp.img" is enough

And if it works you can follow the instructions to install it on the phone :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] avaie:
I tried to restore from a twrp backup and it resorted to a bootloop. What is to be wiped and what is to be restored? Dalvik, System and Data was wiped and Boot, System and Data was restored. This is Android 9 installed on H8216.

I wrote on the other thread - the duplicate is unintended.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ssdnvv:
I unfortunately didn't read carefully enough (even though it is clearly stated on both the OP and the lineage how to page :() and unlocked the bootloader before updating it to the latest android. The phone is still on 8.0

So question is - what are the implications of that mistake? My goals were to install TWRP, LineageOS and Magisk... - can I still reach this goal?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Yes

You just killed the DRM for the stock Rom

But if you ignore the stock Rom, youst flash and Boot the newest stock 10 until you reach the desktop apps.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ssdnvv:
Thanks alot :o- yes, I don't care about stock ROM. Anyway thanks for answering - seems I posted in the wrong thread and will aks my other questions in your maintained thread.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] kira770927:
Boot hang on Sony logo

Hello Sir

I have a question after update TWRP . I could following steps to install TWRP on my XZ2

Fastboot devices (check device ready)

fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img (flash file without secure check)

fastboot flash boot twrp.img (flash boot img to phone)

fastboot boot twrp.img (boot to twrp)

Install recovery ramdisk twrp.img (install)

I think above all steps are right ? if so , I would want to flash lineage-17.1 or PIXEL EXPERIENCE ROM via TWRP install mode

But after I install it finish , I would stuck SONY logo (if use lineage-17.1 would present my system data is broken)

Could you do me a favor that help me to check which steps is not correct ?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] levone1:
Having touch screen issues on Xz2 compact. Touch works fine with 'fastboot boot' but no touch when installed to ramdisk. Test version links are dead...

Thanks
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Please use the TWRP for Android 10

This one isn't supported anymore.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] tonev:
I swiped the dust out of my xz2 and decided to start tinker with it again. I installed the latest firmware but when i flash vbmeta i get in to bootloop :/ I can start the recovery but after that nothing. I then have to restore the phone using emma and everything is fine with the phone. I just want to figure out what I am doing wrong.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
This TWRP is End Of Life

Please use the working one in the TWRP 10 thread for Android 10 & 11
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] AnotherSeeker:
Greetings. This is amazing work.

There's a little problem I can't wrap my head around.

(XZ2c H8314, Android 8, bootloader unlocked on Android 10)

- Bootloop occurs if I input command:

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

- Omitting it & following the rest of instructions works

- Upon first firmware boot, all's good except the camera preview (DRM keys missing)?

- XperiFix executes, however, the camera preview issues etc. remain

- (Is XperiFix not working bc. of lacking vbmeta command?)

Tried Flashing:

- permissive.zip (SELinux switch)

- [Pie]Camera_fix_by_MartinX3 & [Pie][Magisk]Camera_fix_by_Serajr

- Different Magisk versions (17.1, 18.1, 19.3)

- no-verity-opt-encrypt-6.1.zip (desperate attempt)

Device's a replacement for the broken same-model phone. It all worked there (hardware issues emerged).

Staying on Android 8/w full functionality would be a dream.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Aslam_Hossain:
xperifix Software paid ?

xperifix Software Link plz

whiteout xperifix Software How to fix Black camera?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
By using stock 10 or a custom rom.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Aslam_Hossain:
stock 10 or a custom rom i need sir Firmware link

boot twrp.img & Root File Android 10

permissive.zip File link

fix Black camera file plz

Sir Can you upload me all the files in one folder?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nasko_spasko:
Nope.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Then this "old" kernel is secure and won't kill your display. :)

I will compile a new one, after they told me, that the bad bug got fixed.

There got many new stuff implemented. :laugh:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
28.09.2018
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] smiley.raver:
Would this be a possible vulnerability to be used to root and twrp?

https://android.stackexchange.com/q...comm-embms-keeps-popping-up-every-few-minutes
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Hmm.

I don't think we've got it.

There is the tag Android 5.1 and the cvs is from 2016.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] smiley.raver:
No worries I just came across it while looking for something else. So no harm in asking :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] M-Rom:
touch works fix

initrd/sbin/permissive.sh

add to

insmod /sbin/clearpad_rmi_dev.ko

insmod /sbin/clearpad_core.ko

insmod /sbin/clearpad_i2c.ko

echo 1 > /sys/devices/virtual/input/clearpad/post_probe_start

extract

vendor/lib/modules/clearpad_core.ko

vendor/lib/modules/clearpad_i2c.ko

vendor/lib/modules/clearpad_rmi_dev.ko

add files

initrd/sbin/clearpad_core.ko

initrd/sbin/clearpad_i2c.ko

initrd/sbin/clearpad_rmi_dev.ko
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nreuge:
Nobody to test all the new stuff ??? :(
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] richardwia:
Guys：happy to tell you all，Chinese developer [MENTION=6844550]M-Rom[/MENTION] has mad it FOR H8296 with another method，you guys want to use it？

Tap the link：http://bbs.gfan.com/android-9507463-1-1.html

You all can donate for his hard-working in alipay！:cool:

PS：you need unblock the ffirewall and learn Chinese of course！:D
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FcukBloat:
meanwhile i got .51 update, so now guys you can provide us with working twrp, thank you.

:D :D

ps. if someone test m-rom's twrp please share feedbacks!! :o so excited!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nreuge:
Thanks a lot! :D

Are you able to provide a translation ? (because google translator is quite bad...)

Does it only work on H8296 ??
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] richardwia:
Works perfectly, but it's a huge task for translations:crying:

I will help you when I'm free
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Thank you [MENTION=6844550]M-Rom[/MENTION] !

Does this twrp mount the partitions?

Does it include the stock kernel?

If yes, did you modify the Stockkernel somehow?

I would be happy, if it works for the h8296, if you make a pull request on GitHub or be my CoContributor. :laugh:

My device sources from twrp are on GitHub.

And I still need the informations about the block devices I asked in the past, to work on my device sources. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I see no sources and need to make an account and write an answer to see the download link.

Weird.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FartyParty:
Can someone grab the files and upload them?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
And please only one should test it and report the results.

It may brick the device.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] richardwia:
large screenshot ，see what happened？

several Chinese members‘ device works perfectly
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FartyParty:
Can you download the zip for us? I got the download link and everything but gotta install those pesky baidu network apps..

So, do us all a favor and help us out?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FcukBloat:
so please help/share also with others non-chinese users mate! ;) you could make a new thread in general section (considering it is not your work) and if m-rom user agree of course, where you could write for us all steps and all stuff needed, in comprehensive english... ;):fingers-crossed:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FartyParty:
You need a chinese phone number it seems to even be able to download the zip.

It all links to their apps, software which requires chinese account and number.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] richardwia:
Sorry for that, it's the author`s achievement,only thing that I can help is translation:crying:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FcukBloat:
he probably wanted to share the news, what's the problem? if the solution is on a chinese forum, reserved to chinese people, that's not his fault. probably the author is getting some revenues or something else from that forum, hence he won't allow to share the files here... let's see if he will share it with us also, maybe later on, or if we can have at least the translation done to see how the method works.. also it is not clear to me if that is twrp only, or maybe includes also another drm fix, this would explain the secrecy.. ;)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] richardwia:
1.I have told you that is the author's result, I have no rights to share it .

2.It is my rights and freedom to share the link or not .

3.you don't have a Chinese number is not my problem not mine .

4.I have told you I will translate it when I'm free .

5.You can keep your opinion to avoid unhappiness

6.thank you.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FcukBloat:
you should come down first and then be quiet. you need the twrp files? make them yourself. or anyway don't ask others to get it from other forums and share them here. if you want them, ask the author of this work.

you don't trust the author or chinese in general? so why you want their work/twrp?

he didn't force anyone to donate, he said to try that twrp/work, and if happy just donate... for gratitude, you are talking non sense. and you are not fair, if you want other's work without asking the author permission.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] richardwia:
:laugh::laugh::laugh:

You are totally right.ok?

Don't reply me again and I will not reply you anymore

Be your keyboardman !
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FcukBloat:
I have always donated for the work I used on xda, I lost the count of people I donated to, but I don't know if you ever paid a single buck to anyone lol

I am excited and impatient cause I would like root and drmfix in my phone at last, that's why I keep asking. this doesn't mean I won't pay for the drmfix.. I know I have to buy it, and if it works fine I will, even if I think it is a little expensive.. you are acting as the only and real leech actually
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] richardwia:
Yoo bro, thanks:good:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Sounds like scam and personal data collection...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FartyParty:
Exactly. Here's the link that is hidden without an account. I weren't able to make an account on pc as I couldn't do the captcha.

But downloading their app I could see the hidden content without writing a post in the thread.

Which funnily enough is full of spam because people have to post a comment to see hidden content.

https://pan.baidu.com/s/1i7vP2afT_G6Ah06FpAFPXw

The code is ujg6.

The only thing that downloads is their software and there's NO WAY to get the actual thing without either donating as he said or getting help from a chinese user with a chinese number.

Not to mention, no github or anything? Just a zip containing the supposedly twrp files and storms drmfix... Which I guess they didn't pay a license for.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] M-Rom:
Using Flashtool or newflasher flash 51.1.A.11.51

Power shutdown

fastboot flash boot twrp-xz2-2c.img

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

twrp flash boot.zip(You need to make it yourself.) and twrp-installer-xz2-2c-3.2.3.zip

https://mega.nz/#F!dphRQabL!w6_pynFjz1GZ1nAdFpC3fg

I hope I can help. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] richardwia:
Still a scam?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FartyParty:
The thread title mentions XZ2, XZ2 compact and XZ2 Premium.

Does it work on all those 3 devices?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] M-Rom:
xz2p is different. No one has tested it. I don't have xz2p :(.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
XDA is a little bit slow.

The screenshots still giving me 404/410.

It will take some time until I can see them.

Hmm, I am not sure.

It would be nice if someone would test it first and post the results.

Looking, that everything is stable and normal.

That there won't be any hardware damage or new installed apps.

[MENTION=6844550]M-Rom[/MENTION]

It would be nice, if you share you're device sources, like I do since months on GitHub.

Working together make things easier. :p

And sources to compile it on everyones own guarantee trust.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] niaboc79:
Are you serious? How can you talk about people like that?

You are unrespectful and the moderators will take care of you!

Chinese developers are the most productive and the most skilled one, do you know who's Machao44? He's one of the best Sony developer worldwide.

A guys is kindly sharing a link from a respected chinese forum and you treat him like that! BBS Gfan forum have rules and some protection, that's why you must be registered and use captcha.

Please change your way to think.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] niaboc79:
Thanks [MENTION=5479767]machao44[/MENTION], as usual you did a great job ;)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nreuge:
Exactly, that's I was about to post.

Machao44 (M-ROM) is a great rom maker, I've translated and customized (and debloated) his roms on Z5, all the xda Z5 community is beholden for his work and never has any problem with his roms.

This debate must end.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I would also like peace and test results :silly:

I did invest much time into this twrp stuff and started from 0 zero experience.

So it would be nice if we can together complete the device sources, make a installable twrp zip, a bootable (not flashable) twrp IMG file and make it goes official, so it can be build by the twrp build servers.

My device sources link is in the first post.

You can make a pull request or ask for being a contributor to the repository.

Of course I will then update the credits on the first post.

Beside this, I also want to get more experience.

So working together would be really nice.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] niaboc79:
Without your work nothing would have been possible. I'm sure that [MENTION=5479767]machao44[/MENTION] will help you regarding TWRP ;)

I'm going to test asap and let you know ;)