yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] oneheart:
reflash G8142_45.0.A.7.90 and recovery test ，without install any app。Still failed

:angel:

:crying::crying::crying:
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] ze552:
please tell me.

Can use SO-04J(japanes)?
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] FartyParty:
That's not a bug. Right click the driver, update, browse a list, select adb drivers and install.

For me the device manager recognizes the phone however I connect it.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] oneheart:
View attachment recovery--log.rar can you help me？
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] sts1987:
rom is 45.0.7.90 i use flashtool ，and every Boot will automatically enter the twrp, you can say the flash into the way?
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] oneheart:
recovery 需要 ADB shell 刷写 长按电源键+音量加 直到进入recovery

---------- Post added at 10:24 PM ---------- Previous post was at 10:19 PM ----------

adb shell in recovery mode

#twrp backup DOM backup_xzp_data

then recovery works fine，no erro 255
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] qvmuhuuxz:
Thanks for the work!

This really handles the nougat encryption?

Over at the X Compact area, the TWRP we can't handle nougat's encryption.

Any advice?
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] FartyParty:
Are you saying that you cannot do a backup with working twrp but it works with noscreen twrp?
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Mario119:
Is this flashable without unlocking the bootloader? Never had an Xpieria device prior to this, so I haven't really dealt with DRM Keys and whatnot.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] FartyParty:
You have to unlock BL to get recovery/root etc.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Andre golil:
:confused::confused:
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] FartyParty:
What is it :)?
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Myself5:
I got to admit the Encryption part is one of the only things I used from AndroPlus without touching, so I unfortunally can't help you much.

Nonetheless, AFAIK the Xperia X (non Compact) has a working twrp including stock nougat encryption. That might be your best place to start at.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] oneheart:
no,Error 255 when restoring system or data, look at my earlier reply, there are pictures。You try to restoreing, if you have free time
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] FartyParty:
Ok but then you said it worked with noscreen twrp with restoring? Or maybe I misread.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] oneheart:
no no no, i just Quote command from noscreen twrp
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Alex2483:
Is there a way to save the TA partition ? pls tell me yes, I am in love with this phone but if I unlock the bootloader and I lose everything I think that I need to change my ideas
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] surge27:
What is needed to help support for the G8142 model [dual-sim]? Or is that already in the works?
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] FartyParty:
No.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Alex2483:
So I need to think to buy another phone, or maybe a time someone will invent something to do that ?
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] FartyParty:
If the camera is important then yes you need to buy another phone if you want root.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Alex2483:
What you think, will someone invent a way to do that ?
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] FartyParty:
Maybe, but I don't think it will be soon, maybe in 6 months.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Alex2483:
6 MONTHS ? WHAAAAAT ? ARE YOU SURE ? I mean this is the eternity ! I really need to look for another phone then, but I am in love with the XZ Premium :crying:
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] FartyParty:
No one knows, there might never be a fix at all. Personally I love my XZ Premium with root :P.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Shellyaffff:
Can anyone get me 790 ftf that will work on my ee version g8141
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Alex2483:
Yes but you will lose everything, Bravia Engine, X-Reality, Motion Eye, Triluminos etc. It's like having a mid range phone, sorry but flashing TWRP without saving the DRM keys is stupid, I don't want to lose all the things that make this phone unique.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] FartyParty:
lol no, that's absurd :).
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] koekoek91:
I'd be more concerned about warranty than features but maybe that's just me ?
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Alex2483:
Absurd is losing everything that makes this phone great ! I'll wait or I will change
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] FartyParty:
Can't say we lose anything interesting. What amazing features are you thinking about?
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] chesterr:
Now it's very difficult to save TA with N. It will take time even if someone comes up with the idea. Not impossible but it will take time.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] belrik:
You know that most of those are just software filters right? They're the phone equivalent of Sony's old Xtra-Bass stickers on audio kit. They're just designed to make the phone screen brighter than the one next to it in the store.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Myself5:
While some OT is ok, please keep in mind that this is a development thread designed to report any occuring bugs with TWRP.

Hence I'd like to ask y'all to move the stock/BL unlocking discussions to somewhere else. Thanks.

