yashsingh1/xdaforums huggingface dataset:
[Android General] indgirl6:
Download Recovery from this thread. http://xdaforums.com/show....php?t=2616299 ===> DONE

Download "Android 4.1.1 - 100 Perfect stock. No root. Has carrier IQ! Beware" from http://droid-hive.com/index.php?/top...8686-prism-ii/

Copy the zip file to sdcard on your phone ====> DONE

Boot into recovery ===> DONE

Select "install zip" ======> DONE

Choose zip from sdcard ====> DONE.. but same result.. install competed but logs showed space error

Reboot into fastboot =====> DONE

Download and extract recovery-dd.rar =====> DONE

Open terminal =======>DONE

cd to extracted img from recovery-dd.rar =====>DONE

Type in terminal ======> DONE

Code:

fastboot flash recovery recovery-dd.img =======>DONE

after above, rebooted,, but phone does not boot and then afte 1 try automatickall goes into recovery.. this time recovery is NOT CMW, i think its the STOCK recovery (Android System Recovery 3E)

What dhould i do at this point?

---------- Post added at 08:27 PM ---------- Previous post was at 08:22 PM ----------

ok i went ahead and tried ti insall both images one by one.. but both failes with same error

it finds / opens then verifies package then formats cache then install is aborted
[Android General] nycelitemaster:
Ill give u nandroid backup install that by placing in your card

Sent from my Nexus 4
[Android General] nycelitemaster:
Download the nandroid backup from this link. This is posted by very helpful person from Recovery section. http://www.4shared.com/folder/ycaEzuL3/Huawei_Prism_II.html

if this doesn't help, you might want to ask someone in recovery. I am still waiting for my microsd card to arrive so i can mess around with it.
[Android General] indgirl6:
thanks.. i will try that..

do i just download as ZIP then follow the same process of applying update from sd card?

---------- Post added at 09:01 PM ---------- Previous post was at 08:59 PM ----------

how do i download from this site? it says a premium account is required..
[Android General] nycelitemaster:
Hmm.. I will dump it personally from my phone and give u.. Give me few like an hour.

Sent from my Nexus 4
[Android General] indgirl6:
thanksyou so much!! i really appreciate all your help and guidance so far..
[Android General] nycelitemaster:
Gotta wait approx. 35 mins for upload to complete. I am remotely connected to work so it splits my bandwidth.

Sent from my Nexus 4
[Android General] indgirl6:
ok NP, whenever its convenient for oyu.. I did download the nandroid backf form that site.. going to try and restore it via CWM now..

will post back
[Android General] nycelitemaster:
Np i am uploading it.. Almost 700mb. Once you extract it will be 1.2gb. Put clockworkmod folder in root of your card. Then restore select my backup and boom.

Sent from my Nexus 4
[Android General] indgirl6:
ok thanks.. the nandroid backup that i downloaded did not work. it complained about MD5 mismatch..

will try yours when its ready..
[Android General] nycelitemaster:
https://www.mediafire.com/?410c0c6c9wjs38b

Download at the above link. This is my nandroid backup. I had to pull card from my camera to back it up.
[Android General] indgirl6:
Thanks a bunch!! i really really appreciate it.. i am downloading it now.. will keep you posted..
[Android General] nycelitemaster:
Ok cool let me know

