Stuck in TWRP boot after formatting data - ZTE Axon 7 Questions & Answers

Hi there,
I had a problem after installing LOS 15.1, my TWRP could not mount /data anymore. I tried then to change the partition (first reformat, then to exFat4), however since then my data of my OS is corrupted and the phone only starts into recovery/TWRP.
In recovery however, it is stuck into the teamwin twrp splash screen... The phone still reacts to adb commands, but I cannot start it anymore except fastboot and into the explained recovery state... Anyone an idea how to get my phone running again?
(I tried already to install different versions of TWRP, did'nt help)
Here is my recovery.log after I start TWRP and it gets stuck:
Code:
Starting TWRP 3.2.1-0-2af13795 on Wed Jan 28 15:53:59 1970
(pid 369)
RECOVERY_SDCARD_ON_DATA := true
I:Lun file '/sys/devices/soc/6a00000.ssusb/6a00000.dwc3/gadget/lun0/file'
TW_INCLUDE_CRYPTO := true
I:TW_BRIGHTNESS_PATH := /sys/devices/soc/900000.qcom,mdss_mdp/900000.qcom,mdss_mdp:qcom,mdss_fb_primary/leds/lcd-backlight/brightness
I:Found brightness file at '/sys/devices/soc/900000.qcom,mdss_mdp/900000.qcom,mdss_mdp:qcom,mdss_fb_primary/leds/lcd-backlight/brightness'
I:TWFunc::Set_Brightness: Setting brightness control to 153
I:LANG: en
Starting the UI...
setting DRM_FORMAT_RGBX8888 and GGL_PIXEL_FORMAT_RGBX_8888
cannot find/open a drm device: No such file or directory
fb0 reports (possibly inaccurate):
vi.bits_per_pixel = 32
vi.red.offset = 0 .length = 8
vi.green.offset = 8 .length = 8
vi.blue.offset = 16 .length = 8
setting GGL_PIXEL_FORMAT_RGBA_8888
double buffered
framebuffer: 0 (1440 x 2560)
Using fbdev graphics.
I:TWFunc::Set_Brightness: Setting brightness control to 153
I:Loading package: splash (/twres/splash.xml)
I:Load XML directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/splash.xml' directly
I:Checking resolution...
I:Scaling theme width 1.333333x and height 1.333333x, offsets x: 0 y: 0 w: 0 h: 0
I:Loading resources...
I:Loading variables...
I:Loading mouse cursor...
I:Loading pages...
I:Loading page splash
I:Switching packages (splash)
I:minui: /sys/board_properties/virtualkeys.synaptics_dsx is 4 % 6
I:minui: /sys/board_properties/virtualkeys.synaptics_dsx: ignoring unknown virtual key type 102
=> Linking mtab
=> Processing recovery.fstab
I:Reading /etc/recovery.fstab
I:Processing '/boot'
I:Processing '/recovery'
I:Processing '/system'
I:Processing '/system_image'
I:Processing '/data'
I:Processing '/cache'
I:Processing '/modem_image'
I:Processing '/bluetooth'
I:Processing '/misc'
I:Processing '/efs1'
I:Processing '/efs2'
I:Processing '/efsg'
I:Processing '/efsc'
I:Processing '/persist'
I:Created '/persist' folder.
I:Processing '/external_sd'
I:Created '/external_sd' folder.
I:Processing '/usb-otg'
I:Created '/usb-otg' folder.
I:Done processing fstab files
I:Setting up '/data' as data/media emulated storage.
I:Created '/sdcard' folder.
I:Can't probe device /dev/block/sda9
I:Unable to mount '/data'
I:Actual block device: '/dev/block/sda9', current file system: 'f2fs'
I:Can't probe device /dev/block/sda9
I:Unable to mount '/data'
I:Actual block device: '/dev/block/sda9', current file system: 'f2fs'
get_crypt_ftr_info crypto key location: '/dev/block/bootdevice/by-name/cryptkey'
I:Backup folder set to '/data/media/TWRP/BACKUPS/3b7135c8'
I:Settings storage is '/data/media'
I:Device is encrypted with the default password, attempting to decrypt.
crypt_ftr->fs_size = 109914520
Using scrypt with keymaster for cryptfs KDF
Invalid hex string
Failed to convert passwd from hex, using passwd instead
keymaster module name is Keymaster QTI HAL
keymaster version is 256
Found keymaster1 module, using keymaster1 API.
Signing safely-padded object
Using scrypt with keymaster for cryptfs KDF
Invalid hex string
Failed to convert passwd from hex, using passwd instead
keymaster module name is Keymaster QTI HAL
keymaster version is 256
Found keymaster1 module, using keymaster1 API.
Signing safely-padded object
crypt_ftr->fs_size = 109914520
Using scrypt with keymaster for cryptfs KDF
keymaster module name is Keymaster QTI HAL
keymaster version is 256
Found keymaster1 module, using keymaster1 API.
Signing safely-padded object
Using scrypt with keymaster for cryptfs KDF
keymaster module name is Keymaster QTI HAL
keymaster version is 256
Found keymaster1 module, using keymaster1 API.
Signing safely-padded object
load_crypto_mapping_table: target_type = req-crypt
load_crypto_mapping_table: real_blk_name = /dev/block/sda9, extra_params = fde_enabled ice
Password matches
Data successfully decrypted, new block device: '/dev/block/dm-0'
Thanks in advance!

Well, the last line of your log does begin with 'data successfully decrypted', so logically, you are still encrypted. In TWRP, you must ALWAYS format data to remove encryption, wipe isn't enough. You can format data as either ext4 or f2fs, depending on what your current ROM/kernel supports. Ext4 is the safer option and will always work.
The exact version of TWRP you are using doesn't really matter, but I suggest @jcadduono's official TWRP for our device. Just download the latest *.img from twrp.me. Flash it with whatever tool you know works (Axon7Tool, Axon 7 EDL Tool, fastboot, etc).
If you can access fastboot then try:
fastboot erase userdata
or
fastboot format userdata
I haven't used fastboot in awhile, so I'm not sure which of those commands it is, but 1 of the 2 should work. Once that has succeeded then (re)flash TWRP and try booting to recovery again.
If all else fails then you can always flash the stock ROM EDL of your choice, that should get you up and running.

I tried already in fastboot erase userdata or format userdata - the phone doesn't know this partition.
Further, flashing a stock ROM in EDL mode with MiFlash (e.g. this ROM https://forum.xda-developers.com/axon-7/how-to/download-center-factory-images-ota-t3606547 A2017G-N-B12-FULL EDL) didn't work either. I receive always an error "cannot receive hello packet"...

The phone doesn't know userdata? Every Android device has one. And I'm pretty sure that's what it's called. Or just data for shorthand. Anyway, Google says that both of those fastboot commands are valid. Did you type them exactly as I posted? What is the exact error, verbatim?
As for the can't receive hello packet bit, then either you are not really in EDL mode, your EDL drivers are screwed up, or something fishy is going on with MiFlash.
Open up Device Management in Windows, find the option that enables hidden devices. Then expand every category and uninstall any device driver that is obviously Axon related. Make sure you tick the "delete driver" (or whatever it says) box too.
If you have used Zadig drivers, they can interfere.
Uninstall MiFlash.
Go to:
https://forum.xda-developers.com/axon-7/development/edl-emergency-dl-mode-twrp-unlock-t3553514
Download the Qualcomm drivers and MiFlash from the first post, install them as instructed. That is all I've ever used for EDL flashing, it just works, no need to change it.
Unplug phone from PC, make sure it is turned off. Hold VolUp+VolDown+Power. Let go when you see a red light blink in upper left (if it stays on you are in DFU mode). Connect phone, open MiFlash, everything should work.

Related

[Q] (Q) Failing backups and restore

I apologize if I've overlooked something simple here, but I am unable to restore my backups. I have swapped to PhilZ Advanced Touch CWM Recovery 6.0.3.7 newly posted in the Android Development Sub Forum.
I believe the error lies in that, for some reason, the external sd card is included in the data partition size calculation (I'm shooting in the dark here but when performing a backup it says needed free space is 21401 MB...I have a 16gb external sd card in the phone). The backups complete with CWM and only take up approx. 1500 MB.
When restoring any of the previously created backups, they all fail at the point of the /data partition. Is there some easy fix for this moving forward (maybe something simple I can change in one of the dumped backup files)? Something I need to reformat?
FWIW I had this problem of 21 GB backup size with TWRP 2.5 as well (yet TWRP fails because it does not continue without the necessary free space).
Any insight would be most appreciated!
Are the errors contained the log typical or do they point out something obvious that needs attention?
Thanks,
Joof
Here are the relevant pieces from the log of the backup being performed....not sure how to grab one from the failed restore and would prefer not to as I have to end up re-flashing the phone
------------------------
Starting recovery on Tue Oct 1 23:30:13 2013
(UTC)
can't open /dev/tty0: No such file or directory
framebuffer: fd 3 (540 x 960)
CWM Advanced Edition 5
CWM Base version: v6.0.3.7
I:Build version: 5.15.0 - cm_xt907
recovery filesystem table
=========================
0 /tmp ramdisk (null) (null) 0
1 /boot emmc /dev/block/platform/msm_sdcc.1/by-name/boot (null) 0
2 /system ext4 /dev/block/platform/msm_sdcc.1/by-name/system (null) 0
3 /cache ext4 /dev/block/platform/msm_sdcc.1/by-name/cache (null) 0
4 /data ext4 /dev/block/platform/msm_sdcc.1/by-name/userdata (null) -16384
5 /sdcard datamedia /dev/null (null) 0
6 /external_sd vfat /dev/block/mmcblk1p1 /dev/block/mmcblk1 0
7 /logo emmc /dev/block/platform/msm_sdcc.1/by-name/logo (null) 0
8 /modem ext4 /dev/block/platform/msm_sdcc.1/by-name/modem (null) 0
W:Unable to get recovery.fstab info for /datadata during fstab generation!
W:Unable to get recovery.fstab info for /emmc during fstab generation!
W:Unable to get recovery.fstab info for /preload during fstab generation!
W:Unable to get recovery.fstab info for /sd-ext during fstab generation!
I:Completed outputting fstab.
I:using /data/media/0 for /sdcard
Irocessing arguments.
I:Checking arguments.
Warning: No file_contexts
I:Warning: No file_contexts
I:device_recovery_start()
I:Cannot open /data/philz-touch/philz-touch_5.ini
I:nandroid_compression set to default (fast)
I:Cannot open /data/philz-touch/philz-touch_5.ini
I:nandroid_md5sum set to default (1)
I:Cannot open /data/philz-touch/philz-touch_5.ini
I:show_nandroid_size_progress set to default (1)
Command: "/sbin/recovery"
ro.boot.hardware=qcom
....
....
(REMOVED FOR BREVITY)
I:Checking for extendedcommand & OpenRecoveryScript...
I:Skipping execution of extendedcommand, file not found...
I:Skipping execution of OpenRecoveryScript, file not found...
I:ro.modversion=pa_scorpionmini-3.99-RC2-30SEP2013-084601
I:setting up /data/media(/0) for /sdcard.
I:using /data/media/0 for /sdcard
I:Checking needed space for backup '/external_sd/clockworkmod/backup/2013-10-01.23.30.25_pa_scorpionmini-3.99-RC2-30SEP2'
E:Failed to find partition size '/boot'
I:/system backup size (stat)=430Mb
I:/cache backup size (stat)=105Mb
I:/data: tot size=4784Mb, free=3600Mb, backup size=21401Mb, used=21709Mb, media=308Mb
I:/external_sd/.android_secure backup size=0Mb
>> Free space: 6414Mb (42%)
>> Needed space: 21937Mb
>> Unknown partitions size (1): - /boot
>> Backing up /boot...
Backing up boot image...
Backup of boot image completed.
Volume not found! Skipping backup of /recovery...
I:setting up /data/media(/0) for /sdcard.
I:using /data/media/0 for /sdcard
>> Backing up /system...
(APPS LISTED...REMOVED FOR BREVITY)
Backup of system completed.
I:setting up /data/media(/0) for /sdcard.
I:using /data/media/0 for /sdcard
>> Backing up /data...
(REMOVED FOR BREVITY)
Backup of data completed.
I:setting up /data/media(/0) for /sdcard.
I:using /data/media/0 for /sdcard
>> Backing up /external_sd/.android_secure...
Backup of .android_secure completed.
I:setting up /data/media(/0) for /sdcard.
I:using /data/media/0 for /sdcard
>> Backing up /cache...
(REMOVED FOR BREVITY)
Backup of cache completed.
No sd-ext found. Skipping backup of sd-ext.
Generating md5 sum...
Well fastboot flashing stock recovery and doing factory reset/data/cache wipe fixed it. I guess this is not a common issue but thought I'd share my remedy.
Sent from my XT907 using Tapatalk 2
Glad to hear you got your phone working. Just curious, are you now using Philz recovery?
Sent from my XT901 using Tapatalk 4
Thanks!
And Yes. Official philz touch.
I just got this device last week and unlocked the boot loader. I had some issues loading the AOKP 4.3 (boot loops and such even with doing 3x wipes of everything). I eventually had it running smoothly and decided to try the other offerings which is where I discovered this weird backup file size.
But a random post made today in the pacman ROM thread led me to try stock recovery.
Sent from my XT907 using Tapatalk 2

[Q] Have IMEI, SN, and I can backup /EFS. Still unable to mount /EFS (With CWM log)

Greetings,
Title says all, I'm posting the log from CWM.
I tried flashing lots of fw's. And this fix(http://forum.xda-developers.com/showthread.php?t=2507403)
before and after factory reset, removing battery between. Out of clues
Nothing seems to be working for me. Since I first flashed a ROM I could never get network/lockscreen back
Can anyone help me find whats happening with my device?
Starting recovery on Thu Jan 8 23:58:37 1970
framebuffer: fd 4 (1080 x 1920)
min_x_swipe_px=240,min_y_swipe_px=120
CWM-based Recovery v6.0.4.5
Compiled by Xiaolu(20131122)
rm: can't remove '/system/recovery-from-boot.p': No such file or directory
Swipe up/down to change selections.
Swipe to the right for enter.
Swipe to the left for back.
recovery filesystem table
=========================
0 /boot emmc /dev/block/platform/msm_sdcc.1/by-name/boot 0
1 /recovery emmc /dev/block/platform/msm_sdcc.1/by-name/recovery 0
2 /system ext4 /dev/block/platform/msm_sdcc.1/by-name/system 0
3 /data ext4 /dev/block/platform/msm_sdcc.1/by-name/userdata 0
4 /cache ext4 /dev/block/platform/msm_sdcc.1/by-name/cache 0
5 /efs ext4 /dev/block/platform/msm_sdcc.1/by-name/efs 0
6 /sdcard datamedia /dev/null 0
7 /external_sd auto /dev/block/mmcblk1 0
8 /storage/usbdisk1 auto /dev/block/sda 0
9 /storage/usbdisk2 auto /dev/block/sdb 0
10 /tmp ramdisk ramdisk 0
W:Unable to get recovery.fstab info for /datadata during fstab generation!
W:Unable to get recovery.fstab info for /emmc during fstab generation!
W:Unable to get recovery.fstab info for /sd-ext during fstab generation!
W:Unable to get recovery.fstab info for /preload during fstab generation!
I:Completed outputting fstab.
I:Connected to Vold..
I:110 0 sdcard /external_sd 0
I:110 0 sda /storage/usbdisk1 0
I:110 0 sdb /storage/usbdisk2 0
I:200 0 Volumes listed.
Irocessing arguments.
I:Checking arguments.
I:device_recovery_start()
Command: "/sbin/recovery"
...
...
...
I:Checking for extendedcommand...
I:Skipping execution of extendedcommand, file not found...
mount: mounting /dev/block/platform/msm_sdcc.1/by-name/efs on /efs failed: Invalid argument
W:failed to mount /dev/block/platform/msm_sdcc.1/by-name/efs (File exists)
Error mounting /efs!
mount: mounting /dev/block/platform/msm_sdcc.1/by-name/efs on /efs failed: Invalid argument
W:failed to mount /dev/block/platform/msm_sdcc.1/by-name/efs (File exists)
Error mounting /efs!
I:using /data/media/0 for /sdcard.
Any clues?
Install busybox to get EFS back via CWM.
user @brockyneo had the same issue a few days ago, couldn't restore EFS until he installed busybox
http://forum.xda-developers.com/showthread.php?t=2546724&page=3
It may help with the lockscreen issue.
radicalisto said:
Install busybox to get EFS back via CWM.
user @brockyneo had the same issue a few days ago, couldn't restore EFS until he installed busybox
http://forum.xda-developers.com/showthread.php?t=2546724&page=3
It may help with the lockscreen issue.
Click to expand...
Click to collapse
Thanks a lot, I have asked brock for more detailed information about his solution. I hate messing with EFS, before I restore I want to make one more backup via terminal, I don't know exactly if he did the backup via terminal in his case.
I fixed my phone after one sad week of no networks! I'm so happy!
I used the batch script to restore my EFS via ODIN. and in CWM i was able to mouunt /efs.
Then I did a reset flashed clean ROM and it showed the SIM dialog and lockscreen started to work.
Thanks a lot!

[Q] CWM can't boot it's nandroid backup

Hi Guys,
I'm using CWM v6.0.4.3 on my Grouper, and just made a nandroid with it of CM 12. Now the strange thing is that when restoring to this nandroid, it boots back to CWM Recovery. A nandroid I made from CM 11 boots fine however. Looks like something broke, CWM 6.0.4.3. isn't able to backup/restore CM 12? By the way, did all factory reset/cache/dalvik, etc. No error messages, except what I've found in the log below when making the backup.
Any ideas what causes this, or similar issues encountered? I'm opting to use TWRP, just checked that at least it's restoring CM 11 and 12 fine.
For those interested, here the log CWM made without individual file info:
Code:
__bionic_open_tzdata: couldn't find any tzdata when looking for localtime!
__bionic_open_tzdata: couldn't find any tzdata when looking for GMT!
__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!
Starting recovery on Mon Aug 3 14:21:31 2015
can't open /dev/tty0: No such file or directory
framebuffer: fd 3 (800 x 1280)
ClockworkMod Recovery v6.0.4.3
recovery filesystem table
=========================
0 /system ext4 /dev/block/platform/sdhci-tegra.3/by-name/APP 0
1 /cache ext4 /dev/block/platform/sdhci-tegra.3/by-name/CAC 0
2 /data ext4 /dev/block/platform/sdhci-tegra.3/by-name/UDA 0
3 /misc emmc /dev/block/platform/sdhci-tegra.3/by-name/MSC 0
4 /boot emmc /dev/block/platform/sdhci-tegra.3/by-name/LNX 0
5 /recovery emmc /dev/block/platform/sdhci-tegra.3/by-name/SOS 0
6 /staging emmc /dev/block/platform/sdhci-tegra.3/by-name/USP 0
7 /storage/usbdisk vfat /devices/platform/tegra-ehci 0
8 /tmp ramdisk ramdisk 0
W:Unable to get recovery.fstab info for /datadata during fstab generation!
W:Unable to get recovery.fstab info for /emmc during fstab generation!
W:Unable to get recovery.fstab info for /sdcard during fstab generation!
W:Unable to get recovery.fstab info for /sd-ext during fstab generation!
W:Unable to get recovery.fstab info for /external_sd during fstab generation!
I:Completed outputting fstab.
I:Connected to Vold..
I:110 0 usbdisk /storage/usbdisk 0
I:200 0 Volumes listed.
I:Processing arguments.
I:Checking arguments.
I:device_recovery_start()
Command: "/sbin/recovery"
...
I:Checking for extendedcommand...
I:Skipping execution of extendedcommand, file not found...
I:using /data/media for /sdcard.
I:using /data/media for /sdcard/clockworkmod/backup/2015-08-03.14.21.48.
SD Card space free: 19236MB
Backing up boot image...
Backup of boot image completed.
Backing up recovery image...
Backup of recovery image completed.
Backing up system...
...
Backup of system completed.
Backing up data...
...
Backup of data completed.
No .android_secure found. Skipping backup of applications on external storage.
Backing up cache...
Backup of cache completed.
I:No sd-ext found. Skipping backup of sd-ext.
Generating md5 sum...

TWRP fastboot broken on O DP2 - of course...

Here we go again
The new Android O developer preview is out, and when I try to boot the TWRP image via fastboot, I get a blank screen after the google logo.
I am absolutely not surprised google is keeping the devs busy all the time by changing little bits and pieces just enough to stop our stuff from working...
At least ADB is working, so I could get the log:
Code:
__bionic_open_tzdata: couldn't find any tzdata when looking for GMT!
Starting TWRP 3.0.2-0-RC1-f7176b37 on Wed Jul 29 06:02:03 1970
(pid 681)
I:Lun file '/sys/class/android_usb/android0/f_mass_storage/lun0/file' does not exist, USB storage mode disabled
TW_INCLUDE_CRYPTO := true
I:Found brightness file at '/sys/class/leds/lcd-backlight/brightness'
I:Got max brightness 255 from '/sys/class/leds/lcd-backlight/max_brightness'
I:TWFunc::Set_Brightness: Setting brightness control to 80
I:LANG: en
I:AB_OTA_UPDATER := true
Starting the UI...
Overlay graphics may work (mdssfb_90000), but not enabled. Use TW_TARGET_USES_QCOM_BSP := true to enable.
setting DRM_FORMAT_RGB565 and GGL_PIXEL_FORMAT_RGB_565
cannot find/open a drm device: No such file or directory
fb0 reports (possibly inaccurate):
vi.bits_per_pixel = 32
vi.red.offset = 0 .length = 8
vi.green.offset = 8 .length = 8
vi.blue.offset = 16 .length = 8
setting GGL_PIXEL_FORMAT_RGBA_8888
double buffered
framebuffer: 0 (1080 x 1920)
Using fbdev graphics.
I:TWFunc::Set_Brightness: Setting brightness control to 80
I:Loading package: splash (/twres/splash.xml)
I:Load XML directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/splash.xml' directly
I:Checking resolution...
I:Loading resources...
I:Loading variables...
I:Loading mouse cursor...
I:Loading pages...
I:Loading page splash
I:Switching packages (splash)
blacklisting hbtp_vm input device
=> Linking mtab
=> Processing recovery.fstab
I:Processing '/boot'
I:Processing '/system'
I:Processing '/system_image'
I:Processing '/vendor'
I:Processing '/vendor_image'
I:Processing '/data'
I:Processing '/misc'
I:Processing '/efs1'
I:Processing '/efs2'
I:Processing '/usb-otg'
I:Unable to mount '/data'
I:Actual block device: '/dev/block/sda35', current file system: 'ext4'
get_crypt_ftr_info crypto key location: 'footer'
Bad magic for real block device /dev/block/sda35
stack corruption detected
And this repeats. I see two things, if I'm right:
1. the ui fails to start because it doesn't find a DRM device
2. it fails to decrypt the data partition and stops there
I am not enough to solve these things, because I have no clue what is wrong. I'm calling all the devs (pointing to you @Dees_Troy ) to help us again and try to figure out what needs to be done so we can enjoy full freedom on our devices for which we spent a fortune for
I am willing to help, and try things to get this done, just let me know what I should try!
Thanks in advance!
I have ran into this issues since 7.1 lol but i can flash dev prev 2 and then without rebooting just fastboot boot twrp.img (RC1) and it works
I have the same issue where booting twrp RC1 just goes into a blank screen. anyone found a fix?
eqbirvin said:
I have ran into this issues since 7.1 lol but i can flash dev prev 2 and then without rebooting just fastboot boot twrp.img (RC1) and it works
Click to expand...
Click to collapse
hmm... then my guess is that android does something with the encryption.
I flashed DP2, booted (automatic reboot after flash-all) and then tried to fastboot boot twrp.img and got the black screen.
I have already manually flashed twrp since, and can't boot it either. It gets stuck at the splash screen. just like it first did when it failed to decrypt the data patition (around january). Unfortunately this way there is no ADB so no way to see what happens...
I'll try to play around with it a bit, but I have no clue about decrypting the data partition. Don't even know where to start...
Ok well we learned with the first release that it was a bootloader issue so why not attempt to flash the bootloader from the first alpha, boot TWRP and see if SU can be installed? I know you can fastboot boot older bootloaders, I'm at work or I would give it a try
ne0ns4l4m4nder said:
Ok well we learned with the first release that it was a bootloader issue so why not attempt to flash the bootloader from the first alpha, boot TWRP and see if SU can be installed? I know you can fastboot boot older bootloaders, I'm at work or I would give it a try
Click to expand...
Click to collapse
you mean like flash a 7.1 bootloader? hmm i may give that a shot
Okay. I really reached the end of the road, because I can't compile TWRP...
What i found is:
The decryption fails with these lines:
Code:
get_crypt_ftr_info crypto key location: 'footer'
Bad magic for real block device /dev/block/sda35
stack corruption detected
In TWRP source, this Bad magic error message comes from cryptfs.c:
Code:
if (crypt_ftr->magic != CRYPT_MNT_MAGIC) {
printf("Bad magic for real block device %s\n", fname);
goto errout;
}
CRYPT_MNT_MAGIC is a static value, defined in cryptfs.h:
Code:
#define CRYPT_MNT_MAGIC 0xD0B5B1C4
crypt_ftr->magic comes from reading some data from fname (which has the value: /dev/block/sda35):
Code:
if ( ([B]fd = open(fname, O_RDWR)[/B]) < 0) {
printf("Cannot open footer file %s for get\n", fname);
return -1;
}
/* Make sure it's 16 Kbytes in length */
fstat(fd, &statbuf);
if (S_ISREG(statbuf.st_mode) && (statbuf.st_size != 0x4000)) {
printf("footer file %s is not the expected size!\n", fname);
goto errout;
}
/* Seek to the start of the crypt footer */
if (lseek64(fd, starting_off, SEEK_SET) == -1) {
printf("Cannot seek to real block device footer\n");
goto errout;
}
if ( (cnt =[B]read(fd, crypt_ftr, sizeof(struct crypt_mnt_ftr)[/B])) != sizeof(struct crypt_mnt_ftr)) {
printf("Cannot read real block device footer\n");
goto errout;
}
So if we are lucky, we just have to modify the value of CRYPT_MNT_MAGIC. Some changes should be done, to print the value of crypt_ftr->magic, and then change that hardcoded CRYPT_MNT_MAGIC value to that. But as i said, I didn't manage to compile TWRP on my own (yet. since a few months )
I would appreciate the help of someone who did it already for the pixel.
OR someone who knows what the hell that magic number means.
OR someone who tells me that i'm completely wrong, and the problem is only with my device. Although I did clean flash (wiped the whole phone, with userdata and internal storage).
I'm not sure about flashing directly, I was more thinking about fastboot booting it then fastboot booting TWRP over that and then attempting to flash super SU, I'd that's even possible
also wondering what would happen if we flashed the 7.1.2 bootloader to the opposite partition aka ( system is slot A) then you would flash 7.1.2 bootloader to Slot B, and then possibly find away to Fastboot Boot TWRP to that slot but, be able to flash SU to System in Slot A. All just speculation of course im going on the work around that was found to gain root access on the first release of O

(Solved) Can't format /data from TWRP to install anything

Big Edit: After flashing stock firmware with Pit and 3 hours of ODIN dramatic FAIL status and barely hard bricked phone, it succeeded. Don't ask me how. Magic.
Hey guys, I have a little problem with my S7 Edge. I was on full stock, when decided to go back to the custom roms. As always, OEM Unlock turned on, phone in download mode, twrp flash => immediately reboot but here comes the problem. Can't format data, factory reset or anything. It says "Cannot mount /data and unable to find crypto footer." or something like that. I have provided some screenshots and recovery log from /tmp folder if it can help. I don't have important data and i dont care for internal storage, I just want to be able to install custom ROM and rock my device. I tried returning back to full stock and then re-doing the same procedure, but it still fails. Any ideas what's wrong here ?
Recovery.log
__bionic_open_tzdata: couldn't find any tzdata when looking for localtime!
__bionic_open_tzdata: couldn't find any tzdata when looking for GMT!
__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!
Starting TWRP 3.1.1-0-9c3b7e99 on Sun Dec 17 08:49:51 2017
(pid 2899)
TW_NO_REBOOT_BOOTLOADER := true
RECOVERY_SDCARD_ON_DATA := true
I:Lun file '/sys/devices/15400000.usb/15400000.dwc3/gadget/lun0/file'
TW_HAS_DOWNLOAD_MODE := true
TW_INCLUDE_CRYPTO := true
I:TW_BRIGHTNESS_PATH := /sys/devices/13900000.dsim/backlight/panel/brightness
I:Found brightness file at '/sys/devices/13900000.dsim/backlight/panel/brightness'
I:TWFunc::Set_Brightness: Setting brightness control to 162
I:LANG: en
Starting the UI...
setting DRM_FORMAT_ABGR8888 and GGL_PIXEL_FORMAT_BGRA_8888, GGL_PIXEL_FORMAT may not match!
cannot find/open a drm device: No such file or directory
fb0 reports (possibly inaccurate):
vi.bits_per_pixel = 32
vi.red.offset = 16 .length = 8
vi.green.offset = 8 .length = 8
vi.blue.offset = 0 .length = 8
setting GGL_PIXEL_FORMAT_BGRA_8888
double buffered
framebuffer: 0 (1440 x 2560)
Using fbdev graphics.
I:TWFunc::Set_Brightness: Setting brightness control to 162
I:Loading package: splash (/twres/splash.xml)
I:Load XML directly
IageManager::LoadFileToBuffer loading filename: '/twres/splash.xml' directly
I:Checking resolution...
I:Scaling theme width 1.333333x and height 1.333333x, offsets x: 0 y: 0 w: 0 h: 0
I:Loading resources...
I:Loading variables...
I:Loading mouse cursor...
I:Loading pages...
I:Loading page splash
I:Switching packages (splash)
=> Linking mtab
=> Processing recovery.fstab
Irocessing '/boot'
Irocessing '/recovery'
Irocessing '/system'
Irocessing '/data'
Irocessing '/cache'
Irocessing '/modem'
Irocessing '/modem_debug'
Irocessing '/efs'
I:Created '/efs' folder.
Irocessing '/external_sd'
I:Created '/external_sd' folder.
Irocessing '/usb-otg'
I:Created '/usb-otg' folder.
Irocessing '/misc'
I:Setting up '/data' as data/media emulated storage.
I:Created '/sdcard' folder.
I:Can't probe device /dev/block/sda18
I:Unable to mount '/data'
I:Actual block device: '/dev/block/sda18', current file system: 'ext4'
I:Can't probe device /dev/block/sda18
I:Unable to mount '/data'
I:Actual block device: '/dev/block/sda18', current file system: 'ext4'
get_crypt_ftr_info crypto key location: 'footer'
Bad magic for real block device /dev/block/sda18
Could not mount /data and unable to find crypto footer.
I:Setting up '/data' as data/media emulated storage.
I:Can't probe device /dev/block/sda18
I:Unable to mount '/data'
I:Actual block device: '/dev/block/sda18', current file system: 'ext4'
I:Can't probe device /dev/block/sda18
Failed to mount '/data' (Invalid argument)
I:Actual block device: '/dev/block/sda18', current file system: 'ext4'
Unable to recreate /data/media folder.
I:Backup folder set to '/data/media/TWRP/BACKUPS/ad0117020709ed4bca'
I:Settings storage is '/data/media'
I:Can't probe device /dev/block/sda18
I:Unable to mount '/data'
I:Actual block device: '/dev/block/sda18', current file system: 'ext4'
Updating partition details...
I:Can't probe device /dev/block/sda18
Failed to mount '/data' (Invalid argument)
I:Actual block device: '/dev/block/sda18', current file system: 'ext4'
I:Unable to mount '/usb-otg'
I:Actual block device: '', current file system: 'vfat'
...done
I:Can't probe device /dev/block/sda18
I:Unable to mount '/data'
I:Actual block device: '/dev/block/sda18', current file system: 'ext4'
Unable to mount storage
I:Unmounting main partitions...
Partition Logs:
/boot | /dev/block/sda5 | Size: 40MB
Flags: Can_Be_Backed_Up IsPresent Can_Flash_Img
Primary_Block_Device: /dev/block/sda5
Display_Name: Boot
Storage_Name: boot
Backup_Path: /boot
Backup_Name: boot
Backup_Display_Name: Boot
Storage_Path: /boot
Current_File_System: emmc
Fstab_File_System: emmc
Backup_Method: dd
/recovery | /dev/block/sda6 | Size: 46MB
Flags: Can_Be_Backed_Up IsPresent Can_Flash_Img
Primary_Block_Device: /dev/block/sda6
Display_Name: Recovery
Storage_Name: recovery
Backup_Path: /recovery
Backup_Name: recovery
Backup_Display_Name: Recovery
Storage_Path: /recovery
Current_File_System: emmc
Fstab_File_System: emmc
Backup_Method: dd
/system | /dev/block/sda14 | Size: 4165MB Used: 3416MB Free: 748MB Backup Size: 3416MB
Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_Available_in_GUI IsPresent
Primary_Block_Device: /dev/block/sda14
Display_Name: System
Storage_Name: System
Backup_Path: /system
Backup_Name: system
Backup_Display_Name: System
Storage_Path: /system
Current_File_System: ext4
Fstab_File_System: ext4
Backup_Method: files
/data | /dev/block/sda18 | Size: 0MB Used: 0MB Free: 0MB Backup Size: 0MB
Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_During_Factory_Reset Wipe_Available_in_GUI IsPresent Can_Be_Encrypted Has_Data_Media Can_Encrypt_Backup Use_Userdata_Encryption Is_Storage Is_Settings_Storage
Symlink_Path: /data/media
Symlink_Mount_Point: /sdcard
Primary_Block_Device: /dev/block/sda18
Length: -20480
Display_Name: Data
Storage_Name: Internal Storage
Backup_Path: /data
Backup_Name: data
Backup_Display_Name: Data
Storage_Path: /data/media
Current_File_System: ext4
Fstab_File_System: ext4
Backup_Method: files
MTP_Storage_ID: 65537
/cache | /dev/block/sda15 | Size: 192MB Used: 22MB Free: 169MB Backup Size: 22MB
Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_During_Factory_Reset Wipe_Available_in_GUI IsPresent
Primary_Block_Device: /dev/block/sda15
Display_Name: Cache
Storage_Name: Cache
Backup_Path: /cache
Backup_Name: cache
Backup_Display_Name: Cache
Storage_Path: /cache
Current_File_System: ext4
Fstab_File_System: ext4
Backup_Method: files
/modem | /dev/block/sda8 | Size: 42MB
Flags: Can_Be_Backed_Up Has_SubPartition IsPresent
Primary_Block_Device: /dev/block/sda8
Display_Name: Baseband
Storage_Name: Baseband
Backup_Path: /modem
Backup_Name: modem
Backup_Display_Name: Baseband
Storage_Path: /modem
Current_File_System: emmc
Fstab_File_System: emmc
Backup_Method: dd
/modem_debug | /dev/block/sda17 | Size: 5MB
Flags: Can_Be_Backed_Up Is_SubPartition IsPresent
SubPartition_Of: /modem
Primary_Block_Device: /dev/block/sda17
Display_Name: Baseband (Debug)
Storage_Name: Baseband (Debug)
Backup_Path: /modem_debug
Backup_Name: modem_debug
Backup_Display_Name: Baseband (Debug)
Storage_Path: /modem_debug
Current_File_System: emmc
Fstab_File_System: emmc
Backup_Method: dd
/efs | /dev/block/sda3 | Size: 15MB Used: 3MB Free: 12MB Backup Size: 3MB
Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up IsPresent
Primary_Block_Device: /dev/block/sda3
Display_Name: EFS
Storage_Name: EFS
Backup_Path: /efs
Backup_Name: efs
Backup_Display_Name: EFS
Storage_Path: /efs
Current_File_System: ext4
Fstab_File_System: ext4
Backup_Method: files
/external_sd | /dev/block/mmcblk0p1 | Size: 29648MB Used: 15584MB Free: 14063MB Backup Size: 15584MB
Flags: Can_Be_Mounted Can_Be_Wiped Wipe_Available_in_GUI Removable IsPresent Is_Storage
Primary_Block_Device: /dev/block/mmcblk0p1
Alternate_Block_Device: /dev/block/mmcblk0
Display_Name: Micro SDcard
Storage_Name: Micro SDcard
Backup_Path: /external_sd
Backup_Name: external_sd
Backup_Display_Name: Micro SDcard
Storage_Path: /external_sd
Current_File_System: vfat
Fstab_File_System: vfat
Backup_Method: files
MTP_Storage_ID: 65538
/usb-otg | | Size: 0MB Used: 0MB Free: 0MB Backup Size: 0MB
Flags: Can_Be_Mounted Can_Be_Wiped Wipe_Available_in_GUI Removable Is_Storage
Primary_Block_Device: /dev/block/sde1
Alternate_Block_Device: /dev/block/sde
Display_Name: USB-OTG
Storage_Name: USB-OTG
Backup_Path: /usb-otg
Backup_Name: usb-otg
Backup_Display_Name: USB-OTG
Storage_Path: /usb-otg
Current_File_System: vfat
Fstab_File_System: vfat
Backup_Method: files
MTP_Storage_ID: 65539
/misc | | Size: 0MB
Flags:
Primary_Block_Device: /dev/block/bootdevice/by-name/FOTA
Display_Name: misc
Storage_Name: misc
Backup_Path: /misc
Backup_Name: misc
Backup_Display_Name: misc
Storage_Path: /misc
Current_File_System: emmc
Fstab_File_System: emmc
Backup_Method: dd
I:Can't probe device /dev/block/sda18
I:Unable to mount '/data'
I:Actual block device: '/dev/block/sda18', current file system: 'ext4'
I:Can't probe device /dev/block/sda18
I:Unable to mount '/data'
I:Actual block device: '/dev/block/sda18', current file system: 'ext4'
I:Can't probe device /dev/block/sda18
I:Unable to mount '/data'
I:Actual block device: '/dev/block/sda18', current file system: 'ext4'
I:Can't probe device /dev/block/sda18
I:Unable to mount '/data'
I:Actual block device: '/dev/block/sda18', current file system: 'ext4'
I:Can't probe device /dev/block/sda18
I:Unable to mount '/data'
I:Actual block device: '/dev/block/sda18', current file system: 'ext4'
I:Can't probe device /dev/block/sda18
I:Unable to mount '/data'
I:Actual block device: '/dev/block/sda18', current file system: 'ext4'
I:Can't probe device /dev/block/sda18
Failed to mount '/data' (Invalid argument)
I:Actual block device: '/dev/block/sda18', current file system: 'ext4'
I:Unable to mount /data/media during GUI startup.
I:Loading package: TWRP (/twres/ui.xml)
I:Load XML directly
IageManager::LoadFileToBuffer loading filename: '/twres/languages/zh_TW.xml' directly
IageManager::LoadFileToBuffer loading filename: '/twres/languages/zh_CN.xml' directly
IageManager::LoadFileToBuffer loading filename: '/twres/languages/uk.xml' directly
IageManager::LoadFileToBuffer loading filename: '/twres/languages/tr.xml' directly
IageManager::LoadFileToBuffer loading filename: '/twres/languages/sv.xml' directly
IageManager::LoadFileToBuffer loading filename: '/twres/languages/sl.xml' directly
IageManager::LoadFileToBuffer loading filename: '/twres/languages/sk.xml' directly
IageManager::LoadFileToBuffer loading filename: '/twres/languages/ru.xml' directly
IageManager::LoadFileToBuffer loading filename: '/twres/languages/pt_BR.xml' directly
IageManager::LoadFileToBuffer loading filename: '/twres/languages/pl.xml' directly
IageManager::LoadFileToBuffer loading filename: '/twres/languages/nl.xml' directly
IageManager::LoadFileToBuffer loading filename: '/twres/languages/ja.xml' directly
IageManager::LoadFileToBuffer loading filename: '/twres/languages/it.xml' directly
IageManager::LoadFileToBuffer loading filename: '/twres/languages/hu.xml' directly
IageManager::LoadFileToBuffer loading filename: '/twres/languages/fr.xml' directly
IageManager::LoadFileToBuffer loading filename: '/twres/languages/es.xml' directly
IageManager::LoadFileToBuffer loading filename: '/twres/languages/en.xml' directly
IageManager::LoadFileToBuffer loading filename: '/twres/languages/el.xml' directly
IageManager::LoadFileToBuffer loading filename: '/twres/languages/de.xml' directly
IageManager::LoadFileToBuffer loading filename: '/twres/languages/cz.xml' directly
IageManager::LoadFileToBuffer loading filename: '/twres/languages/en.xml' directly
parsing languageFile
parsing languageFile done
IageManager::LoadFileToBuffer loading filename: '/twres/ui.xml' directly
I:Checking resolution...
I:Scaling theme width 1.333333x and height 1.333333x, offsets x: 0 y: 0 w: 0 h: 0
I:Loading resources...
I:Failed to load image from indeterminate013, error -1
I:Loading variables...
I:Loading mouse cursor...
I:Loading pages...
I:Including file: /twres/portrait.xml...
IageManager::LoadFileToBuffer loading filename: '/twres/portrait.xml' directly
I:Loading resources...
I:Loading variables...
I:Loading mouse cursor...
I:Loading pages...
I:Loading page main
I:Loading page main2
I:Loading page install
I:Loading page flash_confirm
I:Loading page flash_zip
I:Loading page flash_done
I:Loading page flash_sleep_and_reboot
I:Loading page flashimage_confirm
I:Loading page clear_vars
I:Loading page reboot_system_routine
I:Loading page confirm_action
I:Loading page action_page
I:Loading page singleaction_page
I:Loading page action_complete
I:Loading page filecheck
I:Loading page rebootcheck
I:Loading page appcheck
I:Loading page wipe
I:Loading page advancedwipe
I:Loading page formatdata
I:Loading page formatdata_confirm
I:Loading page checkpartitionlist
I:Loading page partitionoptions
I:Loading page refreshfilesystem
I:Loading page selectfilesystem
I:Loading page backup
I:Loading page backup_options
I:Loading page backupname1
I:Loading page backupname2
I:Loading page backupencryption
I:Loading page backupencryption2
I:Loading page checkbackuppassword
I:Loading page backup_run
I:Loading page restore
I:Unable to open '/data/media/TWRP/BACKUPS/ad0117020709ed4bca'
I:Loading page restore_read
I:Loading page restore_decrypt
I:Loading page try_restore_decrypt
I:Loading page restore_select
I:Loading page renamebackup
I:Loading page restore_run
I:Loading page mount
I:Loading page usb_mount
I:Loading page usb_umount
I:Loading page system_readonly_check
I:Loading page reboot
I:Loading page rebootapp
I:Loading page system_readonly
I:Loading page settings
I:Loading page settings_timezone
I:Loading page settings_screen
I:Loading page settings_vibration
I:Loading page settings_language
I:Loading page copylog
I:Loading page advanced
I:Loading page partsdcardsel
I:Loading page partsdcardcheck
I:Loading page partsdcard
I:Loading page htcdumlock
I:Loading page lock
I:Loading page filemanagerlist
I:Loading page filemanageroptions
I:Loading page choosedestinationfolder
I:Loading page filemanagerrenamefile
I:Loading page filemanagerrenamefolder
I:Loading page filemanagerchmod
I:Loading page filemanagerconfirm
I:Loading page filemanageraction
I:Loading page decrypt
I:Loading page decrypt_pattern
I:Loading page trydecrypt
I:Loading page terminalcommand
I:Loading page sideload
I:Loading page fixcontexts
I:Loading page installsu
I:Loading page slideout
I:Loading page select_storage
I:Loading page select_language
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Switching packages (TWRP)
Renaming regular /file_contexts -> /file_contexts.bak
Moving /prebuilt_file_contexts -> /file_contexts
SELinux contexts loaded from /file_contexts
Full SELinux support is present.
no misc device set
Startup Commands:
ro.sf.lcd_density=560
ro.com.google.clientidbase=android-google
ro.com.android.dataroaming=true
ro.com.android.wifi-watchlist=GoogleGuest
ro.sec.fle.encryption=true
ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html
ro.arch=exynos8890
ro.boot.hw_rev=9
ro.boot.sec_atd.tty=/dev/ttySAC4
ro.boot.selinux=enforcing
ro.boot.dram_rev=00000000
ro.boot.hardware=samsungexynos8890
ro.boot.serialno=ad***
ro.boot.ucs_mode=0
ro.boot.bootdevice=155a0000.ufs
ro.boot.bootloader=G935FXXU1DQJ3
ro.boot.fmp_config=0
ro.boot.debug_level=0x4f4c
ro.boot.warranty_bit=1
ro.boot.emmc_checksum=3
ro.boot.hmac_mismatch=0
ro.boot.odin_download=1
ro.boot.security_mode=1526595585
ro.boot.boot_salescode=
ro.omni.device=hero2lte
ro.omni.version=6.0.1-20170517-hero2lte-HOMEMADE
ro.twrp.boot=1
ro.twrp.version=3.1.1-0
ro.wifi.channels=
ro.allow.mock.location=1
ro.board.platform=exynos5
ro.build.id=MOB30M
ro.build.date=Wed May 17 15:37:05 UTC 2017
ro.build.date.utc=0
ro.build.host=5f51a4c0d870
ro.build.tags=test-keys
ro.build.type=eng
ro.build.user=jenkins
ro.build.flavor=omni_hero2lte-eng
ro.build.display.id=omni_hero2lte-eng 6.0.1 MOB30M 2 test-keys
ro.build.version.sdk=23
ro.build.version.base_os=
ro.build.version.release=6.0.1
ro.build.version.codename=REL
ro.build.version.incremental=2
ro.build.version.preview_sdk=0
ro.build.version.all_codenames=REL
ro.build.version.security_patch=2016-06-01
ro.build.characteristics=default
ro.config.ringtone=Ring_Synth_04.ogg
ro.config.alarm_alert=Argon.ogg
ro.config.notification_sound=pixiedust.ogg
ro.dalvik.vm.native.bridge=0
ro.kernel.android.checkjni=1
ro.secure=0
ro.zygote=zygote32
ro.carrier=unknown
ro.product.cpu.abi=arm64-v8a
ro.product.cpu.abilist=armeabi-v7a,armeabi
ro.product.cpu.abilist32=armeabi-v7a,armeabi
ro.product.cpu.abilist64=
ro.product.name=hero2ltexx
ro.product.board=universal8890
ro.product.brand=samsung
ro.product.model=SM-G935F
ro.product.device=hero2lte
ro.product.locale=en-US
ro.product.manufacturer=samsung
ro.baseband=unknown
ro.bootmode=unknown
ro.chipname=exynos8890
ro.hardware=samsungexynos8890
ro.hardware.keystore=mdfpp
ro.revision=0
ro.security.mdpp.ver=2.0
ro.security.mdpp.release=8
ro.serialno=ad0117020709ed4bca
ro.bootimage.build.date=Wed May 17 15:40:15 UTC 2017
ro.bootimage.build.date.utc=1495035615
ro.bootimage.build.fingerprint=samsung/omni_hero2lte/hero2lte:6.0.1/MOB30M/2:eng/test-keys
ro.bootloader=G935FXXU1DQJ3
ro.debuggable=1
ro.modversion=OmniROM-6.0.1-20170517-hero2lte-HOMEMADE
ro.setupwizard.enterprise_mode=1
ro.lcd_brightness=162
ro.lcd_min_brightness=0
net.bt.name=Android
net.change=net.bt.name
sys.usb.state=mtp,adb
sys.usb.config=mtp,adb
init.svc.adbd=stopping
init.svc.healthd=running
init.svc.ueventd=running
init.svc.recovery=running
init.svc.set_permissive=stopped
twrp.crash_counter=0
twrp.action_complete=0
debug.atrace.tags.enableflags=0
dalvik.vm.isa.arm.variant=cortex-a53
dalvik.vm.isa.arm.features=default
dalvik.vm.isa.arm64.variant=cortex-a53
dalvik.vm.isa.arm64.features=default
dalvik.vm.usejit=true
dalvik.vm.lockprof.threshold=500
dalvik.vm.dex2oat-Xms=64m
dalvik.vm.dex2oat-Xmx=512m
dalvik.vm.dex2oat-filter=verify-at-runtime
dalvik.vm.stack-trace-file=/data/anr/traces.txt
dalvik.vm.image-dex2oat-Xms=64m
dalvik.vm.image-dex2oat-Xmx=64m
dalvik.vm.image-dex2oat-filter=verify-at-runtime
persist.sys.usb.config=mtp,adb
persist.sys.dalvik.vm.lib.2=libart
persist.sys.root_access=1
service.adb.root=1
keyguard.no_require_sim=true
security.mdpp=None
security.mdpp.mass=skmm
security.mdpp.result=None
I:Copying file /cache/recovery/log to /cache/recovery/last_log
I:no misc device set
tw_get_context failed to get selinux context
I:Failed to get default contexts and file mode for storage files.
I:Can't probe device /dev/block/sda18
I:Unable to mount '/data'
I:Actual block device: '/dev/block/sda18', current file system: 'ext4'
I:Can't probe device /dev/block/sda18
I:Unable to mount '/data'
I:Actual block device: '/dev/block/sda18', current file system: 'ext4'
Unable to mount /data/media/TWRP/.twrps
I:Attempt to load settings from settings file...
I:InfoManager file '/data/media/TWRP/.twrps' not found.
I:Backup folder set to '/data/media/TWRP/BACKUPS/ad0117020709ed4bca'
I:Copying file /etc/recovery.fstab to /cache/recovery/recovery.fstab
I:Version number saved to '/cache/recovery/.version'
I:Can't probe device /dev/block/sda18
I:Unable to mount '/data'
I:Actual block device: '/dev/block/sda18', current file system: 'ext4'
I:Unable to mount '/usb-otg'
I:Actual block device: '', current file system: 'vfat'
__bionic_open_tzdata: couldn't find any tzdata when looking for CST6CDT,M3.2.0,M11.1.0!
__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!
I:TWFunc::Set_Brightness: Setting brightness control to 162
IageManager::LoadFileToBuffer loading filename: '/twres/languages/en.xml' directly
parsing languageFile
parsing languageFile done
I:Translating partition display names
I:Backup folder set to '/data/media/TWRP/BACKUPS/ad0117020709ed4bca'
I:Starting MTP
I:[MTP] Starting MTP
I:Can't probe device /dev/block/sda18
I:Unable to mount '/data'
I:Actual block device: '/dev/block/sda18', current file system: 'ext4'
I:sending message to add 65538 '/external_sd' 'Micro SDCard'
I:Message sent, add storage ID: 65538
MTP Enabled
I:Switching packages (TWRP)
I:Set page: 'system_readonly'
I:[MTP] created new mtpserver object
I:[MTP] MtpServer::run fd: 33
I:[MTP] mtppipe add storage 65538 '/external_sd'
I:[MTP] MtpStorage id: 65538 path: /external_sd
I:Is_Mounted: Unable to find partition for path '/vendor'
Iperation_start: 'Toggle System Mount'
Iperation_end - status=1
I:Set page: 'main'
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Set page: 'main'
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Switching packages (TWRP)
I:Set page: 'main'
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Set page: 'wipe'
I:Set page: 'action_page'
Iperation_start: 'Format'
I:Can't probe device /dev/block/sda18
Failed to mount '/data' (Invalid argument)
I:Actual block device: '/dev/block/sda18', current file system: 'ext4'
Formatting Cache using make_ext4fs...
Creating filesystem with parameters:
Size: 209715200
Block size: 4096
Blocks per group: 32768
Inodes per group: 6400
Inode size: 256
Journal blocks: 1024
Label:
Blocks: 51200
Block groups: 2
Reserved block group size: 15
Created filesystem with 11/12800 inodes and 1865/51200 blocks
warning: wipe_block_device: Wipe via secure discard failed, used discard instead
I:Recreating /cache/recovery folder.
I:Copying file /etc/recovery.fstab to /cache/recovery/recovery.fstab
I:Version number saved to '/cache/recovery/.version'
Updating partition details...
I:Can't probe device /dev/block/sda18
Failed to mount '/data' (Invalid argument)
I:Actual block device: '/dev/block/sda18', current file system: 'ext4'
I:Unable to mount '/usb-otg'
I:Actual block device: '', current file system: 'vfat'
...done
I:Can't probe device /dev/block/sda18
I:Unable to mount '/data'
I:Actual block device: '/dev/block/sda18', current file system: 'ext4'
Unable to mount storage
I:Set page: 'action_complete'
Iperation_end - status=1
Screenshot was saved to /tmp/Screenshot_2017-12-17-02-50-13.png
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Set page: 'reboot'
I:Set page: 'main'
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Set page: 'advanced'
I:Set page: 'filemanagerlist'
I:Set page: 'filemanageroptions'
I:Set page: 'filemanageroptions'
I:Set page: 'choosedestinationfolder'
I:Set page: 'filemanagerconfirm'
I:Set page: 'filemanageraction'
Iperation_start: 'Command'
I:Running command: 'cd "/tmp" && cd .. && cp -R "/tmp" "/external_sd/Pictures"'
1) Check your device, Qualcomm or Exynos -> Get the right TWRP
2) In Twrp go to wipe -> advanced format/change fs, set the file system for all partitions to ext4, and format all of them. IF all else still fails your partitions are likely ****ed, open up odin and flash back to stock (you MUST use PIT file and check repart)
3) Make sure you dont have data encryption turned on

Categories

Resources