P.S.: #SOON
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Shellyaffff:
I got xzp we latest ftf flashtool won't start flash got latest one
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Shellyaffff:
Which kernel you use to get twrp working link dead
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Shellyaffff:
It doesn't boot up with your kernel I'm suppose to use this twrp on stock kernel,?
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Myself5:
This is a recovery.img. Its supposed to be flashed to the recovery partition. You can use it using the RECOVERY boot mode. Turn off the phone and press Volume down + Power to boot into the recovery.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] FartyParty:
As in you will release CarbonROM on the XZP :)?
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Shellyaffff:
So just flash twrp over stock rom latest
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Jacob_Bentzen:
How do I unlock the BL on my XZ Premium G8141??

The camera will still work??
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Shellyaffff:
From Sony website using xz profile and camera will break cant take pictures you can with other apps though
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Houge_Langley:
I guess NOT
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Charos87:
You can't unlock the bootloader yet without losing your DRM keys, once you have lost them they are gone unless you back then up (which we can't yet). Honestly it will simply take time until it can be figured out! Just hold on for a bit longer!
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] ishemes:
I'm considering buying this phone tomorrow. I would like to make a full backup before trying some things out, but I'm not ready yet to unlock the bootloader. On my current HTC M8 I can boot into twrp using fastboot boot recovery.img to make a backup. Is this possible on this xperia phone WITHOUT unlocking the bootloader?
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Myself5:
No, unfortunally not.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] ishemes:
That is too bad. Thank you.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] unknownblkman:
I just got one today .. let's get the ball rolling ..anybody need help testing
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] HACKETON:
Hi everyone i have a question. I root my sony xperia xz premium everything went smooth i think, so here is my question. After rooted im trying to install an app as system app and it says that i dont have enough space. Any help would be great thanks
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Charos87:
Can you provide a little more information please?
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] FartyParty:
Make sure you can actually write to system. If you can't it will complain about no space.

This is off-topic though and OP asked people not to clutter up the thread but people still do it.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] brockyneo:
hi do you think we will ever be able to root without unlocking as ive just ordered my xz premium ;)
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] HACKETON:
Hi does anybody know if is a way to return back a sony xperia xz premium from the sony logo. Its stuck there and i cant find a way to revert everything root cutom rom etc.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] oneheart:
你用中文在机锋网上问一下比较好，不是每个人都看得懂中式英语
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Houge_Langley:
You guys are so funny.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] sev7en:
Finally... now I guess we can work despite SONY to have the best camera section ever.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] hanymedic:
Dear, i still facing TWRP 3.1.1 Restoring problem.

Once restoring, i face extractTarFork() process ended with ERROR: 255 error.

i get the below error from the log:

ar_extract_file(): failed to extract //system/etc/firmware/tzfingerprint.b02 !!!

I:Unable to extract tar archive '/data/media/0/TWRP/BACKUPS/**********/system.ext4.win001'

Error during restore process.

I:Error extracting '/data/media/0/TWRP/BACKUPS/**********/system.ext4.win001' in thread ID 0

I:Error extracting split archive.

Error during restore process.

pigz: write error code 32

pigz: abort: write error on

extractTarFork() process ended with ERROR: 255

I:Failed to reset capabilities of /system/bin/run-as binary.

I:Set page: 'action_complete'

Iperation_end - status=1

I:Set page: 'clear_vars'

I:Set page: 'restore_select'

I:Set page: 'restore'

I:Set page: 'main'

I:Set page: 'clear_vars'

I:Set page: 'main2'

I:Set page: 'advanced'

I:Set page: 'copylog'

I:Set page: 'action_page'

Iperation_start: 'Copy Log'

I:Copying file /tmp/recovery.log to /data/media/0/recovery.log

it would be appreciated if you would support, please.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] 한구긴:
trouble flashing with this recovery

i have trouble in flashing with this

when using AROMA installer

the AROMA flashing page hide behind to TWRP flashing page

please confirm this problem

(all other key functions are working well )
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] BigBrainAFK:
Seems to not work on Oreo
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Myself5:
Mind going a little further into detail about what exactly is not working so that i can look into the issue? I've been using my XZP as my DD for the past month (running Oreo), and everything is fine with TWRP. I havn't been able to test stock Oreo yet, though.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Mackay53:
Stock Oreo works fine as well, no issues for me
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] sToRm//:
Good to know! So I can upgrade and create the DRMpatch for Oreo. :)
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] BigBrainAFK:
Sure. I flashed Oreo onto my XZP, a full flash at that cause even when i removed all .ta files and the userdata it somehow corrupted my data. Then i flashed twrp just like i did on 7.1.1 and when i try to boot into twrp it only shows me a black screen and roughly 15 seconds after that it boots again (shows the whole untrusted device thingy again) and then just proceeds to boot into the os.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] FartyParty:
It has nothing to do with Nougat/Oreo. You can boot into twrp without a working fw as well, thats how you fix bootloops, freezes etc.

