Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
wesf90
Old
#11  
wesf90's Avatar
Member - OP
Thanks Meter 219
Posts: 93
Join Date: Dec 2011

 
DONATE TO ME
Quote:
Originally Posted by ashclepdia View Post
Moon shadow has a post in development to mount system rw
It's some type of script u run before adb or something
I don't know anything bout adb
But I do know he created it for this reason

Check it out
It's prolly got the info you need
Thanks for that! It's not quite what I'm aiming to eventually do, but did give me more insight on how the whole adb/shell/su systems work. From inside of su, I was able to mount the /system as RW, however I'm only able to do this from inside of SU. I want to be able to do this from the initial CMD so that I can ADB PUSH from my computer to the phone.

Here's my latest log:
Code:
C:\android-sdk>adb shell

[[TRYING TO MOUNT FROM ADB SHELL]]
$ mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
mount: Operation not permitted

[[TRYING TO MOUNT FROM ADB SHELL USING BUSYBOX]]
$ busybox mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
busybox mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
mount: permission denied (are you root?)

[[GO TO SU]]
$ su
su

[[MOUNTING AS RW SUCCESSFUL]]
# mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system

[[COPYING A FILE INSIDE /SYSTEM SUCCESSFUL]]
# cp framework/framework-res.apk framework/framework-res-test.apk
cp framework/framework-res.apk framework/framework-res-test.apk

[[REMOUNTING /SYSTEM AS RO]]
# mount -o ro,remount -t ext3 /dev/block/mmcblk1p21 /system
mount -o ro,remount -t ext3 /dev/block/mmcblk1p21 /system

[[ATTEMPTING TO COPY AGAIN, FAILED]]
# cp framework/framework-res.apk framework/framework-res-test2.apk
cp framework/framework-res.apk framework/framework-res-test2.apk
cp: can't create 'framework/framework-res-test2.apk': Read-only file system
#
So now the question is, how do I mount as R/W so I can use ADB push?

Wes
Framework Flasher - Easily edit and flash your ROM's framework-res.apk! (Droid X2)

Follow me on Twitter @therealwesf
 
CadenH
Old
#12  
CadenH's Avatar
Senior Member
Thanks Meter 82
Posts: 473
Join Date: Sep 2011
Maybe its because im tired but im confused as to why it wont let you push your files if you have remounted as rw. At that point it should be cake. You gained access to system by remounting it as rw successfully already.

Sent from my DROID X2 using xda premium
~Droid X2 CM9~
~Asus TF201 Blackbean~
 
jamesh0317
Old
(Last edited by jamesh0317; 19th February 2012 at 03:19 PM.)
#13  
jamesh0317's Avatar
Junior Member
Thanks Meter 4
Posts: 19
Join Date: Mar 2009
Location: Baltimore/Washington DC

 
DONATE TO ME
Quote:
Originally Posted by wesf90 View Post

So now the question is, how do I mount as R/W so I can use ADB push?

Wes
Try:
Code:
adb devices
adb remount
adb push [filename] [destination]
adb reboot
the "adb remount" remounts the fs RW instead of the default RO.
The Following User Says Thank You to jamesh0317 For This Useful Post: [ Click to Expand ]
 
Weees
Old
#14  
Senior Member
Thanks Meter 2
Posts: 146
Join Date: Apr 2009
Location: Dubai
I'm no expert in ADB, but I had run into the same issue as you and for me the fix was to go into ADB SHELL , then type SU to get SU access, then type exit twice to get out of shell completely. Then I tried pushing the APK and it worked fine with no read only errors.

This worked for me on my SGS2, could work for you ! Goodluck !
 
Moon Shadow - NM
Old
#15  
Moon Shadow - NM's Avatar
Recognized Contributor
Thanks Meter 458
Posts: 430
Join Date: Jul 2011
Location: Albuquerque

 
DONATE TO ME
Come to IRC and I can help you with this. http://webchat.freenode.net Come to the #cm7dx2 channel. I'm usually there... Look for the nick(s) Moon|Work|(something), Moon|Home|(something), or MoonShadow-NM. If the (something) says Busy, I might not answer right away. If it says Away, I'm away from the keyboard and you won't receive a response until I return.

Ciao!


If I helped you, just hit the THANKS button. It's free, and nice to see. If I REALLY helped you, consider donating, or signing up for Dropbox from here and we both receive an extra 250MB of storage!

Also, check out my Motorola Droid X2 tutorials:
HowTo: Root your Motorola Droid X2
HowTo: Perform a SBF ("factory restore") of your Motorola Droid X2
HowTo: Perform a bootstrap (or nandroid) backup and recovery of your Droid X2
 
hellhunter
Old
#16  
Junior Member
Thanks Meter 0
Posts: 7
Join Date: Dec 2009
Question Any update

did you ever get this figured out? I'm having the same frustrations on mine. Mine won't install the 2.3.5 update due to it not recognizing the Quickoffice.apk and I'm trying to push the files manually, but I'm having no luck getting past the same you've posted here.
 
