How to setup an APN settings from Adb shell?

13,029 views
Skip to first unread message

Rajesh Kumar

unread,
May 18, 2010, 4:54:21 AM5/18/10
to android-platform
Hi,

There is a option like "adb shell radiooptions 6 apn- SETUP_PDP
apn". But there is no more additional information provided how to use
it.
Anybody knows about it or any other way to setup the Apn
settings from command line.

Regards,
Rajesh Kumar

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.

Ben Stokes

unread,
May 18, 2010, 9:55:45 AM5/18/10
to android-platform
If you have remounted /system you can cat it into the file, however
this is probably considered a hack and not what you are looking for.
e.g.

cat >> /system/etc/apns-conf.xml <<EOD
<apn carrier="SFR-MMS"
apn="mmssfr"
proxy=""
port=""
user=""
password=""
server=""
mmsc="http://mms1"
mmsproxy="10.151.0.1"
mmsport="8080"
mcc="208"
mnc="10"
type="mms"
/>
EOD

Arun Kumar

unread,
May 19, 2010, 8:37:45 AM5/19/10
to android-...@googlegroups.com
Try configuring using sql commands via sqlite3 client--
 
sqlite3 /data/data/com.android.providers.telephony/databases/telephony.db "select * from carriers;"
.....
--
Regards,
Arun

Rajesh Kumar

unread,
May 20, 2010, 4:19:59 AM5/20/10
to android-platform
I can able to do the apn settings with sqlite as you mentioned.
Thanks Arun...

- Rajesh Kumar
> > android-platfo...@googlegroups.com<android-platform%2Bunsu...@googlegroups.com>
> > .

Elmer G Lussardi

unread,
Oct 3, 2016, 10:04:40 AM10/3/16
to android-platform
I need edit apn via adb, my device apn is greyed out! please direct me how do that! thanks a lot
Reply all
Reply to author
Forward
0 new messages