Just redo the flashing, flash kernel, twrp and it will work.

Might as well ask you about something.

When you released twrp I made a backup via it and then a day later I tried to restore it, it didn't work and only threw errors.

Other users reported the same thing when trying to restore, even posted in this thread about it.

Of course I would love to be able to backup the phone with twrp and successfully restore.

I think it was extractTarFork() process ended with ERROR: 255

Yup, see attachment.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] BigBrainAFK:
Flash it multiple times (including oreo which i also redownloaded) and i also tried booting it directly via fastboot. always the same result. Booting directly via fastboot resulted in the phone getting stuck on a blackscreen.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] FartyParty:
So you're saying that you did a proper flash, flashed a custom kernel, flashed twrp recovery and then you tried to hold volume down + power until you see the white sony logo and it doesn't go into twrp?

Also, it's normal for it to have a black screen when entering fastboot.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] BigBrainAFK:
No. flashed properly, stuck on black screen for a few seconds and then it boots again with another warning about unlocked bootloader and ignores my held volume down. And if i just try to boot the twrp image with fastboot directly instead of flashing it the phone gets stuck on a blackscreen aswell as in shows the unlocked bl warning and then gets stuck on a black screen.

//EDIT: forgot to mention that flashing the same recovery image i already used for oreo worked after i flashed 7.1.1 clean.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] FartyParty:
Just for confirmation, you are not holding volume down/up while connecting the usb?

While the phone is completely off you are holding volume down + power until you see the sony logo, then you need to release and it should boot into twrp.

Also you can stop mentioning the untrusted phone because that's something you get when you unlocked the bootloader and you can't remove that.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] BigBrainAFK:
i know that the warning is from the unlocked bl.... but yes i hold volume down then i also hold power until the sony logo comes up but it just proceeds throught he mentioned steps: bl warning, blackscreen, bl warning, sony logo, android

After i flashed 7.1.1 it worked as expected and brought me to twrp.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Myself5:
I never had a chance to look into that, I'll try to when I get a new Daily Driver so I can risk losing the data on it :D

Hum, thanks for the detailed info. Might be a bootloader issue or something then. I'll try to reproduce and fix it ASAP. From the looks of it I'd suspect it to be some compatibility issue with the new bootloader or something. We might know soon.

Its really strange though, as poplar (XZ1) and lilac (XZ1 Compact) work fine with the same TWRP setup on Oreo (hell, they even use the maple binaries because i was too lazy to download a stock image).

P.S. If someones needs TWRP for poplar or lilac and is willing to test (poplar has been tested by a friend already), PM me. I don't want to release it to the public yet as I don't own the devices and don't want to release software for devices I don't own.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] oneheart:
it not work on Oreo. test on G8142,If there is a new version, I'm willing to test！ Thank you for your hard work！

---------- Post added at 09:56 PM ---------- Previous post was at 09:50 PM ----------

So do I :crying:
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] FartyParty:
I wonder what causes it. It's a shame not being able to restore a backup but maybe in the future you will be able to find a solution.

Also for reference, I flashed Oreo and then twrp on my other XZP and it worked exactly like I expected it to do.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] sToRm//:
I flashed Oreo last night (clean + full). It's possible to flash TWRP, but the reported problem exists for me, too. I tried a few "dirty" patches in the twrp.img and noticed a compatibility problem with the kernel. I was lazy and merged the ramdisk with the kernel from FOTAkernel.sin, just to test if it changes something at boot. And yeah, TWRP boots up with that, but without a GUI. ADB shell (recovery) works... I think the bug is related to the kernel and new bootloader in XZP Oreo.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] AmazingWu:
machoo told me this aroma maybe will can't make it normal
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Myself5:
Did you seriously just send me a PM to read this completely out-of-context question that doesn't make any sense?

View attachment 4320256