Sent from my Nexus 4
[Android General] indgirl6:
the restore seems to go well for a while then ended with "Error restoring /system" :(

going to try doing an advanced restore and see..
[Android General] nycelitemaster:
Thats wierd... What error u get

Sent from my Nexus 4
[Android General] indgirl6:
its seemd to restore fine and abruptly stopped saying error restoring system!

i did not click "report error" to find detailed error log.. will do it if this 2nd attempt is not successful..

using advanced restore i am successfully able to restore boot and data partitions from your image, i seem to be having issues restoring only /system wether its via your image or any of the other ROMS i downloaded.. the boot and data are just fine..

with the STOCK ROM (with and without Carrier IQ), the system recovery fails with "no space errors"

again boot and data are fine.. just issues recovering /system..
[Android General] nycelitemaster:
Thats wierd... Please find out what error you get?

Sent from my Nexus 4
[Android General] indgirl6:
ok, i found this thread:

http://xdaforums.com/showthread.php?t=1847856

seems to be simillar issue. i did a restore of your image again.. and same issue.. this time with out rebooting i opened adb shell and df shows:

/cache/recovery # df

Filesystem 1K-blocks Used Available Use% Mounted on

tmpfs 207800 48 207752 0% /dev

/dev/block/mmcblk0p15 193672 4456 189216 2% /cache

/dev/block/mmcblk1p1 3840000 2736320 1103680 71% /sdcard

/dev/block/mmcblk0p17 516500 516492 8 100% /system

/cache/recovery #

looks llike /system ran out of space!

info from log:

/cache/recovery # ls -al

ls -al

drwxrwx--- 2 system cache 4096 Feb 13 07:26 .

drwxrwx--- 5 system cache 4096 Feb 13 07:23 ..

-rw-rw-rw- 1 root root 0 Feb 7 22:45 last_install

-rw-r----- 1 root root 22957 Feb 13 07:29 last_log

-rw-rw-rw- 1 root root 22957 Feb 13 07:29 log

/cache/recovery # tail log

tail log

libgcomm_jni.so

libgemini.so

libgenlock.so

libgesture_client.so

libgestureservice.so

libgetzip.so

libglib.so

libgoggles_clientvision.so

libgoogle_recognizer_jni_l.so

Error while restoring /system!

/cache/recovery #

doesnt show any details on what the error is..

do you know if and how i can increase size of /system

what is the size of your /system partition?

---------- Post added at 01:08 AM ---------- Previous post was at 12:44 AM ----------

Hi,

when you get the chance, can you let me know the size of youur /system partition. mine is currently set to 504MB, not sure why.. the phone has an internal space of 4GB

do you know how i can increaze this size?
[Android General] Prism 2:
Hope nycelitemaster doesn't mind me jumping in for a moment, but here's the partition table on my Prism II. As you can see system is 1048576 bytes or roughly 1.05 gb

Partition Table:

Device Boot Start End Blocks Id System
/dev/block/mmcblk0p1 * 1 3 20 4d Unknown	/sdcard
/dev/block/mmcblk0p2 3 41 300 45 Unknown
/dev/block/mmcblk0p3 41 16681 133120 c Win95 FAT32 (LBA)	/sys_boot and /fat
/dev/block/mmcblk0p4 16681 477184 3684031+ 5 Extended
/dev/block/mmcblk0p5 16897 18432 12288 6a Unknown
/dev/block/mmcblk0p6 18433 18944 4096 46 Unknown
/dev/block/mmcblk0p7 18945 19456 4096 63 GNU HURD or SysV	/misc
/dev/block/mmcblk0p8 19457 19840 3072 58 Unknown
/dev/block/mmcblk0p9 19969 20352 3072 4a Unknown
/dev/block/mmcblk0p10 20481 20864 3072 4b Unknown
/dev/block/mmcblk0p11 20993 21504 4096 47 Unknown
/dev/block/mmcblk0p12 21505 22528 8192 48 Unknown	/boot
/dev/block/mmcblk0p13 22529 25088 20480 60 Unknown	/recovery
/dev/block/mmcblk0p14 25089 25600 4096 6c Unknown
/dev/block/mmcblk0p15 25601 50176 196608 83 Linux	/cache
/dev/block/mmcblk0p16 50177 60416 81920 83 Linux	/cust
/dev/block/mmcblk0p17 60417 191488 1048576 83 Linux	/system
/dev/block/mmcblk0p18 191489 338944 1179648 83 Linux	/data
/dev/block/mmcblk0p19 338945 477184 1105920 6b Unknown	/HWUserData
[Android General] indgirl6:
THanks Prism II, can oyu tell me how i can get this same display for my phone.. i am in the adb shell now.. how do i display this table ?
[Android General] Prism 2:
App is called fdisk.

Copy fdisk over to your phone, make it executable, and run "fdisk -l /dev/block/mmcblk0"

Then your're done!
[Android General] indgirl6:
thanks again for this..

do you know how i can change my /system which is very small ?

i see tht your /system is quite large 1GB+.. how much of that is used?
[Android General] Prism 2:
My /system uses 649mb.

I've never partitioned an android phone, but I believe the first step is to see where you have extra space to expand your system partition. So we'll need to see the fdisk output unless you can explain how you could have shrank the system partition. That would be equally helpful :)
[Android General] indgirl6:
i did not expand or shrink any partitions.. i do see /mnt/sdcard (internal sd card) has 2G allocated to it

