im trying to push a keyboard from my sdcard to my system/app dir
the file is at sdcard>download>Bgreen.apk
im trying to adb push it to system/app
Code:
C:\>cd android-sdk-windows/tools
C:\android-sdk-windows\tools>adb push /sdcard/download/Bgreen.apk /system/app/Bg
reen.apk
cannot stat '/sdcard/download/Bgreen.apk': No such file or directory
C:\android-sdk-windows\tools>
What am i doing wrong ?
kenfly said:
im trying to push a keyboard from my sdcard to my system/app dir
the file is at sdcard>download>Bgreen.apk
im trying to adb push it to system/app
Code:
C:\>cd android-sdk-windows/tools
C:\android-sdk-windows\tools>adb push /sdcard/download/Bgreen.apk /system/app/Bg
reen.apk
cannot stat '/sdcard/download/Bgreen.apk': No such file or directory
C:\android-sdk-windows\tools>
What am i doing wrong ?
Click to expand...
Click to collapse
You're not mounting the device.
Before doing all of that, once you're in the tools directory, try this:
HTML:
adb shell mount /dev/block/mtdblock4 /system
i get an error. "device or resource busy"
kenfly said:
i get an error. "device or resource busy"
Click to expand...
Click to collapse
Exit the cmd, open taks manager, go to processes, and close all instances of adb.exe it shows. From there, try it again.
Have you tried also putting the ap in the tools folder itself so that you can just put in
Code:
adb push Bgreen.apk /system/app/
?
i put it in the tools folder and remounted and it worked. thank you for your help
kenfly said:
i put it in the tools folder and remounted and it worked. thank you for your help
Click to expand...
Click to collapse
Np man. Glad I could help.
Related
I just installed the Modaco ROM on my Desire (It is awesome BTW) but i don't like the WaveSecure program and i can't seem to be able to find it in /system/app to remove it!
Is there a way to delete this program off the phone!?
I would like to learn how to do this also
Don't think you can unless you use the online kitchen (I don't like it so removed it from mine)
I believe:
adb remount
adb shell rm /system/app/com.wsandroid.apk
Click to expand...
Click to collapse
Doesn't seem to work mate.
Code:
C:\DevTools\android-sdk-windows\tools>adb remount
remount succeeded
C:\DevTools\android-sdk-windows\tools>adb shell
# rm /system/app/com.wsandroid.apk
rm /system/app/com.wsandroid.apk
rm: can't remove '/system/app/com.wsandroid.apk': Directory not empty
#
plasmafire said:
Doesn't seem to work mate.
Code:
C:\DevTools\android-sdk-windows\tools>adb remount
remount succeeded
C:\DevTools\android-sdk-windows\tools>adb shell
# rm /system/app/com.wsandroid.apk
rm /system/app/com.wsandroid.apk
rm: can't remove '/system/app/com.wsandroid.apk': Directory not empty
#
Click to expand...
Click to collapse
Running as admin?
Same here. Running as admin - nevertheless "Directory not empty"
Edit: solved. Run SUBFS on phone and mounted /system RW. After that tried again in cmd - voila!
Insomnious said:
Same here. Running as admin - nevertheless "Directory not empty"
Edit: solved. Run SUBFS on phone and mounted /system RW. After that tried again in cmd - voila!
Click to expand...
Click to collapse
+1
For noobs like me: It's actually SUFBS, not SUBFS. Google for the apk, install the app, in the menu there's an option "mount /system RW". Activate and then run the adb commands above in a cmd window on your PC. Et voila!
(Just realised this is a Desire thread, this worked for me on my Nexus too)
amadeyX said:
Hi
I try dodexing same files and dont successful.
This file I try : "DialerTabActivit" (APK and odex file)
This what i do:
1. put all filse from framework folder, APK and odex files .
2.add the smali and baksmali files
3. run a next Command in CMD :
"java -jar baksmali-1.2.4.jar -x DialerTabActivit.odex"
and get error : http://www.siz.co.il/my/2myiiydmrmxf.jpg
I try this Command :
"java -jar baksmali-1.2.4.jar -l DialerTabActivit.odex"
and this extracts files without deodexing process.
What can ido to successful deodexing?
Thanks!
Click to expand...
Click to collapse
look for xultimate (thanks to xeododus) program, it fully automates the process of deodexing your odex files.
hope this helps.
g00ndu said:
look for xultimate (thanks to xeododus) program, it fully automates the process of deodexing your odex files.
hope this helps.
Click to expand...
Click to collapse
Link to post would be highly appriciated
thechamp007 said:
Link to post would be highly appriciated
Click to expand...
Click to collapse
http://www.xeudoxus.com/android/xUltimate-v2.2.2.zip
Thanks fro this!
How to use ? xUltimate
Writes that java was not installed on my phone
Image : http://www.siz.co.il/my/zzignim1tgzz.png
?........................................
amadeyX said:
Writes that java was not installed on my phone
Click to expand...
Click to collapse
You do not need java on the phone but your pc that you running xUltimate on
amadeyX said:
How to use ? xUltimate
Click to expand...
Click to collapse
1. Unzip xUltimate v2.2
2. Plug in phone (USB Debugging)
3 Launch "Main.exe"
4. Run option 1. After option 1 is done, run option 2.
5. Now these well take a while. Run option 3.
6. Now run option 4, and wait.
7. Exit xUltimate, and put the phone in USB mass storage.
8. Go back into the xUltimate folder and copy "done_frame", and "done_app", and move them to the root of the sdcard.
9. Open a command prompt, and do the following:
Code:
busybox mount -o remount,rw /system
cp /sdcard/done_app/* /system/app/
cp /sdcard/done_frame/* /system/framework/
rm /system/app/*.odex
rm /system/framework/*.odex
sync
reboot, Your phone should now be deodexed!
amadeyX said:
Thanks fro this!
How to use ? xUltimate
Writes that java was not installed on my phone
Image : http://www.siz.co.il/my/zzignim1tgzz.png
Click to expand...
Click to collapse
install java in your pc and launch xultimate.
"busybox mount -o remount,rw /system
"
dont work - error "permission denied
I have ROOT.
amadeyX said:
"busybox mount -o remount,rw /system
"
dont work - error "permission denied
I have ROOT.
Click to expand...
Click to collapse
were you in su mode before entering that command?
adb shell
su (..accept permission prompt)
busybox mount -o remount,rw /system
LAG.........................
how to inter to su mode?
adb shell
su
permission denied
amadeyX said:
how to inter to su mode?
adb shell
su
permission denied
Click to expand...
Click to collapse
If you can, do another root process again. Is your recovery 2e or 3e?
recovey 2e + cf root
Sent from my GT-I9000 using XDA App
amadeyX said:
how to inter to su mode?
adb shell
su
permission denied
Click to expand...
Click to collapse
when you enter su on the PC you will be prompted to Approve the Permission Request on the phone. So type su on the PC and click Accept on the phone
Hey,
I'm following the tutorial over at G2 Hacks:
g2hacks.co m/g2-hacks/how-to-root-g2-phone
(omit the space between 'co' and 'm/')
I came across a problem at the beginning of the cmd portion.
This is what I type and the error I get.
Code:
C:\AndroidSDK\tools>adb push su \sdcard\su
failed to copy 'su' to '\sdcard\su': Read-only file system
How do you solve this problem?
EDIT: Go to 3rd post.
kpaekn said:
Hey,
I'm following the tutorial over at G2 Hacks:
g2hacks.co m/g2-hacks/how-to-root-g2-phone
(omit the space between 'co' and 'm/')
I came across a problem at the beginning of the cmd portion.
This is what I type and the error I get.
Code:
C:\AndroidSDK\tools>adb push su \sdcard\su
failed to copy 'su' to '\sdcard\su': Read-only file system
How do you solve this problem?
Click to expand...
Click to collapse
If you're wanting to root, go straight to the source; the guide in the Wiki here is based on the work the devs who actually found the means to root the device.
http://forum.xda-developers.com/wik...sion#Rooting_the_Vision_.28G2.2FDZ.29_and_DHD
Sent from my T-Mobile G2 using XDA App
I was following the tutorial from the Wiki Guide:
ht tp://forum.xda-developers.co m/wiki/index.php?title=HTC_Vision#Rooting_the_Vision_.28G2.2FDZ.29_and_DHD
(omit the space between 'ht' and 'tp' , 'co' and 'm/')
I came across a problem under the TEMP ROOT section.
This is what I type and the error I get.
Code:
C:\AndroidSDK\tools>adb push su \sdcard\su
failed to copy 'su' to '\sdcard\su': Read-only file system
How do you solve this problem?
kpaekn said:
I was following the tutorial from the Wiki Guide:
ht tp://forum.xda-developers.co m/wiki/index.php?title=HTC_Vision#Rooting_the_Vision_.28G2.2FDZ.29_and_DHD
(omit the space between 'ht' and 'tp' , 'co' and 'm/')
I came across a problem under the TEMP ROOT section.
This is what I type and the error I get.
Code:
C:\AndroidSDK\tools>adb push su \sdcard\su
failed to copy 'su' to '\sdcard\su': Read-only file system
How do you solve this problem?
Click to expand...
Click to collapse
Is USB debugging turned on and is the SDcard not mounted?
Sent from my T-Mobile G2 using XDA App
Sounds like the SD card is mounted on your PC and not the phone ? It needs to be mounted on the phone or this won't work.
Sent from my HTC Desire Z
All that command does is copy that file from your computer to the sdcard. You could accomplish the same thing by dragging and dropping that file to the sdcard.
The 'push' command just means "copy from location A to location B"
Sent from my HTC Vision using XDA App
You could always just mount the SDcard... but anyway, to solve this type in "adb remount" and enter the command before pushing the file
Sent from my HTC Vision using XDA App
USB debugging is on and SD is not mounted to my computer.
I tried directly copying the files onto the sdcard, but when I need to push rage, busybox, etc. I cannot access the data folder graphically from the computer.
So I'll still need to use cmd.
I tried the remount, but this is what I get:
Code:
C:\AndroidSDK\tools>adb remount
remount failed: Operation not permitted
kpaekn said:
USB debugging is on and SD is not mounted to my computer.
I tried directly copying the files onto the sdcard, but when I need to push rage, busybox, etc. I cannot access the data folder graphically from the computer.
So I'll still need to use cmd.
I tried the remount, but this is what I get:
Code:
C:\AndroidSDK\tools>adb remount
remount failed: Operation not permitted
Click to expand...
Click to collapse
The adb remount error is expected (the command requires your ro.secure prop to be set to 0, which you can't do until you have rooted).
So you were able to copy files to the SD card? Just to verify again, you should try mounting the SD card to you computer (so it shows up as a device on your computer's file explorer), copy over a file, unmount the card from your computer (and remember to also hit the button on phone to do so), and then try the ADB push commands again.
Ok, with the phone on plug it into your computer and mount USB storage. Drag and drop 'su' and superuser.apk into the sdcard then unmount USB storage. Make sure USB debugging is on at this point (you'll see it in the notification task bar). Do these commands:
Code:
adb push rage /data/local/tmp/rage
adb push busybox /data/local/tmp/busybox
adb push root /data/local/tmp/root
adb shell chmod 0755 /data/local/tmp/*
Then in the terminal app type:
Code:
/data/local/tmp/rage
You'll see some message pop up saying something about 'forked #### childs' and that's temp root. Then follow the instructions on running gfree to gain full root. Btw, you can just copy and paste all those commands if you think you'll make a mistake.
You may also be able to run the '/data/local/tmp/rage' command with the 'adb shell' command, never tried it myself though.
kpaekn said:
I was following the tutorial from the Wiki Guide:
ht tp://forum.xda-developers.co m/wiki/index.php?title=HTC_Vision#Rooting_the_Vision_.28G2.2FDZ.29_and_DHD
(omit the space between 'ht' and 'tp' , 'co' and 'm/')
I came across a problem under the TEMP ROOT section.
This is what I type and the error I get.
Code:
C:\AndroidSDK\tools>adb push su \sdcard\su
failed to copy 'su' to '\sdcard\su': Read-only file system
How do you solve this problem?
Click to expand...
Click to collapse
Oh come on !!!
the path separator in linux (and the phone is a linux computer) is / and not \ !!!
So the command is:
Code:
C:\AndroidSDK\tools>adb push su /sdcard/su
Just to tell you something about the unix shell:
The \ char is a so called escape character that you use to tell the shell that it should not ignore the next character even if it is a white space (i.e. space)
You would use it if you have to specify a path that contains spaces:
i.e.:
Code:
mkdir dir\ with\ 3\ spaces
will create a directory with the name "dir with 3 spaces". This would not work without the \ characters.
have fun - Guhl
Haha... it's funny how simple the answer was.
Thanks for your guys' help.
Hey everyone,
Currently I have 2.3.4, and so I decided to follow this guide,
[GUIDE] Downgrade G2 (2.3.3) & DZ (2.3.3) & mT4g (2.3.4) w/ S-ON to Stock Froyo
http://forum.xda-developers.com/showthread.php?t=1178912&highlight=downgrade
Anyways, this is how far I got, and I'm currently stuck.. the fre3vo file is definitely placed in platform tools, and I've re-downloaded it and placed the file in there again, however I got the same error message,
cannot stat 'fre3vo': No such file or directory
C:\Users\WC>adb shell cat /dev/msm_rotator
/dev/msm_rotator: invalid length
C:\Users\WC>adb push fre3vo /data/local/tmp
cannot stat 'fre3vo': No such file or directory
C:\Users\WC>adb push fre3vo /data/local/tmp
cannot stat 'fre3vo': No such file or directory
I have been on xda for awhile now, however, I'm usually just browsing and reading around, and I did not have enough posts to qualify me for posting the question on the guide itself. Any help would be greatly appreciated, thanks everyone.
one2345shutup said:
Hey everyone,
Currently I have 2.3.4, and so I decided to follow this guide,
[GUIDE] Downgrade G2 (2.3.3) & DZ (2.3.3) & mT4g (2.3.4) w/ S-ON to Stock Froyo
http://forum.xda-developers.com/showthread.php?t=1178912&highlight=downgrade
Anyways, this is how far I got, and I'm currently stuck.. the fre3vo file is definitely placed in platform tools, and I've re-downloaded it and placed the file in there again, however I got the same error message,
cannot stat 'fre3vo': No such file or directory
C:\Users\WC>adb shell cat /dev/msm_rotator
/dev/msm_rotator: invalid length
C:\Users\WC>adb push fre3vo /data/local/tmp
cannot stat 'fre3vo': No such file or directory
C:\Users\WC>adb push fre3vo /data/local/tmp
cannot stat 'fre3vo': No such file or directory
I have been on xda for awhile now, however, I'm usually just browsing and reading around, and I did not have enough posts to qualify me for posting the question on the guide itself. Any help would be greatly appreciated, thanks everyone.
Click to expand...
Click to collapse
Make sure that file is in the same directory adb is in or that you have the location of adb set in your system path.
Sent from my T-Mobile G2 using XDA App
...and make sure that you unpack it
ah yes.. i understand now.. thank you guys
the fre3vo file is in the same folder as the adb.exe and the path is set to platform-tools ( where the both files are) and it still doesn't work. WHY ? im so furious right now... please help...
Jasiekor said:
the fre3vo file is in the same folder as the adb.exe and the path is set to platform-tools ( where the both files are) and it still doesn't work. WHY ? im so furious right now... please help...
Click to expand...
Click to collapse
Are you running the command from the platform-tools directory? You need to cd to where ever a file is that you're wanting to manipulate, setting the path only matters with commands (ie. what you manipulate with)
Sent from my HTC Vision using XDA App
Help!
I am having the same issue.
ADB recognizes my device but I cannot push and get the 'cannot stat 'fre3vo': No such file or directory'.
I thought that this is something to do with the path? Here is how I set it:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\%SystemRoot%;C:\android-sdk-windows\platform-tools;C:\android-sdk-windows\tools
Any suggestions would be greatly appreciated!
It's nothing to do with your Path. The Path sets whether Windows can find a command or not, in this case the adb command.
The error message about not being able to find fr3vo is because whatever folder you are running the command from, does not contain the fr3vo file. Where is "fr3vo" located on your PC ? Cd to wherever that is (i.e. so if you type "dir" it shows up), and then run adb from there.
Sent from my Desire Z running CM7.
I have placed the files in: C:\android-sdk-windows\platform-tools
This is where ADB is and I am using command prompt...
Apologies for my ignorance!
joeleenus said:
I have placed the files in: C:\android-sdk-windows\platform-tools
This is where ADB is and I am using command prompt...
Click to expand...
Click to collapse
Ok, before you run adb, do "cd \android-sdk-windows\platform-tools". That will change your current folder to the one where you've put the files, so then adb will be able to find them.
Sent from my Desire Z running CM7.
Thank you! Apologies for noobiness...
fre3vo no such file or directory
OriginalGabriel said:
Make sure that file is in the same directory adb is in or that you have the location of adb set in your system path.
Sent from my T-Mobile G2 using XDA App
Click to expand...
Click to collapse
photobucket(dot)com/albums/t366/b0yhustla/775f98d7(dot)png
photobucket(d0t)com/albums/t366/b0yhustla/f9cb92ef(dot)png
This is what i get and this is how my files are set up what am i doing wrong ?
I have a T Mobile HTC G2
Android version
2.3.4
b0yhustla said:
photobucket(dot)com/albums/t366/b0yhustla/775f98d7(dot)png
photobucket(d0t)com/albums/t366/b0yhustla/f9cb92ef(dot)png
This is what i get and this is how my files are set up what am i doing wrong ?
I have a T Mobile HTC G2
Android version
2.3.4
Click to expand...
Click to collapse
I'm no expert, but are you running the command from the same folder that fre3vo is in?
i.e.: in your case, ****-right click in your platform-tools folder and select "open command window here".
EDIT - the forum is blocking the word S H I F T, that should be s h i f t right click
Downgrade HTC does not provide "invalid length"
I am trying to downgrade my HTC Glacier (MyTouch 4g) following Setherio's downgrade guide and am running into this problem.
Step should be
Code:
> adb shell cat /dev/msm_rotator
/dev/msm_rotator: invalid length
But I get
Code:
/system/bin/sh: cat: /dev/msm_rotator: No such file or directory
I ran the command prompt from my platform-tools folder which has the fre3vo and misc_version files in it. I am new to adb and searched the web and XDA for an answer but could only find "permission denied" information related to this step. Thanks in advance!
Needed drivers
Turns out I just needed the HTC drivers on my computer. From there things have been smooth so far. Hope this helps anyone running into the same issue. Thanks for looking.
helpmeplz55 said:
I am trying to downgrade my HTC Glacier (MyTouch 4g) following Setherio's downgrade guide and am running into this problem.
Step should be
Code:
> adb shell cat /dev/msm_rotator
/dev/msm_rotator: invalid length
But I get
Code:
/system/bin/sh: cat: /dev/msm_rotator: No such file or directory
I ran the command prompt from my platform-tools folder which has the fre3vo and misc_version files in it. I am new to adb and searched the web and XDA for an answer but could only find "permission denied" information related to this step. Thanks in advance!
Click to expand...
Click to collapse
no such file of directory
I'm experiencing the same problems as other ppl before me.
I've type in "c:\android-sdk-windows\platform--tools>adb push fre3vo /data/local/tmp cannot stat 'fre3vo' : no such file of directory"
I've moved the fre3vo file to that location also unzipt the file.
but i still get a reply that the file is not there??
what am i doing wrong??
sorry. i was out of this for quite some time.
Screenshots can help as well as copy and pasting all input/output from cmd here
Sent from my Nexus 4 using XDA Premium 4 mobile app
apparently my anti virus scanner was acting up that why it did not work.
the for replying
Crazy I am trying to downgrade an old G2 and am having exact same issue...
I open cmd from C:\platform-tools with shift+right click method and after trying to push fre3vo it says "cannot stat fre3vo no such file or directory exists." My fre3vo file is in the platform-tools folder on my C drive. The file is there adb just does not see it for whatever reason.
Tried these steps
Connect to your Fire TV using ADB
(If you don’t know how, follow up to Step 4 Part 2 in our Windows or Mac guide)
Run the command: adb shell
Run the command: su
(If this is the first time you’ve ever run su, a pop-up will appear on the Fire TV, select Grant)
Run the command: chmod 777 /cache
Run the command: chmod 777 /cache/recovery
Run the command: cd /cache/recovery
Run the command: echo “--update_package=/cache/update.zip” > command
Run the command: exit
Run the command (yes, again): exit
Run the command: adb push update.zip /cache
(This assumes the update.zip file you renamed in step 2 is in the same directory as adb, otherwise enter the full path to the file like adb push C:\full\path\to\update.zip /cache)
Once the update.zip file has finished transferring to the Fire TV, run the command: adb reboot recovery
The update.zip file is on the same folder where the adb platform-tools is located, but when I enter the full path it says no such file or directory.
Mine looks like this C:\Users\XXX\platform-tools>adb push update.zip /cache
What am I doing wrong, please help
CD to the directory first . then enter adb push update.zip /cache
mastafunk said:
CD to the directory first . then enter adb push update.zip /cache
Click to expand...
Click to collapse
I did everything in the same folder.
Do you suggests I go back to root of c folder then go back to the folder again
Copy and paste what you entered and the error..
[url]https://www.dropbox.com/s/rdr3buikslvw1qm/adb.png[/URL]
https://www.dropbox.com/s/rdr3buikslvw1qm/adb.png
Stevie G said:
[url]https://www.dropbox.com/s/rdr3buikslvw1qm/adb.png[/URL]
https://www.dropbox.com/s/rdr3buikslvw1qm/adb.png
Click to expand...
Click to collapse
when you push a file with adb, the file must be in the same folder/path you're running the adb command from. From your example, you need update.zip on your PC at C:\users\Stevie G\platform-tools\
The error is saying the file isn't at that path.
Luxferro said:
when you push a file with adb, the file must be in the same folder/path you're running the adb command from. From your example, you need update.zip on your PC at C:\users\Stevie G\platform-tools\
The error is saying the file isn't at that path.
Click to expand...
Click to collapse
might have issues with the space in Stevie G, try a folder without spaces.