Hi Every body,
In quit new in Android.
I just finaly rooted en S-Off my Desire.
Now I want to copy a file in to a system map, but I cant safe in that map.
Is there a way that I can Chmod the right, so I can Copy too their.
Check the file system you're trying to copy to, it might well be mounted as read-only. If you have permanent root you should be able to remount it as read/write.
steviewevie said:
Check the file system you're trying to copy to, it might well be mounted as read-only. If you have permanent root you should be able to remount it as read/write.
Click to expand...
Click to collapse
I am permanent root, waht should i do to get the map Write.
Is their een special chmod tool.
I use ES file Explorer.
Redbaser said:
I am permanent root, waht should i do to get the map Write.
Is their een special chmod tool.
I use ES file Explorer.
Click to expand...
Click to collapse
You need to mount /system as read/write :
Code:
mount -o remount,rw /system
Make your changes, then when you're done :
Code:
mount -o remount,ro /system
steviewevie said:
You need to mount /system as read/write :
Code:
mount -o remount,rw /system
Make your changes, then when you're done :
Code:
mount -o remount,ro /system
Click to expand...
Click to collapse
From my Pc then it is:
Code:
adb shell
Code:
su
Code:
mount -o remount,rw /system/media/audio/notifications
Code:
exit
Code:
exit
Redbaser said:
Code:
mount -o remount,rw /system/media/audio/notifications
Click to expand...
Click to collapse
No, you need to remount the /system file system (/system/media/audio/notifications) is just a directory within that file system.
Then go into that directory and make any changes that you need to. Then remount it as read-only when you're done.
steviewevie said:
No, you need to remount the /system file system (/system/media/audio/notifications) is just a directory within that file system.
Then go into that directory and make any changes that you need to. Then remount it as read-only when you're done.
Click to expand...
Click to collapse
I did it whit my terminal emulator,
just you told.
I want to copy a file in that directory, it want work, premision denied
I typed
su
#mount -o remount, rw /system
Then I tried to copy
Redbaser said:
I did it whit my terminal emulator,
just you told.
I want to copy a file in that directory, it want work, premision denied
I typed
su
#mount -o remount, rw /system
Then I tried to copy
Click to expand...
Click to collapse
Check your steps again. I just created a new file in that directory fine.
Did the su work ?
You're not typing that "#" symbol, are you ? That's the command prompt when you're root.
steviewevie said:
Check your steps again. I just created a new file in that directory fine.
Did the su work ?
You're not typing that "#" symbol, are you ? That's the command prompt when you're root.
Click to expand...
Click to collapse
I treid again, I type su, then $ change in #
I type mount -o remount, rw /system (puch enter)
I open ES file Explorer, the directory is still no Rightable only Read.
I
Redbaser said:
I treid again, I type su, then $ change in #
I type mount -o remount, rw /system (puch enter)
I open ES file Explorer, the directory is still no Rightable only Read.
Click to expand...
Click to collapse
The problem is ES File Explorer isn't running as the root user. So you can do a "chmod 777 /system/media/audio/notifications" then it will work.
steviewevie said:
The problem is ES File Explorer isn't running as the root user. So you can do a "chmod 777 /system/media/audio/notifications" then it will work.
Click to expand...
Click to collapse
Wich App do i need or how can i made the explorer as root user.
Redbaser said:
Wich App do i need or how can i made the explorer as root user.
Click to expand...
Click to collapse
Are you not comfortable doing it via the command line ? There is an "experimental" option within ES File Explorer to let it run as root, but I just tried it, and it doesn't work on the stock ROM.
I checked and it looks like one of the other main explorers, Astro, doesn't work as root either.
Maybe try the Root Explorer app (hmm, though I see you have to pay for it) ? Anyone else have recommendations ?
steviewevie said:
Are you not comfortable doing it via the command line ? There is an "experimental" option within ES File Explorer to let it run as root, but I just tried it, and it doesn't work on the stock ROM.
Click to expand...
Click to collapse
I so new whit android, I Realy dont now what are you mean, Sorry
Redbaser said:
I so new whit android, I Realy dont now what are you mean, Sorry
Click to expand...
Click to collapse
If you are willing to pay for the "Root Explorer" app, which you will find on the Android market, then that should do what you want (i.e. give you a file explorer app that will work as root).
Related
(Sorry for not posting actual links - the system won't let me because I'm still a "new user.")
I already rooted my Sprint Hero using this (thread 583291) guide and can successfully tether using the WiFi Tether app. Yay!
Now I want to delete and/or replace the boot up sound (boot.mp3 located in /system/media/bootscreen) When I try to delete it right now (either through adb shell on my computer or from within a file manager app on the phone itself) I get permission denied or "read-only file system."
I see two threads regarding busybox, superuser, and adb remount. Thread 591303 which is dated 11/28/09 and is just for busybox and Thread 593952 which is dated 12/03/09.
I'm not sure which of these two I need to install. If it's the latter which includes ADB remount and superuser as well as busybox, then I'm not sure if I am supposed to unzip them before pushing them to my phone.
Could anyone point me in the right direction based on what I want to do (delete files on my phone - ANY file I want)?
Thanks in advance for any help you can offer.
All you should need to do is:
Code:
adb remount
rm /insert file path/file
So yours would be
Code:
rm /system/media/bootscreen/boot.mp3
Mr. Biggz said:
All you should need to do is:
Code:
adb remount
rm /insert file path/file
So yours would be
Code:
rm /system/media/bootscreen/boot.mp3
Click to expand...
Click to collapse
will rm work without busybox?
As long as you can shell into the phone it should work. The rm command is to be run inside the shell.
So it actually should be
Code:
adb remount
adb shell
rm /system/media/bootscreen/boot.mp3
You want to install the busybox remount and superuser Rom if you want to run stock.
Or manually install busybox, superuser whitelist and adb remount
Biggz - looks like they are on stock. No adb remount.
gbhil said:
Biggz - looks like they are on stock. No adb remount.
Click to expand...
Click to collapse
Unfortunate, custom is so much better.
If you are on stock, do this:
Code:
adb shell
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
mv /system/media/bootscreen/boot.mp3 /system/media/bootscreen/boot.mp3.old
exit
[you can also do rm /system/media/bootscreen/boot.mp3 instead]
gbhil said:
You want to install the busybox remount and superuser Rom if you want to run stock.
Or manually install busybox, superuser whitelist and adb remount
Biggz - looks like they are on stock. No adb remount.
Click to expand...
Click to collapse
successfully removed (rm) the boot.mp3 in the shell - Thank you for that. I do want to replace it with a different one (I'll use the same file name since the .xml file still refers to it) so I'll need the cp command and I've noticed that it's missing in shell. I'm assuming I need to install busybox to get this functionality. I'm not really sure I want to install a complete new ROM and I don't mind manually installing busybox, adb remount, etc. What does installing "superuser whitelist" and "adb remount" allow me to do? I'm not sure what their potential uses are?
I installed busybox and have the cp command functionality now (see above post) but now when I try to copy anything to the /system/media/bootscreen folder I get "cp: cannot create '/system/media/bootscreen/boot.mp3': Permission denied"
I type "mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system" after getting into shell and typing "su" and getting the "#" prompt and it takes successfully (this is the only way I was able to actually "rm" the original boot.mp3 file to begin with.
See anything I'm doing wrong?
Nope, that is correct.
/system is normally mounted as read-only, so you can't add or delete anything. The mount command remounts it as read-write, so you can modify it as root.
armyturtle said:
<snip> I'm not really sure I want to install a complete new ROM and I don't mind manually installing busybox, adb remount, etc. What does installing "superuser whitelist" and "adb remount" allow me to do? I'm not sure what their potential uses are?
Click to expand...
Click to collapse
Superuser whitelist is an application that warns you and asks for you to provide permission whenever an app tries to use the su binary to run as another user. You want this, as without it there's no way to know if an application runs as root.
Adb remount is a service that allows you to toggle the +RW bit on the /system/ partition through the shell. IIRC the one one floating around also kills color terminfo so you don't get all the extra chars on a windows PC when using the ls command. Just a matter of convenience.
jonnythan said:
Nope, that is correct.
/system is normally mounted as read-only, so you can't add or delete anything. The mount command remounts it as read-write, so you can modify it as root.
Click to expand...
Click to collapse
I can't create/copy anything after getting into the shell and remounting as read-write. From CMD prompt I type:
adb shell
and get:
$
Then I type:
su
and get:
#
This is where I type:
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
Then trying to copy anything into the /system directory gives me:
Permission denied
It will let me DELETE anything I want from this folder (as confirmed by now deleting boot.gif just to check) but it won't let me cp (copy) anything to this folder. WHY?
What the heck?
try these commands for the boot mp3
Code:
cd/
cd /androidsdk/tools/
adb shell
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
exit
adb push directoryonpcwhereyourbootmp3is /system/media/bootscreen/
make sure that you rename the mp3 to boot.mp3 or it wont work anyways.
the other option (this is what I do) is find a bootscreen that you like (I use this one). open the zip file useing winrar or 7zip, navigate into the files where you see the boot.mp3 and drag in YOUR (now renamed) boot.mp3 close the window, put the zip file onto the root of your sd card, boot into recovery, choose flash from zip, flash the file and your good to go.
wtphoto said:
try these commands for the boot mp3
Code:
cd/
cd /androidsdk/tools/
adb shell
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
exit
adb push directoryonpcwhereyourbootmp3is /system/media/bootscreen/
make sure that you rename the mp3 to boot.mp3 or it wont work anyways.
the other option (this is what I do) is find a bootscreen that you like (I use this one). open the zip file useing winrar or 7zip, navigate into the files where you see the boot.mp3 and drag in YOUR (now renamed) boot.mp3 close the window, put the zip file onto the root of your sd card, boot into recovery, choose flash from zip, flash the file and your good to go.
Click to expand...
Click to collapse
tried this just now and still get "failed to copy 'C:\android-sdk-windows\tools\boot.mp3' to '/system/media/bootscreen/boot.mp3': Permission denied"
It's the /system folder... I can push to /data/local all day long, but anything in the /system folder is read only. How the hell can I change this?
/system/media/bootscreen/boot.mp3
Click to expand...
Click to collapse
if this is the code you are using then that could be your issue
the code line should look like this
Code:
adb push C:\android-sdk-windows\tools\boot.mp3 /system/media/bootscreen/
doing adb push C:\android-sdk-windows\tools\boot.mp3 /system/media/bootscreen/boot.mp3 says that you are trying to push the boot.mp3 to the directory bott.mp3 and there is no boot.mp3 directory the folder where you want the boot.mp3 is bootscreen. try the ubove code and see what happenes.
wtphoto said:
if this is the code you are using then that could be your issue
the code line should look like this
Code:
adb push C:\android-sdk-windows\tools\boot.mp3 /system/media/bootscreen/
doing adb push C:\android-sdk-windows\tools\boot.mp3 /system/media/bootscreen/boot.mp3 says that you are trying to push the boot.mp3 to the directory bott.mp3 and there is no boot.mp3 directory the folder where you want the boot.mp3 is bootscreen. try the ubove code and see what happenes.
Click to expand...
Click to collapse
Nope, was a typo on my part (here in the post, not when issuing the command). Still permission denied. I don't think it's actually mounting the /system folder as writable. Is there a way to check after issuing the remount command?
A quick command of "ls -l" at root prompt gives the following for the /system folder:
drwxr-xr-x root root 2009-09-21 06:30 system
after you run the remount command what does it say? does it say remount succeded?
After typing the remount command it simply repeats my command back at me and returns to the "#" prompt.
honestly at this point what I would try doing is do a back up then flash a custom rom like fresh 1.1 that has all the tools built into it. then go into the cmd prompt and cd to where sdk is then type adb remount and see what it says then adb shell and try to cp the file to that directory.
this is more a test than anything else.
wtphoto said:
honestly at this point what I would try doing is do a back up then flash a custom rom like fresh 1.1 that has all the tools built into it. then go into the cmd prompt and cd to where sdk is then type adb remount and see what it says then adb shell and try to cp the file to that directory.
this is more a test than anything else.
Click to expand...
Click to collapse
I'll try this - so you recommend trying fresh 1.1 then? I know it's just a test, but just in case I like the ROM and decide to stick with it, might as well try a really good one! I'll try this tomorrow - I'm beat! (Thanks again!)
I've searched and can't seem to find a way to solve the issue.
I'm trying to install a metamorph to make the engadget widget transparent and I need to movie the apk from /data/app to /system/app (according to this post: http://forum.xda-developers.com/showpost.php?p=6319426&postcount=102)
In doing so I've received the cross-device link error.
I've tried these sets of commands:
(note: I am typing the below commands from memory, I got them by searching and I typed them word for word even if the commands below may be incorrect)
Code:
mount -o rw,remount /dev/block/mtdblock5 /data
mount -o rw,remount /dev/block/mtdblock3 /system
mv /data/app/name.of.apk /system/app
HTML:
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
mv /data/app/name.of.apk /system/app
I've even tried using root explorer and while it shows a progress bar and says it's moving the apk, nothing happens.
I've tried rebooting the phone and the issue still persists.
Can anyone help? Thanks!
Go into /data/data and /data/dalvik-cache and delete all files affiliated with that apk and reboot, the move a copy of the apk file to /system/app, fix permissions and reboot.
let me know if this works.. i'm curious. i had to resort to
Code:
cat /data/app/name.of.app.apk > /system/app
to get it to work. i read somewhere that mv doesn't sit well on android 2.1. cat worked fine, but maybe i didn't realize if mv required the data & dalvik-cache to be wiped.
snandlal said:
Go into /data/data and /data/dalvik-cache and delete all files affiliated with that apk and reboot, the move a copy of the apk file to /system/app, fix permissions and reboot.
Click to expand...
Click to collapse
I tried, but that didn't resolve the issue.
shift_ said:
let me know if this works.. i'm curious. i had to resort to
Code:
cat /data/app/name.of.app.apk > /system/app
to get it to work. i read somewhere that mv doesn't sit well on android 2.1. cat worked fine, but maybe i didn't realize if mv required the data & dalvik-cache to be wiped.
Click to expand...
Click to collapse
That didnt' work either.
To the both of you, thanks for the help so far. I appreciate it.
:-/
Try putting the apk file directly on the c: drive, go into adb shell, do command: mount /system, then command: exit, the command: adb push c:\name of app.apk /system/app
That works for sure, but I'm still left wondering why I can't move a file from one directory to another on the device.
lolz mclollerson said:
That works for sure, but I'm still left wondering why I can't move a file from one directory to another on the device.
Click to expand...
Click to collapse
hmm.. that worked, but mv and cat didn't? that's really weird.
I am also receiving this message. I am trying to:
mount -o remount,rw /dev1/block1/mtdblock4 /system
# mv /sdcard/bootanimation.zip /system/customize/resource
failed on 'bootanimation.zip' - Cross-device link
any ideas??
i am rooted, downloaded a file manager..which file did they store the factory apps in
system/app is where the apps are delete the odex file too if you decide to delete any apps. make sure you dont delete anything that the phone needs to run. if you dont know what to delete then dont delete anything!!! if you decide to delete anything from system/app you also need to delete another folder that has to do with the app in data/data. for example say you wanna delete bluetooth go to system/app and delete bluetooth.apk and the bluetooth.odex files then go to data/data and delete com.android.bluetooth folder. thats an example dont do that as you will no longer have bluetooth lol but same thing for whatever app you delete except the folder in data/data will be different
Whats wrong with factory apps?
lou0611 said:
Whats wrong with factory apps?
Click to expand...
Click to collapse
That's like when you get a new HP Laptop and they throw all this bloat-ware that you don't need.
Why use the ''TeleNav GPS'' when the Google Navigation is free?
And are you really going to use that Slacker or GoGo app? Not likely.
Root, install Titanium backup, installed busybuzz or whatever (Hit the Problems? button in TB), BACKUP all your apps, then delete whatever you dont want
i got rid of Telenavi, GoGo, MobiTV and i think one other.....i never would use them so there was no reason to keep them.
You can also do this via adb shell like this:
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cd /system/app
After you've mounted the correct partition you can pull up a complete list of apps with this command:
ls /system/app
Then, remove apps with this command. The apps name are case sensitive to make sure you type the app name as its displayed:
rm VoiceSearch.apk
Dont even need to mount.
Use VoiceSearch.* instead of apk to get rid of the .odex file also.
bubonik said:
Dont even need to mount.
Use VoiceSearch.* instead of apk to get rid of the .odex file also.
Click to expand...
Click to collapse
Good suggestion. Never thought of that, kill two birds with one stone.
bubonik said:
Dont even need to mount.
Use VoiceSearch.* instead of apk to get rid of the .odex file also.
Click to expand...
Click to collapse
What do you mean by this?
phragg said:
What do you mean by this?
Click to expand...
Click to collapse
if you use "rm VoiceSearch.*" * is seen as a wild card so it deletes every file named VoiceSearch with any extension so it will delete VoiceSearch.apk and VoiceSearch.odex
This might have something to do with why I can't mount my drives on any computer:
When I tried to mount via adb, this was my output:
$ mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
mount: Operation not permitted
Any suggestions?
cashless said:
This might have something to do with why I can't mount my drives on any computer:
When I tried to mount via adb, this was my output:
$ mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
mount: Operation not permitted
Any suggestions?
Click to expand...
Click to collapse
Are you rooted? You need to be rooted in order to get access to those file systems. If you are rooted, then type 'su' (don't include the quotes), then you'll get a #. Now start entering the commands.
Also make sure that when you enter the commands (via adb) your screen is not locked, so that you can allow the SU app to grant superuser status.
I went to /system/app and found most applications, but the only thing that I really want to find are the demo games, and for some reason I can't find them! I even went to /data/app and found the apk packages there, I deleted them but the games are still installed.
Any ideas?
Are they in /cust?
if i have not remembered wrongly, the demo games r in /system/app/..
what specific game(s) do u want to remove? i can give u the location tonight after work (as i stored the paths in my home pc..)
FYI. Mine are all in /cust/pccw/hk/app.
simplistian said:
FYI. Mine are all in /cust/pccw/hk/app.
Click to expand...
Click to collapse
is it possible\safe to delete them?
if u meant those "Ironman", "Prince of Persia", etc., then its okay to delete them..
i did..
My phone didnt have any demo games and i found it weird couse in all the reviews i saw them in the menu screen...
my memory didnt fail me.. the 4 games that i removed were all in /system/app/
BubbleBash2.apk (Launcher: Bubble Bash 2)
IronMan2.apk (Launcher: Iron Man 2)
PrinceofPersiaZero.apk (Prince of Persia)
UNO.apk (Launcher: UNO)
btw, im with the hong kong B135 version..
@flipmodegr
yeah, it seems that ROM for Wind is cleaner..
nice to hear that its normal for the greek phones
yes, Wind Gr gives a stock android rom (not even hauwei has added anything) so its clean like water
Thanks everyone I found them in /cust/roadhound/au/app but for some reason I can't mount the location as R/W using Root Explorer.. my phone IS rooted.. I don't know why it does not let me mount it as R/W.. therefore I can't delete them!!
Any ideas on this?
Thanks
Tcm9669 said:
Thanks everyone I found them in /cust/roadhound/au/app but for some reason I can't mount the location as R/W using Root Explorer.. my phone IS rooted.. I don't know why it does not let me mount it as R/W.. therefore I can't delete them!!
Any ideas on this?
Thanks
Click to expand...
Click to collapse
Try using adb or you could try in terminal emulator:
Mount R/W
Code:
mount -o remount,rw /dev/block/mmcblk0p12 /system
Mount R/O
Code:
mount -o remount,ro /dev/block/mmcblk0p12 /system
I can mount /system as R/W.. I just cant mount that directory in R/W .. it just opens as R/O even if I mount /system as R/W
Tcm9669 said:
I can mount /system as R/W.. I just cant mount that directory in R/W .. it just opens as R/O even if I mount /system as R/W
Click to expand...
Click to collapse
Oops sorry. See Below.
Try using adb or you could try in terminal emulator:
Mount R/W
Code:
mount -o remount,rw /dev/block/mmcblk0p1 /cust_backup
Mount R/O
Code:
mount -o remount,ro /dev/block/mmcblk0p1 /cust_backup
And the apps are in cust_backup/image/cust_data/roadhound/au/app. The /cust directory is just a link to the cust_backup direcctory. Which is why you cant mount it RW
Tried in Terminal Emulator, said
mount: Operation not permitted
Click to expand...
Click to collapse
then tried with sudo and said
sudo: permission denied
Click to expand...
Click to collapse
Tcm9669 said:
Tried in Terminal Emulator, said then tried with sudo and said
Click to expand...
Click to collapse
Root is su
Ahh, I tried
sudo <<command here>>
su worked! Thanks finally removed them ... WOHO!
Thank you very much mate.. oz oz oz, oi oi oi!
I want to remove those demos too, is it possible with stock non-rooted system?
No.. you need to root it. It's quite easy to do.
Hope this is the right place to post this.
My Atrix is rooted stock 1.83 .
I'm trying to "adb push" some OGG files to "/system/media/audio/" to add-to and replace some of the existing system sounds, especially that bloody annoying keypress (typewriter) sound, but I'm getting the following error (which makes sense):
Read-only file system
Tried using Root Explorer, same issue...again makes sense since its mounted as Read only on boot.
I tried booting into recovery mode, but I can't access the phone via ADB at all, even with USB Debug enabled. I also tried "adb remount" command, no luck either. I get an error "operation not permitted".
So, does anyone know the correct sequence of commands I need in ADB to remount the Atrix /system folder as RW??
What I have been doing is using adb push to the /sdcard then using adb shell then su then
mount -t rfs -o remount,rw /dev/stl5 /system
Then cp /sdcard/whatever /system/media
Sent from my MB860 using XDA App
EDIT: im at my computer now so I can write this easier to understand, lol
Lets say the file you want to change is called whatever.ogg
Code:
adb push whatever.ogg /sdcard/whatever.ogg
adb shell
su
mount -t rfs -o remount,rw /dev/stl5 /system
cp /sdcard/whatever.ogg /system/media/audio/notifications
when you access root explorer, does it let you know that it has been granted supervisor privilages? Does it give you the option to change from read to write? what did you use to root? I had to run the original Aroot three times before if finally gave me root.
You're the best, worked perfectly Can't believe that hideous typewriter sound is gone, it only took me 1.5 years as an Android user to finaly say enough is enough. Whomever thought it was a good idea to mimic the sound of an 1800's typewriter on a 21st century device needs to be fired.
Thanks again.
aver2one said:
What I have been doing is using adb push to the /sdcard then using adb shell then su then
mount -t rfs -o remount,rw /dev/stl5 /system
Then cp /sdcard/whatever /system/media
Sent from my MB860 using XDA App
EDIT: im at my computer now so I can write this easier to understand, lol
Lets say the file you want to change is called whatever.ogg
Code:
adb push whatever.ogg /sdcard/whatever.ogg
adb shell
su
mount -t rfs -o remount,rw /dev/stl5 /system
cp /sdcard/whatever.ogg /system/media/audio/notifications
Click to expand...
Click to collapse
i need help
im using a clone samsung galaxy tab2.tried to change the system font with root browser and it bricked.the phone dont have cwm so i didnt back up my rom.any command in adb that can be used to change the font folder
Obiechina said:
im using a clone samsung galaxy tab2.tried to change the system font with root browser and it bricked.the phone dont have cwm so i didnt back up my rom.any command in adb that can be used to change the font folder
Click to expand...
Click to collapse
Well congrats! that was the dumbest thing ever. NEVER attempt something like that unless you have CWM or equivalent installed, have a backup, and know what you are doing.
Have you tried to read your device's xda forum?
Please Help
Hahaha, can you help me?
i want to change my /system/framework folder by using the POWER and UP volume keys
i had a backup of my system/framework in my SD..
What should i do?