yashsingh1/xdaforums huggingface dataset:
[Sony Cross-Device General] :No-Frost::
Actually, that's what I did. I was the one who created this rom.

I've just found something... I know I'm able to get to recovery from terminal emulator (su reboot recovery). While in there, I looked into the external SD card and I can see the XZ folder and the files, however, when the device is booted, the folder is not visible and I have an ".android_secure" file that can't be deleted from the system.

It seems like something is "damaging" the SIM links or something like that.

I'm a bit new with the Z3 so I don't know how to take screenshots, but I can provide one if you want to.

Also, I just noticed that xposed is not working any more after flashing latest framework (SDK 22 and xposedxposed-v68-sdk22-arm-by-romracer-20150727.zip)
[Sony Cross-Device General] aazamsajid:
plz help

thanks alot for the reply, actualy im newbie here that's why im suffering alot , actually i dn't know how run CM as rom etc plz can u guide me ,plz help me becasue now my cell not accepting sim card , i want to downgrade to regional firmware .
[Sony Cross-Device General] [NUT]:
Can you please humor me and [MENTION=4712883]McBane87[/MENTION] and re-create the package with JUST supersu and XZDR and nothing else?

See if that fixes the XZDR issues.
[Sony Cross-Device General] [NUT]:
Uh... okay...

I'd say you are asking in the wrong place here... you should visit Sony Xperia Z Help and Troubleshooting and ask there.

This is specific a development thread on XZDualRecovery, not a general help and troubleshooting thread.

Sorry mate, ask there, I'm sure [MENTION=2452820]kingvortex[/MENTION] and the rest of the green team there can help you back to stock.

EDIT: I saw you did so, in this thread :good:

[MENTION=2452820]kingvortex[/MENTION] can you take a look and help the guy?
[Sony Cross-Device General] :No-Frost::
Will try as soon as possible but I believe there's something affecting the .android_secure folder. It seems to get corrupted every time.

By the way, when I created the rom, I only used Supersu and XZDR nothing else.
[Sony Cross-Device General] McBane87:
Well as second test you could try to backup all of your files (without android_secure) from your external sd to your pc and then format the sd. after that copy back your files.
[Sony Cross-Device General] ernieg92:
Sorry, still learning Linux and forget that syntax is so critical. Will post results later today. Just for my own edification, is the / required on all directory commands or just environment variables (like $HOME or $EXTERNAL_STORAGE)?

To add to the weirdness, I do not have a "Uninstall" button in the Play Store (only the 'Open' button). I can send a screenshot later, but it basically there is just one button (instead of the normal 'Uninstall' and 'Open'). Is there a way to remove it via command line so I can install via Play Store?

I will note, however, that NDR Utils works; it just can't find the XZDR config file/directory so it's not very useful.

---------- Post added at 10:15 AM ---------- Previous post was at 09:55 AM ----------

I used a pre-rooted stock ROM from [MENTION=5494506]Azar_98[/MENTION], so I'm unsure how it was actually rooted. I didn't notice any other issues like mine discussed in the thread, so I may have FUBAR'd something myself.

Just for clarification, this is the process you mentioned in your later post?

---------- Post added at 10:24 AM ---------- Previous post was at 10:15 AM ----------

I have the same issue with that android_secure file--and last night I actually copied my sdcard over to my NAS (it actually kept failing on the copy operation until I de-selected that file).

I think I'm going to try this route before completely re-flashing everything and hopefully it fixes the problem. Do you recommend formatting the sdcard from computer, storage settings, or recovery?
[Sony Cross-Device General] PVL_93_RU:
[MENTION=4904057][NUT][/MENTION]

Hello. Today, I installed a flashable zip of the latest firmware for Tablet Z2, with root and XZDR built-in. Root itself seems to work fine, Xposed is working fine - but when I attempted to launch FolderMount to transfer game/app data onto SDCard to free up some space on the internal storage - the app greeted me with a message of needing to patch the system permissions to allow apps to write to /storage/sdcard1 (which is the usual case) - but the attempt to do that failed and the app couldn't change permissions. I suppose that's because the System partition isn't/can't be mounted as R/W?

Or is that an app's issue?
[Sony Cross-Device General] :No-Frost::
You can patch the system with a Google Play App:

https://play.google.com/store/apps/details?id=nextapp.sdfix&hl=es-419

See if that one works...
[Sony Cross-Device General] PVL_93_RU:
Thanks for the idea, but I fixed it with another method - just had to manually reflash the latest XZDualRecvoery zip, root started working the way it should after a reboot
[Sony Cross-Device General] [NUT]:
It could actually be both ;)

