• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Help failed to copy 'Browser.apk' to '/system/app/Browser.apk': Read-only file system

help. trying to adb push and this is the error i get

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Lori>cd/

C:\Documents and Settings\Lori>cd C:\Documents and Settings\Lori\Desktop\Android
SDK\android-sdk-windows\tools

C:\Documents and Settings\Lori\Desktop\AndroidSDK\android-sdk-windows\tools>moun
t -oremount,rw -t yaffs2 /dev/block/mtdblock4 /system
'mount' is not recognized as an internal or external command,
operable program or batch file.

C:\Documents and Settings\Lori\Desktop\AndroidSDK\android-sdk-windows\tools>rm /
system/app/Browser.odex
'rm' is not recognized as an internal or external command,
operable program or batch file.

C:\Documents and Settings\Lori\Desktop\AndroidSDK\android-sdk-windows\tools>adb
push libmtwebcore.so /system/lib
failed to copy 'libmtwebcore.so' to '/system/lib/libmtwebcore.so': Read-only fil
e system

C:\Documents and Settings\Lori\Desktop\AndroidSDK\android-sdk-windows\tools>adb
push Browser.apk /system/app/Browser.apk
failed to copy 'Browser.apk' to '/system/app/Browser.apk': Read-only file system


C:\Documents and Settings\Lori\Desktop\AndroidSDK\android-sdk-windows\tools>
 
did you mean do this??? if so it still wont work

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Lori>cd/

C:\Documents and Settings\Lori>cd C:\Documents and Settings\Lori\Desktop\Android
SDK\android-sdk-windows\tools

C:\Documents and Settings\Lori\Desktop\AndroidSDK\android-sdk-windows\tools>moun
t -oremount,rw -t yaffs2 /dev/block/mtdblock4 /system
'mount' is not recognized as an internal or external command,
operable program or batch file.

C:\Documents and Settings\Lori\Desktop\AndroidSDK\android-sdk-windows\tools>rm /
system/app/Browser.odex
'rm' is not recognized as an internal or external command,
operable program or batch file.

C:\Documents and Settings\Lori\Desktop\AndroidSDK\android-sdk-windows\tools>adb
push libmtwebcore.so /system/lib
failed to copy 'libmtwebcore.so' to '/system/lib/libmtwebcore.so': Read-only fil
e system

C:\Documents and Settings\Lori\Desktop\AndroidSDK\android-sdk-windows\tools>adb
push Browser.apk /system/app/Browser.apk
failed to copy 'Browser.apk' to '/system/app/Browser.apk': Read-only file system


C:\Documents and Settings\Lori\Desktop\AndroidSDK\android-sdk-windows\tools>adb
shell
$ su
su
commands
commands
# commands: not found
# Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Lori>cd/

C:\Documents and Settings\Lori>cd C:\Documents and Settings\Lori\Desktop\Android

SDK\android-sdk-windows\tools

C:\Documents and Settings\Lori\Desktop\AndroidSDK\android-sdk-windows\tools>moun

Microsoft Windows XP [Version 5.1.2600]
t -oremount,rw -t yaffs2 /dev/block/mtdblock4 /system
'mount' is not recognized as an internal or external command,
operable program or batch file.

Microsoft: not found
# (C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Lori>cd/

Syntax error: word unexpected
# # C:Documents: not found
# # C:\Documents and Settings\Lori\Desktop\AndroidSDK\android-sdk-windows\tools>
rm /
system/app/Browser.odex
'rm' is not recognized as an internal or external command,
operable program or batch file.
C:\Documents and Settings\Lori>cd C:\Documents and Settings\Lori\Desktop\Android

SDK\android-sdk-windows\tools

C:\Documents and Settings\Lori\Desktop\AndroidSDK\android-sdk-windows\tools>moun

t -oremount,rw -t yaffs2 /dev/block/mtdblock4 /system

C:\Documents and Settings\Lori\Desktop\AndroidSDK\android-sdk-windows\tools>adb
push libmtwebcore.so /system/lib
failed to copy 'libmtwebcore.so' to '/system/lib/libmtwebcore.so': Read-only fil

