RESOLVED: Issues with rooting CDMA Hero - Hero CDMA Android Development

For those of you who are having problems with the following codes:
Code 3: adb push unrevoked /sdcard
Code 4: adb push recovery.img /sdcard
Code 5: adb push boot-patched.zip /sdcard
Code 7: sh /sdcard/unrevoked
and getting a message: "failed to copy 'unrevoked' to '/sdcard/unrevoked': Permission denied",
or
"Can't open /sdcard/unrevoked",
You may need to format your SD Card. I had to re-mount my SD card and enable disk use. Then I formatted it via windows. Then unmounted it and tried again.
SUCCESS!!! Finally!!! Took me 2 full days at work to figure this out. Not sure if anyone has really addressed this issue or not.

Related

Another brick? Please help!

I followed this tutorial (2nd post down), got some errors during the process and failed to complete it.
Now my phone hangs on the vodafone splash screen on boot. I think it is empty - without a rom.
However, it will boot to recovery and the bootloader fastboot.
Is there anything I can do to fix it or is it just a brick now?
Any help is much appreciated.
Cheers,
Flitar
boot into recovery and perform update with some rom
you will need to have some external device to write your microsd
If you get to a modded recovery image, you can run adb
1. Run "adb shell".
2. Once you're connected, remount the microsd card (it the os is broken it doesn't mount it automatically, at least on my phone) by running "mount /dev/block/mmcblk0p1 /sdcard"
3. Run "exit" on the terminal, so you can go back to your desktop computer.
4. Copy an update file to the sd card using adb, for example: "adb push [name_of_the_file] /sdcard/update.zip
5. Run the update from the recovery menu.
6. Reboot.
If that doesn't work, and if you did a nandroid backup, you still can update using fastboot by using the image files from the sd card (wich, by the way, you can copy from the phone back to the pc by using the command "adb pull [remote_file_name] [local_file_name]
Thanks you guys!
Sorted, phone is fine now.

Clone an SD card (including EXT3) to another?

Like ghosting a HDD to another, I wanted to know if there's an app that can do this?
I think my 8GB LG branded MicroSD is failing as Windows keeps reporting that the drive needs to be scanned when I mount it via USB from my Desire so I'd like to just get a new Sandisk 8GB card and clone the old to new one to avoid having to go through restoring backups and so on.
If anyone has any ideas that would be grand!
check winimage.
That app can make image and recover it to drives!
Doesnt matter if disk is bigger than previous ( NB! may need to resize to get total space if its bigger, cannot remember)
I've always used it for vmware ESXi embedded sticks, made a million of them and the app works!
also linux routers.
Hope this helps.
vmware ESXi runs linux so it supports EXT!
No need for a program, copy data from fat partitions vis pc and use this ( from cyanogen wiki page) Used it three times now and no problems
Upgrading SD / Moving data to new SD
If you are using RA recovery, this is all done for you by making a BART backup. The following is if you're wanting to do it from the command line.
1. First, backup your ext partition on to your fat32 partition. Note, you will need enough free space to hold all of your apps.
* In Terminal Emulator or recovery console:
mount -a [enter]
tar cvf /sdcard/ext.tar /system/sd [enter]
Note that you must have root access for Terminal Emulator. If you get "permission denied" after entering the above command, then try entering the command "su". "sudo" will not work. After entering "su" try the above command again.
* Or, Using ADB shell from your PC:
adb shell
mount -a [enter]
tar cvf /sdcard/ext.tar /system/sd [enter]
2. Next, mount your SD card and download/backup everything on your fat32 partition. Make sure to get the ext.tar file that you just created in the previous step.
3. Change cards/repartion, or do whatever it is you planned to do here. For instructions on creating new partitions see the installation instructions above.
4. If you're not already, reboot into your recovery. Restore your backup files to your fat32 partition. Don't boot into CM yet!
5. Either go to console or ADB shell and type:
*
mount -a [enter]
*
tar xvf /sdcard/ext.tar [enter]
6. Double check that your directories are moved with:
ls /system/sd [enter]
7. Now you can reboot into CM!
8. Run fix permissions to fix any corrupted permissions.
9. Enjoy your new card!
If you have Amon Ra's recovery on your android phone you can do a bart backup with your old sd card, partition the new sd card as required, copy the bart backup to new sd card and then do a bart restore. It is what i did when i upgraded from my 2gb to 8gb, worked a treat.
Since I created this thread a few great things have happened, EXT4 support in unrevoked permanent flashed AmonRA recovery being the main one so now I am sorted thanks!
I use Gparted just copy paste