Open up ES File Explorer or Root Explorer and try to modify /system/etc/permissions/platform.xml

Look for this line:

<permission name="android.permission.WRITE_EXTERNAL_STORAGE">

and check if the list contained within that and the "</permission>" lists

<group gid="media_rw"/>

If it doesn't, add it and reboot.

If you are unable to edit that file, then something is wrong and you ended up with semi-root, which is no biggie, just install XZDR again using the installer version for your device. That should fix it.
[Sony Cross-Device General] :No-Frost::
Trying to fix the app now I can't boot into the recovery. Tried from terminal emulator, from ADB, with the installer, with the app... Everything just reboots the phone :(
[Sony Cross-Device General] [NUT]:
Eh, even when using the installer to reinstall again? You are starting to sound as lucky as I was yesterday :o
[Sony Cross-Device General] [NUT]:
XZDualRecovery Advanced Stock Kernel Builder Updated!

It should now produce working kernels again. :victory:

Just to make sure nobody downloads a kernel which still wasn't rebuilt, I have cleared the builder, there are NO kernels to be found at this moment, so make sure you have a stock boot.img or kernel.sin handy for the FW you are using.

Have fun people!
[Sony Cross-Device General] :No-Frost::
Luckily enough, I'm quite stubborn so I don't quit easily ;)

I think I've managed to "fix" the problem... I will relate what I did and so far, everything is working :D

I've pulled out the sd card (Samsung 128GB), extracted everything and formatted the card in Windows in exFat, then, I copied everything into the card (only the folders, including the XZDR. At the moment I inserted the SD Card, the phone "said" it was faulted and couldn't be read, so I've pulled out the card, backed up everything (again) and then put the card back on the phone, formatted the SD from the phone, removed the card, connected the card to the laptop, restores everything (only the folders), put the card back in and voila, everything is working.

Now, I like to use themes with TWRP, however, the 0 bite files still exists (.TWRP in internal storage and .android_secure in external), for some reason, those files (that are actually folders) can't be read or written inside from the system, however, I did noticed that I can browse them in recovery (using TWRP explorer) so, I've used the terminal available in TWRP to create a new folder inside the .TWRP 0 bites folder (quite easy to do using mkdir), then using the file manager, I've copied the theme to the folder I've just created and now everything is just as I like and NDR Utils are working fine.

No idea though why the folder XZDR got corrupted or "invisible" and wasn't be able to be read in order for NDR utils to work, but I think I've found a way to make it work.

I'm feeling lucky :D

