I want to change my android emulator sdcard read only permission, for that I typed
mount -o remount,rw /mnt/sdcard
in adb shell. But it shows
Usage: mount [-r] [-w] [-o options] [-t type] device directory
Whats the problem in the command I have written in the adb shell.
I think you must write something like this:
mount -o remount rw /sdcard
Related
I am trying to follow the tutorial :
http://borkweb.com/story/setting-etchosts-on-an-android-emulator-using-a-mac
But when I type:
adb -s emulator-5554 remount
All I get is remount of /system failed: Read-only file system
So then I try this..
MAC-M-N20B:~ user$ adb shell
root#generic_x86:/ # su
root#generic_x86:/ # mount -o rw,remount,rw /system
And then I get this...
mount: Read-only file system
Any ideas how I can make the system folder writeable?
I have edited build.prop and now my phone cannot boot. I have pulled build.prop using adb and now I have the correct build.prop file
What I need is to push build.prop using adb.
First try: Read-only file system
when I mount system:
Second try: Permision Denied
what can I do?
Probably because adb push uses the shell user, which does not have write permissions to /system/build.prop. You can, however, push the file to a different location first (e.g. /data/local/tmp/) and then move the file to the right place with the root user (after mounting).
Here are the commands you need to use:
adb push <Path to build.prop>/build.prop /data/local/tmp/
adb shell
su
mount -o rw,remount /system
adb push /data/local/tmp/build.prop /system/build.prop
I tried the following code... it works but i do not know if is the solution because my phone still cannot boot.
adb shell
su
mount -o remount,rw /dev/block/stl9 /system
chmod 777 /system
exit
exit
adb push build.prop /system
please let me know if the following code is correct or not...
adb remount
adb push build.prop /system/
adb shell chmod 644 /system/build.prop
adb reboot
this works for me for Galaxy S6:
cd C:\Users[here the userprofilename]\AppData\Local\Android\sdk\platform-tools>
1.) adb pull /system/build.prop
- this download the file from the phone in the adb folder
- edit the file, then load up to the phone:
2.) adb root
3.) adb root remount rw
4.) adb root chmod 664 /system/build.prop
5.) adb root push ./build.prop /system/build.prop
adb shell
su
mount -o remount,rw /dev/block/st19 /system
chmod 777 /system
exit
exit
push build.prop /system
adb shell
su
chmod 644 /system/build.prop
exit
exit
reboot
that worked for me :)
This is what worked for me:
adb push \build.prop /data/local/tmp/
adb shell
su
rm /system/build.prop
cp /data/local/tmp/build.prop /system
exit
exit
adb reboot
Hope it helps.
Ok lets do it. i found a simple way to by pass root permissions.
If u have a CWM recovery... enter on it and on "mounts and storage" enter and mounts /system/ them your pc will recognize it on adb push and send it to system.
Use your command codes above you write them voilá... your tablet/phone will boot again. if you have a backup of original build.prop
I am using this command
$ adb shell
$ su
-shows permission denied..
$ mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
But it shows some permission problems
ie. Usage: mount [-r] [-w] [-o options] [-t type] device directory
Thanks!!
You must root your device or unlock your bootloader (if possible) to use mount command
Whenever I try to update framework-res.apk on system/framework folder on my G1 it gives me an error:
failed to copy 'framework-res.apk' to '/system/framework/framework-res.apk': Read-only file system
Then I tried to mount it with read write permission with this line:
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3
But it says Usage: mount [-r] [-w] [-o options] [-t type] device directory
And I read on forum that you have to access with su command But whenever I try to hit command su it says permission denied.
try visionary for rooting your phone (http://android.modaco.com/content/software/320350/19-nov-r14-visionary-one-click-root/) and then su would work for you.
I have an HTC HERO and
I need to push my application.apk
to the /system/app/ folder.
I've followed some tuts on rooting the device
and that is fine, but when I try to push my package to the system/app
folder, I get: "permission denied":
$ push /sdcard/myApp.apk /system/app/
push: permission denied
I also try:
$ su
su
# push /sdcard/myApp.apk /system/app/
push: not found
Is this possible in a device that is not a developer intended device?
Thank you all!
Firstly, running push from the device doesn't work as it's not a built-in command. Ideally you would use the copy command cp, but I don't think it's included by default (I've added it to my device via busybox).
Anyway, your problem is that the /system partition is mounted as read-only when the device boots.
But if you have root access to the device, you can remount the partition as read-write:
host$ adb shell
hero$ su
hero# mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
hero# cat /sdcard/myApp.adk > /system/app/myApp.adk
hero# mount -o remount,ro -t yaffs2 /dev/block/mtdblock3 /system
Alternatively, after doing the remount, you can use adb push from the host as normal.
How I do it:
adb shell
#su
#mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
open a second terminal and use:
adb push myApp.apk /system/app/
in first terminal:
#reboot
What I add more then the others is the reboot - it's a must when doing a remount operation on the Android devices.