Android-dev.it Community

 
Annunci

:arrow: Benvenuto!, se non sei ancora un utente registrato: puoi registrati qui, oppure effettua il login
:arrow: Apri un forum sul tuo nuovo smartphone Android e collabora con noi! (dettagli)

www.agendadigitale.org
Image


Sponsor
It is currently Fri May 18, 2012 4:54 pm

All times are UTC + 1 hour


 Topics   Replies   Views   Last post 
No new posts rom per galaxy i7500 android 2.3.4 funzionante

by vince95 on Sun May 13, 2012 1:49 pm in Samsung Galaxy i7500

0

46

Sun May 13, 2012 1:49 pm

vince95

No new posts [GUIDA] Reset del Galaxy tramite ODIN (FW ufficiale JC5)

[ Go to page: 1 ... 4, 5, 6 ]

by MiRkO91 on Thu Apr 26, 2012 12:26 am in Samsung Galaxy i7500

57

6548

Thu Apr 26, 2012 12:26 am

MiRkO91

No new posts Attachment(s) [GUIDA] Installazione GAOSP3 Nightly 13/06 (Android 2.3.4)

[ Go to page: 1 ... 10, 11, 12 ]

by MiRkO91 on Mon Feb 13, 2012 12:14 am in Samsung Galaxy i7500

112

8108

Mon Feb 13, 2012 12:14 am

MiRkO91

No new posts Android Market vuoto

by Uranus on Thu Jan 05, 2012 11:53 am in Samsung Galaxy i7500

4

333

Thu Jan 05, 2012 11:53 am

Uranus

No new posts Durata della batteria

[ Go to page: 1, 2 ]

by MiRkO91 on Tue Nov 08, 2011 1:19 am in Samsung Galaxy i7500

14

3314

Tue Nov 08, 2011 1:19 am

MiRkO91




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: [RISOLTO] APN AUTHENTIFICATION TYPE su Android Galaxy
PostPosted: Tue Sep 01, 2009 1:17 pm 
Offline
Moderatore
User avatar

Joined: Thu Dec 27, 2007 3:51 pm
Posts: 986
Cellulare Android: HTC Dream
Operatore: TIM
Punti Android: 1320
Ciao a tutti gli amici possessori del Galaxy, su un altro post del forum ho letto che nel Galaxy, tra le voci di configurazione dell' APN, esiste anche la voce:
AUTHENTIFICATION TYPE.
Qualcuno può confermare ?
Sul Dream mi sembra che questa voce non esiste....


Top
 Profile  
 
 Post subject: Re: APN AUTHENTIFICATION TYPE su Android Galaxy
PostPosted: Mon Sep 14, 2009 8:12 pm 
Offline
User avatar

Joined: Mon Aug 24, 2009 1:04 pm
Posts: 7
Operatore: TIM
Punti Android: ?
Ciao,
no non esiste questa voce sul Galaxy.


Top
 Profile  
 
 Post subject: Re: APN AUTHENTIFICATION TYPE su Android Galaxy
PostPosted: Thu Sep 17, 2009 1:34 pm 
Offline
Moderatore
User avatar

Joined: Thu Dec 27, 2007 3:51 pm
Posts: 986
Cellulare Android: HTC Dream
Operatore: TIM
Punti Android: 1320
Mi sembrava troppo bello per essere vero....
vabbe', dovro' cercare come impostare l'autenticazione piu' a basso livello!


Top
 Profile  
 
 Post subject: Re: APN AUTHENTIFICATION TYPE su Android Galaxy
PostPosted: Thu Sep 17, 2009 3:48 pm 
Offline
Moderatore
User avatar

Joined: Thu Jan 15, 2009 12:53 pm
Posts: 4653
Location: Valli di Lisciano!! (Ascoli Piceno)
Cellulare Android: HTC Desire
Operatore: Wind
Punti Android: 5239
sarebbe verix??eviti di usare apndroid??

_________________
HTC DESIRE ROOTED (no s-off)
Clockwork recovery
InsertCoin



MOTOROLA FLIPOUT ROOTED
No recovery (ancora per poco)
Rom original deblur 1.14.2



HTC G1 U.S.A ROOTED
Caution 2.2
SPL 1.33.2005
Recovery AmonRa



***URLs are hidden from guests, please register and login to view the hyperlink***

***URLs are hidden from guests, please register and login to view the hyperlink***

***URLs are hidden from guests, please register and login to view the hyperlink***

***URLs are hidden from guests, please register and login to view the hyperlink***


Top
 Profile  
 
 Post subject: Re: APN AUTHENTIFICATION TYPE su Android Galaxy
PostPosted: Fri Sep 18, 2009 5:32 pm 
Offline
User avatar

Joined: Tue Sep 08, 2009 2:11 pm
Posts: 5
Cellulare Android: Samsung Galaxy i7500
Operatore: Vodafone
Punti Android: 6
Verix wrote:
Ciao a tutti gli amici possessori del Galaxy, su un altro post del forum ho letto che nel Galaxy, tra le voci di configurazione dell' APN, esiste anche la voce:
AUTHENTIFICATION TYPE.
Qualcuno può confermare ?
Sul Dream mi sembra che questa voce non esiste....



Ma veramente è presente:

None
Secure (CHAP)
Normal (PAP)

è l'ultima opzione dei profili apn ;)


Top
 Profile  
 
 Post subject: Re: APN AUTHENTIFICATION TYPE su Android Galaxy
PostPosted: Fri Sep 25, 2009 11:21 am 
Offline
Moderatore
User avatar

