Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,771,463 Members 50,860 Now Online
XDA Developers Android and Mobile Development Forum

[Q] ADB command to push a file to the system directory [NOT ROOTED]

Tip us?
 
mwrobe1
Old
#1  
Member - OP
Thanks Meter 10
Posts: 31
Join Date: Dec 2012
Location: Chicagoland
Default [Q] ADB command to push a file to the system directory [NOT ROOTED]

If this is in the wrong place then I apologize. I have a stock AT&T Galaxy S3 now running 4.3.

I like TW for whatever reason and recently unrooted to go from 4.1.2 to 4.3. There is one hack that I found on this site that was wonderful...Auto-connect Data on sending/receiving MMS (http://forum.xda-developers.com/gala...g-mms-t2102186) I work out of my house and I'm always on wifi...for the battery savings I toggle mobile data off when I'm at home. On an unmodified GS3, when mobile data is off...you don't get MMS (until I found the edit to the \system\csc\feature.xml file to force connect it.)

Problem is, with the unrooted stock ROM and KNOX I can't get write privs to that file (and the whole system directory) w/o rooting. (or so I thought?) I did a little digging and came up with what I think is a workaround...but before I spend any time with it, I got a few questions.

Say I make a copy of the feature.xml file to my sdcard and make the auto connect edit to it: <CscFeature_RIL_ForceConnectMMS>true</CscFeature_RIL_ForceConnectMMS>

Would the following adb commands work to push my modified feature.xml file to the system/csc directory? Or is root and/or KNOX removal completely necessary?

Code:
adb shell
su
mount -o rw, remount /dev/block/stl9 /system
dd if=/sdcard/feature.xml of=/system/csc/feature.xml
 
shaggydiamond
Old
#2  
shaggydiamond's Avatar
Senior Member
Thanks Meter 58
Posts: 391
Join Date: Nov 2009
Location: area 51
Quote:
Originally Posted by mwrobe1 View Post
If this is in the wrong place then I apologize. I have a stock AT&T Galaxy S3 now running 4.3.

I like TW for whatever reason and recently unrooted to go from 4.1.2 to 4.3. There is one hack that I found on this site that was wonderful...Auto-connect Data on sending/receiving MMS (http://forum.xda-developers.com/gala...g-mms-t2102186) I work out of my house and I'm always on wifi...for the battery savings I toggle mobile data off when I'm at home. On an unmodified GS3, when mobile data is off...you don't get MMS (until I found the edit to the \system\csc\feature.xml file to force connect it.)

Problem is, with the unrooted stock ROM and KNOX I can't get write privs to that file (and the whole system directory) w/o rooting. (or so I thought?) I did a little digging and came up with what I think is a workaround...but before I spend any time with it, I got a few questions.

Say I make a copy of the feature.xml file to my sdcard and make the auto connect edit to it: <CscFeature_RIL_ForceConnectMMS>true</CscFeature_RIL_ForceConnectMMS>

Would the following adb commands work to push my modified feature.xml file to the system/csc directory? Or is root and/or KNOX removal completely necessary?

Code:
adb shell
su
mount -o rw, remount /dev/block/stl9 /system
dd if=/sdcard/feature.xml of=/system/csc/feature.xml
In other words root means all access (read and write) to all partitions). If you write something to /system/ . You will need that partition to be set to read and write. which means having root!
Nexus 4: C-Rom \ Hells Doctor kernel

HTC One V: Ignorance V4
Titanium Kiss kernel

Xperia Play: Aurora Rom \ Doomkernel

HTC One S: Hard bricked it cause of superCID! (be warned)
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes