just50415 / android-rcs-ims-stack

Automatically exported from code.google.com/p/android-rcs-ims-stack
0 stars 0 forks source link

Application not starting #59

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi guys,

I'm trying to test this stack but I'm having some issues starting the RCS 
service. Basically it doesn't start.

I've collected this logs from the DDMS:

03-15 11:08:20.681: I/[RCS][SipManager](4200): SIP manager started
03-15 11:08:20.708: I/[RCS][MobileNetworkInterface](4200): Mobile network 
interface has been loaded
03-15 11:08:20.720: I/[RCS][WifiNetworkAccess](4200): Wi-Fi access has been 
created (interface IEEE-802.11a)
03-15 11:08:20.732: I/[RCS][SipManager](4200): SIP manager started
03-15 11:08:20.751: I/[RCS][WifiNetworkInterface](4200): Wi-Fi network 
interface has been loaded
03-15 11:08:20.829: I/[RCS][ImsModule](4200): IMS module has been created
03-15 11:08:20.829: I/[RCS][Core](4200): Terminal core is created with success
03-15 11:08:20.829: I/[RCS][ImsModule](4200): Start the IMS module
03-15 11:08:20.829: I/[RCS][CallManager](4200): Start call monitoring
03-15 11:08:20.833: I/[RCS][ImsModule](4200): IMS module is started
03-15 11:08:20.833: I/[RCS][AddressBookManager](4200): Start address book 
monitoring
03-15 11:08:20.837: I/[RCS][ImsServiceDispatcher](4200): Start background 
processing
03-15 11:08:20.849: I/[RCS][Core](4200): RCS core service has been started with 
success
03-15 11:08:20.864: I/[RCS][RcsCoreService](4200): RCS core service started 
with success
03-15 11:08:20.896: I/[RCS][ImsConnectionManager](4200): Data connection state: 
NETWORK ACCESS CHANGED
03-15 11:08:20.962: I/[RCS][WifiNetworkAccess](4200): Disconnecting from null
03-15 11:08:20.962: I/[RCS][ImsConnectionManager](4200): Data connection state: 
CONNECTED to WIFI
03-15 11:08:20.970: W/[RCS][ImsConnectionManager](4200): APN not authorized

I'm running release 2.4.0 with Froyo.

Let me know if you have any suggestion.

Thanks in advance,
Luis

Original issue reported on code.google.com by LuisFilS...@gmail.com on 15 Mar 2012 at 10:13