C:Documents: not found
# SDKandroid-sdk-windowstools: not found
# # C:Documents: not found
# t: not found
# 'mount' is not recognized as an internal or external command,
operable program or batch file.

C:\Documents and Settings\Lori\Desktop\AndroidSDK\android-sdk-windows\tools>rm /

e system

C:\Documents and Settings\Lori\Desktop\AndroidSDK\android-sdk-windows\tools>adb
push Browser.apk /system/app/Browser.apk
system/app/Browser.odex
'rm' is not recognized as an internal or external command,
operable program or batch file.

failed to copy 'Browser.apk' to '/system/app/Browser.apk': Read-only file system



C:\Documents and Settings\Lori\Desktop\AndroidSDK\android-sdk-windows\tools>C:\D
ocuments and Settings\Lori\Desktop\AndroidSDK\android-sdk-windows\tools>adb
push libmtwebcore.so /system/lib
failed to copy 'libmtwebcore.so' to '/system/lib/libmtwebcore.so': Read-only fil

e system

C:\Documents and Settings\Lori\Desktop\AndroidSDK\android-sdk-windows\tools>adb
push Browser.apk /system/app/Browser.apk
failed to copy 'Browser.apk' to '/system/app/Browser.apk': Read-only file system



Usage: mount [-r] [-w] [-o options] [-t type] device directory
# operable: not found
# # C:Documents: not found
# system/app/Browser.odex: permission denied
# rm failed for is, Read-only file system
# operable: not found
# # C:Documents: not found
# push: not found
# failed: not found
# e: not found
# # C:Documents: not found
# push: not found
# failed: not found
# # #
 
Upvote 0
how does that help me?

Sorry, I made a bad post. The issue is that you are mixing commands... The mount command cannot be used unless you are in root. That said, I'm not the best resource for adb as it is relatively new to me as well. But you can do what you are trying to do from a terminal window directly on the phone itself...
 
Upvote 0
and how would i do that? put the files on the sd card and than what commands to what would i use?

Correct. Put the files on your sd card, detach your droid from your computer, open a terminal window and (for the Browser.apk):

$ su
$ mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
$ rm /system/app/Browser.odex
$ cat /sdcard/Browser.apk > /system/app/Browser.apk
$ mount -o ro,remount -t yaffs2 /dev/block/mtdblock4 /system
$ sync
$ reboot[FONT=&quot]
[/FONT]
 
Upvote 0
Correct. Put the files on your sd card, detach your droid from your computer, open a terminal window and (for the Browser.apk):

$ su
$ mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
$ rm /system/app/Browser.odex
$ cat /sdcard/Browser.apk > /system/app/Browser.apk
$ mount -o ro,remount -t yaffs2 /dev/block/mtdblock4 /system
$ sync
$ reboot[FONT=&quot]
[/FONT]


dont you need to add in

$ cat /sdcard/libmtwebcore.so > /system/lib
 
Upvote 0
You might want to try Root Explorer (in marketplace).

It's a GUI folder/file browser for rooted phones, and will allow you to copy/paste the files where you want them, much like using Astro. No need to connect to your computer or use terminal commands...put the files on your SD card and launch Root Explorer and go.

Paste function didn't work on previous versions but after a recent update it seems to work fine.
 
Upvote 0
The EASIEST way to do this though is to just put the 2 files on your sd card (browser.apk and libwebmtcore.so) and get a terminal app from the market. Then follow what the other guy said:

su
$ mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
$ rm /system/app/Browser.odex
$ cat /sdcard/Browser.apk > /system/app/Browser.apk
$ cat /sdcard/libwebmtcore.so > /system/lib
$ mount -o ro,remount -t yaffs2 /dev/block/mtdblock4 /system
$ sync
$ reboot[FONT=&quot]


[/FONT]If you have busybox then you can just use the cp command instead of cat and >[FONT=&quot]
[/FONT]
 
Upvote 0
to make a another correction it is

$ cat /sdcard/libwebmtcore.so > /system/lib/libwebmtcore.so

not $ cat /sdcard/libwebmtcore.so > /system/lib/



but the odex file does not exist, or atleast it doesnt show up in astro? if it doesnt exist than how does it conflict. im not sure how all this works.. i taught myself adb today and i did use the terminal emulator method by the way
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones