Authentication problem with PPPD (Android 9)

593 views
Skip to first unread message

Gianmaria Iaculo

unread,
Nov 11, 2019, 1:01:03 PM11/11/19
to android-platform
Hello,
I'm going mad about a trivial problem with AOSP 9: I've correctly implemented the u-blox ril for SARA-G450, actually I'm registered to netwotk and can see operator name on my board. My problem is on data (my modem is a GPRS quad band), during authentication with provider i see this logs:


1-07 22:52:32.063 10916 10916 I pppd.gprs: Internet protocol configuration is [IP]

11-07 22:52:32.081 10917 10917 I pppd.gprs: Configure pppd security options

11-07 22:52:32.222 10925 10925 I pppd.start: Checking parameters...

11-07 22:52:32.240 10926 10926 I pppd.start: pppd ppp_if= 0

11-07 22:52:32.259 10927 10927 I pppd.start: pppd ppp_auth= 0

11-07 22:52:32.278 10928 10928 I pppd.start: Starting pppd..

11-07 22:52:32.327 10931 10931 I pppd.start: u-blox RIL Interface is = pts

11-07 22:52:32.347 10932 10932 I pppd.start: Executing Interface = gprs1

11-07 22:52:32.381 10934 10934 I pppd    : get channel 2 device=[/dev/pts/1], (attempt 1/10)

11-07 22:52:33.381 10934 10934 I pppd    : get channel 2 device=[/dev/pts/1], (attempt 1/10)

11-07 22:52:34.384 10934 10934 I pppd    : pppd 2.4.7 started by root, uid 0

11-07 22:52:35.537 10934 10934 D pppd    : Script chat -t 15 -f /system/etc/ppp/chat-isp1 finished (pid 10936), status = 0x0

11-07 22:52:35.537 10934 10934 I pppd    : Serial connection established.

11-07 22:52:35.537 10934 10934 D pppd    : using channel 82

11-07 22:52:35.537 10934 10934 W pppd    : u-blox PPP unit 0 as it is in use

11-07 22:52:35.542 10934 10934 I pppd    : Using interface ppp0

11-07 22:52:35.543 10934 10934 I pppd    : Connect: ppp0 <--> /dev/pts/1

11-07 22:52:36.544 10934 10934 D pppd    : sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xe6952628> <pcomp> <accomp>]

11-07 22:52:36.579 10934 10934 D pppd    : rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x65aeed74> <pcomp> <accomp>]

11-07 22:52:36.579 10934 10934 D pppd    : No auth is possible

11-07 22:52:36.579 10934 10934 D pppd    : sent [LCP ConfRej id=0x1 <auth pap>]

11-07 22:52:36.579 10934 10934 D pppd    : rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xe6952628> <pcomp> <accomp>]

11-07 22:52:36.595 10934 10934 D pppd    : rcvd [LCP ConfReq id=0x2 <asyncmap 0x0> <magic 0x65aeed74> <pcomp> <accomp>]

11-07 22:52:36.595 10934 10934 D pppd    : sent [LCP ConfAck id=0x2 <asyncmap 0x0> <magic 0x65aeed74> <pcomp> <accomp>]

11-07 22:52:36.595 10934 10934 D pppd    : sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]

11-07 22:52:36.595 10934 10934 D pppd    : sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]

11-07 22:52:36.627 10934 10934 D pppd    : rcvd [LCP TermReq id=0x3 "peer refused to authenticate"]

11-07 22:52:36.627 10934 10934 I pppd    : LCP terminated by peer (peer refused to authenticate)

11-07 22:52:36.627 10934 10934 D pppd    : sent [LCP TermAck id=0x3]

11-07 22:52:39.630 10934 10934 I pppd    : Connection terminated.

11-07 22:52:40.650 10934 10934 I pppd    : Modem hangup

11-07 22:52:40.651 10934 10934 I pppd    : Exit.

11-07 22:52:40.783 10954 10954 I pppd.start: pppd exited with 16

01-03 05:16:54.105     0     0 I init    : Service 'pppd_data0' (pid 10907) exited with status 0



I cant activate data at all. I've checked the sim and the modem, if i connect to windows i can use it as a classical modem (usb) and go to the internet. It seems that PAP authentication were refused once requested by the provider (vodafone IT). Someone can give me an hint on this? I've tried all and everything. My pap-secrets contains "* * bogus", I've tried to change to empty and other values but with no results. 


Regards,

Gianmaria


Michael Trimarchi

unread,
Nov 11, 2019, 1:03:04 PM11/11/19
to android-...@googlegroups.com
Hi

I need the ril log and apn setting. Try to put dummy dummy in user and password in apn.

Buon divertimento

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/android-platform/29e3b0cf-76b0-4818-ac77-d1cf49cbbb2a%40googlegroups.com.

Michael Trimarchi

unread,
Nov 11, 2019, 1:16:13 PM11/11/19
to android-...@googlegroups.com, gianm...@nventa.it
Hi

I don't read the last part. I need to check your calling code in the ril.

Michael

Gianmaria Iaculo

unread,
Nov 13, 2019, 10:03:28 AM11/13/19
to android-platform
Hello Michael,

attached my full radio log, from start to PPP failed. What you mean by "your calling code in the ril"? What files you need? 

Thank you for your help,
gianmaria
radioLog.rtf

Muhammad Uzair Afzal

unread,
Nov 16, 2019, 4:25:21 PM11/16/19
to android-platform
It seems that PPPD requires PAP authentication in your case. Go to the "Access Points" list in your android network settings and select the APN for edit. Edit "Authentication" field and set it to "PAP" setting (first try without giving any username and password). Hopefully it will work.

Android AOSP User

unread,
Nov 16, 2019, 4:25:21 PM11/16/19
to android-platform
It seems to be an authentication issue, to make PPP connection successful you need to enable PAP option from android APN menu by manually setting username and password.
You can use these settings:
  • Username: wap
  • Password: wap
  • Authentication type: PAP
Once the authentication succeeds following PPPD logs should appear.
03-18 09:32:41.447 D/pppd    ( 3371): rcvd [PAP AuthAck id=0x1 "Login ok"]
03-18 09:32:41.447 I/pppd    ( 3371): Remote message: Login ok
03-18 09:32:41.447 I/pppd    ( 3371): PAP authentication succeeded


Also share your RIL and PPPD debug logs, if it doesn't work.

Gianmaria Iaculo

unread,
Nov 18, 2019, 9:00:48 AM11/18/19
to android-platform
Thank you for you help Muhammad,
i solved this issue a couple of days ago. It was related to a behaviour of my modem (ublox sara-g450). Not It's ok. 

Thank you again. 
Gianmaria
Reply all
Reply to author
Forward
0 new messages