GoogleCodeExporter commented 8 years ago
Now in Verbose mode:
03-15 11:08:20.372: V/[RCS][SettingsDisplay](4339): Start the service
03-15 11:08:20.470: V/[RCS][StartService](4200): Start RCS service
03-15 11:08:20.485: I/[RCS][StartService](4200): Last user account is 
214018502292107
03-15 11:08:20.485: I/[RCS][StartService](4200): Current user account is 
214018502292107
03-15 11:08:20.575: V/[RCS][StartService](4200): Launch RCS service: 
HTTPS=false, boot=false
03-15 11:08:20.575: V/[RCS][LauncherUtils](4200): Launch RCS service
03-15 11:08:20.595: I/[RCS][ImsApiService](4200): IMS API service is loaded
03-15 11:08:20.595: I/[RCS][TermsApiService](4200): Terms API is loaded
03-15 11:08:20.595: I/[RCS][PresenceApiService](4200): Presence API service is 
loaded
03-15 11:08:20.595: I/[RCS][CapabilityApiService](4200): Capability API service 
is loaded
03-15 11:08:20.595: I/[RCS][MessagingApiService](4200): Messaging API service 
is loaded
03-15 11:08:20.595: I/[RCS][RichCallApiService](4200): Rich call API is loaded
03-15 11:08:20.595: I/[RCS][SipApiService](4200): SIP API is loaded
03-15 11:08:20.595: V/[RCS][RcsCoreService](4200): Start RCS core service
03-15 11:08:20.603: V/[RCS][StartService](4200): Connection event 
android.net.conn.CONNECTIVITY_CHANGE
03-15 11:08:20.603: V/[RCS][StartService](4200): Device connected - Launch RCS 
service
03-15 11:08:20.607: V/[RCS][LauncherUtils](4200): Launch RCS service
03-15 11:08:20.610: I/[RCS][RcsCoreService](4200): My RCS software release is 
2.4.0
03-15 11:08:20.614: I/[RCS][Core](4200): Terminal core initialization
03-15 11:08:20.614: I/[RCS][Core](4200): My device UUID is 
03873ae7-2511-3677-9d0b-b9f4f87e4739
03-15 11:08:20.638: I/[RCS][Core](4200): My country code is +33
03-15 11:08:20.638: I/[RCS][AddressBookManager](4200): Address book manager is 
created
03-15 11:08:20.638: I/[RCS][ImsModule](4200): IMS module initialization
03-15 11:08:20.661: I/[RCS][MobileNetworkAccess](4200): Mobile access has been 
created (interface HSDPA)
03-15 11:08:20.681: I/[RCS][SipManager](4200): SIP manager started
03-15 11:08:20.681: V/[RCS][MobileNetworkInterface](4200): Load HTTP Digest 
authentication procedure
03-15 11:08:20.708: I/[RCS][MobileNetworkInterface](4200): Mobile network 
interface has been loaded
03-15 11:08:20.720: I/[RCS][WifiNetworkAccess](4200): Wi-Fi access has been 
created (interface IEEE-802.11a)
03-15 11:08:20.732: I/[RCS][SipManager](4200): SIP manager started
03-15 11:08:20.732: V/[RCS][WifiNetworkInterface](4200): Load HTTP Digest 
authentication procedure
03-15 11:08:20.751: I/[RCS][WifiNetworkInterface](4200): Wi-Fi network 
interface has been loaded
03-15 11:08:20.751: V/[RCS][MobileNetworkInterface](4200): Load user profile 
from RCS settings database
03-15 11:08:20.821: V/[RCS][PublishManager](4200): New entity tag: null, expire 
at=-1
03-15 11:08:20.829: I/[RCS][ImsModule](4200): IMS module has been created
03-15 11:08:20.829: I/[RCS][Core](4200): Terminal core is created with success
03-15 11:08:20.829: I/[RCS][ImsModule](4200): Start the IMS module
03-15 11:08:20.829: I/[RCS][CallManager](4200): Start call monitoring
03-15 11:08:20.833: I/[RCS][ImsModule](4200): IMS module is started
03-15 11:08:20.833: I/[RCS][AddressBookManager](4200): Start address book 
monitoring
03-15 11:08:20.837: I/[RCS][ImsServiceDispatcher](4200): Start background 
processing
03-15 11:08:20.845: V/[RCS][RcsCoreService](4200): Handle event core started
03-15 11:08:20.849: I/[RCS][Core](4200): RCS core service has been started with 
success
03-15 11:08:20.864: I/[RCS][RcsCoreService](4200): RCS core service started 
with success
03-15 11:08:20.868: V/[RCS][RcsWidgetProvider](4200): Widget mode set to ON but 
not registered
03-15 11:08:20.884: V/[RCS][CallManager](4200): Call is IDLE: last number=null
03-15 11:08:20.884: V/[RCS][RichcallService](4200): Abort all pending sessions
03-15 11:08:20.884: V/[RCS][RcsWidgetProvider](4200): Widget mode set to ON but 
not registered
03-15 11:08:20.892: V/[RCS][ImsConnectionManager](4200): Connection event 
android.net.conn.CONNECTIVITY_CHANGE
03-15 11:08:20.896: I/[RCS][ImsConnectionManager](4200): Data connection state: 
NETWORK ACCESS CHANGED
03-15 11:08:20.903: V/[RCS][ImsConnectionManager](4200): Change the network 
interface to Wi-Fi
03-15 11:08:20.911: V/[RCS][WifiNetworkInterface](4200): Load user profile from 
RCS settings database
03-15 11:08:20.958: V/[RCS][ImsConnectionManager](4200): User profile has been 
reloaded
03-15 11:08:20.958: V/[RCS][ImsConnectionManager](4200): Local IP address is 
192.168.10.126
03-15 11:08:20.958: V/[RCS][ImsConnectionManager](4200): Disconnect from IMS: 
IP address has changed
03-15 11:08:20.958: V/[RCS][WifiNetworkInterface](4200): Registration has been 
terminated
03-15 11:08:20.962: I/[RCS][WifiNetworkAccess](4200): Disconnecting from null
03-15 11:08:20.962: I/[RCS][ImsConnectionManager](4200): Data connection state: 
CONNECTED to WIFI

