yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Pocket] eng.hamdy.86:
I have Samsung Galaxy Pocket Plus GT-S5301B. I bought it from Brazil. Now, I'm in Egypt so I wanted to install the EGY firmware on the device so I can use Arabic language. There was no EGY firmware for GT-S5301B but i found EGY firmware for GT-S5301. Which i think both are the same smartphone GT-S5301B and GT-S5301.

I flashed the EGY on the device using Odin. Something went wrong, but I don't know what. The device is now having the "Firmware upgrade encountered an issue. Please select recovery mode in Kies and try again" screen every time it is powered on. The device keeps rebooting every 12-15 seconds. The device doesn't enter the download mode or the recovery mode. When connecting to Kies and selecting the recovery mode, Kies don't sense the device.

ANY HINTS PLZ ??
[Samsung Galaxy Pocket] eng.hamdy.86:
HELP !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Please guys give me a hand here. Any clues???
[Samsung Galaxy Pocket] eng.hamdy.86:
Help again !!!!!!!!!!!!!!!!!!!!!!!!!

please guys help me to solve this issue ??
[Samsung Galaxy Pocket] eng.hamdy.86:
why there is no help :(
[Samsung Galaxy Pocket] kkbs4u:
Try device in download mode use vol -+power+home for download mode and flash stock firmware feom samfirmware.com

Sent from my GT-I9060

---------- Post added at 05:58 PM ---------- Previous post was at 05:57 PM ----------

Send me the screen shot of your device

Sent from my GT-I9060
[Samsung Galaxy Pocket] eng.hamdy.86:
[IMG="screenshot"][/IMG]

[IMG="screenshot"]https://www.dropbox.com/s/pqvi4j068zkkw9g/photo.JPG?dl=0[/IMG]

The device is now having the "Firmware upgrade encountered an issue. Please select recovery mode in Kies and try again" screen every time it is powered on. The device keeps rebooting every 12-15 seconds. The device doesn't enter the download mode or the recovery mode. When connecting to Kies and selecting the recovery mode, Kies don't sense the device
[Samsung Galaxy Pocket] eng.hamdy.86:
screenshot

[IMG="screenshot"]http://postimg.org/image/5t1zm45qt/[/IMG]

http://s18.postimg.org/o8mgjijvd/photo.jpg
[Samsung Galaxy Pocket] eng.hamdy.86:
the phone is useless

please help me out there. i need help urgently
[Samsung Galaxy Pocket] kkbs4u:
Bro I think this problem is only solve by service centre of samsung mobiles beacuse I think your board chip not responding in odin mode try to flash rom from service centre it will be ok

Sent from my GT-I9060
[Samsung Galaxy Pocket] eng.hamdy.86:
Thanks for your advice. Odin sense the device when it is connected but the problem is that the device keeps rebooting. Is there a software that can force the device to go into recovery mode or another key combination rather than the default.
[Samsung Galaxy Pocket] kkbs4u:
I think no bro there is no option to go recovery mode I am a hardware engr and I now that type of problem can repair throuht frimware box like samsung tool and Z3X box.

Sent from my GT-I9060
[Android Q&A, Help & Troubleshooting] habeebkambrath:
How to Change All HTC CID to Super CID???:confused:

replay pls
[Android Q&A, Help & Troubleshooting] es0tericcha0s:
Depends on the device. Sometimes there is a program, sometimes just a command. Almost always need to have S-Off though. Also, stop bumping your own thread after a few hours.
[HTC Sensation] rmann:
Guys,

I have had an device impacted by TWRP 2.7.X build that created the problem of not being able to mount /data and sometimes(/cache & /system) partitions.

I have managed to make it run a ROM by using information from

http://xdaforums.com/showthread.php?t=1869673 & http://xdaforums.com/showthread.php?t=1843062.

the problem is that the mounts are not remaining permanent and my modified boot.img does not boot the devices. So i have to mount the partition manually during the boot process over a shell and then the device boots.

Need help from experts to do a kernel which can mount sdext partition and an updated recovery image which also mounts the sdext partition as /data so that roms can be flashed easily.

I will try and do a writeup of how i made it run.
[HTC Sensation] rmann:
Resurrecting Pyramid

As mentioned in the earlier thread, my sensation got into trouble with TWRP 2.7 version and i was having trouble mounting /data, /system and /cache partitions.

I eventually got the /cache partition mounted by using mkfs.ext4 utility but could not get other and hence started working on a way to move both /data and /system partitions completly off SD card. Lot of people have already attempted that for other devices, feel free to go and check the threads linked in the post 1. Lets get started:

Assumptions: You have a sensation on which /data and /system partitions are an issue - not getting mounted / formatted etc. /cache is expected to be ok/working.

Requirements:

1) Your phone is booting and can go into recovery. Please get 4EXT recovery installed. You can download an img file from here