DF Output:

Filesystem Size Used Free Blksize

/dev 195M 64K 195M 4096

/mnt/asec 195M 0K 195M 4096

/mnt/obb 195M 0K 195M 4096

/system 503M 465M 38M 4096

/data 629M 420M 209M 4096

/cache 188M 4M 184M 4096

/cust 78M 12M 66M 4096

/mnt/sdcard2 3G 2G 1G 32768

/mnt/secure/asec 3G 2G 1G 32768

/mnt/sdcard 2G 544K 2G 32768

fdisk output:

Disk /dev/block/mmcblk0: 3959 MB, 3959422976 bytes

1 heads, 16 sectors/track, 483328 cylinders

Units = cylinders of 16 * 512 = 8192 bytes

Device Boot Start End Blocks Id System

/dev/block/mmcblk0p1 * 1 3 20 4d Unknown

Partition 1 does not end on cylinder boundary

/dev/block/mmcblk0p2 3 41 300 45 Unknown

Partition 2 does not end on cylinder boundary

/dev/block/mmcblk0p3 41 16681 133120 c Win95 FAT32 (LBA)

Partition 3 does not end on cylinder boundary

/dev/block/mmcblk0p4 16681 483328 3733183+ 5 Extended

Partition 4 does not end on cylinder boundary

/dev/block/mmcblk0p5 16897 18432 12288 6a Unknown

/dev/block/mmcblk0p6 18433 18944 4096 46 Unknown

/dev/block/mmcblk0p7 18945 19456 4096 63 GNU HURD or SysV

/dev/block/mmcblk0p8 19457 19840 3072 58 Unknown

/dev/block/mmcblk0p9 19969 20352 3072 4a Unknown

/dev/block/mmcblk0p10 20481 20864 3072 4b Unknown

/dev/block/mmcblk0p11 20993 21504 4096 47 Unknown

/dev/block/mmcblk0p12 21505 22528 8192 48 Unknown

/dev/block/mmcblk0p13 22529 25088 20480 60 Unknown

/dev/block/mmcblk0p14 25089 25600 4096 6c Unknown

/dev/block/mmcblk0p15 25601 50176 196608 83 Linux

/dev/block/mmcblk0p16 50177 60416 81920 83 Linux

/dev/block/mmcblk0p17 60417 125952 524288 83 Linux

/dev/block/mmcblk0p18 125953 207872 655360 83 Linux

/dev/block/mmcblk0p19 207873 483328 2203648 6b Unknown
[Android General] nycelitemaster:
Hey prism2 glad you jumped in bud, i was going to send you msg.

[MENTION=1421849]INd[/MENTION]girl whatever you did initially changed your partition schema.

Sent from my Nexus 4
[Android General] Prism 2:
Well, the good news is only partition mmcblk0p17, mmcblk0p18, and mmcblk0p19 were changed, so you'll just need to shrink mmcblk0p19, move mmcblk0p18 down, and expand mmcblk0p17. I'm not sure how to accomplish these goals on an android phone, so this is as much as I can help. If you ever figure it out please let me know! I am very interested in learning how!
[Android General] indgirl6:
[MENTION=483068]nycelitemaster[/MENTION] & [MENTION=5235863]prisim[/MENTION] II, thanks a lot for all your guidance so far..

i have been looking around online to see how to modify the partitions.. not sure what i did to change it in the first place..

Will definately post back if i have any success,

Once again.. thanks a lot..
[Android General] nycelitemaster:
Check this thread which is used for Huawei phone. We can probably work on similar tool to resize partition and help those who lost their phone. http://xdaforums.com/showthread.php?t=1112857
[Android General] indgirl6:
THanks, i am looking into this now.. seems to be exactly what i am looking for.. but finding it tough to understand.. need to make sure i understand it perfectly before trying as i might end up doiing more damage..

Thanks again.. will report back on the outcome
[Android General] Prism 2:
If you look at the partition file in the zip, you'll see that the script uses fdisk to repartition mmcblk0. I would use these values to remake your partition table:

