Huawei Ascend XT2 (H1711)?

yuweng

Senior Member
Feb 5, 2012
1,172
4,219
0
i don't know why it fail as f2fs is enabled, the default XT2 kernel source does have f2fs enabled too but the stock kernel doesn't boot so there is no way to confirmed whether it is the kernel or TWRP problem.
Code:
CONFIG_F2FS_FS_ENCRYPTION=y
CONFIG_F2FS_FS=y
CONFIG_F2FS_STAT_FS=y
CONFIG_F2FS_FS_XATTR=y
CONFIG_F2FS_FS_POSIX_ACL=y
CONFIG_F2FS_FS_SECURITY=y
And i have completely forgotten that TWRP does have logs so i need you to repeat your whole process then attach the logs here. There are two ways, At TWRP => Advanced => Copy Log to SDCard or adb pull /tmp/recovery.log

Hopefully that will give some clues to unbrick your XT2 :fingers-crossed:
 
  • Like
Reactions: crashburn833

aslezak

Senior Member
Jun 30, 2010
100
59
0
Sorry, the partition size is too big for a single image.
SparseConverter XDA page

Use this userdata.img.bz2 as it's much smaller.

For simplicity, let's flash this from twrp / Advanced / Terminal:
Code:
dd if=/external_sd/userdata.img.bz2 | bzip2 -dc | dd of=/dev/block/bootdevice/by-name/userdata
Let me know if that works. If not, I'll try to split up the image into pieces.


Fails

Code:
target reported max download size of 531628032 bytes
Invalid sparse file format at header magi
erasing 'userdata'...
OKAY [  0.085s]
sending sparse 'userdata' (161 KB)...
OKAY [  0.009s]
writing 'userdata'...
FAILED (remote: Chunk data size exceeds partition size)
finished. total time: 92.673s


---------- Post added at 04:43 AM ---------- Previous post was at 04:40 AM ----------

now /data cannot be mounted
 
Last edited:
  • Like
Reactions: crashburn833

aslezak

Senior Member
Jun 30, 2010
100
59
0
Note: I just performed the below on my device, and it successfully returns the device (/data) to factory. It will take a while (5-10min) to boot, then start up with the Google setup screen.

Sorry, the partition size is too big for a single image.
SparseConverter XDA page

Use this userdata.img.bz2 as it's much smaller.

For simplicity, let's flash this from twrp / Advanced / Terminal:
Code:
dd if=/external_sd/userdata.img.bz2 | bzip2 -dc | dd of=/dev/block/bootdevice/by-name/userdata
Let me know if that works. If not, I'll try to split up the image into pieces.
 
Last edited:

crashburn833

Senior Member
Sep 16, 2010
59
20
0
Note: I just performed the below on my device, and it successfully returns the device (/data) to factory. It will take a while (5-10min) to boot, then start up with the Google setup screen.
now i just need /system and it will boot i think (i have multiple issues due to my own stupidity)
 
Last edited:

messi2050

Senior Member
Nov 1, 2012
2,299
3,270
203
i don't know why it fail as f2fs is enabled, the default XT2 kernel source does have f2fs enabled too but the stock kernel doesn't boot so there is no way to confirmed whether it is the kernel or TWRP problem.
Code:
CONFIG_F2FS_FS_ENCRYPTION=y
CONFIG_F2FS_FS=y
CONFIG_F2FS_STAT_FS=y
CONFIG_F2FS_FS_XATTR=y
CONFIG_F2FS_FS_POSIX_ACL=y
CONFIG_F2FS_FS_SECURITY=y
And i have completely forgotten that TWRP does have logs so i need you to repeat your whole process then attach the logs here. There are two ways, At TWRP => Advanced => Copy Log to SDCard or adb pull /tmp/recovery.log

Hopefully that will give some clues to unbrick your XT2 :fingers-crossed:
You can only mount the ext4 partitions and neglect f2fs, my twrp was fully functional this way.
 

SuperBrolySSJ

Senior Member
Sep 25, 2015
382
36
0
Anyone know how to be able to write to the system so things like BusyBox and Xposed can install and work?

---------- Post added at 11:53 PM ---------- Previous post was at 11:51 PM ----------

What you do. So if someone else experiences this

---------- Post added at 10:57 PM ---------- Previous post was at 10:55 PM ----------

Also got new TWRP and setting up a new thread. Cause this one is a train wreck. And I can update it more efficiently. As things get improved and added

Looking forward to it ?
 

faxanidu

Senior Member
Jan 30, 2011
161
77
0
It already works?

Everyone just wait for the new thread I'll stay up late and work on it when I get home.

---------- Post added at 01:03 AM ---------- Previous post was at 01:02 AM ----------

?? Not for me. Idk what I did wrong. Would you please do me a favor and download the app ''BusyBox'' from the play store and install it and tell me if it installs for you?
Already did that too
 
Last edited:

SuperBrolySSJ

Senior Member
Sep 25, 2015
382
36
0
Everyone just wait for the new thread I'll stay up late and work on it.

---------- Post added at 01:03 AM ---------- Previous post was at 01:02 AM ----------



Already did that too
Is there something I did wrong? Here's what I did:

1. Flash TWRP (the first one that was posted)
2. Backed up system and boot to my SD card just in case
3. Flashed the Super SU zip, then rebooted and then downloaded Phh's superuser


I know I'm rooted, but I cannot install BusyBox or Xposed no matter how many times I try.
 

faxanidu

Senior Member
Jan 30, 2011
161
77
0
Is there something I did wrong? Here's what I did:

1. Flash TWRP (the first one that was posted)
2. Backed up system and boot to my SD card just in case
3. Flashed the Super SU zip, then rebooted and then downloaded Phh's superuser


I know I'm rooted, but I cannot install BusyBox or Xposed no matter how many times I try.
Odd... Get termux and see if you can su