2) You have basic adb and fastboot setup on your machine(Win/Linux). Just google them out, if you dont have , there are plenty of tools out there.

3) Download Revelation 1.0.3 from here. you can choose any other ROM but i worked on this and have the boot image patched to look at /system from sd-ext.

4) download the two files attached with this thread.

Steps to recover:

1) Boot your phone in recovery. We will first get the SD Card set up. A Class 10 card is preferred, you will have a good feel on the phone.

2) Using 4EXT partition tool for sd card, create 2 sd ext partition in addition to your sdcard. I suggest first partition(which we will use as /system) to be more than 800 MB and second partition( which we will use as /data) to be more than 1024 MB.

3) Verify using the 'info' option of 4ext recovery that you can see sd-ext, sd-ext2 and sdcard partitions.

4) Extract the ROM you have downloaded using 7z/Winzip /winrar and replace the following files you have downloaded from this thread.

a) updater-script in /META-INF/com/google/android/ folder.

b) boot.img in /KERNEL folder.

5) Zip the file again and copy to your sdcard. Choose install from sdcard from the 4ext recovery menu. Choose default options in AROMA installer.

6) Reboot.

Hope your phone boots. If not, this is how you debug

Android will create a /proc/kmsg file when the kernel boots. So open two terminal(linux) windowds, in one, type this

adb pull /proc/kmsg

and in the second terminal(make sure the directory is same), type this:

cat kmsg | less

and then go through the error messages to see what is going wrong. If you can share your kmsg file created, I can try and help you debug.

Good luck !!!!!
[HTC Sensation] Jack Daniel's:
Hi,

I followed your instructions but the Aroma installer always stops and the log shows this:

AROMA INSTALLER version 2.56
(c) 2012 by amarullz xda-developers

ROM Name : Revelation
ROM Version : 1.0.3
ROM Author : SebastianFM
Device : HTC Sensation/XE/4G
Start at : Fri Jan 2 00:00:31 1970

line 4 col 1: syntax error, unexpected BAD, expecting IF or STRING or '!' or '('
line 44 col 70: syntax error, unexpected BAD
2 parse errors

Installer Error (Status 6)
[HTC Sensation] rmann:
Pick the files from here and then try...

http://xdaforums.com/htc-sensation/help/bricked-htc-corrupted-partitions-t2804222/page3
[HTC Sensation] Jack Daniel's:
I tried that before.

Same result but it shows one error less.

...
line 4 col 1: syntax error, unexpected BAD, expecting IF or STRING or '!' or '('
1 parse errors

Installer Error (Status 6)
[HTC Sensation] rmann:
Which recovery are you using... I have re-tested the script and it works ok for me.
[HTC Sensation] antiziclon:
I get the same exact error as Jack Daniel's.

I am using as recovery 4EXT Recovery Touch v1.0.0.5 RC5.
[HTC Sensation] rzr86:
did you try to update the recovery to the latest version?
[HTC Sensation] antiziclon:
Just tested with v1.0.0.6 RC3 build 8, same error
[HTC Sensation] rzr86:
redownload the zip file