Hopefully, my luck will last and I will be able to find a job (I'm currently unemployed as where I was working is closing the center in my country... dammit :P )...

I hope this helps anyone having the same issue, I'm pretty sure this has something to do with 5.1.1 as in 5.0.2, everything was working fine.

Regards and see you all tomorrow.

Thanks [MENTION=4904057][NUT][/MENTION] for your help and dual recovery :D
[Sony Cross-Device General] [NUT]:
Sounds to me your SDCard is either dead or about to die. Linux should be able to format it, as should Windows. If you have any other SDCard handy (even if it's a small one) try it to see if that solves the issues. If it does, buy a new SDCard and put the current one out of use or return it for warranty (some manufacturers have limited lifetime warranties).
[Sony Cross-Device General] ernieg92:
So, I (finally!) got NDRUtils working. I'm not sure which one(s) of the actions did it, but this was my resolution:

manually removed via adb shell the version installed with the XZDR installer (Uninstall button missing)

installed most current version in Play Store (still no joy at this point)

downloaded flashable version of XZDR and placed on internal sdcard

rebooted to recovery, flashed XZDR

reboot system

At this point NDRUtils was still not working. Since I was working on the sdcard issue (which I think is unrelated, but may be impacting things), I booted to recovery once again to format the SD card via TWRP tool. It ended up erring out, so I pulled the card (to work on PC) and rebooted system. Don't know if it was the flash XZDR->reboot recovery->reboot system->reboot recovery->reboot system process, or pulling the SD card before the second reboot, but the tool is working as expected. Even used it to reboot to recovery. After a couple of more reboots (for varying reasons), the NDRtools is still present and no longer complains about missing files. Don't know if that helps anyone (or makes any sense), but I sure learned a few things!

Yeah, I agree that the SD card may be an issue. Funny thing is, I haven't really had any problems with it. I found it odd that I couldn't mount it in Linux (until I figured out I don't have exFat tools installed, apparently), but was pretty sure I had a problem when trying to format it on a Windows PC and it failed at 83%. So, I'm copying my sdcard backup to a new card, hopefully everything will be good.
[Sony Cross-Device General] irishrally:
delete
[Sony Cross-Device General] kweeky:
Hello , when i'm install a new custom rom , i forget to flash the "flashable.zip " , so the recovery leave...

is there a way to install the recovery with the custom rom ?

thanks
[Sony Cross-Device General] [NUT]:
As long as you have root access, you can install XZDR using the installer package.
[Sony Cross-Device General] kweeky:
Ok , it's good , i try it 3 times , don't work et when I remove my sdcard , its work , thanks
[Sony Cross-Device General] InvisibleKnight:
I have a bricked Z3C in Fastboot mode. I created a boot.img with XZDualRecovery Advanced Stock Kernel Builder by extracting kernel.sin from stock 23.4.A.0.546it rom, should I flash it to get cwm up and running? My bootloader is LOCKED.
[Sony Cross-Device General] [NUT]:
No, because this will soft-brick it on the bootloader level... This can only be done with an unlocked bootloader.

If you can get in to fastboot, you should be able to get in to flashmode too. Use pc companion or flashtool to fix it.

Let me dig up a link, it's my disaster recovery thread, it has applied to all Z series devices so far.

http://xdaforums.com/showthread.php?t=2229250
[Sony Cross-Device General] InvisibleKnight:
Thanks! Luckily I followed the warnings and I didn't do anything stupid. In the end I recovered with PC COMPANION because debug mode was disabled and fashtool wasn't working. Thanks for your answer!
[Sony Cross-Device General] Brad331:
Your website is pure genius.
[Sony Cross-Device General] :
NUT, would it be possible to add this theme to TWRP in your next recovery update? It would make TWRP a LOT better looking, easier to use, and expose some hidden settings.

http://xdaforums.com/android/themes/theme-twrp-materialised-dark-light-play-t2915584

There is even a new splash screen for TWRP in there!

I think you would make everyone very happy with it : )
[Sony Cross-Device General] juanpirulo:
You can do it by yourself. Just get the theme ( ui.zip) and copy inside Twrp/theme folder in sdcard, and you Will have your materialized Twrp. The splash screen is a little bit more complicated to do it because you have to uncompress The lzma and The cpio format. But anyone Who want a New splashscreen can ask me by pm and i Will do it for you.cheers
[Sony Cross-Device General] :
Thanks, but I already knew how to theme it. I just know 99% of people won't bother, but would enjoy having it themed so beautifully (and naturally, its an extension of the material design on the phone : )
[Sony Cross-Device General] pvnsai73:
Which resolution theme should we have to use for the twrp in xzdual recovery ?
[Sony Cross-Device General] McBane87:
Well, the problem with additional themes is, that NUT has to make sure it will work on every device and implement updates of this theme from time to time. This increases the maintenance.
[Sony Cross-Device General] :
Afaik there only 2 (maaaaybe 3) resolutions that would need to be 'supported' (there's no coding involved, its just copying some images). 720p, 1080p and 1440p. As long as the devices support TWRP, they support the theme. TWRP updated? Just go to that guys server, copy the files et voila.

I would even know a better way of doing this: have the flashable create /theme/ in the SDcard TWRP folder and place ui.zip there. Flashable script detects resolution and places the correct ui.zip. So the flashable would contain the 2 (3?) ui.zip, one for each resolution.
[Sony Cross-Device General] grzenek123:
Not work on Xperia Z1 Compact locket bootloader .
[Sony Cross-Device General] M1P:
I can assure you, that it's working flawlessly on Z1C LB!

It was my previous phone (currently my wife's), and everything is OK.
[Sony Cross-Device General] grzenek123:
Everything supposedly is ok, phone they are restarting, but not to recovers, only normally sie is starting, when of it he is restarting alone, it doesn't work neither recovers neither philz
[Sony Cross-Device General] [NUT]:
Without installer output, no help.

I'm assuming you're either not rooted and trying an unrooted installation on an unsupported rom, or you are rooted using kingroot, which also does not work as you still need to replace it with superSU.

If you want more help, give me the installer output.
[Sony Cross-Device General] rob420p:
Can anybody tell me where I can look up to installing without a PC I know it's alot of steps but would like to research it.I have done it on other phones with cam TWRP so forth but this sony is alot differant bootloop ed my last sony lol.
[Sony Cross-Device General] sebarkh:
in twrp my SGP612 scorpion_windy device is recognized as Aries, so no flashing without editing zip file... :(

But... The good thing is I can finally enter the recoveries. Thank you!
[Sony Cross-Device General] :No-Frost::
[MENTION=4904057][NUT][/MENTION]

I think I've found part of the problem why the NDR Utils are not working.

First of all, the XZDualRecovery folder is being created in the external SD Card, for some reason, the folder .android_secure is being "corrupted" or something like that as it shows 0 Bytes, I can't remove, rename or do anything with this file.

Due to this, it seems the NDR Utils are not able to read the configuration file or better said, the XZDR.prop.

Now, is it possible to make the XZDualRecovery folder to be created in the internal memory?

It seems the SD Fix doesn't work completely on android 5.1.1, for example, I just tried to delete the file .android_secure using Solid Explorer, however, the system asked me to grant SE permission to be able to delete the file (which ended with an error)

I really would like to look into this as it seems I'm not the only one experiencing this issue:

http://xdaforums.com/z3/help/z3-sd-card-recognized-reboot-t3170817
[Sony Cross-Device General] [NUT]:
reading that thread's OP and your persisting issues... I have a hunch...

Can you set dr.keep.byeselinux=false to dr.keep.byeselinux=true in the XZDR.prop file? Reboot your phone when done and then try NDRUtils again.

Let me know what happens...
[Sony Cross-Device General] :No-Frost::
That seems to have worked.

Previously I have copied the folder to the internal memory so I edited the file on the internal memory folder and copied to the one in the external memory. After that, I zipped the folder in the internal memory (to prevent it being read) and finally rebooted. Then I tried NDR utility and so far it seems to be working.

I'm not sure though if I will be able to install zips from the external SD card, will try that as soon as possible, as it seems that twrp is not able to read the card. (not a card problem as I've already tried 3 different cards)
[Sony Cross-Device General] [NUT]:
I'm starting to suspect the Z3 has some additional security which differs slightly from the Z1/Z2 ... BUT... one more thing to check:

What root app do you use? (SuperSU, SuperUser or Kingroot?)

How did you install that and did you ever update or change it?
[Sony Cross-Device General] :No-Frost::
I've rooted the kit kat rom (installed KK from ftf file), then, I rooted the rom using giefroot rooting tool and installed the recovery with your installer, then, when I was rooted and with recovery, I performed a wipe factory reset, cleared cache and dalvik and then installed the prerooted rom I've created with Android 5.1.1
[Sony Cross-Device General] [NUT]:
Can you humor me, set dr.keep.byeselinux to false again, then flash this zip once more from recovery:

http://download.chainfire.eu/supersu

Then try to run NDRUtils again.

SuperSU requires to be set up with the correct SELinux contexts to be able to allow root actions on specified locations... I'm not saying this is the cause, but I want to eliminate the chance it might be.
[Sony Cross-Device General] :No-Frost::
Before doing that, just want to provide an update.

After setting the option to true I was able to boot to recovery, rebooted to system, then I wanted to flash xposed so I tried to get into recovery again and the phone rebooted to system and again the SD card is not visible.

Something is damaging one of the xml files and .android_secure folder which makes the external SD unusable.

I will format the SD, copy the XZDR folder to SD and flash the SuperSU in a minute.

[MENTION=4904057][NUT][/MENTION]

Ok, these are the steps I've performed:

1.- Formatted external SD and copied the XZDualRecovery folder to the external SD with the file modded to false again

2.- Went to Recovery and flashed the SuperSU.zip file (took the time to also flash xposed)

3.- Formatted external SD from Recovery just in case

4.- Booted the system and checked NRD Utils

5.- From NRD Utils I booted into recovery (the folder XZDualRecovery is on the internal memory as the external SD card was previously formatted)

6.- I'm able to get into recovery so far with no errors and SD Card is still working, however, I think I have to give it some more time and a few more reboots to confirm if the issue has been fixed or not.

I will upload 2 logs as son as possible that might have some relevant information: XZDUalRecovery.log and XZDUalRecovery.log.old.

Regards and thanks mate :)

Edit

Logs attached.
[Sony Cross-Device General] TheNewbieRooter:
Hello I have a question.

If I have XZDualRecovery and a custom ROM ( Lollipop / .270/ Xperia Z1) with locked boot loader can I simply use Flashtool to Unlock my bootloader without any other steps (e.g reverting back to stock recovery)
[Sony Cross-Device General] [NUT]:
Answered in the z1 q&a thread.
[Sony Cross-Device General] :No-Frost::
[MENTION=4904057][NUT][/MENTION] Did you see my last post?

I've provided some logs, so far everything seems to be working fine (after flashing SuperSU) but I'm not sure if this is what it fixed the issue with the SD Card corruption
[Sony Cross-Device General] [NUT]:
I'm actually counting on that to be the cause...

If you are unable to edit files or folders even as root, only one thing can be causing that: selinux.

That is why flashing supersu again fixed your problems. This corrected the selinux context on the su binary and supporting files, which will then satisfy selinux to allow them to access the files previously causing issues.

Thank you for the logs though :)
[Sony Cross-Device General] ondrejvaroscak:
2.8.21 working on new Sony Concept UI ROM (5.1.1) [UB]

! UNLOCKED BOOTLOADER info!

This is to confirm that 2.8.21 works on new beta Sony firmware - AOSP like 5.1.1 called Concept UI for Xperia Z3 (D6603) fw version 1543

Installed on UB using Windows installer method. What is not working is reboot using NDRUtil, because this ROM is new and using recovery partition for its own Stock recovery (only signed zips).

However, booting into TWRP and PhilZ works using hardware buttons after reboot.

http://xdaforums.com/showpost.php?p=62272137&postcount=297
[Sony Cross-Device General] [NUT]:
If you flashed it using Sony's own flash tool for unlocked bootloader devices it will indeed replace FOTA with a true recovery partition.

I hope to catch that with 2.9 as well.
[Sony Cross-Device General] ondrejvaroscak:
Don´t get it. The DualRecovery flashable zip is just recovery based installer, this can not be flashed into FOTA with flashtool....

The ROM already comes with FOTA replaced with true recovery partition that includes Sony's Android recovery, however this recovery can only flash Sony signed zips. So generally unusable. Also, if you try to flash anything else into recovery partition, system refuses to boot at all. on UB.

************ or ***********

Maybe I misunderstood, maybe you mean if I flash the FTF with Sony flashtool, then included recovery will get replaced by Sony Open Devices recovery...? Will try...

Tried, but there is no way I found to flash this using Sony flashtool. In the Flashtool (Sony) only firmware (service) available is

Xperia Z3 D6603 L 5.0.2 (build 23.1.A.0.690)	Software Update Content Erase	Developer World
[Sony Cross-Device General] ondrejvaroscak:
Hm, sorry of slight off-topic [MENTION=4904057][NUT][/MENTION] but Sony Flashtool is also a "magnificent" masterpiece. The software informed of version 23.1.A.0.690 but flashed 23.4.A.0.546 :)
[Sony Cross-Device General] [NUT]:
I meant the second part indeed. If you flash that ROM on a locked bootloader device (as the thread you linked to states should be possible) it will not be able to overwrite the FOTA partition. I am suspecting the ROM to hijack the boot process before XZDR does.

Lol, yes ... they still have some copying to do from the features on the community's flashtool before it's really any good :p
[Sony Cross-Device General] [NUT]:
Well, that can only mean the recovery partition is fully signed as well, thus we won't be able to replace that...

[MENTION=5321428]AngelBob[/MENTION], point of attention for you dude...

EDIT:

We will be able to work around this fairly simple... but if that's how Sony's devices will work in the future we have lost the reboot recovery trigger...
[Sony Cross-Device General] ondrejvaroscak:
That's a big question. In the moment it is not sure which direction Sony wants to go. But something tells me they would not be willing to maintain two firmware families, eg. full blown Stock with all bells and whistles and AOSP-like minimalistic for xda freaks :)

Anyway, the new ROM sports quite changes in bootloader, adds graphic fastboot mode with menu, Secure boot and that recovery thing..
[Sony Cross-Device General] rob420p:
Wish we could bypass sony have a independent flash tool like rasher
[Sony Cross-Device General] [NUT]:
www.flashtool.net :confused:
[Sony Cross-Device General] rob420p:
Thank u
[Sony Cross-Device General] Hamidreza2010:
[MENTION=4904057][NUT][/MENTION] whould you please make recovery zip for sony xperia m2 aqua ( d2403 ) ?

thanks a lot
[Sony Cross-Device General] Zero_Blade:
Thaks U All, it's works!
[Sony Cross-Device General] [NUT]:
http://xdaforums.com/showthread.php?t=2684188 or https://play.google.com/store/apps/details?id=nextapp.sdfix

That is required on kitkat, I had to use it on that version too.
[Sony Cross-Device General] palaboy:
boss NUT my rom is not kitkat it's jelly bean 4.2.2