Joined: Thu Dec 27, 2007 3:51 pm
Posts: 986
Cellulare Android: HTC Dream
Operatore: TIM
Punti Android: 1320
Aglar wrote:
Verix wrote:
Ma veramente è presente:
None
Secure (CHAP)
Normal (PAP)

è l'ultima opzione dei profili apn ;)


Grazie Aglar,
infatti ho verificato anche da altre parti che l'opzione sul Galaxy è presente: devo usare un APN che richiede PAP come metodo di autenticazione e purtroppo sul Dream questa opzione non c'e' e non ho capito se è possibile attivarla usando le proprietà di Android (setprop ....). Il fatto che sul Galaxy ci sia mi sembra una conferma che Android supporta anche il PAP come metodo di autenticazione (mi torna, perche' e' il metodo piu' "di base" che ci sia).

Potresti dirmi che versione del firmware stai usando ?

Grazie!


Top
 Profile  
 
 Post subject: Re: APN AUTHENTIFICATION TYPE su Android Galaxy
PostPosted: Sat Sep 26, 2009 3:20 pm 
Offline
Moderatore
User avatar

Joined: Thu Dec 27, 2007 3:51 pm
Posts: 986
Cellulare Android: HTC Dream
Operatore: TIM
Punti Android: 1320
Ho provato a prendere il package Settings.apk da un firmware Galaxy e copiarlo sul mio Dream ma non funge; vabbe', poco male, in fondo questo apk serve solo per "vedere" il campo APN Authentication come ultima voce nella schermata che mostra il profilo dell'APN, per poi andare a scrivere sul database che contiene i profili, che è questo:
Code:
/data/data/com.android.providers.telephony/databases/telephony.db

Come prevedevo, nel mio Dream la tabella "carriers" che contiene i settings degli APN ha questa struttura:
Code:
"_id","name","numeric","mcc","mnc","apn","user","server","password","proxy","port","mmsproxy","mmsport","mmsc","type","current"
quindi dopo il campo "type" c'è solo il flag "current" che indica se l'APN fa parte di quelli impostati dall'utente.

Qualche anima pia che ha il galaxy potrebbe postare in questo thread il suddetto database: vorrei verificare che nel caso del Galaxy esiste anche un campo che memorizza il settings dell'autenticazioen (none/PAP/CHAP).
Per copiare il database basta usare l'adb:
Code:
adb pull /data/data/com.android.providers.telephony/databases/telephony.db .

(con il punto finale per copiare il file nella directory corrente)

Grazie


Top
 Profile  
 
 Post subject: Re: APN AUTHENTIFICATION TYPE su Android Galaxy
PostPosted: Sun Sep 27, 2009 2:32 pm 
Offline
Moderatore
User avatar

Joined: Thu Dec 27, 2007 3:51 pm
Posts: 986
Cellulare Android: HTC Dream
Operatore: TIM
Punti Android: 1320
Altre info utili sulla questione, ottenute scandagliando il codice di Android.

La versione 1.6 (Donut) supporta sia PAP che CHAP e l'autenticazione viene tentata ogni qual volta i campi username e password del profilo APN sono diversi da null, come si deduce da qui (mentre il campo AuthType sul database è ancora un TODO item):
[platform/frameworks/base.git]/telephony/java/com/android/internal/telephony/RIL.java
Code:
1255     /**
1256      * The preferred new alternative to setupDefaultPDP that is1257      * CDMA-compatible.
1258      *
1259      */
1260     public void
1261     setupDataCall(String radioTechnology, String profile, String apn,
1262             String user, String password, Message result) {
1263         RILRequest rr
1264                 = RILRequest.obtain(RIL_REQUEST_SETUP_DATA_CALL, result);
1265
1266         rr.mp.writeInt(6);
1267
1268         rr.mp.writeString(radioTechnology);
1269         rr.mp.writeString(profile);
1270         rr.mp.writeString(apn);
1271         rr.mp.writeString(user);
1272         rr.mp.writeString(password);
1273         //TODO(): Add to the APN database, AuthType is set to CHAP/PAP
1274         // 0 => Neither PAP nor CHAP will be performed, 3 => PAP / CHAP will be performed.
1275         if (user != null)
1276             rr.mp.writeString("3");
1277         else
1278             rr.mp.writeString("0");
1279
1280         if (RILJ_LOGD) riljLog(rr.serialString() + "> " + requestToString(rr.mRequest) + " "
1281                 + apn);
1282
1283         send(rr);
1284     }

platform/hardware/ril.git]/include/telephony/ril.h
Code:
1234  * ((const char **)data)[5] is the PAP / CHAP auth type. Values:
1235  *                          0 => PAP and CHAP is never performed.
1236  *                          1 => PAP may be performed; CHAP is never performed.
1237  *                          2 => CHAP may be performed; PAP is never performed.
1238  *                          3 => PAP / CHAP may be performed - baseband dependent.


Sulla versione Cupcake, negli stessi files, non si tyrova traccia della gestione dell'autenticazione...


Top
 Profile  
 
 Post subject: Re: [RISOLTO] APN AUTHENTIFICATION TYPE su Android Galaxy
PostPosted: Tue Jan 12, 2010 5:13 pm 
Offline
Moderatore
User avatar

Joined: Thu Dec 27, 2007 3:51 pm
Posts: 986
Cellulare Android: HTC Dream
Operatore: TIM
Punti Android: 1320
Problema risolto :tleft: ,
trovate la guida qui: ***URLs are hidden from guests, please register and login to view the hyperlink***


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

Topic Tags

Android, APN, authentication, Galaxy


All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
phpBB SEO

All trademarks and logos used in this site are of properties of their respective owners.