after that i am out of ideas:(
[HTC Sensation] antiziclon:
ok, I found out the issue.

The issue is on the encoding of the "updater-script" file.

It needs to be in Unix encoding. If you use Windows (as I do) when unzipping the Zip file or when creating a new file with a text editor, the encoding gets changed and it is not Unix encoding.

To solve it:

- Open the file in Notepad++.

- Go to Edit --> EOL Conversion --> UNIX

It will change the enf of lines to comply with Unix encoding. Then add the file to the Rom zip file and you are ready to go ;)

Enjoy!
[HTC Sensation] 014916:
Successful Pyramid rescue

I have a sensation with corrupted emmc caused by TWRP, /data cannot be mounted.

I followed your instructions and addition re script encoding and successfully installed Revelation to partitioned sdcard.

Phone boots and works.

That's great, thanks.

I have some questions:

1. Is 512 MB sufficient for swap partition? What would be the optimal size?

2. My sensation is s-on unlocked, and I had to flash boot via fastboot after install, 4ext did not flash it despite smartflash option turned on. Is that normal?

2. Superuser does not seem to work, I have no root. I checked with root validator and I have su binary, superuser and busybox, but no root is given to apps that require it, su binary update fails, and there are no logs left in superuser to check (or I simply don't know where to look).

Thank you.
[HTC Sensation] dididoner:
Ok try to make that in unix
[HTC Sensation] danilandroid:
Extreme lag

Hi there,

I followed all the staps, but when the rom was installed, it was very laggy and i experinced a lot of force closes. Is this because the partions are to small or because the sd is to slow EDIT: its a class 4 card?

Greetings,

Danil
[HTC Sensation] dididoner:
Extreme unuseful slow

With my sensation XE i also followed all steps. Revelation 1.0.3 is booting, but not to use at all, it stucks in every step, cant even receive a call, can't go to any menu. Pls someone help me out of here. Do I need a swap partition? Or are the partitions to small? sd-ext has 1024Mib; sd-ext2 1537Mib.
[HTC Sensation] dididoner:
Hi Danil, could you solve the problem? I encounter same symptoms. My Phone: Sensation XE; Revelation 1.0.3. Cant use it at all , it boots but gets totally stuck. Have original sd, dont know the class. Greetings dididoner
[HTC Sensation] rzr86:
probably you need a sdcard with high speed of w/r but i am not sure
[HTC Sensation] danilandroid:
Lag

I'm going to buy a sd-card class 10 and than I will try the same thing agian. I will report later.

@ rmann Btw thanks for the amazing thread, I was completely stuck and now my phone is alive again kinda.

Danil
[HTC Sensation] dididoner:
So, I bought a class 10 card, revelation is running now!! At first start it was still very slowly an got stuck allover. But at second start it is running now!

Thanks for that perfect thread!!

:good:

I wonderd why vipers wont start the same way? When I try to boot it , 4ext recovery is starting rightaway with little delay!
[HTC Sensation] smekzor:
Hi, when I got the same problem with /data, /cache and /system not mounting. I followed the steps from #2 post http://xdaforums.com/showpost.php?p=55157092&postcount=2

and when I try to install from zip it says that the zip isn't meant to be flashed in recovery and it aborts the installation. First I tried renaming the new_boot.img you provided to boot.img but it's the same result.
[HTC Sensation] ni4rkx:
Hi, I'm trying to follow your tuto, but i'm facing this when I try to flash the revelation rom;

I did all you said I don't think I failed with the rom but I'm not sure what's happening ...
[HTC Sensation] DanielF50:
After a few days of trying, I managed to fix the internal partitions that were corrupted by a TWRP wipe (I couldn't get cache or data to format/accept anything)

By chance I saw someone mention that you can access OEM commands via hboot so I went through the commands and tried a couple when I got to;

fastboot oem gencheckpt

I'm not sure exactly what this command did but I'm pretty sure it wiped the partition table/fstab and renewed it as I was then able to go into recovery and format /data and /system, then flash a custom ROM and boot perfectly :D

Hope this helps people if they're still struggling, I spent days looking for a fix.
[HTC Sensation] Sajito:
When I had that problem with my phone some months ago, not even ruu installed. It would be awesome for a lot of people if this really fixes it.

Hope anyone can confirm that.
[HTC Sensation] DanielF50:
Yeah, I couldn't get the RUU to run either as it would just get to formatting the data partition and then hang forever, I tried everything, even tried using parted from the /sbin/ for but couldn't get it to format the data partition so nearly completely gave up.
[HTC Sensation] jxl69:
I've tried this and no game. Output is attached and I still can't mount and or write to it. Custom ROM failes to install haven't tried RUU but i presume it would be the same.

fastboot oem gencheckpt
...
(bootloader) Start Verify: 0
(bootloader) Start Verify: 0
(bootloader) erase sector 130560 ~ 131071 (512)
(bootloader) mipi_dsi_cmd_config:panel_id=0x940022
(bootloader) width=540 height=960
(bootloader) setup_tag addr=0x48000100 cmdline add=0x801DA920
(bootloader) TAG:Ramdisk OK
(bootloader) TAG:skuid 0x28002
(bootloader) TAG:hero panel = 0x940022
(bootloader) TAG:engineerid = 0x7
(bootloader) TAG: PS ID = 0x2
(bootloader) Device CID is super CID
(bootloader) CID is super CID
(bootloader) Backup CID is empty
(bootloader) setting->cid::11111111
(bootloader) serial number: ############
(bootloader) commandline from head: no_console_suspend=1
(bootloader) command line length =523
(bootloader) active commandline: poweron_status=1 board_pyramid.disable_u
(bootloader) art3=0 diag.enabled=0 board_pyramid.debug_uart=0 userdata_se
(bootloader) l=0 androidboot.emmc=true androidboot.pagesize=2048 android
(bootloader) boot.lb=1 androidboot.baseband=11.22.3504.07_M androidboot.
(bootloader) cid=11111111 androidboot.batt_poweron=good_battery androidbo
(bootloader) ot.carrier=ALL androidboot.mid=PG5813000 androidboot.keycaps
(bootloader) =qwerty androidboot.dq=FAIL androidboot.mode=recovery androi
(bootloader) dboot.serialno=############ androidboot.bootloader=1.27.1100
(bootloader) zygote_oneshot=off msm_watchdog.enable=1 no_console_suspend
(bootloader) =1
(bootloader) aARM_Partion[0].name=misc
(bootloader) aARM_Partion[1].name=recovery
(bootloader) aARM_Partion[2].name=boot
(bootloader) aARM_Partion[3].name=system
(bootloader) aARM_Partion[4].name=cache
(bootloader) aARM_Partion[5].name=userdata
(bootloader) aARM_Partion[6].name=devlog
(bootloader) aARM_Partion[7].name=pdata
(bootloader) aARM_Partion[8].name=extra
(bootloader) aARM_Partion[9].name=radio
(bootloader) aARM_Partion[A].name=adsp
(bootloader) aARM_Partion[B].name=radio_config
(bootloader) aARM_Partion[C].name=modem_st1
(bootloader) aARM_Partion[D].name=modem_st2
(bootloader) partition number=14
(bootloader) Valid partition num=14
(bootloader) TZ_HTC_SVC_SET_DDR_MPU ret = 0
(bootloader) smem 50005000 (phy 50005000): TZ_HTC_SVC_UPDATE_SMEM ret = 0
(bootloader) TZ_HTC_SVC_LOG_OPERATOR ret = 0
(bootloader) TZ_HTC_SVC_MEMPROT ret = 0
(bootloader) TZ_HTC_SVC_ENC ret = 0
(bootloader) TZ_HTC_SVC_DISABLE ret = 73523200 (0x461E000)
(bootloader) jump_to_kernel: machine_id(3133), tags_addr(0x48000100), ker
(bootloader) nel_addr(0x48008000)
(bootloader) -------------------hboot boot time:53739 msec
FAILED (status read failed (Too many links))
finished. total time: 3.911s
[HTC Sensation] DanielF50:
I'm presuming you're S-OFF as you've got superCID, but if not, that might be the problem? Also, did you try formatting all of the partitions before installing a custom rom?

Mine gave me the exact same output then I went into EXT4 (recovery) and wiped all my partitions, rebooted into recovery and then installed a custom rom and it worked. By the looks of it, the only differences between mine and yours is that my hboot is 1.27.1111 (not 1.27.1100) and the radio is a different version.

Another thing I had done was to manually flash all parts of the original ROM.zip from the RRU (copied from temp files while RUU exe was open), except for system.img and dzdata_4g.img which may have helped (I'm not sure).
[HTC Sensation] jxl69:
Yeah S-OFF. Running revolutionary hboot. I've tried to format/wipe install with 1.27.1111 as also 1.29.something same resoult. Maybe I'll try to flash both again and try this oem gencheckpt. Also while looking at oem commands I've found interesting one oem refurbish. But currently doesn't do anything. Maybe not a HTC bootloader command or it's hboot problem.

Which RUU did you use to manualy flash everything? Do you still maybe have script of which part goes to which partition at hand maybe?
[HTC Sensation] DanielF50:
Sorry, only just seen this, I used:

RUU_PYRAMID_ICS_HTC_Europe_3.33.401.6_Radio_11.76A.3504.00U_11.24A.3504.31_M_release_266171_signed.exe

I don't have a script unfortunately, all I did was extract the ROM.zip to a new directory, cd'd into it via command prompt and then used fastboot to fastboot flash radio <radio.img> - obviously replacing "radio" and "radio.img" with whatever the .img file was called, eg. if the file was called radio1234.img I would do fastboot flash radio1234 radio1234.img.

I forgot to say earlier that it was Juopunutbear's 1.27.1111, not stock, just in case there's a stock 1.27.1111.

The only other thing I did apart from that what I've listed was this; http://forum.cyanogenmod.org/topic/6433-solved-messed-up-partitions-on-internal-storage/#entry56396 - which didn't work as neither the stock mke2fs or parted versions could format the corrupt partition.

Let me know if this works for you.
[HTC Sensation] Sc0rp10:
which custom rom did you install? i ran that command and then flashed the latest venom rom. now i'm stuck at a blank screen instead of the usual htc screen.
[HTC Sensation] vlaf:
Thanks for this guide to the OP, working excellence.

A little question, how to root?

Superuser app, says su binary needed to update, but every time getting errors, when try.

Any advices.Thanks.
[HTC Sensation] iameg:
Debug

I have installed the rom successfully however it's stuck on the HTC logo on boot. How do i debug?

---------- Post added at 02:40 AM ---------- Previous post was at 02:29 AM ----------

Here is my installation Log:

I was able to solve the issue above, however, it says, assert failed: write_raw_image("/tmp/boot.img","boot")

now it still stucks in the htc logo. Any idea how to solve this?
[HTC Sensation] iameg:
HELP!

I was able to solve again the problem, but now it's still stuck in the htc screen, now i'm out of ways. the installer says it's successful.

End part of the installation log:
[HTC Sensation] lowiic:
Same problem!

Flashed everything, went successful, but still stuck on my old cyanogenmod bootloop...

I tried to flash the boot.img via fastboot but didn't fix the problem.

errors found in kmsg file : https://www.dropbox.com/s/2gzfsu2ha9r1l5v/kmsg?dl=0
[HTC Sensation] nemesisam:
ALMOST SOLVED!!!!! (But I need expert Help to solve this!)

To anyone having /DATA problem to his SENSATION HTC.

Guys I had a breakthrough!!!

STEPS:

1. I used TWRP-2.8.6.0 as recovery so that I could use these commands in adb:

adb shell

killall -19 recovery

make_ext4fs /dev/block/mmcblk0p23

reboot

with this result:

~ # ←[6nmake_ext4fs /dev/block/mmcblk0p23

make_ext4fs /dev/block/mmcblk0p23

Creating filesystem with parameters:

Size: 1252769792

Block size: 4096

Blocks per group: 32768

Inodes per group: 7648

Inode size: 256

Journal blocks: 4778

Label:

Blocks: 305852

Block groups: 10

Reserved block group size: 79

Created filesystem with 11/76480 inodes and 10067/305852 blocks

I tried these commands with 4EXT Recovery Touch v1.0.0.6 RC 3 recovery but it stucked at "killall -19 recovery" and I' m not an expert in these commands so I tried TWRP (which I hate after what it did in my Sensation...)

2. Now my /DATA was ready to accept data. HOWEVER after this procedure, /CACHE gets corrupted (I do not know why). So I had to flash via Fastboot the 4EXT Recovery Touch v1.0.0.6 RC 3 to format the /CACHE partition as TWRP was destroying my progress every time I tried to format /CACHE with TWRP as recovery.

3. After this procedure, I press "Info" in my 4EXT Recovery Touch v1.0.0.6 RC 3 and I can see that EVERY PARTITION is now RECOGNIZABLE!!! Before this procedure it could not recognize /DATA as a normal partition as it couldnt find the amount of storage of the partition.

So now Im stuck here. Every ROM I try to flash with

4EXT Recovery Touch v1.0.0.6 RC 3 or TWRP-2.8.6.0 is not working as in the best scenario, it stays in the cyanogen loop while booting.

Right now I need the help of an expert to finish this as I feel we are close to SOLVE this issue! Please share this progress to anyone having this kind of problem with his HTC SENSATION /DATA mount.

Plus I can now mount EVERY partition!!
[HTC Sensation] razor26:
Hi, did you fix it? I am having the same problem. Any ROM I flash resulted in bootloop. Hope there will be a fix soon.
[HTC Sensation] ifti_a:
hi

dont think you will get a fix

i have tried everything

in the end i just installed CM11 with a external data mod and it seems to boot up fine.

if you have tried everything like i have there is not fix an you just have to run the data off the SD card, if you need any more info PM me

hope this helps
[HTC Sensation] Jonas_HtcSensation:
Hello, I aswell have managed to destroy my partitions via TWRP.

I tried the techniques duscussed in this Thread but had no luck.

I guess the "Guys i had a breakthrough" achieved nothing really?

Now i just want to install the rom to my SD card as described in post 2.

But i encounter some problems:

When i unzip the relevation zip with my linux machine, swap out the files and rezip it, 4ext is not installing the zip because "this zip is not meant to be installed via a recovery". No chance!

When i open the zip with an archive-manager and swap out the files, the aroma installer starts and i can choose al those default options. But as soon as i tap on install the installation process finishes directly with out any error. It says successful installed.

Of course then the rom will not boot.

With the "adb oem gencheckpt" command as described in this thread i am able to see all the partitions in the 4ext info screen. But as soon a i reboot after those unsuccessful installations the partitions are broken again and i need to re-enter the command in fastboot.

Funny thing:

the original Revelation1.0.3.zip is able to be installed without any errors and in a reasonable time but will will not boot correctly because it misses the boot.img in /tmp. But if you adb push the boot.img to /tmp before rebooting it will display the htc boot image, the htc boot animation and the revelation boot image. Then it goes black and will get stuck on the htc boot image.

How did you manage to install the rom to your sd cards?

Has anyone been able to fix his partitions?

How can i install an other rom than revelation? (How do i make the new_boot.img and the updater script?

Edit: How can i check if the cache is really working? Maybe the 4ext info just doesn't show the truth. Can anyone link the mkfs.4ext thread that is described in post2? I can not find it.

Maybe someone can help rescue this awesome phone,

Jonas
[HTC Sensation] tom0769:
For me it's the same.

Data partition is mountable in first place, but cannot be formatted in any recovery I used (some versions of twrp, cwm or 4ext)

This did nothing for me, though I got the same output.

Maybe I've got another type of emmc failure.
[HTC Sensation] nemesisam:
Guys I wrote I need someone with more knowledge than me in this field to help. I also PM many of the people of XDA posts which are about this issue. Noone answered to me (sadly). The first step we had to do was to mount EVERYTHING wich I managed to achieve.

The second part, to format everything right, is the step we have to get to.

As about the solution of an external SD partition, I do not know if it is as fast as the proper solution, which is to FIX this #@$#@$ thing.... ;) There are many other posts where we can find the external (temporary if you ask me) solution. The problem is to have a PERMANENT solution.