Original comment by LuisFilS...@gmail.com on 15 Mar 2012 at 10:17

GoogleCodeExporter commented 8 years ago
Can you describe your configuration (emulator or not?, NAT or not ?)?
Can you send me your IMS config (screenshot or list) to check if there are 
missing parameters?
Thks

Original comment by jmauffret@gmail.com on 16 Mar 2012 at 9:36

GoogleCodeExporter commented 8 years ago
Hi,

Find below the information that you requested:

IMS auth procedure mobile: DIGEST
IMS auth procedure wi-fi: DIGEST
IMS username:5001
IMS display:5001
IMS private URI: 5001@ims.test.es
IMS password: 5001
IMS home domain: ims.test.es
P-CSCF address for mobile access: 212.163.175.6
P-CSCF port for mobile access: 5060
P-CSCF address for wifi access: 212.163.175.6
P-CSCF port for wifi access: 5060
IM conference URI: sip:conference-factory@ims.test.es

Capabilities: IS, VS, FT and IM Session

Auto Config mode:none
Network acess: all

The rest of the parameters are the default ones.

I'm using a real phone (not an emulator). The endpoint is behind NAT when using 
Wi-fi, but not when using Mobile Access (3G).

Thanks for the quick reply,
Luis

Original comment by LuisFilS...@gmail.com on 16 Mar 2012 at 10:03

GoogleCodeExporter commented 8 years ago
I've tested the same configuration in another phone and it worked... In this 
case the android version is 2.3.3.

Do you think I should test with an older version in my froyo phone?

Thanks,
Luis

Original comment by LuisFilS...@gmail.com on 16 Mar 2012 at 10:21

GoogleCodeExporter commented 8 years ago
FYI
I have tested with 2.3.3 and 2.3.6 without any problem on HTC & Samsung devices

Original comment by jmauffret@gmail.com on 22 Mar 2012 at 3:49

GoogleCodeExporter commented 8 years ago
Hi,

Apparently after uninstalling and installing again the application everything 
started to work... hate these errors... 
Now I can see the registrations, the capabilities discovery and the indication 
that the user is online. But, when I press the icon associated with the contact 
I cannot see the indication that I'm able to do FT or Chat. Then I enter in the 
contact's information and I can see in the bottom that indication, but if I 
press it doesnt works.
I saw this warning message when pressing the user's icon:

