[DEVDB][TWRP][PhilZ Touch] XZDualRecovery 2.8.26 RELEASE

Search This thread

:No-Frost:

Senior Member
Sep 4, 2009
1,905
448
Santiago
twitter.com
Eh, even when using the installer to reinstall again? You are starting to sound as lucky as I was yesterday :eek:

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 @[NUT] for your help and dual recovery :D
 
  • Like
Reactions: [NUT]

ernieg92

Senior Member
Apr 19, 2012
72
3
Denver Metro
Google Pixel 5
@ernieg92

Your root'ed commands are lacking a /, which makes them behave differently, because one of them is a symlink... something weird I know, but can you try them again with the slash at the end of the command?

It's odd though, there should be no reason why NDR Utils fails...
Here is the output with the trailing slash. Still a big difference between the sdcard/sdcard1 and $INTERNAL/$EXTERNAL_STORAGE.
Code:
shell@SGP311:/ $ su
root@SGP311:/ # ls -la $EXTERNAL_STORAGE/
drwxrwx--- root     sdcard_r          2015-07-26 01:53 .HhTjqSRo6dybqDAV2ImUSREmnZU=
drwxrwx--- root     sdcard_r          2015-07-26 18:24 .eCtcQjbu1dgnvtFnvnr6yepTp1M=
drwxrwx--- root     sdcard_r          2015-07-28 19:31 .estrongs
-rw-rw---- root     sdcard_r   835945 2015-07-26 02:05 .tempLockScreenWallpaper
drwxrwx--- root     sdcard_r          2015-04-08 04:43 Alarms
drwxrwx--x root     sdcard_r          2015-04-08 04:43 Android
drwxrwx--- root     sdcard_r          2015-07-26 22:49 Books
drwxrwx--- root     sdcard_r          2015-07-25 03:01 DCIM
drwxrwx--- root     sdcard_r          2015-07-26 02:12 DevexpertNET
drwxrwx--- root     sdcard_r          2015-07-27 13:58 Download
drwxrwx--- root     sdcard_r          2015-07-27 18:35 Folder
drwxrwx--- root     sdcard_r          2015-07-27 18:35 Folder2
drwxrwx--- root     sdcard_r          2015-07-25 02:07 MEGA
drwxrwx--- root     sdcard_r          2015-04-08 04:43 Movies
drwxrwx--- root     sdcard_r          2015-07-25 00:51 Music
drwxrwx--- root     sdcard_r          2015-04-08 04:43 Notifications
drwxrwx--- root     sdcard_r          2015-04-08 04:43 Pictures
drwxrwx--- root     sdcard_r          2015-04-08 04:43 Podcasts
drwxrwx--- root     sdcard_r          2015-04-08 04:43 Ringtones
lstat '/storage/emulated/legacy//TWRP' failed: Permission denied
drwxrwx--- root     sdcard_r          2015-07-28 01:03 TitaniumBackup
drwxrwx--- root     sdcard_r          2015-07-26 22:47 WD My Cloud
drwxrwx--- root     sdcard_r          2015-07-25 00:30 airdroid
drwxrwx--- root     sdcard_r          2015-07-25 03:38 backups
lstat '/storage/emulated/legacy//clockworkmod' failed: Permission denied
-rw-rw---- root     sdcard_r      145 2015-07-28 21:13 customized-capability.xml
drwxrwx--- root     sdcard_r          2015-07-28 00:58 data
-rw-rw---- root     sdcard_r    14336 2015-07-28 21:13 default-capability.xml
drwxrwx--- root     sdcard_r          2015-07-26 22:49 kindle
drwxrwx--- root     sdcard_r          2015-07-24 20:07 media
drwxrwx--- root     sdcard_r          2015-07-27 14:03 mysword
-rw-rw---- root     sdcard_r    16638 2015-07-26 22:27 settings-4.k9s
root@SGP311:/ # ls -la $INTERNAL_STORAGE/                                      
drwxr-xr-x root     root              1972-02-08 02:08 acct
drwxrwx--- system   cache             1972-02-08 02:08 cache
lrwxrwxrwx root     root              1969-12-31 18:00 charger -> /sbin/healthd
dr-x------ root     root              1972-02-08 02:08 config
-rw-r--r-- root     root           18 1969-12-31 18:00 crashtag
lrwxrwxrwx root     root              1972-02-08 02:08 d -> /sys/kernel/debug
drwxrwx--x system   system            1972-02-08 02:08 data
-rw-r--r-- root     root          518 1969-12-31 18:00 default.prop
drwxr-xr-x root     root              2015-07-28 18:31 dev
lrwxrwxrwx root     root              1972-02-08 02:08 etc -> /system/etc
-rw-r--r-- root     root        47853 1969-12-31 18:00 file_contexts
drwxrwx--x system   system            1972-02-08 02:08 firmware
-rw-r--r-- root     root          475 1969-12-31 18:00 fstab
-rw-r----- root     root         1445 1969-12-31 18:00 fstab.qcom
-rwxr-x--- root     root       248192 1969-12-31 18:00 init
-rwxr-x--- root     root         2614 1969-12-31 18:00 init.class_main.sh
-rwxr-x--- root     root         1187 1969-12-31 18:00 init.environ.rc
-rwxr-x--- root     root         6758 1969-12-31 18:00 init.qcom.class_core.sh
-rwxr-x--- root     root         5604 1969-12-31 18:00 init.qcom.early_boot.sh
-rwxr-x--- root     root        23433 1969-12-31 18:00 init.qcom.rc
-rwxr-x--- root     root         2088 1969-12-31 18:00 init.qcom.rmnet.sh
-rwxr-x--- root     root         3570 1969-12-31 18:00 init.qcom.sh
-rwxr-x--- root     root         3107 1969-12-31 18:00 init.qcom.syspart_fixup.sh
-rwxr-x--- root     root        22414 1969-12-31 18:00 init.rc
-rwxr-x--- root     root         1613 1969-12-31 18:00 init.sony-device.rc
-rwxr-x--- root     root        13153 1969-12-31 18:00 init.sony-platform.rc
-rwxr-x--- root     root         4181 1969-12-31 18:00 init.sony.rc
-rwxr-x--- root     root         8716 1969-12-31 18:00 init.target.rc
-rwxr-x--- root     root         1927 1969-12-31 18:00 init.trace.rc
-rwxr-x--- root     root         3885 1969-12-31 18:00 init.usb.rc
-rwxr-x--- root     root         2498 1969-12-31 18:00 init.usbmode.sh
-rwxr-x--- root     root          434 1969-12-31 18:00 init.zygote32.rc
-rw-r--r-- root     root        24120 1969-12-31 18:00 logo.rle
drwxr-xr-x root     root              1969-12-31 18:00 lta-label
drwxrwxr-x root     system            1972-02-08 02:08 mnt
dr-xr-xr-x root     root              1969-12-31 18:00 proc
-rw-r--r-- root     root         5379 1969-12-31 18:00 property_contexts
drwxr-xr-x root     root              1969-12-31 18:00 res
drwx------ root     root              2015-04-08 04:43 root
drwxr-x--- root     root              2009-01-02 07:00 sbin
lrwxrwxrwx root     root              1972-02-08 02:08 sdcard -> /storage/emulated/legacy
lrwxrwxrwx root     root              1972-02-08 02:08 sdcard1 -> /storage/sdcard1
-rw-r--r-- root     root          803 1969-12-31 18:00 seapp_contexts
-rw-r--r-- root     root           74 1969-12-31 18:00 selinux_version
-rw-r--r-- root     root       219825 1969-12-31 18:00 sepolicy
-rw-r--r-- root     root        11425 1969-12-31 18:00 service_contexts
drwxr-x--x root     sdcard_r          1972-02-08 02:08 storage
dr-xr-xr-x root     root              1972-02-08 02:08 sys
drwxr-xr-x root     root              2015-07-26 17:39 system
lrwxrwxrwx root     root              1972-02-08 02:08 tmp -> /dev/socket
drwxr-xr-x root     root              2015-07-28 18:29 tmp-mksh
-rw-r--r-- root     root         9979 1969-12-31 18:00 ueventd.qcom.rc
-rw-r--r-- root     root         4498 1969-12-31 18:00 ueventd.rc
lrwxrwxrwx root     root              1972-02-08 02:08 usbdisk -> /storage/usbdisk
lrwxrwxrwx root     root              1972-02-08 02:08 vendor -> /system/vendor
root@SGP311:/ # cd sdcard
root@SGP311:/sdcard # ls -la
drwxrwx--- root     sdcard_r          2015-07-26 01:53 .HhTjqSRo6dybqDAV2ImUSREmnZU=
drwxrwx--- root     sdcard_r          2015-07-26 18:24 .eCtcQjbu1dgnvtFnvnr6yepTp1M=
drwxrwx--- root     sdcard_r          2015-07-28 19:31 .estrongs
-rw-rw---- root     sdcard_r   835945 2015-07-26 02:05 .tempLockScreenWallpaper
drwxrwx--- root     sdcard_r          2015-04-08 04:43 Alarms
drwxrwx--x root     sdcard_r          2015-04-08 04:43 Android
drwxrwx--- root     sdcard_r          2015-07-26 22:49 Books
drwxrwx--- root     sdcard_r          2015-07-28 21:15 DCIM
drwxrwx--- root     sdcard_r          2015-07-26 02:12 DevexpertNET
drwxrwx--- root     sdcard_r          2015-07-28 21:27 Download
drwxrwx--- root     sdcard_r          2015-07-27 18:35 Folder
drwxrwx--- root     sdcard_r          2015-07-27 18:35 Folder2
drwxrwx--- root     sdcard_r          2015-07-25 02:07 MEGA
drwxrwx--- root     sdcard_r          2015-04-08 04:43 Movies
drwxrwx--- root     sdcard_r          2015-07-25 00:51 Music
drwxrwx--- root     sdcard_r          2015-04-08 04:43 Notifications
drwxrwx--- root     sdcard_r          2015-04-08 04:43 Pictures
drwxrwx--- root     sdcard_r          2015-04-08 04:43 Podcasts
drwxrwx--- root     sdcard_r          2015-04-08 04:43 Ringtones
lstat './TWRP' failed: Permission denied
drwxrwx--- root     sdcard_r          2015-07-28 01:03 TitaniumBackup
drwxrwx--- root     sdcard_r          2015-07-26 22:47 WD My Cloud
drwxrwx--- root     sdcard_r          2015-07-25 00:30 airdroid
drwxrwx--- root     sdcard_r          2015-07-25 03:38 backups
lstat './clockworkmod' failed: Permission denied
-rw-rw---- root     sdcard_r      145 2015-07-28 21:13 customized-capability.xml
drwxrwx--- root     sdcard_r          2015-07-28 00:58 data
-rw-rw---- root     sdcard_r    14336 2015-07-28 21:13 default-capability.xml
drwxrwx--- root     sdcard_r          2015-07-26 22:49 kindle
drwxrwx--- root     sdcard_r          2015-07-24 20:07 media
drwxrwx--- root     sdcard_r          2015-07-27 14:03 mysword
-rw-rw---- root     sdcard_r    16638 2015-07-26 22:27 settings-4.k9s
root@SGP311:/sdcard # cd /sdcard1                                              
root@SGP311:/sdcard1 # ls -la                                                  
drwxrwx--- root     sdcard_r          2015-07-24 14:51 .HhTjqSRo6dybqDAV2ImUSREmnZU=
lstat './.android_secure' failed: Permission denied
drwxrwx--x root     sdcard_r          2014-08-30 22:52 Android
drwxrwx--- root     sdcard_r          2015-06-07 15:23 DCIM
drwxrwx--- root     sdcard_r          2015-04-16 18:49 Documents
drwxrwx--- root     sdcard_r          2015-06-07 15:23 Download
drwxrwx--- root     sdcard_r          2015-07-28 21:36 Folder
drwxrwx--- root     sdcard_r          2013-08-17 16:57 Media
drwxrwx--- root     sdcard_r          2013-08-17 16:57 Misc
drwxrwx--- root     sdcard_r          2013-08-17 16:57 Music
drwxrwx--- root     sdcard_r          2013-08-17 16:58 OpenVPN
drwxrwx--- root     sdcard_r          2015-07-24 14:54 Pictures
drwxrwx--- root     sdcard_r          2015-03-05 22:24 Videos
drwxrwx--- root     sdcard_r          2015-06-07 15:23 bluetooth
-rwxrwx--- root     sdcard_r      145 2015-07-28 21:13 customized-capability.xml
-rwxrwx--- root     sdcard_r    14335 2015-07-28 21:13 default-capability.xml
drwxrwx--- root     sdcard_r          2013-08-18 21:39 downloads
drwxrwx--- root     sdcard_r          2015-06-07 15:23 image
-rwxrwx--- root     sdcard_r  3036091 2011-04-05 12:37 infosecuritypro201113-dl.pdf
drwxrwx--- root     sdcard_r          2015-07-24 17:19 mysword
drwxrwx--- root     sdcard_r          2015-07-24 17:19 mysword1
drwxrwx--- root     sdcard_r          2015-07-28 21:36 others
-rwxrwx--- root     sdcard_r     5848 2013-12-22 14:07 transcriptTerm.pdf
drwxrwx--- root     sdcard_r          2015-06-07 15:23 video
root@SGP311:/sdcard1 #
Just FYI, but I'm having trouble with my SD card (won't mount in Linux, can't format/erase in recovery or ROM). I don't see how that would affect this but thought I'd mention it....
 

