Ive done adb push with no problems. Now, I couldn't find a command to delete a file from /system/app.
Please help. I want to get rid of Sprint_Core.apk and some others.
rm Sprint_Core.apk
also http://ss64.com/bash/
thematrixkid17 said:
rm Sprint_Core.apk
also http://ss64.com/bash/
Click to expand...
Click to collapse
thankyou but i get an error:
'rm' is not recognized as an internal or external command, operable program or batch file.
This is what i did after I cd c:/android-sdk-windows/tools
adb remount
rm Sprint_Core.apk
energizer1389 said:
thankyou but i get an error:
'rm' is not recognized as an internal or external command, operable program or batch file.
This is what i did after I cd c:/android-sdk-windows/tools
adb remount
rm Sprint_Core.apk
Click to expand...
Click to collapse
you need to:
adb remount
adb shell
cd system
cd app
rm Sprint_Core.apk
exit
R
adb remount
adb shell
rm /system/app/Sprint_Core.apk
energizer1389 said:
thankyou but i get an error:
'rm' is not recognized as an internal or external command, operable program or batch file.
This is what i did after I cd c:/android-sdk-windows/tools
adb remount
rm Sprint_Core.apk
Click to expand...
Click to collapse
I dont know the exact location, but you need to do something like adb shell, then cd (and type the location of the program you want to delete) and then rm Sprint_Core.apk
adb remount
adb shell
rm /system/app/Sprint_Core.apk
Click to expand...
Click to collapse
Awesome guys. Thankyou.
Originally Posted by thematrixkid17
rm Sprint_Core.apk
also http://ss64.com/bash/
Click to expand...
Click to collapse
Great link. Are all those adb shell commands?
energizer1389 said:
Great link. Are all those adb shell commands?
Click to expand...
Click to collapse
No. These are Linux commands for the BASH shell.
In Linux, if you open a terminal and run the command:
Code:
man <command-you-want-more-info-on>
This will give you the "manual" (man) -- for the command you're looking for.
If you want a list of ADB commands, go HERE
Related
So as the title says, I pushed an apk to "system/tools" on my phone on accident instead of apps. How can I remove this push. I have tried rm -r /system/tools/__.apk but its telling me it doesn't exist. Is it possible it did nothing? I got a file transfer after doing so. I've also tried finding that folder (tools) in astro, but its not a folder and gives me the mesage file type not found. Thanks
barnacles10 said:
So as the title says, I pushed an apk to "system/tools" on my phone on accident instead of apps. How can I remove this push. I have tried rm -r /system/tools/__.apk but its telling me it doesn't exist. Is it possible it did nothing? I got a file transfer after doing so. I've also tried finding that folder (tools) in astro, but its not a folder and gives me the mesage file type not found. Thanks
Click to expand...
Click to collapse
Get andExplorer and browse to the /system/app folder to see if it is there, of on a computer use Android Commander.
You would also have to remount
Code:
adb remount
adb shell
rm -r /system/tools/XYZ.apk
Kcarpenter said:
You would also have to remount
Code:
adb remount
adb shell
rm -r /system/tools/XYZ.apk
Click to expand...
Click to collapse
rm -r is a recursive deletion. For a single file leave off the -r. Why?
Because if you accidentally forget to put in the file name it will delete everything in the directory and below it.
Kcarpenter said:
You would also have to remount
Code:
adb remount
adb shell
rm -r /system/tools/XYZ.apk
Click to expand...
Click to collapse
Correct, but when I try this it says its not a valid directory. And when I navigate to that folder with astro is not an openable folder. Which led me to believe it didn't transfer, or just wouldn't allow it. However, cmd showed the transfer data and time after pushing. Thats why I was confused
smw is correct, -r is for directories only, so the proper command would be:
Code:
adb remount
adb shell
rm /system/tools/XYZ.apk
gu1dry said:
smw is correct, -r is for directories only, so the proper command would be:
Code:
adb remount
adb shell
rm /system/tools/XYZ.apk
Click to expand...
Click to collapse
I've tried this too I get
"rm failed for system/tools/app.apk, Not a Directory"
try this:
adb remount
adb shell
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
then cd to the right directory and type
rm xxxx.apk
since their is no tools directory it clearly didn't autmoatically create one. Instead it just made a file called /system/tools which is your apk file. to remove it just "adb shell rm /system/tools"
alexthearmo said:
try this:
adb remount
adb shell
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
then cd to the right directory and type
rm xxxx.apk
Click to expand...
Click to collapse
after the command "
alexthearmo said:
try this:
adb remount
adb shell
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
" I try a cd /system/tools/" and get a can't cd error. hmm
Click to expand...
Click to collapse
darchstar said:
since their is no tools directory it clearly didn't autmoatically create one. Instead it just made a file called /system/tools which is your apk file. to remove it just "adb shell rm /system/tools"
Click to expand...
Click to collapse
Ah ha. So there is no such thing as /system/tools on the phone? This is what I was curious about. So deleting the file will /system/tools altogether should be ok?
cd into /system & then ls to make sure there is tools folder.
sorry for the recursive thing, wasn't thinking about what I was typing.
-r is not needed.
Thanks for the great job done by developers. However, I noticed mediascape was removed after root. Personally I think mediascape is nice but failed to install it from the app folder on sdcard. Searched the whole thread but didn't find a method.
I tried manually copy the mediascape.apk to /data/app, reboot, then mediascape is restored in the application drawer and can be run functionally.
Here is the details.
Connect the X10 to PC using USB debug mode.
Get the adb.exe ready (you can run it from the root step4 folder directly)
0. Copy mediascape.apk to the step4 folder.
1. Start command prompt as administrater.
2. Change to the step4 folder.
3. Run "adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system" without quotes.
4. Run "adb shell chmod 777 /data/app" without quotes.
5. Run "adb push mediascape.apk /data/app" no quotes.
6. Run "adb shell reboot" no quotes.
BTW: I have copied all the mediascape related files back to /system/app as well, by running "adb shell chmod 777 /system/app" and using adb push.
Seems it's not ideal as the apk is not installed but added to the X10 directly.
Any better ideas?
Try RealPlayer for Android, it's a new app, really good!
w w w.real.com/realplayer/android
Nah, nothing can beat mediascape.
anyway, how can one get timescape back?
Fuzalert2k said:
Nah, nothing can beat mediascape.
anyway, how can one get timescape back?
Click to expand...
Click to collapse
you mean timescape? or mediascape?
shvyue said:
Thanks for the great job done by developers. However, I noticed mediascape was removed after root. Personally I think mediascape is nice but failed to install it from the app folder on sdcard. Searched the whole thread but didn't find a method.
I tried manually copy the mediascape.apk to /data/app, reboot, then mediascape is restored in the application drawer and can be run functionally.
Here is the details.
Connect the X10 to PC using USB debug mode.
Get the adb.exe ready (you can run it from the root step4 folder directly)
0. Copy mediascape.apk to the step4 folder.
1. Start command prompt as administrater.
2. Change to the step4 folder.
3. Run "adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system" without quotes.
4. Run "adb shell chmod 777 /data/app" without quotes.
5. Run "adb push mediascape.apk /data/app" no quotes.
6. Run "adb shell reboot" no quotes.
BTW: I have copied all the mediascape related files back to /system/app as well, by running "adb shell chmod 777 /system/app" and using adb push.
Seems it's not ideal as the apk is not installed but added to the X10 directly.
Any better ideas?
Click to expand...
Click to collapse
done this and mediscape still dont apear and cant install it through astro file manager
Can you see mediascape.apk in the /data/app folder? If yes have you copied 4 mediascape files back to /system/app?
Sent from my SO-01B using Tapatalk
hmm I don't seem to have the app folder in my data folder, in my memory card can someone help me out
The data/app folder is not on your sdcard. Up one level.
Sent from my SO-01B using Tapatalk
shvyue said:
you mean timescape? or mediascape?
Click to expand...
Click to collapse
I mean timescape
done this and it works. mediascpae reinstaled in my rooted x10
open dos prompt with administrator privileges, change do step4 folder and do this:
Originally Posted by maxmaniac View Post
Well Root worked for me,
Thanks Guys!!!
Anyway, I was able to get Mediascape to work again using a small script I wrote (looking at those made by our developers).
Here's what i've done:
IMPORTANT: you must have *.apk and *.odex files on your sdcard!!
----------------------------------------------------
@echo off
adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
adb shell dd if=/sdcard/apps/MediascapePluginManager.apk of=/system/app/MediascapePluginManager.apk
adb shell dd if=/sdcard/apps/MediascapePluginManager.odex of=/system/app/MediascapePluginManager.odex
adb shell chmod 644 /system/app/MediascapePluginManager*
adb shell dd if=/sdcard/apps/mediascape.apk of=/system/app/mediascape.apk
adb shell dd if=/sdcard/apps/mediascape.odex of=/system/app/mediascape.odex
adb shell chmod 644 /system/app/mediascape*
adb shell reboot
----------------------------------------------------
I don't know if this will work for all of you, but it worked for me.
Don't really know if this breaks anything in your X10, so use this at your own risk.
Thanks again for rooting this thing!!
André
hey is der ne way i can get mediascape running on ne othr device than x10??? just asking
nosidefcp said:
done this and it works. mediascpae reinstaled in my rooted x10
open dos prompt with administrator privileges, change do step4 folder and do this:
Originally Posted by maxmaniac View Post
Well Root worked for me,
Thanks Guys!!!
Anyway, I was able to get Mediascape to work again using a small script I wrote (looking at those made by our developers).
Here's what i've done:
IMPORTANT: you must have *.apk and *.odex files on your sdcard!!
----------------------------------------------------
@echo off
adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
adb shell dd if=/sdcard/apps/MediascapePluginManager.apk of=/system/app/MediascapePluginManager.apk
adb shell dd if=/sdcard/apps/MediascapePluginManager.odex of=/system/app/MediascapePluginManager.odex
adb shell chmod 644 /system/app/MediascapePluginManager*
adb shell dd if=/sdcard/apps/mediascape.apk of=/system/app/mediascape.apk
adb shell dd if=/sdcard/apps/mediascape.odex of=/system/app/mediascape.odex
adb shell chmod 644 /system/app/mediascape*
adb shell reboot
----------------------------------------------------
I don't know if this will work for all of you, but it worked for me.
Don't really know if this breaks anything in your X10, so use this at your own risk.
Thanks again for rooting this thing!!
André
Click to expand...
Click to collapse
How exactly do you do this? What do you edit... siggh
nosidefcp said:
done this and it works. mediascpae reinstaled in my rooted x10
open dos prompt with administrator privileges, change do step4 folder and do this:
Originally Posted by maxmaniac View Post
Well Root worked for me,
Thanks Guys!!!
Anyway, I was able to get Mediascape to work again using a small script I wrote (looking at those made by our developers).
Here's what i've done:
IMPORTANT: you must have *.apk and *.odex files on your sdcard!!
----------------------------------------------------
@echo off
adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
adb shell dd if=/sdcard/apps/MediascapePluginManager.apk of=/system/app/MediascapePluginManager.apk
adb shell dd if=/sdcard/apps/MediascapePluginManager.odex of=/system/app/MediascapePluginManager.odex
adb shell chmod 644 /system/app/MediascapePluginManager*
adb shell dd if=/sdcard/apps/mediascape.apk of=/system/app/mediascape.apk
adb shell dd if=/sdcard/apps/mediascape.odex of=/system/app/mediascape.odex
adb shell chmod 644 /system/app/mediascape*
adb shell reboot
----------------------------------------------------
I don't know if this will work for all of you, but it worked for me.
Don't really know if this breaks anything in your X10, so use this at your own risk.
Thanks again for rooting this thing!!
André
Click to expand...
Click to collapse
This worked for me. Thanks!
Fuzalert2k said:
How exactly do you do this? What do you edit... siggh
Click to expand...
Click to collapse
Turn on USB-debugging mode. Run command prompt (start->run->"cmd"). Change to your step4 directory. Enter those commands line by line.
nosidefcp said:
done this and it works. mediascpae reinstaled in my rooted x10
open dos prompt with administrator privileges, change do step4 folder and do this:
Originally Posted by maxmaniac View Post
Well Root worked for me,
Thanks Guys!!!
Anyway, I was able to get Mediascape to work again using a small script I wrote (looking at those made by our developers).
Here's what i've done:
IMPORTANT: you must have *.apk and *.odex files on your sdcard!!
----------------------------------------------------
@echo off
adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
adb shell dd if=/sdcard/apps/MediascapePluginManager.apk of=/system/app/MediascapePluginManager.apk
adb shell dd if=/sdcard/apps/MediascapePluginManager.odex of=/system/app/MediascapePluginManager.odex
adb shell chmod 644 /system/app/MediascapePluginManager*
adb shell dd if=/sdcard/apps/mediascape.apk of=/system/app/mediascape.apk
adb shell dd if=/sdcard/apps/mediascape.odex of=/system/app/mediascape.odex
adb shell chmod 644 /system/app/mediascape*
adb shell reboot
----------------------------------------------------
I don't know if this will work for all of you, but it worked for me.
Don't really know if this breaks anything in your X10, so use this at your own risk.
Thanks again for rooting this thing!!
André
Click to expand...
Click to collapse
op's method did not work for me but this one worked perfect
it worked now.
thanks so much for the instruction
thanksss it works
would anyone please upload *.apk and *.odex files please, since i cant find em on my x10 anymore. thanks
*.odex files
can some one please share mediascape.odex and MediascapePluginManager.odex files
Both the stock 2.1 gallery and for example doubletwist or poweramp kicks mediascapes ass when it comes to usability, I installed Z's 2.2.1 ROM a week ago and must admit that I dont miss media/timescape one bit Bottom case is that I'll rather use a semi-stable 2.2 ROM than a slow SE rom ;-)
hiya everyone, im new on here and really need some help.
im trying to downgrade my android software so im able to root it. only problem being ive never used command prompt lol!!
the guide im using says:
Launch a Command Prompt window and browse to the location of the files extracted in Step 1.
Enter the following commands:
adb push psneuter /data/local/tmp
adb push misc_version /data/local/tmp
adb shell chmod 777 /data/local/tmp/psneuter
adb shell chmod 777 /data/local/tmp/misc_version
adb shell /data/local/tmp/psneuter
adb shell
You should now get the # prompt, indicating temporary root.
Enter these commands:
cd /data/local/tmp
./misc_version -s 1.31.405.6
but how do i browse for the files if ive stored them in my documents and in a folder called downgrade android.
many thanks
keeps saying not a batch file :s
Moving them into the SDK tools folder temporarily would make things easier and would mean only the file name needs to be typed rather than the specific location, try it out, I hope I remembered correctly
dannysissons said:
hiya everyone, im new on here and really need some help.
im trying to downgrade my android software so im able to root it. only problem being ive never used command prompt lol!!
the guide im using says:
Launch a Command Prompt window and browse to the location of the files extracted in Step 1.
Enter the following commands:
adb push psneuter /data/local/tmp
adb push misc_version /data/local/tmp
adb shell chmod 777 /data/local/tmp/psneuter
adb shell chmod 777 /data/local/tmp/misc_version
adb shell /data/local/tmp/psneuter
adb shell
You should now get the # prompt, indicating temporary root.
Enter these commands:
cd /data/local/tmp
./misc_version -s 1.31.405.6
but how do i browse for the files if ive stored them in my documents and in a folder called downgrade android.
many thanks
Click to expand...
Click to collapse
you can either modify the command like this:
adb push C:\users\[YOURUSERNAME]\My documents\downgrade\psneuter /data/local/tmp
or setup a locale path variable to the dir, where adb is stored as mentioned in THIS thread. (step 4)
Then you can simply cd to the dir, where your files are stored, and run adb from there (actually you can run adb from any dir then)
Hello.
I have some files that I want to push inside the /sdcard.They are all of the same type (.img).Here is what I am experiencing:
Code:
adb push *.img /sdcard
returns the adb command help... doesn't work obviously
If I put all the files inside a folder (eg. img):
Code:
adb push C:\Nexus/img /sdcard/
it starts copying all the contents of the img folder to /sdcard (adb ls /sdcard/ confirms so)
now if I want to remove those files from /sdcard, since they happen to have the same extension:
Code:
adb shell rm /sdcard/*.img
and all these image files (.img) are removed - the wildcard now is working.
Now is this normal behaviour or am I missing something? I mean is it that ADB command does not support wildcards?
If so copying the contents of a folder is it the only way to mass copy from PC to the phone?
Thank you.
Yea i believe it will only push or pull a full folder or a specific file.. but thats the beauty of it.. dump all the files you want in a folder and push it right where you want them
Based on my very limited experience, wildcards are not supported by push/pull commands, but you can pass along anything you want through "adb shell" and wildcards will be processed as expected.
-- Sent from my TouchPad using Communities
Yes I 've searched a lot myself and seems the only way is the "copy to folder" trick.Thanks for your input.
*Puzzled why they didn't include that option inside the command*
Can I change permissions of several Files that I have pushed into a system folder ??
DJLamontagneIII said:
Yea i believe it will only push or pull a full folder or a specific file.. but thats the beauty of it.. dump all the files you want in a folder and push it right where you want them
Click to expand...
Click to collapse
:good:Information shared on this thread is useful to me..
I come to understand that I can push multiple files to /system/<directory> using following command
Can I do this:
Copy all file to a folder and then copied the whole folder to adb.exe directory. sy my Folder name is "MoveAll" in C:\<adb directory)
adb push MoveAll system/app (got root access and remount rw to do this)
or
adb push MoveAll system/lib
Now my question is that can I change the file permissions as well in on shot ???
adb shell chmod 644 /system/app/*.apk (if all files that i copied are .apk files)
or
adb shell chmod 644 /system/lib/*.so (if all files that i copied are .so files)
................................will it work ???
A little help on this would be highly appreciated. Thanks in advance !!! :good:
VioletR said:
:good:Information shared on this thread is useful to me..
I come to understand that I can push multiple files to /system/<directory> using following command
Can I do this:
Copy all file to a folder and then copied the whole folder to adb.exe directory. sy my Folder name is "MoveAll" in C:\<adb directory)
adb push MoveAll system/app (got root access and remount rw to do this)
or
adb push MoveAll system/lib
Now my question is that can I change the file permissions as well in on shot ???
adb shell chmod 644 /system/app/*.apk (if all files that i copied are .apk files)
or
adb shell chmod 644 /system/lib/*.so (if all files that i copied are .so files)
................................will it work ???
A little help on this would be highly appreciated. Thanks in advance !!! :good:
Click to expand...
Click to collapse
What operating system do you use on your computer?
I test with:
Code:
adb push *.img /sdcard
Code:
adb push C:\Nexus/img /sdcard/
Code:
adb shell rm /sdcard/*.img
But They do not work. Can you help me???
kid1519 said:
I test with:
Code:
adb push *.img /sdcard
Code:
adb push C:\Nexus/img /sdcard/
Code:
adb shell rm /sdcard/*.img
But They do not work. Can you help me???
Click to expand...
Click to collapse
Hello.
Wildcards (*.fileExtension) do not work with adb or so it seems.You could always use the "copy to folder" trick though.
Put all your images in a folder - I assume you have windows.So:
all images to C:\Images
then open adb and:
adb push C:\Images/ /sdcard/Images/
the above command will copy all the contents of the C:\Images folder (so practically all your images in there) to the /sdcard/Images folder (could be any folder you prefer).
TR-909 said:
Hello.
Wildcards (*.fileExtension) do not work with adb or so it seems.You could always use the "copy to folder" trick though.
Put all your images in a folder - I assume you have windows.So:
all images to C:\Images
then open adb and:
adb push C:\Images/ /sdcard/Images/
the above command will copy all the contents of the C:\Images folder (so practically all your images in there) to the /sdcard/Images folder (could be any folder you prefer).
Click to expand...
Click to collapse
thanks. :X
Now, i can push. ok.
But
adb shell chmod
Click to expand...
Click to collapse
can you show me.
ex:
adb shell chmod 644 /system/app/mp3.zing.vn.apk
adb shell chmod 644 /system/app/mp3.zing.vn.odex
adb shell chmod 644 /system/app/mxtech.videoplayer.apk
adb shell chmod 644 /system/app/mxtech.videoplayer.odex
adb shell chmod 644 /system/app/nct.apk
adb shell chmod 644 /system/app/nct.odex
adb shell chmod 644 /system/app/notepad.color.note.apk
adb shell chmod 644 /system/app/notepad.color.note.odex
adb shell chmod 644 /system/app/Quickofficev5.7.327.apk
adb shell chmod 644 /system/app/Quickofficev5.7.327.odex
adb shell chmod 644 /system/app/Screenshot.ER.PROv2.4.3.2.apk
adb shell chmod 644 /system/app/Screenshot.ER.PROv2.4.3.2.odex
adb shell chmod 644 /system/app/viber.apk
adb shell chmod 644 /system/app/viber.odex
adb shell chmod 644 /system/app/vietmobitv.apk
adb shell chmod 644 /system/app/vietmobitv.odex
adb shell chmod 644 /system/app/yahoo.mobile.apk
adb shell chmod 644 /system/app/yahoo.mobile.odex
adb shell chmod 644 /system/app/youtube.apk
adb shell chmod 644 /system/app/youtube.odex
Click to expand...
Click to collapse
--->>>
adb shell chmod 644 /system/app/*.apk
adb shell chmod 644 /system/app/*.odex
Click to expand...
Click to collapse
kid1519 said:
thanks. :X
Now, i can push. ok.
But
can you show me.
ex:
--->>>
Click to expand...
Click to collapse
Well I am not familiar with multiple permission changes through adb or even shell.Maybe some other more experienced member could help.Or maybe better make a post of your own exclusively for that.
When I use adb shell <cmd>, the commands work as expected, except for cd. If I run the following two commands, it shows I'm still in the root directory.
Code:
adb shell cd /any/valid/path
adb shell pwd
The cd command just doesn't ever change directories.
For completeness, I can not do abd shell ls ~/, as I have no HOME, but I assume this is normal?? I'm not concerned about HOME, it's fixable, but I really need to have the cd command working as I'm writing an IPython extension that wraps adb.
Cheers
Carl
I realise that this is a reply to an older question, but the answer might still be of use to some.
You first have to enter the shell before executing the 'cd' command.
STEP 1.
Code:
adb shell
STEP 2.
Code:
cd /any/valid/path
You don't use cd just type the directory you want to go to