03-26 11:37:24.067: W/Sources(2601): Unknown type=com.orangelabs.rcs, 
mime=vnd.android.cursor.item/com.orangelabs.rcs.number
03-26 11:37:24.067: W/Sources(2601): Unknown type=com.orangelabs.rcs, 
mime=vnd.android.cursor.item/com.orangelabs.rcs.rcs-status
03-26 11:37:24.067: W/Sources(2601): Unknown type=com.orangelabs.rcs, 
mime=vnd.android.cursor.item/com.orangelabs.rcs.rcs-status.timestamp
03-26 11:37:24.067: W/Sources(2601): Unknown type=com.orangelabs.rcs, 
mime=vnd.android.cursor.item/com.orangelabs.rcs.presence.timestamp
03-26 11:37:24.067: W/Sources(2601): Unknown type=com.orangelabs.rcs, 
mime=vnd.android.cursor.item/com.orangelabs.rcs.free-text
03-26 11:37:24.067: W/Sources(2601): Unknown type=com.orangelabs.rcs, 
mime=vnd.android.cursor.item/com.orangelabs.rcs.presence-status
03-26 11:37:24.071: W/Sources(2601): Unknown type=com.orangelabs.rcs, 
mime=vnd.android.cursor.item/com.orangelabs.rcs.capability.timestamp
03-26 11:37:24.071: W/Sources(2601): Unknown type=com.orangelabs.rcs, 
mime=vnd.android.cursor.item/com.orangelabs.rcs.capability.extensions
03-26 11:37:24.071: W/Sources(2601): Unknown type=com.orangelabs.rcs, 
mime=vnd.android.cursor.item/com.orangelabs.rcs.registration-state
03-26 11:37:24.074: W/Sources(2601): Unknown type=com.orangelabs.rcs, 
mime=vnd.android.cursor.item/com.orangelabs.rcs.rcs-capable-contact

Thanks for all the help,
Luis

Original comment by LuisFilS...@gmail.com on 26 Mar 2012 at 9:56

GoogleCodeExporter commented 8 years ago
When checking the contact info, but in my second phone:

03-26 14:08:16.120: W/HtcViewContactDetailActivity(403): DataKind is null - 
accountType: com.orangelabs.rcs
03-26 14:08:16.120: W/Sources(403): Unknown type=com.orangelabs.rcs, 
mime=vnd.android.cursor.item/com.orangelabs.rcs.presence-status
03-26 14:08:16.120: W/HtcViewContactDetailActivity(403): DataKind is null - 
accountType: com.orangelabs.rcs
03-26 14:08:16.120: W/Sources(403): Unknown type=com.orangelabs.rcs, 
mime=vnd.android.cursor.item/com.orangelabs.rcs.capability.timestamp
03-26 14:08:16.120: W/HtcViewContactDetailActivity(403): DataKind is null - 
accountType: com.orangelabs.rcs
03-26 14:08:16.120: W/Sources(403): Unknown type=com.orangelabs.rcs, 
mime=vnd.android.cursor.item/com.orangelabs.rcs.capability.extensions
03-26 14:08:16.120: W/HtcViewContactDetailActivity(403): DataKind is null - 
accountType: com.orangelabs.rcs
03-26 14:08:16.120: W/Sources(403): Unknown type=com.orangelabs.rcs, 
mime=vnd.android.cursor.item/com.orangelabs.rcs.registration-state
03-26 14:08:16.120: W/HtcViewContactDetailActivity(403): DataKind is null - 
accountType: com.orangelabs.rcs
03-26 14:08:16.130: W/Sources(403): Unknown type=com.orangelabs.rcs, 
mime=vnd.android.cursor.item/com.orangelabs.rcs.rcs-capable-contact
03-26 14:08:16.130: W/HtcViewContactDetailActivity(403): DataKind is null - 
accountType: com.orangelabs.rcs
03-26 14:08:53.850: W/KeyCharacterMap(403): Can't open keycharmap file
03-26 14:08:53.850: W/KeyCharacterMap(403): Error loading keycharmap file 
'/system/usr/keychars/cy8c-touchscreen.kcm.bin'. 
hw.keyboards.65537.devname='cy8c-touchscreen'
03-26 14:08:54.220: W/dalvikvm(403): disableGcForExternalAlloc: false
03-26 14:08:54.320: E/SurfaceFlinger(141): layer=0x6489f0 is not in the 
purgatory list
03-26 14:08:55.350: W/dalvikvm(403): disableGcForExternalAlloc: false
03-26 14:08:55.440: W/Sources(403): Unknown type=com.htc.android.pcsc, 
mime=vnd.android.cursor.item/com.orangelabs.rcs.number
03-26 14:08:55.440: W/Sources(403): Unknown type=com.htc.android.pcsc, 
mime=vnd.android.cursor.item/com.orangelabs.rcs.rcs-status
03-26 14:08:55.440: W/Sources(403): Unknown type=com.htc.android.pcsc, 
mime=vnd.android.cursor.item/com.orangelabs.rcs.rcs-status.timestamp
03-26 14:08:55.440: W/Sources(403): Unknown type=com.htc.android.pcsc, 
mime=vnd.android.cursor.item/com.orangelabs.rcs.presence.timestamp
03-26 14:08:55.450: W/Sources(403): Unknown type=com.htc.android.pcsc, 
mime=vnd.android.cursor.item/com.orangelabs.rcs.free-text
03-26 14:08:55.450: W/Sources(403): Unknown type=com.htc.android.pcsc, 
mime=vnd.android.cursor.item/com.orangelabs.rcs.presence-status
03-26 14:08:55.450: W/Sources(403): Unknown type=com.htc.android.pcsc, 
mime=vnd.android.cursor.item/com.orangelabs.rcs.capability.timestamp
03-26 14:08:55.450: W/Sources(403): Unknown type=com.htc.android.pcsc, 
mime=vnd.android.cursor.item/com.orangelabs.rcs.capability.extensions
03-26 14:08:55.450: W/Sources(403): Unknown type=com.htc.android.pcsc, 
mime=vnd.android.cursor.item/com.orangelabs.rcs.registration-state
03-26 14:08:55.450: W/Sources(403): Unknown type=com.htc.android.pcsc, 
mime=vnd.android.cursor.item/com.orangelabs.rcs.event-log
03-26 14:08:55.450: W/Sources(403): Unknown type=com.htc.android.pcsc, 
mime=vnd.android.cursor.item/com.orangelabs.rcs.rcs-capable-contact
03-26 14:08:55.450: W/Sources(403): Unknown type=com.htc.android.pcsc, 
mime=vnd.android.cursor.item/com.orangelabs.rcs.capability.file-transfer
03-26 14:08:55.450: W/Sources(403): Unknown type=com.htc.android.pcsc, 
mime=vnd.android.cursor.item/com.orangelabs.rcs.capability.im-session