If you're having an issue, then sit down, take some time and EXPLAIN what issues you have instead of posting riddles and PMing me about reading them... I'm spending a LOT of time working on Android and solving issues, so I could expect you to at least take about 2 minutes to explain your issues....
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] noobsforlife:
Way to represent the Xda community myself 5. So salty.......
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] AmazingWu:
AROMA Installer（https://xdaforums.com/showthread.php?t=1461712） is not supported. Please repair it.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] supermaus100:
Works because TWRP with the firmware Android 8 in the Sony XZP g8141?
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Mackay53:
For some yes for some no
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] sToRm//:
[MENTION=3816568]Myself5[/MENTION]

I patched the TWRP ramdisk again and now we have a working TWRP with touch on XZ Premium @ Oreo. :)

It's included in XperiFIX, but if somebody needs the recovery only, here is it: XZP_TWRP_Oreo.img
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Kanoe:
Thanks, tested at 2SIM - touch is working, though shows CPU temp as zero always. So some wrong with the year - backups are creating with 1970 one ;)
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Myself5:
They always were across all Sony devices.

PM me the diff please so we can update official TWRP.

Also, I'd be very happy if someone here could tell me if Stock Oreo uses File Based Encryption or Full Disk Encryption, that way I make a plan of all stupid encryption cases I need to cover.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] cdnutter:
Your fix works and it touches just fine. However restoring from a backup showcases:

extractTarFork() process ended with ERROR: 255

This leaves the device softbricked (stuck at Sony logo). A fix of this would really be nice, especially for ROM developers.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Myself5:
I digged a bit deeper into that error. It seems to be an general issue with TWRP happening on multiple devices with backups of a certain size. The issue is yet to be solved (again, general TWRP, not device specific), so unfortunally its nothing I or [MENTION=8363210]sToRm//[/MENTION] can fix.

P.S. [MENTION=8363210]sToRm//[/MENTION] still waiting for the PM :P
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Beetle84:
I have this issue with twrp 3.1 on X Performance, I just use twrp 3.0.3. It doesnt matter what size with my backups on 3.1, always fails in the middle of restoring data.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] kiritoxda:
Please fix the

extractTarFork() process ended with ERROR: 255

Can't experiment with any mods or settings cause I'm afraid of bricking something. I need to be able to backup and restore incase something goes wrong. I don't want to start all over everytime I make a mistake.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Myself5:
Please read the two posts above yours.

Notice

To everyone on Oreo running into issues: Do NOT use init_sony. (The press volume when led pops up thing). This has been deprecated for quite a while now, and I spent the last week debugging why you all could have issues on oreo with what I thought so far is the bootloaders cause (big thanks to [MENTION=359497]jerpelea[/MENTION] for testing on the Oreo bootloader at this point btw, saved a lot of time).

All devices newer than the Xperia X were shipped with a bootloader than can natively boot into the recovery (older ones got that in an update too). Just power off the phone and press Volume down+Power. That will boot straight to the recovery. No extra hacks (namely init_sony) required.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Mobfigurz:
I appreciate the work you all put in to create these mods and apps, but what good is this recovery if it fails to do what it is meant to do, recover? So many people, including myself are having the Error: 255 and I do appreciate what you have said, that it is symptomatic of TWRP in general and not isolated to this release and the work you have done, so why release a version that is in essence, broken?

Is there anyway to restore a backup now? My phone is screwed at the moment and I would like to restore rather than re-install from scratch, due to all the visual mods and such.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Myself5:
Ok, so to summarize, you prefer rather no release than a "essence broken" but at the same time basically demand a recovery. Some things don't match up here.

To be fair, I never tested the backup/restore stuff. i never used it on any of my devices, I only use the recovery for what I consider 90% of the people use it. Flashing.

Surely I will right away contact Dees_Troy to take down the images right away because _you_ can't restore a backup after _you_ ****ed up _your_ phone and after _you_ didn't read the thread in order to know that _you_ should have done a different backup (e.g. Titanium Backup).

When will people start appreciating what others offer instead of complaining continuously? The bug has been reported, I spent a lot of time trying to understand it until I've eventually been told it can't be fixed, I forwarded that to you all in this thread. So why keep on nagging about it? It's not like everyone pays me.

In fact the donations don't even cover my fileserver bills at worlds worst hoster that is noez.de (stay away from them btw) but thats a different story.