Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,813,360 Members 49,286 Now Online
XDA Developers Android and Mobile Development Forum

Can't go back to stock :(((

Tip us?
 
ekabon
Old
#1  
ekabon's Avatar
Senior Member - OP
Thanks Meter 11
Posts: 258
Join Date: Aug 2012
Default Can't go back to stock :(((

Hi guys. I've been struggling with going back to stock for ages... Been flashing different firmware like 100 times... But always get the same error: "max_sparse_size 256Mb"... Or something like that... It happens when I flash system bits through fastboot or mfastboot. My model is 1032 UK unlocked. On CM snapshot at the moment. If anyone has managed to break through this problem, please help me. Thanks in advance.

Sent from my HTC One_M8 using Tapatalk
 
liveroy
Old
#2  
liveroy's Avatar
Senior Member
Thanks Meter 68
Posts: 290
Join Date: Jun 2007
Location: Stara Zagora

 
DONATE TO ME
Quote:
Originally Posted by ekabon View Post
Hi guys. I've been struggling with going back to stock for ages... Been flashing different firmware like 100 times... But always get the same error: "max_sparse_size 256Mb"... Or something like that... It happens when I flash system bits through fastboot or mfastboot. My model is 1032 UK unlocked. On CM snapshot at the moment. If anyone has managed to break through this problem, please help me. Thanks in advance.

Sent from my HTC One_M8 using Tapatalk
Try this with mfastboot (not the normal one).

mfastboot format system
mfastboot format userdata
mfastboot format cache

or

mfastboot format /system
mfastboot format /userdata
mfastboot format /cache


If nothing happens or it says the path is incorrect use these

mfastboot format /dev/block/platform/msm_sdcc.1/by-name/system
mfastboot format /dev/block/platform/msm_sdcc.1/by-name/userdata
mfastboot format /dev/block/platform/msm_sdcc.1/by-name/cache

If you succeed doing this, then try flashing stock 4.4.2 via the normal procedure and see what heppens.
Mental issues lead to the use of long signatures

Care much for receiving Thanks?Bitching at the others about it doesn't help, instead better stfu and gtfo.
The Following User Says Thank You to liveroy For This Useful Post: [ Click to Expand ]
 
ekabon
Old
#3  
ekabon's Avatar
Senior Member - OP
Thanks Meter 11
Posts: 258
Join Date: Aug 2012
Quote:
Originally Posted by liveroy View Post
Try this with mfastboot (not the normal one).

mfastboot format system
mfastboot format userdata
mfastboot format cache

or

mfastboot format /system
mfastboot format /userdata
mfastboot format /cache


If nothing happens or it says the path is incorrect use these

mfastboot format /dev/block/platform/msm_sdcc.1/by-name/system
mfastboot format /dev/block/platform/msm_sdcc.1/by-name/userdata
mfastboot format /dev/block/platform/msm_sdcc.1/by-name/cache

If you succeed doing this, then try flashing stock 4.4.2 via the normal procedure and see what heppens.
Thanks for your time will do in a bit

Sent from my HTC One_M8 using Tapatalk
 
liveroy
Old
(Last edited by liveroy; 2nd July 2014 at 06:52 PM.)
#4  
liveroy's Avatar
Senior Member
Thanks Meter 68
Posts: 290
Join Date: Jun 2007
Location: Stara Zagora

 
DONATE TO ME
Quote:
Originally Posted by ekabon View Post
Thanks for your time will do in a bit

Sent from my HTC One_M8 using Tapatalk
Now I`ve also notice you got error when flashing the /system
It could be that you input wrong filename, because most guides I've seen are okay but ppl copy-paste the commands w/o even checking the actual file names of the chunk files.

For most 4.4.x stock roms these are:

system.img_sparsechunk.0
system.img_sparsechunk.1
system.img_sparsechunk.2

and in the guides they are:

system.img_sparsechunk.1 or system.img_sparsechunk1
system.img_sparsechunk.2 or system.img_sparsechunk2
system.img_sparsechunk.3 or system.img_sparsechunk3

which will cause the fastboot to always spit an error on first one.
Mental issues lead to the use of long signatures

Care much for receiving Thanks?Bitching at the others about it doesn't help, instead better stfu and gtfo.
 
ekabon
Old
#5  
ekabon's Avatar
Senior Member - OP
Thanks Meter 11
Posts: 258
Join Date: Aug 2012
Quote:
Originally Posted by liveroy View Post
Now I`ve also notice you got error when flashing the /system
It could be that you input wrong filename, because most guides I've seen are okay but ppl copy-paste the commands w/o even checking the actual file names of the chunk files.

For most 4.4.x stock roms these are:

system.img_sparsechunk.0
system.img_sparsechunk.1
system.img_sparsechunk.2

and in the guides they are:

system.img_sparsechunk.1
system.img_sparsechunk.2
system.img_sparsechunk.3

which will cause the fastboot to always spit an error on first one.
Quote:
Originally Posted by ekabon View Post
Thanks for your time will do in a bit

Sent from my HTC One_M8 using Tapatalk
I did try this, didn't help. And I tried doing things from your first post and it didn't work... says something about raw file system. I've attached a screenshot.
Attached Thumbnails
Click image for larger version

Name:	1.jpg
Views:	46
Size:	187.0 KB
ID:	2829127  
 
liveroy
Old
#6  
liveroy's Avatar
Senior Member
Thanks Meter 68
Posts: 290
Join Date: Jun 2007
Location: Stara Zagora

 
DONATE TO ME
huh from the screenshot I see that the /system partition is raw, which shouldn't be (or the stupid fastboot defaults to "raw" partition if ext4 is not specified ...)
What happnes when you try to flash the system chunks?
Mental issues lead to the use of long signatures

Care much for receiving Thanks?Bitching at the others about it doesn't help, instead better stfu and gtfo.
The Following User Says Thank You to liveroy For This Useful Post: [ Click to Expand ]
 
ekabon
Old
#7  
ekabon's Avatar
Senior Member - OP
Thanks Meter 11
Posts: 258
Join Date: Aug 2012
Quote:
Originally Posted by liveroy View Post
huh from the screenshot I see that the /system partition is raw, which shouldn't be (or the stupid fastboot defaults to "raw" partition if ext4 is not specified ...)
What happnes when you try to flash the system chunks?
All good now!) So silly, I didn't notice that in firmware folder spareschunkes have periods before number!) And in the restoring threat they don't have them!) Thanks anyway, man!!!

Sent from my HTC One_M8 using Tapatalk
 
liveroy
Old
#8  
liveroy's Avatar
Senior Member
Thanks Meter 68
Posts: 290
Join Date: Jun 2007
Location: Stara Zagora

 
DONATE TO ME
Quote:
Originally Posted by ekabon View Post
All good now!) So silly, I didn't notice that in firmware folder spareschunkes have periods before number!) And in the restoring threat they don't have them!) Thanks anyway, man!!!

Sent from my HTC One_M8 using Tapatalk
Glad that it worked after all
Mental issues lead to the use of long signatures

Care much for receiving Thanks?Bitching at the others about it doesn't help, instead better stfu and gtfo.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


MediaTek Continues Steps Towards Being Developer-Friendly

Not too long ago MediaTek was very closed off towards the mobile developer … more

Sony PS4 Remote Play Ported to All Android Devices

Im pretty sure that every informed gamer out there perked their ears up when Sony came out … more

Change Your Samsung Galaxy S2’s Dialer Background in Real Time

As with anything, if youve looked at something long enough, things can … more