[NUT]

Senior Member
Here is the output with the trailing slash. Still a big difference between the sdcard/sdcard1 and $INTERNAL/$EXTERNAL_STORAGE.
Code:
shell@SGP311:/ $ su
root@SGP311:/ # ls -la $EXTERNAL_STORAGE/
drwxrwx--- root     sdcard_r          2015-07-26 01:53 .HhTjqSRo6dybqDAV2ImUSREmnZU=
drwxrwx--- root     sdcard_r          2015-07-26 18:24 .eCtcQjbu1dgnvtFnvnr6yepTp1M=
drwxrwx--- root     sdcard_r          2015-07-28 19:31 .estrongs
-rw-rw---- root     sdcard_r   835945 2015-07-26 02:05 .tempLockScreenWallpaper
drwxrwx--- root     sdcard_r          2015-04-08 04:43 Alarms
drwxrwx--x root     sdcard_r          2015-04-08 04:43 Android
drwxrwx--- root     sdcard_r          2015-07-26 22:49 Books
drwxrwx--- root     sdcard_r          2015-07-25 03:01 DCIM
drwxrwx--- root     sdcard_r          2015-07-26 02:12 DevexpertNET
drwxrwx--- root     sdcard_r          2015-07-27 13:58 Download
drwxrwx--- root     sdcard_r          2015-07-27 18:35 Folder
drwxrwx--- root     sdcard_r          2015-07-27 18:35 Folder2
drwxrwx--- root     sdcard_r          2015-07-25 02:07 MEGA
drwxrwx--- root     sdcard_r          2015-04-08 04:43 Movies
drwxrwx--- root     sdcard_r          2015-07-25 00:51 Music
drwxrwx--- root     sdcard_r          2015-04-08 04:43 Notifications
drwxrwx--- root     sdcard_r          2015-04-08 04:43 Pictures
drwxrwx--- root     sdcard_r          2015-04-08 04:43 Podcasts
drwxrwx--- root     sdcard_r          2015-04-08 04:43 Ringtones
lstat '/storage/emulated/legacy//TWRP' failed: Permission denied
drwxrwx--- root     sdcard_r          2015-07-28 01:03 TitaniumBackup
drwxrwx--- root     sdcard_r          2015-07-26 22:47 WD My Cloud
drwxrwx--- root     sdcard_r          2015-07-25 00:30 airdroid
drwxrwx--- root     sdcard_r          2015-07-25 03:38 backups
lstat '/storage/emulated/legacy//clockworkmod' failed: Permission denied
-rw-rw---- root     sdcard_r      145 2015-07-28 21:13 customized-capability.xml
drwxrwx--- root     sdcard_r          2015-07-28 00:58 data
-rw-rw---- root     sdcard_r    14336 2015-07-28 21:13 default-capability.xml
drwxrwx--- root     sdcard_r          2015-07-26 22:49 kindle
drwxrwx--- root     sdcard_r          2015-07-24 20:07 media
drwxrwx--- root     sdcard_r          2015-07-27 14:03 mysword
-rw-rw---- root     sdcard_r    16638 2015-07-26 22:27 settings-4.k9s
root@SGP311:/ # ls -la $INTERNAL_STORAGE/                                      
drwxr-xr-x root     root              1972-02-08 02:08 acct
drwxrwx--- system   cache             1972-02-08 02:08 cache
lrwxrwxrwx root     root              1969-12-31 18:00 charger -> /sbin/healthd
dr-x------ root     root              1972-02-08 02:08 config
-rw-r--r-- root     root           18 1969-12-31 18:00 crashtag
lrwxrwxrwx root     root              1972-02-08 02:08 d -> /sys/kernel/debug
drwxrwx--x system   system            1972-02-08 02:08 data
-rw-r--r-- root     root          518 1969-12-31 18:00 default.prop
drwxr-xr-x root     root              2015-07-28 18:31 dev
lrwxrwxrwx root     root              1972-02-08 02:08 etc -> /system/etc
-rw-r--r-- root     root        47853 1969-12-31 18:00 file_contexts
drwxrwx--x system   system            1972-02-08 02:08 firmware
-rw-r--r-- root     root          475 1969-12-31 18:00 fstab
-rw-r----- root     root         1445 1969-12-31 18:00 fstab.qcom
-rwxr-x--- root     root       248192 1969-12-31 18:00 init
-rwxr-x--- root     root         2614 1969-12-31 18:00 init.class_main.sh
-rwxr-x--- root     root         1187 1969-12-31 18:00 init.environ.rc
-rwxr-x--- root     root         6758 1969-12-31 18:00 init.qcom.class_core.sh
-rwxr-x--- root     root         5604 1969-12-31 18:00 init.qcom.early_boot.sh
-rwxr-x--- root     root        23433 1969-12-31 18:00 init.qcom.rc
-rwxr-x--- root     root         2088 1969-12-31 18:00 init.qcom.rmnet.sh
-rwxr-x--- root     root         3570 1969-12-31 18:00 init.qcom.sh
-rwxr-x--- root     root         3107 1969-12-31 18:00 init.qcom.syspart_fixup.sh
-rwxr-x--- root     root        22414 1969-12-31 18:00 init.rc
-rwxr-x--- root     root         1613 1969-12-31 18:00 init.sony-device.rc
-rwxr-x--- root     root        13153 1969-12-31 18:00 init.sony-platform.rc
-rwxr-x--- root     root         4181 1969-12-31 18:00 init.sony.rc
-rwxr-x--- root     root         8716 1969-12-31 18:00 init.target.rc
-rwxr-x--- root     root         1927 1969-12-31 18:00 init.trace.rc
-rwxr-x--- root     root         3885 1969-12-31 18:00 init.usb.rc
-rwxr-x--- root     root         2498 1969-12-31 18:00 init.usbmode.sh
-rwxr-x--- root     root          434 1969-12-31 18:00 init.zygote32.rc
-rw-r--r-- root     root        24120 1969-12-31 18:00 logo.rle
drwxr-xr-x root     root              1969-12-31 18:00 lta-label
drwxrwxr-x root     system            1972-02-08 02:08 mnt
dr-xr-xr-x root     root              1969-12-31 18:00 proc
-rw-r--r-- root     root         5379 1969-12-31 18:00 property_contexts
drwxr-xr-x root     root              1969-12-31 18:00 res
drwx------ root     root              2015-04-08 04:43 root
drwxr-x--- root     root              2009-01-02 07:00 sbin
lrwxrwxrwx root     root              1972-02-08 02:08 sdcard -> /storage/emulated/legacy
lrwxrwxrwx root     root              1972-02-08 02:08 sdcard1 -> /storage/sdcard1
-rw-r--r-- root     root          803 1969-12-31 18:00 seapp_contexts
-rw-r--r-- root     root           74 1969-12-31 18:00 selinux_version
-rw-r--r-- root     root       219825 1969-12-31 18:00 sepolicy
-rw-r--r-- root     root        11425 1969-12-31 18:00 service_contexts
drwxr-x--x root     sdcard_r          1972-02-08 02:08 storage
dr-xr-xr-x root     root              1972-02-08 02:08 sys
drwxr-xr-x root     root              2015-07-26 17:39 system
lrwxrwxrwx root     root              1972-02-08 02:08 tmp -> /dev/socket
drwxr-xr-x root     root              2015-07-28 18:29 tmp-mksh
-rw-r--r-- root     root         9979 1969-12-31 18:00 ueventd.qcom.rc
-rw-r--r-- root     root         4498 1969-12-31 18:00 ueventd.rc
lrwxrwxrwx root     root              1972-02-08 02:08 usbdisk -> /storage/usbdisk
lrwxrwxrwx root     root              1972-02-08 02:08 vendor -> /system/vendor
root@SGP311:/ # cd sdcard
root@SGP311:/sdcard # ls -la
drwxrwx--- root     sdcard_r          2015-07-26 01:53 .HhTjqSRo6dybqDAV2ImUSREmnZU=
drwxrwx--- root     sdcard_r          2015-07-26 18:24 .eCtcQjbu1dgnvtFnvnr6yepTp1M=
drwxrwx--- root     sdcard_r          2015-07-28 19:31 .estrongs
-rw-rw---- root     sdcard_r   835945 2015-07-26 02:05 .tempLockScreenWallpaper
drwxrwx--- root     sdcard_r          2015-04-08 04:43 Alarms
drwxrwx--x root     sdcard_r          2015-04-08 04:43 Android
drwxrwx--- root     sdcard_r          2015-07-26 22:49 Books
drwxrwx--- root     sdcard_r          2015-07-28 21:15 DCIM
drwxrwx--- root     sdcard_r          2015-07-26 02:12 DevexpertNET
drwxrwx--- root     sdcard_r          2015-07-28 21:27 Download
drwxrwx--- root     sdcard_r          2015-07-27 18:35 Folder
drwxrwx--- root     sdcard_r          2015-07-27 18:35 Folder2
drwxrwx--- root     sdcard_r          2015-07-25 02:07 MEGA
drwxrwx--- root     sdcard_r          2015-04-08 04:43 Movies
drwxrwx--- root     sdcard_r          2015-07-25 00:51 Music
drwxrwx--- root     sdcard_r          2015-04-08 04:43 Notifications
drwxrwx--- root     sdcard_r          2015-04-08 04:43 Pictures
drwxrwx--- root     sdcard_r          2015-04-08 04:43 Podcasts
drwxrwx--- root     sdcard_r          2015-04-08 04:43 Ringtones
lstat './TWRP' failed: Permission denied
drwxrwx--- root     sdcard_r          2015-07-28 01:03 TitaniumBackup
drwxrwx--- root     sdcard_r          2015-07-26 22:47 WD My Cloud
drwxrwx--- root     sdcard_r          2015-07-25 00:30 airdroid
drwxrwx--- root     sdcard_r          2015-07-25 03:38 backups
lstat './clockworkmod' failed: Permission denied
-rw-rw---- root     sdcard_r      145 2015-07-28 21:13 customized-capability.xml
drwxrwx--- root     sdcard_r          2015-07-28 00:58 data
-rw-rw---- root     sdcard_r    14336 2015-07-28 21:13 default-capability.xml
drwxrwx--- root     sdcard_r          2015-07-26 22:49 kindle
drwxrwx--- root     sdcard_r          2015-07-24 20:07 media
drwxrwx--- root     sdcard_r          2015-07-27 14:03 mysword
-rw-rw---- root     sdcard_r    16638 2015-07-26 22:27 settings-4.k9s
root@SGP311:/sdcard # cd /sdcard1                                              
root@SGP311:/sdcard1 # ls -la                                                  
drwxrwx--- root     sdcard_r          2015-07-24 14:51 .HhTjqSRo6dybqDAV2ImUSREmnZU=
lstat './.android_secure' failed: Permission denied
drwxrwx--x root     sdcard_r          2014-08-30 22:52 Android
drwxrwx--- root     sdcard_r          2015-06-07 15:23 DCIM
drwxrwx--- root     sdcard_r          2015-04-16 18:49 Documents
drwxrwx--- root     sdcard_r          2015-06-07 15:23 Download
drwxrwx--- root     sdcard_r          2015-07-28 21:36 Folder
drwxrwx--- root     sdcard_r          2013-08-17 16:57 Media
drwxrwx--- root     sdcard_r          2013-08-17 16:57 Misc
drwxrwx--- root     sdcard_r          2013-08-17 16:57 Music
drwxrwx--- root     sdcard_r          2013-08-17 16:58 OpenVPN
drwxrwx--- root     sdcard_r          2015-07-24 14:54 Pictures
drwxrwx--- root     sdcard_r          2015-03-05 22:24 Videos
drwxrwx--- root     sdcard_r          2015-06-07 15:23 bluetooth
-rwxrwx--- root     sdcard_r      145 2015-07-28 21:13 customized-capability.xml
-rwxrwx--- root     sdcard_r    14335 2015-07-28 21:13 default-capability.xml
drwxrwx--- root     sdcard_r          2013-08-18 21:39 downloads
drwxrwx--- root     sdcard_r          2015-06-07 15:23 image
-rwxrwx--- root     sdcard_r  3036091 2011-04-05 12:37 infosecuritypro201113-dl.pdf
drwxrwx--- root     sdcard_r          2015-07-24 17:19 mysword
drwxrwx--- root     sdcard_r          2015-07-24 17:19 mysword1
drwxrwx--- root     sdcard_r          2015-07-28 21:36 others
-rwxrwx--- root     sdcard_r     5848 2013-12-22 14:07 transcriptTerm.pdf
drwxrwx--- root     sdcard_r          2015-06-07 15:23 video
root@SGP311:/sdcard1 #
Just FYI, but I'm having trouble with my SD card (won't mount in Linux, can't format/erase in recovery or ROM). I don't see how that would affect this but thought I'd mention it....

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).
 
  • Like