[Q] Unable to use adb with android SDK under windows (Mount SD Card in Recovery)

I'm trying to run: adb shell, but I keep getting error msg: "adb" is not recognized as file or program.
I have Adnroid SDK r08, lattest from the site, installed on my Windwos XP.
I'm doing this, because I cant mount my SD Card on Clockwork, so I can't proceed Flashing with a new ROM, the phone it self under Android, is recognizing the memory.
It is formated under FAT32 and was re-formated with the phone as a couple of posts suggests.
Could someone help me? Thanks
Before running adb, you should change your working directory to the directory where it is located.
For example, if you've installed android sdk in C:\andsdk, then you should use the following command to use it:
Code:
cd C:\andsdk\tools
adb shell
Done, I can already access to adb shell, but when Im trying to mount the sdcard, it says that its unable to mount.
So when I'm trying to Install ROM from SD Card, at Recovery Menu - Clockwork, it says that its unable to mount the SDCard.
Are you sure that your SD card is inserted properly?
Well the card works perfectly when I'm running Android. No problems at all.
Then, they came up (problems) as soon as I went into Recovery menu (Clockwork) and the phone was rooted perfectly with unrevoked 3.31
Things that I've already tried:
- Format SDCard under Fat32 and re format it with the phone => The SD Card works perfectly under Android but cannot mount on Recovery Menu.
- Format SDCard under Ext3 and 4, same as previous.
Any suggestion are welcome, and thank you so much.
When you ask ADB to list devices ('adb devices'), is yours recognised?
As soon as I got into Recovery Menu:
Ran: adb devices
This is what I got:
List of devices attached:
XXXXXXXXXXX - recovery
Click to expand...
Click to collapse
xxx - corresponds to my phone code
Then I do:
adb shell
mount /sdcard
And I get:
mount: mounting /dev/block/mmcblk0p1 on /sdcard failed: No such file or directory
Any suggestions?
Thank you!
Have you tried mounting the SD card in ADB while booted into Android?
This thread sounds like a similar thing, and might be worth reading.

[Q] [RESOLVED!] Help! Recovery Can't Mount SD Card

