How to launch app (without homescreen):adb - G1 General

Is it possible to do this:
* mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system OK
* cd sdcard OK?
* flash_image recovery recovery.img doesn't work
* cat recovery.img > /system/recovery.img
using /data/local/busybox telnet 127.0.0.1 ?
(I don't have a homescreen): is it possible to start an apk (flashrec) using adb? or kill the homescreen once with adb?

the "am" command will allow you to launch a command from the terminal, however it really makes no sense to use flashrec instead of flash_image.... flashrec *USES* flash_image, so if flash_image doesn't work, neither will flashrec.
I suggest that you reboot into FASTBOOT and use "fastboot flash recovery recovery.img" instead of messing with a broken system.

Related

problem in rooting hero

can anybody answer my why i keep getting this message
C:\android-sdk-windows\tools>adb push recovery-RA-heroc-v1.5.2.img /sdcard
failed to copy 'recovery-RA-heroc-v1.5.2.img' to '/sdcard/recovery-RA-heroc-v1.5
.2.img': Permission denied
what do I have to do to get permission granted?
thanks in advance
Is your SD card mounted? It cant be mounted to your computer when running adb to it or you will get this error.
limbicsystem said:
can anybody answer my why i keep getting this message
C:\android-sdk-windows\tools>adb push recovery-RA-heroc-v1.5.2.img /sdcard
failed to copy 'recovery-RA-heroc-v1.5.2.img' to '/sdcard/recovery-RA-heroc-v1.5
.2.img': Permission denied
what do I have to do to get permission granted?
thanks in advance
Click to expand...
Click to collapse
I have had that problem before if you have gotten to that step in the guide then you are already rooted you just need to flash the recovery. just mount your card and manually copy the file to the root of your sd card then unmount and use this code
Code:
cd /androidsdk/tools/
adb shell
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cd /sdcard/
flash_image recovery recovery-RA-heroc-1.5.2.img
wait for the # symbol to come back up and then type
Code:
reboot recovery
this is what i get when i try to do it manually
C:\android-sdk-windows\tools>adb shell
$ su
su
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
# cd /sdcard/
cd /sdcard/
# flash_image recovery recovery-RA-heroc-v1.5.2.img
flash_image recovery recovery-RA-heroc-v1.5.2.img
error opening recovery-RA-heroc-v1.5.2.img: No such file or directory
# flash_image recovery recovery-RA-heroc-1.5.2.img
flash_image recovery recovery-RA-heroc-1.5.2.img
error opening recovery-RA-heroc-1.5.2.img: No such file or directory
i tried to put the v in front of the one because thats how it was listed but it still didn't work. does it help to say that i bought this three days ago?
flash_image recovery recovery-RA-heroc-1.5.2.img
i have the same problem. can anyone help? I download (flash_image recovery recovery-RA-heroc-1.5.2.img) on to pc but it seems that it wont open the file to read. I copy the file on xp and vista. even copy it manually on the sd/card? can anyone help?
Pre-Kitchen.
limbicsystem said:
this is what i get when i try to do it manually
C:\android-sdk-windows\tools>adb shell
$ su
su
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
# cd /sdcard/
cd /sdcard/
# flash_image recovery recovery-RA-heroc-v1.5.2.img
flash_image recovery recovery-RA-heroc-v1.5.2.img
error opening recovery-RA-heroc-v1.5.2.img: No such file or directory
# flash_image recovery recovery-RA-heroc-1.5.2.img
flash_image recovery recovery-RA-heroc-1.5.2.img
error opening recovery-RA-heroc-1.5.2.img: No such file or directory
i tried to put the v in front of the one because thats how it was listed but it still didn't work. does it help to say that i bought this three days ago?
Click to expand...
Click to collapse
You are getting that error because it can not find the specified file. Try this:
When your phone is plugged into your computer, mount your SD card. Then, using Windows Explorer (On your computer) look at your SD card and see if the Recovery IMG is there. If it is, this should work. If it is not, simply click and drag the 1.5.2 Recovery img onto your SD in the root folder (there isn't a folder called root, it simply implies the main/top level folder. The img should not be in any subfolders). Once the Recovery img is on your SD card, then on your phone unmount the SD card, and try your commands again.

Flash_image not found yea there was a post on it

III: Flashing a Custom Recovery
Flashing a custom recovery will make your life easier when flashing ROMs in the future.
1. Download this file: Recovery.zip
2. Extract file contents to your \tools\ directory of your Android SDK.
3. Open up a command prompt and go to your tools directory, and execute these commands:
adb shell mount -o rw,remount /dev/block/mtdblock3 /system
adb push recovery.img /sdcard
adb push flash_image /system/bin
adb shell chmod 755 /system/bin/flash_image
adb shell flash_image recovery /sdcard/recovery.img(this is were my problem comes, i had tons before this but figured it out and now im stuck here, i know its in the same folder as the recovery file and the whole process was fine, i was excited haha but then it gets here and no image found. wth. anybody? sry i been postin alot

Helppp removing .apks with sdk method

i try this on the comment prompt while phone running.
cd\sdk
cd android-sdk-windows
cd tools
adb devices
adb shell
#mount /dev/block/mtdblock4 /system
cd /system/app
ls
i get all the apk. files
i try removing an apk.file
typing this syntax:
rm -f thenameoftheapp.apk
and it'll say:
rm failed for -f, read only file system
it wont let me write on the system im guessing.
Now i tried doing the same thing but phone mode is on recovery.
I have the nand protection unlocked so when i get to recovery mode
i have already the custom recovery setup showing, i don't run the recovery-windows.bat.
now when i type this on the comment prompt
cd\sdk
cd android-sdk-windows
cd tools
adb devices
adb shell
#mount /dev/block/mtdblock4 /system
cd /system/app
ls
i get all the apk. files
i try removing an apk.file
typing this syntax:
rm -f thenameoftheapp.apk
after i hit enter it shows me
#
so im assuming the apk. has been removed
after i exit the comment prompt and i wipe the dalvik-cache
i reboot the phone and all the apps i removed are still there and running still.
help please

Help to get a custom ROM an a rooted HTC Magic

Hi everyone,
I am kind of stuck with getting a custom ROM on my HTC Magic 32B (spl:1.33.0013 radio:2.22.28.25 os:2.2.1ota)
I cant flash custom recovery...or anything else
HereĀ“s what happend so far:
http://forum.xda-developers.com/showthread.php?t=939749
Hope someone can help
There was another person that I was working with having the same problem. For whatever reason we couldn't get the custom recovery to stick no matter what we tried and we ended up stopping with him trying to downgrade to root. I'm not sure where he got. You can try using "flash_image" from terminal, but it probably won't help. Download the attached "Flash_image.zip", unzip the file, and put in on the root of your SD card. Then open up terminal on the phone and type the following hitting enter at the end of each line:
Code:
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock1 /system
cat /sdcard/flash_image > /system/bin/flash_image
chmod 755 /system/bin/flash_image
mount -o remount,ro -t yaffs2 /dev/block/mtdblock1 /system
flash_image recovery /sdcard/*name of recovery*.img
reboot recovery
Thanks for your instructions...but it did not work for me.
I kind of gave up on getting my Magic flashed.
Did you check to see if there are any scripts that will override the recovery on closure?
Do this:
Pull out the battery when you execution of the flash_image command has succeeded.
This way you can avoid any scripts being executed on turn-off.
Now try to see if you can get the custom recovery to work!

[Q] Rooting Problem, Won't mount. Line needs correction.

Hi, I am currently trying to room my Blade but I get this problem in cmd
$ exit
exit
C:\android-sdk-windows\platform-tools>adb kill-server
* server not running *
C:\android-sdk-windows\platform-tools>adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
C:\android-sdk-windows\platform-tools>adb shell
# mount -o rw,remount /system
mount -o rw,remount /system
Usage: mount [-r] [-w] [-o options] [-t type] device directory
# exit
exit
C:\android-sdk-windows\platform-tools>adb push su /system/xbin/
failed to copy 'su' to '/system/xbin/': Is a directory
Click to expand...
Click to collapse
As you can see, I am unable to copy over su to system/xbin.
Does it have to do with the mount command line?
you dont need to use the mount command at all, you can just type 'adb remount' instead of 'adb shell', or if you want to use the mount command then the correct line is this:
mount -o remount,rw /dev/block/mtdblock5 /system
you were missing the device part of the mount command line, it's /dev/block/mtdblock5 for /system on the blade.
you've just given me an idea to post a rooting guide, there is an easier & better way, using adb, fastboot, clockworkmod & superuser.
I fixed it by just getting z4root and rom manager for clockworkmod.
pankaka said:
I fixed it by just getting z4root and rom manager for clockworkmod.
Click to expand...
Click to collapse
Cool. I've written a rough rooting guide using adb & fastboot here: http://forum.xda-developers.com/showthread.php?t=1319257
z4root uses a root exploit that only works on older versions of android. Some versions of the blade sold in some countries use newer versions of Android (2.2.2 or 2.3.5) that have that vulnerability fixed. I wrote a guide that will work on any blade, because it doesn't use any root exploits - it's bad that z4root worked, you need to update your rom!
The blade has an unlocked bootloader, so you can install clockworkmod using 3 commands
Code:
adb reboot bootloader
fastboot flash recovery recovery-clockwork-5.0.2.0-blade.img
fastboot reboot
Then use clockworkmod to install the superuser zip file, or custom rom.

Categories

Resources