Reactions: ernieg92

ernieg92

Senior Member
Apr 19, 2012
72
3
Denver Metro
Google Pixel 5
Your root'ed commands are lacking a /, which makes them behave differently, because one of them is a symlink... something weird I know, but can you try them again with the slash at the end of the command?

It's odd though, there should be no reason why NDR Utils fails...

Can you both update it to the latest available on Play (not sure if it differs!)?
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!


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).
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.
 
Last edited:
  • Like
Reactions: PVL_93_RU and [NUT]

kweeky

New member
Jul 29, 2015
3
0
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
 

[NUT]

Senior Member
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.

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
 
Last edited:

InvisibleKnight

Senior Member
Nov 6, 2011
62
10
Rome
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
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!
 

juanpirulo

Senior Member
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 : )
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
 
  • Like
Reactions: Bird40
G

GuestK00283

Guest
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

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 : )
 

pvnsai73

Senior Member
Jul 31, 2014
326
113
Which resolution theme should we have to use for the twrp in xzdual recovery ?
 
Last edited:

McBane87

Senior Member
Jun 29, 2012
292
259
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 : )

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.
 
G

GuestK00283

Guest
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.

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.
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 691
    -=[XZDualRecovery]=-
    TWRP 2.8.7.0 & PhilZ Touch 6.59.0
    *** For Locked and Unlocked BOOTLOADERS! ***

    I proudly present you the first and only DUAL RECOVERY for locked boot loaders on our lovely Xperia phones! :cool:

    If you have an unlocked bootloader and chose to keep the STOCK Sony kernel, you can also use this MOD.

    Currently supported XPERIA models:
    These are also links to the device specific Q&A threads.
    Xperia Z: SO-02E, C6602, C6603, C6606, C6616
    Xperia ZL: C6502, C6503, C6506
    Xperia Tablet Z: SO-03E, SGP311, SGP312, SGP321, SGP351
    Xperia Z Ultra: C6802, C6806, C6833, C6843
    Xperia Z1: C6902, C6903, C6906, C6943, C6916
    Xperia Z1 Compact: D5502, D5503, D5506
    Xperia Z2: D6502, D6503, D6506, D6543, D6563
    Xperia Tablet Z2: SGP511, SGP512, SGP521, SGP551, SGP561
    Xperia ZR: C5502, C5503, C5506
    Xperia T, TX, TL and V: LT30p, LT29, LT30at, LT25i
    Xperia S: LT26i
    Xperia SP: C5302, C5303
    Xperia T2 Ultra: D5303, D5322
    Xperia Z3: D6603, D6633, D6643, D6653, D6616
    Xperia Z3 Compact: D5803, D5833
    Xperia Tablet Z3 Compact: SGP621, SGP641, SGP651

    I will be adding more and more devices to the list in the near future, keep your eyes on this thread for them to be released :)
    I will also start a Q&A thread for each of the models officially supported, once released from the experimental stage.

    XZDualRecovery User Manual

    Special Thanks:
    • DooMLoRD for all his excellent work on our much loved Sony phones!
    • The Team Win developers for TWRP
    • The ClockWorkMod developers for CWM
    • @alexocean for his awesome job testing almost all FW releases and the discovery of SuperSU causing problems for the installation of this recovery!
    • @RoberM for testing
    • @surdu_petru for testing and handy pointers
    • @Androxyde for allowing to use his linux and mac adb binaries.
    • @lancebukkake for finding the TWRP 'fix' to use exFAT formatted sdcards!
    • @delewer for the final fix for TWRP and its use of exFAT formatted sdcards
    • @DevShaft for some code help on the windows installer (the menu!)
    • @Androxyde again, but now for his bash code/script suggestions... oh boy this guy is a genius! :highfive:
    • @Tamirwig and @shoey63 for their excellent job at testing early BETA's (Xperia Z)
    • @gregbradley for his extensive testing on the Xperia Z1
    • @russel5 for his tinkering and general debugging help :cool:

    GitHub Repository:
    https://github.com/xNUTx/XZDualRecovery

    Downloads:
    All past, current and future releases will appear on http://nut.xperia-files.com/ for download, also providing a QR code for easy downloading on your mobile :) The flashable file will bring any previous version to the latest release.

    Well, enjoy! :fingers-crossed:

    The origins of this XZDualRecovery package are in the packages done by:
    Krabappel2548, Cpasjuste and DooMLoRD
    Thank you for your excellent work guys! :victory:
    Your thanks (and donations) should (also) go out to them, they deserve it! :highfive:

    XDA:DevDB Information
    XZDualRecovery, Tool/Utility for the Sony Xperia Z

    Contributors
    [NUT], AngelBob , shoey63 , Olivier, Krabappel2548, DooMLoRD, Cpasjuste, Tungstwenty, sijav, zxz0O0, MohammadAG, McBane87, oshmoun
    Source Code: https://github.com/xNUTx/XZDualRecovery


    Version Information
    Status: Stable
    Current Stable Version: 2.8.26
    Stable Release Date: 2016-02-22

    Created 2013-07-18
    Last Updated 2016-02-22
    250
    Hello guys,

    I noticed there are some problems getting dualrecovery to work on Lollipop. I created a small hack to bypass the SELinux enforcement (wonder why no one else created it already). Anyway I attached a little bat file to fix dualrecovery again (tested on Z3C).

    Source will be released in the next days and probably also integrated in the official dualrecovery.

    Happy eastern.

    Edit: Source available here https://github.com/dosomder/byeselinux
    136
    Known Issues and Frequently Asked Questions

    Known Issues:
    All known issues in PhilZ, TWRP and CWM on locked boot loaders apply, see their respective threads for more information.

    Busybox updaters can kill XZDualRecovery, see the FAQ below for more information.

    Frequently Asked Questions:

    How to set the correct time & date in PhilZ 6.59.0
    • Boot to PhilZ Touch;
    • Tap 'Recovery Settings';
    • Tap 'Gui Preferences';
    • Tap 'Time Settings';
    • Tap 'Change date and time';
    • Tic one of the last 3 options in this menu to try it;
    • Reboot to PhilZ Touch to see if it sticks, if not, try another and reboot to see if it helped, do this for all options to try them;
    • If one of them does help but does not stick at reboot, tic 'Try Force Persist on Reboot' once (it will un-tic itself after a reboot).
    • Done! :)

    NOTE: if it's close to being correct (max 15h difference before or after your time) you need to correct the timezone.


    About TWRP 2.6 and the use of INTERNAL STORAGE
    [snip]...but permissions are set like: Srw-Srw-r (644) (It seems like the 'S' is the problem, I'm sure GID and UID are ticked)...[snip]

    A workaround for this issue is to use TWRP's advanced options, after creating a backup you wish to move to the PC:

    1. go back to the main menu
    2. go to advanced
    3. go to filemanager
    4. navigate to /data/media/0/TWRP/BACKUPS/*SERIAL*/*BACKUPNAME*
    5. select one of the backup files
    6. press chmod button (the one without 755)
    7. type 0664 and press go
    8. repeat 5->7 for each of the files in the backup, you can skip boot and the md5 files.
    9. reboot to system and you should be able to copy the files without problems.

    Alternatively you can install adbd Insecure by @Chainfire (non-free app from Play, or for free from it's XDA thread) and run ADBd itself as root, which elevates the rights and omits the issue all together.

    I think it's a feature and not a bug (as it secures your backups), but I'll try to convince Team Win to make the setuid/setguid a choice rather then a default.


    Installation of XZDualRecovery on UNROOTED devices
    The 2.8.21 and older installer package uses Easy Root Tool for various Xperia phones, it is able to gain root on all of the currently supported devices, allowing to install XZDR.

    Confirmed working:
    • Z - C6603
    • Z1 Compact - D5503 (doesn't seem to work on JellyBean), SO-01F (docomo)
    • Z1 - C6903,
    • Z Ultra - C6802, C6833
    • ZR, C5502
    • Z2 - D6503
    • Z2 Tablet - SGP511, SGP512
    • ZL2 - SOL25

    If you want to help me perfect this list, use the tool done by @zxz0O0 in his topic and try to root your device. When testing also try older ROM versions, the latest FW versions may have been patched.

    Thanks @zxz0O0 for the initial list.

    The rootless installation has been made possible by:
    • @geohot: Root exploit
    • @MohammadAG: Disable RIC kernel module (Link)
    • @cubeundcube: Disable RIC on Z2 phone (findricaddr/writekmem)
    • @zxz0O0: for creating the initial tool where I have based this unrooted install option on.

    Thanks for your hard work guys! :highfive:

    The 2.8.22 and later installer package uses rootkitXperia for various Xperia phones, it is able to gain root on all of the currently supported devices -if they are running the correct Lollipop version- allowing to install XZDR.

    Thanks go to @cubeundcube and @zxz0O0 respectively for developing and making some changes to allow me to utilize it for XZDualRecovery installation. Thanks guys!


    XZDualRecovery's (2.8.21 and older) Busybox dependency and compatible Busybox updaters

    Busybox Updater/Installer: If you have XZDualRecovery installed, un-install any Busybox updating app/tool as most if not all of them will install a version of busybox which does not support the lzma compression applets XZDualRecovery depends on. The version installed together with XZDualRecovery is very stable and I have yet to hear anyone complain about it's stability.

    @vaisakh7 found a busybox updater which seems to be compatible with XZDualRecovery: Busybox On Rails, which installs a version of busybox created by stericson, which leads me to believe his Busybox installer should also install a version which works together with XZDualRecovery.

    Either case, be careful with updating busybox as there still is a possibility it will break your ability to enter recovery or even break full root, which means you might not be able to recover from the broken situation. Your best bet is the installer version, using that to break the lock on the system partition and reinstall the correct busybox.

    XZDualRecovery 2.8.22 and newer do not suffer from this dependency, you can use whatever busybox updater app you like when you have 2.8.22 or newer installed.


    I installed XPOSED on Lollipop and now I am experiencing a boot loop!

    @ondrejvaroscak found a workaround to fix your bootloop issues: [WORKAROUND] Bootloops with Xposed in Lollipop

    While using the installer I get the message "This device is unauthorized" and I can't install XZDualRecovery!

    Authorizations... The latest versions of adb and android need this, it's nothing XZDR related. If you have USB debugging turned on, and your mobile disconnected from your PC, just make sure you 'revoke all authorizations for USB debugging' in the developer options menu. Then reboot your phone and before doing anything else, make sure you're looking at the home screen on your device, then hook up your USB cable. Your mobile should then ask if the connected PC is authorized or not. Once answered you can start the installer.
    122
    A small update on progress:

    The issues with XZDR are mainly caused by Sony actually properly setting up SELinux support for the very first time on the LP ROM's, something they neglected in all of the KK releases. This makes the LP version a lot more secure, which is a good thing. The problem is that I now know what to fix, but am still looking in to how to fix it. :angel:

    For the techies among us:

    During INIT the hijack still works, but the script is not able to change anything on the rootfs, it allows you to create a folder and if you mount a tmpfs on it you can write stuff to it, but if you try to write anything to the folder as it is (without tmpfs) it will not allow you to do so. This is because the SELinux context of my scripts is not set correctly, so the kernel blocks just about everything I try to do. I'm busy configuring and compiling a new busybox to include in XZDR with better SELinux support, as the one I am currently using is lacking the extended SELinux support I will need to fix this.
    The other problem is that init is less easy to override with the init from the recoveries, it simply continues the LP boot, I am in the progress of including 2nd-init support ( created by SkrilaxCZ ) and will be integrating parts and ideas of the safestrap project by Hashcode to fix these issues.
    The last but not least problem is that I can still mount the SDCard, but I am unable to write to it, most likely also due to the SELinux restrictions. If you remove the SDCard from the device it will use /cache which seems to be set up with less strict permissions and it will be able to do just about everything, except boot the actual recoveries.

    Last night I worked from 23:00PM all the night up to 6:30AM, pulling an almost an all-nighter. I'm not giving up just yet :cowboy:

    My thanks go to @Hashcode for a late night chat (for me that is, he was at work as he is located on the other side of the globe!) which helped me find the most likely cause.