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

Search This thread

mwrobe1

Senior Member
Dec 12, 2012
127
63
Chicagoland
Samsung Galaxy S22
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://xdaforums.com/galaxy-s3/help/auto-connect-data-sending-receiving-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

Senior Member
Nov 22, 2009
480
72
area 51
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://xdaforums.com/galaxy-s3/help/auto-connect-data-sending-receiving-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!