Pushed apk to /system/tools by mistake - Hero CDMA Themes and Apps

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.

Related

How to get APPS back into system/apps/

I updated my rom and there are some omitted apps that I would like to get back into system/apps/ for example VoiceDialer.apk, but I cannot seem to get them back on. I am using Fresh Rom 0.4 and the phone is obviously rooted. maybe I am doing something wrong in adb shell but I keep getting one of 2 different erors. Either permission denied or adb not found. Thank you in advance for your help.
flaav8r said:
I updated my rom and there are some omitted apps that I would like to get back into system/apps/ for example VoiceDialer.apk, but I cannot seem to get them back on. I am using Fresh Rom 0.4 and the phone is obviously rooted. maybe I am doing something wrong in adb shell but I keep getting one of 2 different erors. Either permission denied or adb not found. Thank you in advance for your help.
Click to expand...
Click to collapse
1) Permission denied - make sure that when you do an adb shell, you're root (have the # prompt) and make sure you've mounted /system as rw (adb remount)
2) adb not found - make sure there's only one adb.exe on your computer and that it's the one from the SDK and that the SDK's /tools directory is in your path (to be safe, you can always just run adb from that directory)
jmanley69 said:
1) Permission denied - make sure that when you do an adb shell, you're root (have the # prompt) and make sure you've mounted /system as rw (adb remount)
2) adb not found - make sure there's only one adb.exe on your computer and that it's the one from the SDK and that the SDK's /tools directory is in your path (to be safe, you can always just run adb from that directory)
Click to expand...
Click to collapse
1. the procedure I used is this: from the cmd prompt in the androidsdk/tools/ directory:
adb shell
$ su
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
# cd /system/app
# adb push VoiceDialer.apk system/app
but its a no go. Can't understand why.
BTW, I have the VoiceDialer.apk file in the androidsdk/tools folder just to make the push easier.
Ok, here is a screen shot from my command prompt window. I know someone knows what the hell I'm doing wrong. Just wanna get the damn voice dialer back on my phone. Please help, thank you.
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\Barry>cd \
C:\>cd androidsdk\tools\
C:\AndroidSDK\tools>adb shell
* daemon not running. starting it now *
* daemon started successfully *
$ su
su
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
# adb push VoiceDialer.apk /system/app/
adb push VoiceDialer.apk /system/app/
adb: not found
#
you cant do adb push while in shell ($ or #). Exit out and just try tying the adb push
goku14238 said:
you cant do adb push while in shell ($ or #). Exit out and just try tying the adb push
Click to expand...
Click to collapse
When I do that I get permission denied or something to that effect.
Yeah there's a post about this in the Fresh thread.
The most straightforward way is this:
Reboot to the recovery partition.
adb shell into the phone.
Issue the following command to mount the system partition:
mount -t yaffs2 /dev/block/mtdblock3 /system
Type exit to exit the shell.
Then do:
adb push c:\directory-with-the-apks /system/app
jonnythan said:
Yeah there's a post about this in the Fresh thread.
The most straightforward way is this:
Reboot to the recovery partition.
adb shell into the phone.
Issue the following command to mount the system partition:
mount -t yaffs2 /dev/block/mtdblock3 /system
Type exit to exit the shell.
Then do:
adb push c:\directory-with-the-apks /system/app
Click to expand...
Click to collapse
Thank-you, I will give it a try.

[Theme] Calendar

Just a very small change to the opening view of Calendar.apk to make it clear.
Replaces Calendar.apk.
Needs Root.
Tested on a NexusOne.
- month view is little bit darker
- day is blue colored (instead of light grey)
- pressed day is lighter
Code:
adb push /system/app/Calendar.apk Calendar.apk
It´s my 1. theme, so suggestions, advices are very welcome
rori1 said:
Just a very small change to the opening view of Calendar.apk to make it clear.
Replaces Calendar.apk.
Needs Root.
Tested on a NexusOne.
- month view is little bit darker
- day is blue colored (instead of light grey)
Code:
adb push /system/app/Calendar.apk Calendar.apk
It´s my 1. theme, so suggestions, advices are very welcome
Click to expand...
Click to collapse
Nice, subtle, I like it thanks.
Perhaps the selected day colour could be a little more complementary than orange?
how exactly do I get this to work?
Just entering the code provided did nothing and putting the apk in my android sdk/tools folder and entering "adb push Calendar.apk /system/app" also did nothing.
DreamScar said:
how exactly do I get this to work?
Just entering the code provided did nothing and putting the apk in my android sdk/tools folder and entering "adb push Calendar.apk /system/app" also did nothing.
Click to expand...
Click to collapse
Code:
adb push Calendar.apk /system/app/Calendar.apk
Are you sure Calendar.apk ist in the right folder on your PC??
Ah, I didn't add the second calendar.apk to the end. Thanks for the quick reply.
I updated now...pressed day is lighter.
If you like something else...tell me
rori1 said:
i updated now...pressed day is lighter.
If you like something else...tell me
Click to expand...
Click to collapse
34567890
Does this work with cyanogen's Rom the newest version?
Any chance to have a inverted colour version: black with white text?
stryker759a said:
Does this work with cyanogen's Rom the newest version?
Click to expand...
Click to collapse
Yep
4567890
I received a failed to copy Read only file system. Can i place this on my sd card and install it from there or what am i doing wrong this is the command i am using. adb push Calander.apk /system/app/Calander.apk
stryker759a said:
I received a failed to copy Read only file system. Can i place this on my sd card and install it from there or what am i doing wrong this is the command i am using. adb push Calander.apk /system/app/Calander.apk
Click to expand...
Click to collapse
What you're doing wrong is not entering the correct commands... what you really need to do is look in one of the 1000 posts here on xda where exactly your question is answered.
I suggest using the search terms "read only" and/or "remount"
If you're unfamiliar with these terms then I suggest a little more reading before hacking so you don't do anything you will regret later.
No offence, just the truth...
You're also spelling calendar wrong.
Here is another one...
adb: not found
What am I doing wrong:
C:\android-sdk-windows\tools>adb devices
List of devices attached
HT9CTP808520 device
C:\android-sdk-windows\tools>adb shell
# su
su
# cd /system/app
cd /system/app
# mount -o rw,remount /system
mount -o rw,remount /system
# adb push Calander.apk /system/app/Calander.apk
adb push Calander.apk /system/app/Calander.apk
adb: not found
# push Calander.apk /system/app/Calander.apk
push Calander.apk /system/app/Calander.apk
push: not found
MarkM83 said:
What am I doing wrong:
C:\android-sdk-windows\tools>adb devices
List of devices attached
HT9CTP808520 device
C:\android-sdk-windows\tools>adb shell
# su
su
# cd /system/app
cd /system/app
# mount -o rw,remount /system
mount -o rw,remount /system
# adb push Calander.apk /system/app/Calander.apk
adb push Calander.apk /system/app/Calander.apk
adb: not found
# push Calander.apk /system/app/Calander.apk
push Calander.apk /system/app/Calander.apk
push: not found
Click to expand...
Click to collapse
Learn how to spell...
Still
what the hell
C:\android-sdk-windows\tools>adb devices
List of devices attached
HT9CTP808520 device
C:\android-sdk-windows\tools>adb shell
# su
su
# cd /system/app
cd /system/app
# mount -o rw,remount /system
mount -o rw,remount /system
# adb push Calendar.apk /system/app/Calendar.apk
adb push Calendar.apk /system/app/Calendar.apk
Could you point me towards the error ?
MarkM83 said:
what the hell
C:\android-sdk-windows\tools>adb devices
List of devices attached
HT9CTP808520 device
C:\android-sdk-windows\tools>adb shell
# su
su
# cd /system/app
cd /system/app
# mount -o rw,remount /system
mount -o rw,remount /system
# adb push Calendar.apk /system/app/Calendar.apk
adb push Calendar.apk /system/app/Calendar.apk
Could you point me towards the error ?
Click to expand...
Click to collapse
lol -where did you even get those instructions? It cracks me up.
Push the apk from your Windows prompt after "remounting" the volume (also from the Windows prompt). You don't need to shell into the phone. Backup first.
Edit: There is no error message in your last post... you've changed the spelling of calendar and there's no error message there... so I don't really know what your question is now?
wow all you had to do is tell me to adb remount the push command. The problem with searching for read only file is there is so much useless info that pops up. I tried to search before i posted fyi.
Well got it to work
Nice Calader
stryker759a said:
...adb remount the push command...
Click to expand...
Click to collapse
Yep, that's it

Re-install mediascape after root.

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 ;-)

[Q] adb push- why am I getting permission denied?

phone: LG esteem ms910
Rooted: Yes
I'm trying to adb push a .apk file into my phones /system/app folder. These are the steps I am taking in trying to do this, but I am getting a permission denied response at the "adb push" part. Oh and my phone is under the "internet connection" setting. The other two (mass storage, charge only) wont let my phone enter debugging mode.
Code:
adb shell
su
mount -o remount,rw /dev/block/stl9 /system
exit
exit
adb push C:\Myfile.apk /system/app
Also when I enter the "mount -o remount,rw /dev/block/stl9 /system" command, It pops up twice but without the # symbol, not sure if there is an error there but it ends up looking like this:
Code:
C:\Android\android-sdk\platform-tool>adb shell
$ su
# mount -o remount,rw /dev/block/stl9 /system
mount -o remount,rw /dev/block/stl9 /system
# exit
exit
$ exit
exit
C:\Android\android-sdk\platform-tool>
I think you would want it to be on charge only, as the other options are utilizing the USB while charge only does not. That is how my setup functions... I did have the permission denied error before when I was using Ubuntu 10.04. Are you sure you have an up to date version of JDK? And the USB rules?
your command should be
adb push C:\Myfile.apk /system/app/myfile.apk
you have also to run adb as root or enable rw for /system/app
Basically:
______________________________________________
adb shell
su
mount -o remount,rw /dev/block/stl9 /system
chmod 777 /system/app
exit
exit
adb push C:\Myfile.apk /system/app/myfile.apk
________________________________________________
should do the job
@imheroldman- I tried leaving it on charge only, but the devices wasnt found when I ran the adb devices command, and yes the JDK is the latest.
@djodjoni -Hey I tried your suggestions and it worked.
Thanks to the both of you for helping.
FWIW, I got permission denied errors when I tried to push busybox via adb. I just downloaded a busybox .zip and flashed it via TWRP, it seems to have worked, and the busybox app recognizes it as installed.
I can't use adb push. It says Read Only file system when I try to push things to /sdcard. Don't know why
kavinzhao said:
I can't use adb push. It says Read Only file system when I try to push things to /sdcard. Don't know why
Click to expand...
Click to collapse
Use this:
Code:
[path] > adb shell
# mount -o rw,remount rootfs /
# chmod 777 /sdcard
# exit
[path] > adb push [file path on your PC] /sdcard
ИΘΘK¡€ said:
Use this:
Code:
[path] > adb shell
# mount -o rw,remount rootfs /
# chmod 777 /sdcard
# exit
[path] > adb push [file path on your PC] /sdcard
Click to expand...
Click to collapse
Thanks. I was using the recovery to receive before this. I think that should save me some time.
hello, I am having same problem, can you please help me out?
[email protected]_himaulatt:/data/local # adb push C:\firewater /data/local/temp
adb push C:\firewater /data/local/temp
error: device not found
1|[email protected]_himaulatt:/data/local # adb push C:\firewater /data/local/
adb push C:\firewater /data/local/
error: device not found
1|[email protected]_himaulatt:/data/local # adb push C:\firewater /data/l
adb push C:\firewater /data/l
error: device not found
1|[email protected]_himaulatt:/data/local # adb push C:\firewater /data/
adb push C:\firewater /data/
error: device not found
1|[email protected]_himaulatt:/data/local # cd ..
cd ..
[email protected]_himaulatt:/data # cd ..
cd ..
[email protected]_himaulatt:/ # exit
exit
[email protected]_himaulatt:/ $ exit
exit
C:\Users\Winpc\Downloads\fastboot-win>adb push C:\firewater /data/local/temp
failed to copy 'C:\firewater' to '/data/local/temp/firewater': Permission denied
C:\Users\Winpc\Downloads\fastboot-win>adb wait-for-devices push firewater /data/local/temp
failed to copy 'firewater' to '/data/local/temp/firewater': Permission denied
C:\Users\Winpc\Downloads\fastboot-win>adb shell
[email protected]_himaulatt:/ $ su
su
[email protected]_himaulatt:/ # mount -o rw,remount rootfs/
mount -o rw,remount rootfs/
Usage: mount [-r] [-w] [-o options] [-t type] device directory
1|[email protected]_himaulatt:/ # mount -o rw,remount rootfs /
mount -o rw,remount rootfs /
[email protected]_himaulatt:/ # chmod 777 /sdcard
chmod 777 /sdcard
[email protected]_himaulatt:/ # exit
exit
[email protected]_himaulatt:/ $ adb push C:\firewater /data/
adb push C:\firewater /data/
error: device not found
1|[email protected]_himaulatt:/ $ exit
exit
C:\Users\Winpc\Downloads\fastboot-win>adb wait-for-devices push firewater /data/local/temp
failed to copy 'firewater' to '/data/local/temp/firewater': Permission denied
C:\Users\Winpc\Downloads\fastboot-win>
Make sure you have phone detected and correct drivers and adb installed.
Once ADB is functioning properly, then let's PUSH files!
First let's make sure adb is running and make sure adb see's the phone. Please run these commands:
Code:
adb kill-server
adb start-server
adb devices
The output after devices will be a serial number, if this looks good, move on. First you need to make
sure the apk you want to push is in the same directory as adb.exe
once you have moved the apk to the adb.exe directory, then run the following:
Code:
[FONT=Verdana]adb remount
adb push myfile.apk /system/app/
adb shell chmod 644 /system/app/myfile.apk
adb reboot[/FONT]
adb remount mounts the phone as read write so you can write thru adb, it will be automatically unmounted when phone disconnected or rebooted
assuming your APK you want moved is called "myfile.apk"
adb push file_myfile.apk /system/app/ this command moves the "myfile.apk" (the apk you want moved) to the /system/app/ directory on your phone
adb shell chmod 644 /system/app/myfile.apk this command sets the correct file permissions for APKs
adb reboot this reboots the phone so that the new apk can be detected
Good luck
hi:
phone is rooted;
android 5.0 ;
adb start-server is OK;
adb devices is OK;
adb root is adbd is already running as root;
system and system/app are "chomd is 777 ";
I want to "adb push myfile /system/app/ "
Question: Permission denied .
- -
thx
other:
adb remount is Permission denied too.
"adb push ./build.gradle /storage/sdcard0/ " is OK.
opalescent said:
hi:
phone is rooted;
android 5.0 ;
adb start-server is OK;
adb devices is OK;
adb root is adbd is already running as root;
system and system/app are "chomd is 777 ";
I want to "adb push myfile /system/app/ "
Question: Permission denied .
- -
thx
other:
adb remount is Permission denied too.
"adb push ./build.gradle /storage/sdcard0/ " is OK.
Click to expand...
Click to collapse
sounds like you possibly do not have proper permission for the user you are logged into your computers operating system with. make sure you have the proper permissions and rights to access the folders you are trying to access. For a quick fix you can try loging into the system using the root user or administrator of the system that you are using and then try the adb commands. and you can just do a quick su switch from the Computer OS's konsole/terminal.
XeoNoX said:
First you need to make sure the apk you want to push is in the same directory as adb.exe
Click to expand...
Click to collapse
OMG thanks, mine wasn't working because something as simple as that!

[Q] removing BT5 arm off xoom

Hey, I installed BT5 arm on the Motorola Xoom wifi and i would like to know how to completely remove it from my device. My device is rooted and i have tried to delete the whole BT5 file with astro file manager and absolute file manager but neither of them worked. I was wondering if anyone knows another way of doing it.
I tried deleting it with commands in terminal emulator but its a read only file. Wouldn't chmod help with that? If so how would i use it?
jimmothycharles said:
I tried deleting it with commands in terminal emulator but its a read only file. Wouldn't chmod help with that? If so how would i use it?
Click to expand...
Click to collapse
Go read the backtrack 5 thread. There is a link on how to remove it. That really should be the first thing you check before asking
ok thanks, ill do that the next time i have a problem
I couldn't find it. I think it might be a tiamat BT5 img and i have the remover tool but im not quite sure how to use it. I just flashed it like i would do with a rom but it says installation failed. what would i do to fix that?
jimmothycharles said:
I couldn't find it. I think it might be a tiamat BT5 img and i have the remover tool but im not quite sure how to use it. I just flashed it like i would do with a rom but it says installation failed. what would i do to fix that?
Click to expand...
Click to collapse
Common knowledge - system must be set to RW
Here is an alternate route- manually
How To:
ADB Shell Folder Removal - (we will use BT5 as an example)
++++++++++++++++++++++++++++
1. Connect Xoom to pc
2. Boot into recovery
3. Toggle to internal storage as /sdcard
4. mount /data
Enter adb shell via pc
(cd to file location) in this case BT5, is in the sdcard directory
Code:
Code:
cd /sdcard #
(once typed, you will be at.... /data/media prompt)
if after the above command and you are not at the /data/media prompt start over)
Code:
Code:
rm -r BT5
(BT5 is the stubborn Folder)
*Side note ... This works for any other stubborn folder that you want to delete as well...
USE AT YOU OWN RISK - MAKE SURE YOU DO A BACKUP FIRST
If this was helpful Hit The Thanks!
it didnt work it said that rm failed for BT5, permission denied
jimmothycharles said:
it didnt work it said that rm failed for BT5, permission denied
Click to expand...
Click to collapse
Come on now, lol Your device must be set to rw. Google can guide you.
Mjamocha said:
Come on now, lol Your device must be set to rw. Google can guide you.
Click to expand...
Click to collapse
ok well this is what i got when i tried to do that.
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Windows\System32>cd C:\Users\josh\Desktop\xoom files\BT5
C:\Users\josh\Desktop\xoom files\BT5>adb shell
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
[email protected]:/ # cd storage/sdcard0/0/0/0
cd storage/sdcard0/0/0/0
[email protected]:/storage/sdcard0/0/0/0 # ls
ls
Android
BT5
Box
DCIM
Download
Evernote
Pictures
SELog.txt
Video
airdroid
goodies
goomanager
tmp
[email protected]:/storage/sdcard0/0/0/0 # rm -r BT5
rm -r BT5
rm failed for BT5, Permission denied
255|[email protected]:/storage/sdcard0/0/0/0 # rm BT5
rm BT5
rm failed for BT5, Is a directory
255|[email protected]:/storage/sdcard0/0/0/0 # cd
cd
[email protected]:/data # exit
exit
C:\Users\josh\Desktop\xoom files\BT5>adb shell
[email protected]:/ # mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
[email protected]:/ # cd storage/sdcard0/0/0/0
cd storage/sdcard0/0/0/0
[email protected]:/storage/sdcard0/0/0/0 # ls
ls
Android
BT5
Box
DCIM
Download
Evernote
Pictures
SELog.txt
Video
airdroid
goodies
goomanager
tmp
[email protected]:/storage/sdcard0/0/0/0 # rm -r BT5
rm -r BT5
rm failed for BT5, Permission denied
255|[email protected]:/storage/sdcard0/0/0/0 # rm -rBT5
rm -rBT5
rm failed for -rBT5, No such file or directory
255|[email protected]:/storage/sdcard0/0/0/0 # chmod 777 BT5
chmod 777 BT5
[email protected]:/storage/sdcard0/0/0/0 # rm -r BT5
rm -r BT5
rm failed for BT5, Permission denied
255|[email protected]:/storage/sdcard0/0/0/0 #
I looked up on google how to mount system rw and thats where [email protected]:/ # mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system came from. then i tried rm -r BT5 after that and it was still denied. so i tried to
do chmod 777 BT5 to give all permissions and then when i tried to remove it again it was still denied.
I looked up the permissions of the file and its set to rwxrwxr-x. so chmod apparently didn't work

Categories

Resources