ashclepdia
Old
#17  
ashclepdia's Avatar
Senior Member
Thanks Meter 1111
Posts: 3,908
Join Date: Aug 2011
Location: under philadelphia above Delaware, beer heaven
Quote:
Originally Posted by hellhunter View Post
did you ever get this figured out? I'm having the same frustrations on mine. Mine won't install the 2.3.5 update due to it not recognizing the Quickoffice.apk and I'm trying to push the files manually, but I'm having no luck getting past the same you've posted here.
I've got a better idea to fix your issue brotha!

From my nexus tappin the talk
<edit post successful>
Off topic gone??? Mods got you down??? Visit motcher41's
Google+ Droid Friends & General Help Community
Anyone and virtually anything welcome there!
My GALAXY NEXUS(huzzah!) is running

Don't get left in the dark!
 
ashclepdia
Old
#18  
ashclepdia's Avatar
Senior Member
Thanks Meter 1111
Posts: 3,908
Join Date: Aug 2011
Location: under philadelphia above Delaware, beer heaven
Quote:
Originally Posted by hellhunter View Post
did you ever get this figured out? I'm having the same frustrations on mine. Mine won't install the 2.3.5 update due to it not recognizing the Quickoffice.apk and I'm trying to push the files manually, but I'm having no luck getting past the same you've posted here.
Do this
Sbf to 2.3.4
(or 2.3.3& take one ota To get to 2.3.4...however you want to do it..just be bone stock 2.3.4 )
Root your device.
BUT DO NOT USE ZERGRUSH TO ROOT
Use petes Motorola one click root method.
Then continue the process as normal from there on out.
Trust me in this. Zergrush root method is not playing nice with your /system partition, (if you notice during the root process it might say something like "making room in system,"= or "moving/deleting app to make room" something similar)
And when it does that, it's messing up how the update checks for untouched stock apps.
Let me know how it goes.
This solution has worked for COUNTLESS others so far, zergrush has always been the culprit when it comes to failing to find certain apk or system file that needs to be there for the update to install.

From my nexus tappin the talk
<edit post successful>
Off topic gone??? Mods got you down??? Visit motcher41's
Google+ Droid Friends & General Help Community
Anyone and virtually anything welcome there!
My GALAXY NEXUS(huzzah!) is running

Don't get left in the dark!
The Following User Says Thank You to ashclepdia For This Useful Post: [ Click to Expand ]
 
iBolski
Old
(Last edited by iBolski; 17th May 2012 at 01:11 PM.)
#19  
iBolski's Avatar
Senior Member
Thanks Meter 259
Posts: 776
Join Date: Nov 2010
Location: Columbus
Quote:
Originally Posted by jamesh0317 View Post
Try:
Code:
adb devices
adb remount
adb push [filename] [destination]
adb reboot
the "adb remount" remounts the fs RW instead of the default RO.
This won't work with Eclipse since it's not using 2nd init. I asked this question in the Eclipse forums and Nitro responded with the following:

Quote:
Not without using 2nd init. All of that works due to being able to load its own init.rc which starts services and passes parameters, etc.. during boot time. It is possible to make a stock rom use 2nd init. CM9 will not even have root enabled by default. The only other way to push stuff is to enable root shell prior to pushing.
I know that CM7 allows using the adb remount, but that's because it's using 2nd init. I had also asked the question about why CM7 defaults to root shell when you adb shell into it and that's why he mentions how CM9 won't have root enabled by default.

The way I push to Eclipse is to run root explorer on my phone and mount the directory r/w. Then, I can use "adb push" to the phone.
Please hit "Thanks" if this post helped you.

Stock RAZR MAXX
32gb Nexus 7
 
hellhunter
Old
#20  
Junior Member
Thanks Meter 0
Posts: 7
Join Date: Dec 2009
Quote:
Originally Posted by ashclepdia View Post
Do this
Sbf to 2.3.4
(or 2.3.3& take one ota To get to 2.3.4...however you want to do it..just be bone stock 2.3.4 )
Root your device.
BUT DO NOT USE ZERGRUSH TO ROOT
Use petes Motorola one click root method.
Then continue the process as normal from there on out.
Trust me in this. Zergrush root method is not playing nice with your /system partition, (if you notice during the root process it might say something like "making room in system,"= or "moving/deleting app to make room" something similar)
And when it does that, it's messing up how the update checks for untouched stock apps.
Let me know how it goes.
This solution has worked for COUNTLESS others so far, zergrush has always been the culprit when it comes to failing to find certain apk or system file that needs to be there for the update to install.
I think I may have tried that in one of my iterations. Originally I had it rooted with One-Click and then I was having issues with the 2.3.5 OTA update (quickoffice.apk) and at this point I've SBF'ed and rooted it probably 5 times this week so far. Rooted with both One-click and zergRush at various times. Actually I think every time except this last time has been with one-click. So I don't think that has seemed to make a difference for me so far. I can try it again, but if there's any other advice to throw out in the mean time, I'll take it.

Alternatively, I may take the new phone (the first replacement they sent had 2.3.5 on it, but a bad menu key causing the phone to flip out), load Titanium Backup on it, backup all the system apps and restore them to my original phone. Worst case is I have to SBF it again. But that seems like a logical process since I will have two phones available.

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...