Can't mount SD card in recovery. See http://bit.ly/LgBTUN.
Tried fix permissions, mount sdcard in recovery says Error mounting /sdcard, other stuff too. Still no go.
Found forum posts with same problem in several HTC phones but don't think the fix works for TF101.
I'd like to put the Megatron ROM on my TF101 though I'd be happy just to get ASUS upgrades. They keep failing - I think from my Dvorak keyboard mod (see device config below).
Any ideas?
TF101. Stock, rooted rom with modded key mapping for Dvorak keyboard when docked. Android Version 3.2.1. Kernel 2.6.36.3 [email protected] #1, Build Number HTK75.US_epad.8.6.5.19-20111107.
Can you still boot Android or did you already wipe?
I also see ROM manager, which is usually bad news for the TF...
That's a rather old recovery, if you can get ADB access you can try my PERI tool to reflash a newer recovery that should mount properly, and then flash a ROM with that.
Good luck!
First, thanks for the help.
I tried your tool. Besides having entertaining comments, it just left me frustrated.
You can see some screenshots at https://docs.google.com/open?id=0B46V3MQdpAUOek1GRGlvS0FKTms
I'm wondering if the problem is that I can't mount / as RW. Perhaps I'm just not getting the right args to adb's mount command. I think I should be able to remount / RW as I can run "adb shell" and then "su" to get the "#" prompt.
I do think part of the problem is that /sdcard is not actually my sdcard. It is a symlink to /mnt/sdcard which is where the physical sdcard is mounted.
I tried to modify init.ventana.rc. I think that is the right file - I just found it by poking my head around. This is what I wanted to change:
Code:
on early-init
mount debugfs debugfs /sys/kernel/debug
export EXTERNAL_STORAGE /mnt/sdcard
mkdir /mnt/sdcard 0000 system system
# for backwards compatibility
symlink /mnt/sdcard /sdcard
But I can't mount / RW so I can't change it. I tried this:
Code:
$ adb root
adbd cannot run as root in production builds
$
I'm definitely rooted. I can su to root in ADB. I also have a SuperUser that seems to be working.
Update: I can mount / RW via ES File Explorer. I can then adb shell, su, and then update files in /. I pushed my updated init.ventana.rc but when I rebooted it reverted to the original.
I'm terribly frustrated.
Any ideas? I seem to have a totally useless CWM. I can't even put a file on /sdcard/update.zip because the sdcard isn't booted when I'm in recover.
Once I get / mounted RW, can I just copy a working CWM into some system directory?
I've spent half my day messing around with this thing. I'm very comfortable with the command line and would happily do a manual install if someone could tell me how to do that.
I tried the adb equivalent of:
Code:
run_program("/sbin/busybox", "dd", "if=/tmp/recoveryblob", "of=/dev/block/mmcblk0p4");
using the 5.5 recoveryblob but it didn't seem to do anything. If I just knew the magic commands, I'd be happy to do them.
Hi there.
I just released the beta version of my EasyFlasher tool.
Try using that, it'll flash Rogue Recovery for you which should successfully mount the sdcard.
You may need to use that (It's Nvflash based) It won't work on a Tf101G or Sl101 though. Give it a shot.
PERI didn't work because your ADB drivers don't work.
Thanks for your help. I finally got a working CWM by following this thread. I then flashed the CWMs you pointed to.
Problem solved.
Though I can always f-up my upgrade to CM9 and be back here for help in a few hours.
Too Funny
I just posted my thanks reply and then noticed that you two pointed me to the solution that I found.
I appreciate your help and timeliness (and your nvflash program too).
Neil
Got my TF101 BK70 SBK1 in same situation and this thread helped me a lot.
Just put my tf into apx mode (hold up + power for 7 seconds, screen stays black but device manager can see APX device connected, then use Universal Naked drivers to fix it.
After that, just open EasyFlasher and choose which recovery you want.
I also had the same problem, I didn't see this thread so I used this workaround:
if you have the keyboard dock you can mount an external usb drive as the sdcard (under the mount options) and do all the backups/flashing from there
Sent from my Transformer using xda app-developers app
There are two sd cards, the internal sd card which is the phone's built-in USB storage, and external sd card which is the removable sd card that is physically located at the back of the phone and is sealed by your phone's battery.
so technically speaking you should be choosing the "choose zip from external sd card" based on how you described storing your rom.
I'm not sure as to why your sdcard is unmounted, but you can remount it back using CWM. There should be a "mounts and storage" section in CWM menu, where you can remount the internal USB storage by selecting "mount /sdcard".
If you want to recover the data in your Android phone, just go to http://android-recovery.net/.
Need help with this can't mount /sd card /
Here is what I am getting (pics). This is on the Tf101 with CWM via 1 click root method

Question Trying to backup phone with adb, where is sdcard?

Right now I am backing up my files with adb and I have tried the following commands
adb pull /sdcard D:\[backupfolder]
adb pull /sdcard
But they just copy the internal storage folders, while what I want is to copy the stuff in the sdcard. I have tried
/storage/sdcard0
/storage/sdcard
/storage/0
/disk (it is how the folder is called in my phone)
but none of them exist.
Can anyone who has backed up their sd card on a Poco X3 tell me the actual storage path to use in adb? Thanks!
You can't.
Cuz SD card is always some strange digit number.
Try to enter ADB shell and then use the ls command to list all folders.
It should be in Mount or mnt
/sdcard is usually a chain of links that is not followed by ADB.
You need to:
Code:
$ stat /sdcard
And it will tell you where it points to. Then you stat that and keep on going until you stat something that is a real directory.

Categories

Resources