APN list is empty on master branch

573 views
Skip to first unread message

AntonyMCs

unread,
Apr 9, 2013, 7:59:22 AM4/9/13
to android-...@googlegroups.com
Hi,

At some point after android-4.2.2_r1 (I'v tested on it and it's working as expected) the apn list is empty under Settings/Wireless&Networks/More/Mobile Networks/Access Point Names, thus there is no default data connection available. I noticed it both in maguro and mako devices.
/system/etc/apns-conf.xml seem ok.

I can't find any related information around the groups, known-issues or googling around.

Does anyone experienced the same behavior?

Any help would be appreciated,
Tony

This is what I extracted from logs:

radio log:
04-09 13:24:32.302 D/TelephonyManager(  159): No /proc/cmdline exception=java.io.FileNotFoundException: /proc/cmdline: open failed: EACCES (Permission denied)
04-09 13:24:32.302 D/TelephonyManager(  159): /proc/cmdline=
....
04-09 13:24:43.404 I/PHONE   (  777): Creating GSMPhone
04-09 13:24:43.514 D/GSM     (  777): [GsmDCT] DCT.constructor
04-09 13:24:43.514 D/GSM     (  777): [GsmDCT] GsmDCT.constructor
04-09 13:24:43.514 D/        (  777): [ApnContext:default] set reason as dataEnabled,current state IDLE
04-09 13:24:43.514 D/        (  777): [ApnContext:default] setRetryCount: 0
04-09 13:24:43.514 D/GSM     (  777): [ApnContext:default] set mDependencyMet as false current state is true
04-09 13:24:43.514 D/GSM     (  777): [ApnContext:default] set enabled as true, current state is false
04-09 13:24:43.514 D/GSM     (  777): [GsmDCT] applyNewState(default, true(true), true(false))
04-09 13:24:43.514 D/GSM     (  777): [ApnContext:default] set reason as dependencyMet,current state IDLE
04-09 13:24:43.514 D/GSM     (  777): [ApnContext:default] set enabled as true, current state is true
04-09 13:24:43.514 D/GSM     (  777): [ApnContext:default] set mDependencyMet as true current state is false
04-09 13:24:43.514 D/GSM     (  777): [GsmDCT] trySetupData for type:default due to dependencyMet
04-09 13:24:43.514 D/GSM     (  777): [GsmDCT] trySetupData with mIsPsRestricted=false
04-09 13:24:43.524 D/GSM     (  777): [GsmDCT] isDataAllowed: not allowed due to - gprs= 1 - SIM not loaded
04-09 13:24:43.524 D/GSM     (  777): [GsmDCT] notifyOffApnsOfAvailability skipped apn due to isReady==false: {mApnType=default mState=IDLE mWaitingApns=null mWaitingApnsPermanentFailureCountDown=0 mApnSetting=null mDataConnectionAc=null mReason=dependencyMet mRetryCount=0 mDataEnabled=true mDependencyMet=true}
....
04-09 13:24:44.705 D/GSM     (  777): [GsmSST] updateSpnDisplay: radio is on but out of service, set plmn='Sin servicio'
04-09 13:24:44.705 D/GSM     (  777): [GsmDCT] handleMessage msg={ what=270338 when=-93ms obj=android.os.AsyncResult@4151f8c0 }
04-09 13:24:44.705 D/GSM     (  777): [GsmDCT] onRecordsLoaded: createAllApnList
04-09 13:24:44.705 D/GSM     (  777): [GsmDCT] createAllApnList: selection=numeric = '21407' and carrier_enabled = 1
04-09 13:24:44.735 D/GSM     (  777): [GsmDCT] createAllApnList: No APN found for carrier: 21407
04-09 13:24:44.735 D/GSM     (  777): [GsmDCT] createAllApnList: X mAllApns=[]
04-09 13:24:44.735 D/GSM     (  777): [GsmDCT] onRecordsLoaded: notifying data availability
....
04-09 13:24:47.228 D/GSM     (  777): [GsmSST] Poll ServiceState done:  oldSS=[0 home Movistar  21407  UMTS CSS not supported -1 -1 RoamInd=-1 DefRoamInd=-1 EmergOnly=false] newSS=[0 home Movistar  21407  UMTS CSS not supported -1 -1 RoamInd=-1 DefRoamInd=-1 EmergOnly=false] oldGprs=1 newData=0 oldMaxDataCalls=20 mNewMaxDataCalls=20 oldReasonDataDenied=-1 mNewReasonDataDenied=-1 oldType=UMTS newType=UMTS
04-09 13:24:47.228 D/GSM     (  777): [GsmDCT] handleMessage msg={ what=270352 when=0 obj=android.os.AsyncResult@415be500 }
04-09 13:24:47.228 D/GSM     (  777): [GsmDCT] onDataConnectionAttached
04-09 13:24:47.228 D/GSM     (  777): [GsmDCT] overall state is IDLE
....
04-09 13:24:47.268 D/GSM     (  777): [ApnContext:default] set reason as dataAttached,current state IDLE
04-09 13:24:47.278 D/GSM     (  777): [GsmDCT] buildWaitingApns: X apnList=[]
04-09 13:24:47.278 D/GSM     (  777): [GsmDCT] trySetupData: No APN found
04-09 13:24:47.278 D/GSM     (  777): [ApnContext:default] setState: FAILED, previous state:IDLE
04-09 13:24:47.278 D/GSM     (  777): [GsmDCT] notifyOffApnOfAvailability type:fota
04-09 13:24:47.278 D/GSM     (  777): [GsmDCT] isDataPossible(fota): possible=true isDataAllowed=true apnTypePossible=true apnContextisEnabled=false apnContextState()=IDLE
....
04-09 13:24:56.437 D/GSM     (  777): [GsmDCT] stopNetStatPoll
04-09 13:24:56.437 D/GSM     (  777): [GsmDCT] overall state is FAILED