Thanks,
Luis

Original comment by LuisFilS...@gmail.com on 26 Mar 2012 at 12:11

GoogleCodeExporter commented 8 years ago
Hello Luis,

These logs show that your contacts have correctly been enriched with RCS 
capabilities. Be sure you have installed a UI to interact with the core 
service, as there need to be a specific UI for those custom mime-types. For 
instance 
"mime=vnd.android.cursor.item/com.orangelabs.rcs.capability.im-session" means 
your contact will have a row accessible from a UI that declares this capability 
(if you look at the RI manifest file, you will see that the InitiateChat 
activity will respond to this type of data). The demo implementation found here 
: 
http://code.google.com/p/android-rcs-ims-stack/downloads/detail?name=RCS_RI-debu
g-2.4.0.apk&can=2&q= will allow you to do some RCS basic use cases.

Now what you will see in your native address book may greatly vary depending on 
the manufacturers' implementation, some do not allow custom mime-types to be 
shown at all.

Original comment by gael.orv...@gmail.com on 26 Mar 2012 at 4:40

GoogleCodeExporter commented 8 years ago

Original comment by gael.orv...@gmail.com on 26 Mar 2012 at 4:40

GoogleCodeExporter commented 8 years ago

Hi,

I wasn't aware of this last apk, I’ve just followed the installation guide. 
Now I can do chat and also FT, although I'm having some difficulties with FT.

Many thanks for the quick update and apologize for the trouble.
Luis

Original comment by LuisFilS...@gmail.com on 28 Mar 2012 at 1:16