cd /sbin

./fdisk /dev/block/mmcblk0

d

19

d

18

d

17

n

60417

191488

n

191489

338944

n

338945

477184

t

19

6b

w

None of the changes are made until you enter w (write) at step 21. n = new partition, d = delete partition, and t = change partition id.

I had some trouble setting the new partitions to the exact values above, so if that happens, try to get it as close as possible. For example use 60418 instead of 60417, 191490 instead of 191489, and 338946 instead of 338945. Good luck!

Also, this will destroy all your data in partitions 17, 18, and 19 so backup anything important!
[Android General] indgirl6:
THanks PrismII,

i was having a tough time understanding what what partitions ere being modified form the other post.. Your explanation made it a lot more simple..

BUt i have a question.. i dont really care about any data in any of the partitions, (except for external SD card - which i will backup).

but after reading through the various posts i am a little hesitant of completely bricking the phone..

should i just take the official partion zip from that post,, modify the partition file wiht the values you gave below, and apply it as an update (twice)?

The zip file in the post seems to be specifically for the U8800 phone, as i see the file in META-INF pertaining to that:

Do you see any issues in using the zip file as is (replacing with the partition file u gave..)

ui_print("+++++++++++++++++++");

ui_print("Change MMC partiton by Geno");

ui_print("+++++++++++++++++++");

mount("ext3", "EMMC", "/dev/block/mmcblk0p13", "/olddata");

mount("vfat", "EMMC", "/dev/block/mmcblk1p1", "/card");

show_progress(0.2, 2);

ui_print("Backup and Restore...");

package_extract_file("backup", "/tmp/backup");

set_perm(0, 0, 0777, "/tmp/backup");

run_program("/sbin/sh", "/tmp/backup");

unmount("/olddata");

show_progress(0.1, 1);

ui_print("Change partiton size...");

package_extract_file("partition", "/tmp/partition");

set_perm(0, 0, 0777, "/tmp/partition");

run_program("/sbin/sh", "/tmp/partition");

show_progress(0.8, 32);

ui_print("Format partition...");

package_extract_file("mke2fs","/tmp/mke2fs");

set_perm(0, 0, 0777, "/tmp/mke2fs");

package_extract_file("busybox","/tmp/busybox");

set_perm(0, 0, 0777, "/tmp/busybox");

run_program("/tmp/mke2fs", "-F", "-j", "-b4096", "-m0", "/dev/block/mmcblk0p13");

run_program("/sbin/e2fsck", "-yf", "/dev/block/mmcblk0p13");

run_program("/tmp/busybox", "mkfs.vfat", "-v", "-n", "U8800-MMC", "/dev/block/mmcblk0p14");

show_progress(0.2, 4);

ui_print("Backup and Restore...");

mount("ext3", "EMMC", "/dev/block/mmcblk0p13", "/olddata");

run_program("/sbin/sh", "/tmp/backup");

unmount("/olddata");

unmount("/card");

ui_print("Change complete!");

ui_print("Have a fun! ^_^ ");
[Android General] Prism 2:
I would not use the script because the partition file is not the only file that needs modification.

The simplest way to repartition your phone is by manually completing the steps above in a shell and afterwards, formatting the system, data, and HWUser partitions in CWM recovery. Then, you should be able to restore everything. Plus, if you run into any errors like I did, fdisk is interactive so it will notify you and give you the chance to correct it. The script is dumb and doesn't know how to handle errors so it could potentially mess up your partitions even more!
[Android General] indgirl6:
Oh.. so u already tried this? i dont htink i can do this in adb shell while phone is on since the partitions are in use.. ight?which mode were you in while you ran the fdisk commands?

what were the errors you ran into?

Also, with the commands i am basically deleting 3 partitions and creating 3 new ones.. dont i have to create the filesystems too? (the mke2fs commands)?

---------- Post added at 10:52 PM ---------- Previous post was at 10:40 PM ----------

ok i couldnt wait.. went into recovery and modified partiton table.. this is how it looks llike:

Command (m for help): p

p

Disk /dev/block/mmcblk0: 3959 MB, 3959422976 bytes

1 heads, 16 sectors/track, 483328 cylinders