system/main log:
04-09 13:24:35.005 I/SystemServer(  521): Telephony Registry
...
04-09 13:24:36.806 I/SystemServer(  521): Connectivity Service
04-09 13:24:36.806 D/ConnectivityService(  521): ConnectivityService starting up
...
04-09 13:24:36.827 E/MobileDataStateTracker(  521): default: Ignoring feature request because could not acquire PhoneService
04-09 13:24:36.827 E/MobileDataStateTracker(  521): default: Could not enable APN type "default"
...


Antonio Marín Cerezuela

unread,
May 13, 2013, 1:08:49 PM5/13/13
to android-...@googlegroups.com
Hi,

Although this issue has gone unnoticed, I want to add more information.

I have been digging and found that as of

Change id: Idfa06c6f39a2c15ff4f0815724823f44b76ac819
Change-Id: Ib8e7370ebc99c1518e6d9337621e64966c128a0b

APNs database version have been upgraded to 8, but only the reference xml file (frameworks/base/res/res/xml/apns.xml) have reflected this change, but not the corresponding device/*/*apns*conf*.xml

During my research I found the following files to represent apns lists and greping them i found the listed usages:

./device/generic/goldfish/data/etc/apns-conf_sdk.xml
Not used in any current project.

./device/generic/goldfish/data/etc/apns-conf.xml
./build/target/product/full_base_telephony.mk: device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml
./build/target/product/sdk.mk: device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml \
./build/target/board/generic/device.mk: device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml \
./build/target/board/generic_x86/device.mk: device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml \
./build/target/board/vbox_x86/device.mk: device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml \
./build/target/board/generic_mips/device.mk: device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml

./device/samsung/toroplus/test-apns-conf_sprint.xml
./device/samsung/toroplus/full_toroplus.mk:PRODUCT_COPY_FILES := device/samsung/toroplus/test-apns-conf_sprint.xml:system/etc/apns-conf.xml

./device/sample/etc/test-apns-conf_verizon.xml   
Not used in any current project.

./device/sample/etc/apns-conf_verizon.xml
./device/samsung/toro/full_toro.mk:    device/sample/etc/apns-conf_verizon.xml:system/etc/apns-conf.xml \
./device/samsung/toro/device.mk: device/sample/etc/apns-conf_verizon.xml:system/etc/apns-conf.xml \

./device/sample/etc/apns-full-conf.xml
./device/lge/mako/full_mako.mk:PRODUCT_COPY_FILES := device/sample/etc/apns-full-conf.xml:system/etc/apns-conf.xml
./device/samsung/maguro/full_maguro.mk:PRODUCT_COPY_FILES := device/sample/etc/apns-full-conf.xml:system/etc/apns-conf.xml

I'm not sure if the ones that are not used should be upgraded to v8 as well, but in the change I have submitted to fix this bug I have done so because their containing projects are over the change that incremented the DB version.

Currently I can only test it on mako and maguro and now the data connection is working as expected.
 


BR,
Tony

Antonio Marin

Research Dept
Swiss Mobility Solutions
Av. Locutor Vicente Hipólito 39, 2ª Planta
03540 Playa de San Juan - Alicante
Spain

www.swissmobilitysolutions.com


Este mensaje contiene información reservada y confidencial destinada exclusivamente al destinatario. Si usted no es el destinatario no está autorizado a copiar, reproducir o distribuir este mensaje ni su contenido. Si ha recibido este mensaje por error, le rogamos que nos lo notifique inmediatamente.

The information in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee(s). It may contain privileged and confidential information. If you are not the intended recipient, please destroy this message and notify us immediately. Any disclosure, copying or distribution of this message is prohibited and may be unlawful.

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

Antonio Marín Cerezuela

unread,
May 13, 2013, 1:10:58 PM5/13/13
to android-...@googlegroups.com
This is the log section justifying the change and pointing out the problem with the DB version.

D/GSM     (  764): [SIMRecords] SIMRecords: onAllRecordsLoaded set 'gsm.sim.operator.numeric' to operator='21407'
E/TelephonyProvider(  764): loadApns: db=SQLiteDatabase: /data/data/com.android.providers.telephony/databases/telephony.db parser=android.content.res.XmlBlock$Parser@421ab828
E/TelephonyProvider(  764): Exception while parsing '/system/etc/apns-conf.xml'
E/TelephonyProvider(  764): java.lang.IllegalStateException: Internal APNS file version doesn't match /system/etc/apns-conf.xml
E/TelephonyProvider(  764): at com.android.providers.telephony.TelephonyProvider$DatabaseHelper.initDatabase(TelephonyProvider.java:187)
E/TelephonyProvider(  764): at com.android.providers.telephony.TelephonyProvider$DatabaseHelper.onCreate(TelephonyProvider.java:155)
E/TelephonyProvider(  764): at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:252)
E/TelephonyProvider(  764): at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:164)
E/TelephonyProvider(  764): at com.android.providers.telephony.TelephonyProvider.insert(TelephonyProvider.java:538)
E/TelephonyProvider(  764): at android.content.ContentProvider$Transport.insert(ContentProvider.java:201)
E/TelephonyProvider(  764): at android.content.ContentResolver.insert(ContentResolver.java:866)
E/TelephonyProvider(  764): at com.android.internal.telephony.gsm.GSMPhone.updateCurrentCarrierInProvider(GSMPhone.java:1392)
E/TelephonyProvider(  764): at com.android.internal.telephony.gsm.GSMPhone.handleMessage(GSMPhone.java:1185)
E/TelephonyProvider(  764): at android.os.Handler.dispatchMessage(Handler.java:99)
E/TelephonyProvider(  764): at android.os.Looper.loop(Looper.java:137)
E/TelephonyProvider(  764): at android.app.ActivityThread.main(ActivityThread.java:5047)
E/TelephonyProvider(  764): at java.lang.reflect.Method.invokeNative(Native Method)
E/TelephonyProvider(  764): at java.lang.reflect.Method.invoke(Method.java:525)
E/TelephonyProvider(  764): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:821)
E/TelephonyProvider(  764): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:588)
E/TelephonyProvider(  764): at dalvik.system.NativeStart.main(Native Method)
E/TelephonyProvider(  764): Failed setting numeric '21407' to the current operator
D/GSM     (  764): [GsmSST] updateSpnDisplay: radio is on but out of service, set plmn='Sin servicio'
D/GSM     (  764): [GsmDCT] handleMessage msg={ what=270338 when=-215ms obj=android.os.AsyncResult@4214d388 }
D/GSM     (  764): [GsmDCT] onRecordsLoaded: createAllApnList
D/GSM     (  764): [GsmDCT] createAllApnList: selection=numeric = '21407' and carrier_enabled = 1
D/GSM     (  764): [GsmDCT] createAllApnList: CARRIERS=content://telephony/carriers
D/GSM     (  764): [GsmDCT] createAllApnList: cursor=android.content.ContentResolver$CursorWrapperInner@4210d058
D/GSM     (  764): [GsmDCT] createAllApnList: cursor.count=0
D/GSM     (  764): [GsmDCT] createAllApnList: No APN found for carrier: 21407
D/GSM     (  764): [GsmDCT] createAllApnList: X mAllApns=[]

Antonio Marin

Research Dept
Swiss Mobility Solutions
Av. Locutor Vicente Hipólito 39, 2ª Planta
03540 Playa de San Juan - Alicante
Spain

www.swissmobilitysolutions.com


Este mensaje contiene información reservada y confidencial destinada exclusivamente al destinatario. Si usted no es el destinatario no está autorizado a copiar, reproducir o distribuir este mensaje ni su contenido. Si ha recibido este mensaje por error, le rogamos que nos lo notifique inmediatamente.

The information in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee(s). It may contain privileged and confidential information. If you are not the intended recipient, please destroy this message and notify us immediately. Any disclosure, copying or distribution of this message is prohibited and may be unlawful.

Reply all
Reply to author
Forward
0 new messages