"(fix?) We're on the simulator; assuming data is connected" ???

10 views
Skip to first unread message

eric_mellon

unread,
Feb 10, 2009, 9:58:45 PM2/10/09
to android-porting
dear all:

i have try to build android for eee_701, with follow make command:
make TARGET_ARCH=x86 TARGET_PRODUCT=eee_701 DISABLE_DEXPREOPT=true -j2
installer_img TARGET_SIMULATOR=false TARGET_BUILD_TYPE=release

and then install it to eeepc, and then i got the follow log:

... ...
I/RIL ( 2029): Opening tty device /dev/ttyS0
D/GSM ( 2080): Notifying: radio available
W/GSM ( 2080): Can't open /system/etc/voicemail-conf.xml
D/GSM ( 2080): Notifying: SIM ready
D/GSM ( 2080): Notifying: Radio On
D/GSM ( 2080): [DataConnectionTracker] setState: CONNECTED
I/GSM ( 2080): We're on the simulator; assuming data is connected
D/GSM ( 2080): [DataConnectionTracker] Clean up connection due to
null
D/GSM ( 2080): [PdpConnection] Notify PDP disconnect
D/GSM ( 2080): [DataConnection] Stop poll NetStat
D/GSM ( 2080): [DataConnectionTracker] setState: DISCONNECTING
I/GSM ( 2080): We're on the simulator; assuming radio off is
meaningless
D/GSM ( 2080): [DataConnection] Stop poll NetStat
D/GSM ( 2080): [DataConnectionTracker] ***trySetupData due to
roamingOff
D/GSM ( 2080): [DataConnectionTracker] setState: CONNECTED
I/GSM ( 2080): (fix?) We're on the simulator; assuming data is
connected
... ...


after the system booted, it will pop up a notification:
"the process com,android.phone has stopped unexpectedly. please try
again."

i doubt that the image i have build is for simulator not for device,
is anyone know that??
is there any flag to set before build the system to assign this??

anyone can give me some ideas??
thanks a lot!!

fadden

unread,
Feb 11, 2009, 1:49:56 PM2/11/09
to android-porting
On Feb 10, 6:58 pm, eric_mellon <zhfzh...@gmail.com> wrote:
> I/GSM     ( 2080): We're on the simulator; assuming data is connected
[...]
> I/GSM     ( 2080): (fix?) We're on the simulator; assuming data is
> connected
[...]

> i doubt that the image i have build is for simulator not for device,
> is anyone know that??
> is there any flag to set before build the system to assign this??

A grep through the sources shows that these two messages come out of
frameworks/base/telephony/java/com/android/internal/telephony/gsm/
DataConnectionTracker.java. It's calling
phone.getSimulatedRadioControl().

Over in frameworks/base/telephony/java/com/android/internal/telephony/
PhoneBase.java, the call is a simple getter for
mSimulatedRadioControl. In frameworks/base/telephony/java/com/android/
internal/telephony/gsm/GSMPhone.java, it's set in the constructor if
the CommandsInterface is an instance of SimulatedRadioControl.

Searching for "new GSMPhone" turns up three entries. In frameworks/
base/telephony/java/com/android/internal/telephony/PhoneFactory.java,
we get to the heart of the matter:

if ((SystemProperties.get("ro.radio.noril","")).equals
("")) {
useNewRIL(context);
} else {
GSMPhone phone;
phone = new GSMPhone(context, new SimulatedCommands
(), sPhoneNotifier);
registerPhone (phone);
}

So... does "adb shell getprop" on your device show a value for
"ro.radio.noril"?

eric_mellon

unread,
Feb 11, 2009, 10:23:25 PM2/11/09
to android-porting

thanks fadden!

i have mark the follow:
//if ((SystemProperties.get("ro.radio.noril","")).equals
//("")) {
// useNewRIL(context);
// } else {
// GSMPhone phone;
// phone = new GSMPhone(context, new
SimulatedCommands
//(), sPhoneNotifier);
// registerPhone (phone);
// }
and just let it run:
useNewRIL(context);

now the phone service can work, but it can just send message, while
can not receive
i have check the code of rild, but not find the at command to read the
SMS, anyone know about this?? how it receive the SMS??

and can no dial, when i click the dailer, it will pop up "the process
android.process.acore has stopped unexpectedly...."
Reply all
Reply to author
Forward
0 new messages