Units = cylinders of 16 * 512 = 8192 bytes

Device Boot Start End Blocks Id System

/dev/block/mmcblk0p1 * 1 3 20 4d Unknown

Partition 1 does not end on cylinder boundary

/dev/block/mmcblk0p2 3 41 300 45 Unknown

Partition 2 does not end on cylinder boundary

/dev/block/mmcblk0p3 41 16681 133120 c Win95 FAT32 (L

A)

Partition 3 does not end on cylinder boundary

/dev/block/mmcblk0p4 16681 483328 3733183+ 5 Extended

Partition 4 does not end on cylinder boundary

/dev/block/mmcblk0p5 16897 18432 12288 6a Unknown

/dev/block/mmcblk0p6 18433 18944 4096 46 Unknown

/dev/block/mmcblk0p7 18945 19456 4096 63 GNU HURD or Sy

V

/dev/block/mmcblk0p8 19457 19840 3072 58 Unknown

/dev/block/mmcblk0p9 19969 20352 3072 4a Unknown

/dev/block/mmcblk0p10 20481 20864 3072 4b Unknown

/dev/block/mmcblk0p11 20993 21504 4096 47 Unknown

/dev/block/mmcblk0p12 21505 22528 8192 48 Unknown

/dev/block/mmcblk0p13 22529 25088 20480 60 Unknown

/dev/block/mmcblk0p14 25089 25600 4096 6c Unknown

/dev/block/mmcblk0p15 25601 50176 196608 83 Linux

/dev/block/mmcblk0p16 50177 60416 81920 83 Linux

/dev/block/mmcblk0p17 60418 191489 1048576 83 Linux

/dev/block/mmcblk0p18 191491 338946 1179648 83 Linux

/dev/block/mmcblk0p19 338948 477188 1105928 6b Unknown

going to reboot now..
[Android General] Prism 2:
None of the changes are written until you type in "w" in step 21. So I've only tested steps 1-20. This should be done in recovery, where you can umount the partitions. Remember you can format the whole system partition in recovery so recovery does not rely on those partitions.

I ran fdisk command in regular system, just to try it out. I had no intention of writing onto the disk, so this was ok. I would've ran into errors if I tried. So before you start, its a good idea to type in "mount". Unmount the system, data, or HWuser partition if they are mounted.

I ran into some errors when creating the new partitions. I had to add 1 cylinder at the start of each partition. You lose some storage space, but I don't think 3 cylinders are that big of a deal :)

Edit: Ugh, I type too slow, but those partitions look good now :good:
[Android General] indgirl6:
yeah i did try to save partition table and save it.. but it errored out..with device busy..:

Command (m for help): w

w

The partition table has been altered.

Calling ioctl() to re-read partition table

fdisk: WARNING: rereading partition table failed, kernel still uses old table: D

evice or resource busy

so u are right.. somthng was already mounted.. going tor y try again now..

---------- Post added at 11:08 PM ---------- Previous post was at 11:00 PM ----------

ok i think i messed up..

i got hte device busy message which means my changes were not saved.. but i had formatted data / system & HWuserdata

now i am not able to boot phone in recovery..

i can get it in bootloader mode..

any suggestions?
[Android General] Prism 2:
First thing is to get back recovery! If you are absolutely sure recovery is gone, try reflashing it . This is really strange because we're not modifying the recovery partition.
[Android General] indgirl6:
i hope there is no issue reading the SDCARD.. dont knwo.. i tired flashihg recovery from bootloader using fast boot.. still not coming up in recovery..

will try to boot a recovery image. I have to go out now.. and may not get hte time this weekend.. will probably get back to this on tuesday..
[Android General] Prism 2:
I want to believe that it was from formatting data. I'll have a solution by Tuesday!
[Android General] Prism 2:
I think I figured out why recovery isn't starting. The partition table was altered, but the kernel wasn't smart enough to realize the change. So assuming the format happened with the old partiton table boundaries, the filesystem is corrupt. When recovery tries to mount the system filesystem on startup, it errors out and boots the bootloader!

It is easy to fix a corrupt filesystem. We just need to reformat the system and userdata partitions. In fastboot, type "fastboot erase system -w". More info on the fastboot command can be found here: http://xdaforums.com/showthread.php?t=2277112

This is just a theory so let me know how it goes!
[Android General] Sky2TV:
Thank you very much dear

:good:
[Android General] Prism 2:
Haha you're one of the nicest person I've met on the internet ;)
[Android General] nycelitemaster:
did we ever got this sorted out?
[Android General] indgirl6:
Hi PrismII,

I have not got the chance to look at this yet due to work pressures.... hoping to get this done today.. will report back

---------- Post added at 03:28 PM ---------- Previous post was at 03:01 PM ----------

so after running the erase command on system i should reboot? or should i erase any other partitions too? and how / wen do i run the fsck commands?

---------- Post added at 03:43 PM ---------- Previous post was at 03:28 PM ----------

ok i ran this command and looks like the partition table is missing:

>fastboot erase system -w

erasing 'system'...

FAILED (remote: Partition table doesn't exist)

finished. total time: 0.006s

>
[Android General] Prism 2:
I don't think there is a fsck function in fastboot. I'm still trying to get back recovery.

I'm going to need more information on the status of the phone. Can you try flashing the default recovery on your phone? If not, please provide the error message!
[Android General] indgirl6:
so when i tried the erase command via fastboot, the error said that the partition table is missing.

I am able to get the phone to fastboot (power + Vol down), i am also able to birng the phone in the pink screen mode (power + Vol up + vol down)

when i go to fastboot, i am able to run commands, i tried flashing recovery and it says its sucessful, but i am unable to boot into recovery

>fastboot flash recovery recovery-dd.img

sending 'recovery' (20480 KB)...

OKAY [ 1.889s]

writing 'recovery'...

OKAY [ 5.541s]

finished. total time: 7.433s

>

In the pink screen mode. my PC detects the phone and installs some drivers too.. but not sure what mode its in.. fastboot and adb commands do not see any devices.

again in fastboot mode, i tired booting from a recovery image, command runs fine, but phone does not boot up.. its permanently stuch on the initial splash screen.

>fastboot boot recovery.img

downloading 'boot.img'...

OKAY [ 1.884s]

booting...

OKAY [ 2.212s]

finished. total time: 4.099s
[Android General] Prism 2:
Thanks for all the information. It seems your partition table doesn't associate /dev/block/mmcblock0p17 with the system partition anymore. I don't know how to reconnect the two manually.

Could you try locking and unlocking the bootloader in fastboot? That should have the same functionality as the erase command.
[Android General] indgirl6:
The lock command fails..via fastboot with invalid command... do you know how i can lock it? Also if i lock it.. i dont have any key to unlcok it.. how can i unlock it?

>fastboot oem lock

...

FAILED (remote: Invalid command)

finished. total time: 0.003s

>
[Android General] nycelitemaster:
Fastboot will not work with usb 3.0 try with 2.0

Sent from my Nexus 4
[Android General] Prism 2:
That was the only way I knew how to lock it.

Does "fastboot format userdata" work?
[Android General] indgirl6:
no.. erase on system or user data both gives error about missing partition table

Format on any of the 2 gives the following error:

>fastboot format userdata

formatting 'userdata' partition...

Formatting is not supported for filesystem with type ''.

FAILED ()

finished. total time: 0.007s

>

---------- Post added at 11:25 PM ---------- Previous post was at 11:21 PM ----------

hi,

does any one have the hboot.img and bootloader.img for this device?

i am thinking of trying to flash bootloader and see if tht helps..
[Android General] nycelitemaster:
hboot is for HTC, bootloader can be dumped. That is all, but i highly doubt this is related to bootloader. Your issue is that your partition table is not built properly.

see attached script file i attached. This is the file i received from miui forum to fix same issue w/ wrong partition size.
[Android General] indgirl6:
hi,

yes i actually pricked that up from the fastboot guide that Prism II had linked. you are right, that guide was mostly referencing HTC devices.. however, he did mention replacing or re-flashing bootloader 'may' overwrite the partition table.. In my case it appears that the partition table is missing.. so was hoping i could try flasing the bootloader and see if that would help.

but i dont know where to get an image of the bootloader or how to create one.

You refered to a script file that you attached. but i did not see any attachment.. can you please advice which script file u were refering..