Issue in booting the new Android opensource 1.5(API level 3)

23 views
Skip to first unread message

John

unread,
Apr 25, 2009, 5:34:07 AM4/25/09
to android-porting
Hello friends,
I downloded the latest Android opensource 1.5 (API
level 3) dated 24-April-2009 from GIT and compiled for to boot with
the omap 2430 board.But after the Android logo am getting system
halted message in the minicom and in target lcd it displays as the
battery is getting low less than 15% remaining and then the power off
msg comes and the system hangs there.

Any help would be highly appreciated.


logcat message for system halting

D/ActivityManager( 565): Start running!
I/Zygote ( 565): Process: zygote socket opened
I/ActivityManager( 565): Start proc com.android.phone for added
application com.android.phone: pid=602 uid=1001 gids={3002, 3001,
3003}
I/ActivityManager( 565): Start proc android.process.acore for
activity com.android.launcher/.Launcher: pid=604 uid=10000 gids={3003}
D/ShutdownThread( 565): Notifying thread to start radio shutdown
W/ResourceType( 565): No package identifier when getting value for
resource number 0x00000000
W/StatusBar( 565): Icon not found in <system>: 0
D/ShutdownThread( 565): Radio aSystem halted.
nd Bluetooth shutdown complete.
D/ShutdownThread( 565): Shutting down power.
I/ActivityThread( 604): Publishing provider user_dictionary:
com.android.providers.userdictionary.UserDictionaryProvider
D/StatusBar( 565): updateResources
I/ActivityThread( 604): Publishing provider
com.android.googlesearch.SuggestionProvider:
com.android.googlesearch.SuggestionProvider
I/ActivityThread( 602): Publishing provider mms-sms:
com.android.providers.telephony.MmsSmsProvider
I/ActivityThread( 604): Publishing provider contacts;call_log:
com.android.providers.contacts.ContactsProvider
I/ActivityThread( 602): Publishing provider mms:
com.android.providers.telephony.MmsProvider
I/ActivityThread( 602): Publishing provider telephony:
com.android.providers.telephony.TelephonyProvider
I/ActivityThread( 602): Publishing provider sms:
com.android.providers.telephony.SmsProvider
I/ActivityThread( 602): Publishing provider sim:
com.android.phone.SimProvider
W/ActivityManager( 565): Unable to start service Intent
{ action=android.accounts.IAccountsService comp=
{com.google.android.googleapps/
com.google.android.googleapps.GoogleLoginService} }: not found
W/AccountMonitor( 604): Couldn't connect to Intent
{ action=android.accounts.IAccountsService comp=
{com.google.android.googleapps/
com.google.android.googleapps.GoogleLoginService} } (Missing service?)
I/ActivityThread( 604): Publishing provider
com.android.launcher.settings: com.android.launcher.LauncherProvider
E/ApplicationContext( 604): Couldn't rename file /data/data/
com.android.launcher/shared_prefs/launcher.xml to backup file /data/
data/com.android.launcher/shared_prefs/launcher.xml.bak

Nick Pelly

unread,
Apr 29, 2009, 11:29:55 AM4/29/09
to android...@googlegroups.com
The framework assumes that if it can't get the battery level then the
battery level is zero, and shuts down. This is bad framework behavior,
but you can workaround by providing a battery level. I don't know off
the top of my head what interface this uses, but I have a feeling
UEvent may be involved.

Nick

cindy_king_1024

unread,
Apr 30, 2009, 7:35:28 AM4/30/09
to android...@googlegroups.com
Hi,I meet with the same case,when it boot up with the logo,it will power down,just like:
 
VFS: Mounted root (nfs filesystem).
Freeing init memory: 440K
Warning: unable to open an initial console.
init: cannot open '/initlogo.rle'
init: cannot find '/system/bin/playmp3', disabling 'bootsound'
sh: can't access tty; job control turned off
# warning: `rild' uses 32-bit capabilities (legacy support in use)
android_power: wakeup (0->0) at 75883087171 (2000-01-01 00:01:14.743469203 UTC)
Power down.


网易邮箱,中国第一大电子邮件服务商

Elvis Dowson

unread,
Apr 30, 2009, 2:26:43 PM4/30/09
to android-porting
Hi,
Here is a temporary workaround for this issue. I don't have a
battery so I was forced to stub the calls and return a 100% for the
required battery parameters.

Best regards,

Elvis

diff --git a/services/jni/com_android_server_BatteryService.cpp b/
services/jni/com_android_server_BatteryService.cpp
index 6636a97..ec66cae 100644
--- a/services/jni/com_android_server_BatteryService.cpp
+++ b/services/jni/com_android_server_BatteryService.cpp
@@ -150,12 +150,14 @@ static void setBooleanField(JNIEnv* env, jobject
obj, const char* path, jfieldID
const int SIZE = 16;
char buf[SIZE];

- jboolean value = false;
+ jboolean value = true;
+/*
if (readFromFile(path, buf, SIZE) > 0) {
if (buf[0] == '1') {
value = true;
}
}
+*/
env->SetBooleanField(obj, fieldID, value);
}

@@ -164,10 +166,13 @@ static void setIntField(JNIEnv* env, jobject
obj, const char* path, jfieldID fie
const int SIZE = 128;
char buf[SIZE];

- jint value = 0;
+ jint value = 100;
+
+/*
if (readFromFile(path, buf, SIZE) > 0) {
value = atoi(buf);
}
+*/
env->SetIntField(obj, fieldID, value);
}

@@ -181,6 +186,12 @@ static void android_server_BatteryService_update
(JNIEnv* env, jobject obj)
setIntField(env, obj, BATTERY_VOLTAGE_PATH,
gFieldIds.mBatteryVoltage);
setIntField(env, obj, BATTERY_TEMPERATURE_PATH,
gFieldIds.mBatteryTemperature);

+ env->SetIntField(obj, gFieldIds.mBatteryStatus,
gConstants.statusFull);
+ env->SetIntField(obj, gFieldIds.mBatteryHealth,
gConstants.healthGood);
+ env->SetObjectField(obj, gFieldIds.mBatteryTechnology, env-
>NewStringUTF("1"));
+
+
+/*
const int SIZE = 128;
char buf[SIZE];

@@ -192,6 +203,9 @@ static void android_server_BatteryService_update
(JNIEnv* env, jobject obj)

if (readFromFile(BATTERY_TECHNOLOGY_PATH, buf, SIZE) > 0)
env->SetObjectField(obj, gFieldIds.mBatteryTechnology, env-
>NewStringUTF(buf));
+
+*/
+
}

static JNINativeMethod sMethods[] = {

cindy_king_1024

unread,
May 6, 2009, 5:35:33 AM5/6/09
to android...@googlegroups.com
From the logcat I catch:
 
W/ResourceType(  706): No package identifier when getting value for resource number 0x7f030003
W/ResourceType(  706): No package identifier when getting value for resource number 0x7f03000c
W/ResourceType(  706): No package identifier when getting value for resource number 0x7f030000
W/ResourceType(  706): No package identifier when getting value for resource number 0x7f030000
D/ActivityManager(  706): Start running!
D/dalvikvm(  706): GC freed 3830 objects / 239528 bytes in 119ms
I/Zygote  (  706): Process: zygote socket opened
I/ActivityManager(  706): Start proc com.android.phone for added application com.android.phone: pid=
743 uid=1001 gids={3002, 3001, 3003}
I/ActivityManager(  706): Start proc android.process.acore for activity com.android.launcher/.Launch
er: pid=757 uid=10001 gids={3003}
D/ShutdownThread(  706): Notifying thread to start radio shutdown
W/ResourceType(  706): No package identifier when getting value for resource number 0x00000000
W/StatusBar(  706): Icon not found in <system>: 0
D/ShutdownThread(  706): Radio and Bluetooth shutdown complete.
D/ShutdownThread(  706): Shutting down power.
Power down.

Is anybody can help to deal with it?
Thanks!
穿越地震带 纪念汶川地震一周年

chrisk

unread,
Jun 25, 2009, 6:09:22 PM6/25/09
to android-porting
Hi all,

Does anybody know if this issue has been resolved? I am looking
through issue tracker and gerrit and do not see it reported.
Can somebody refer me to a gerrit ID where I can see the solution?

Thanks,
Chris

On May 6, 4:35 am, cindy_king_1024 <cindy_king_1...@126.com> wrote:
> From the logcat I catch:
>
> W/ResourceType( 706): No package identifier when getting value for resource number 0x7f030003
> W/ResourceType( 706): No package identifier when getting value for resource number 0x7f03000c
> W/ResourceType( 706): No package identifier when getting value for resource number 0x7f030000
> W/ResourceType( 706): No package identifier when getting value for resource number 0x7f030000
> D/ActivityManager( 706): Start running!
> D/dalvikvm( 706): GC freed 3830 objects / 239528 bytes in 119ms
> I/Zygote ( 706): Process: zygote socket opened
> I/ActivityManager( 706): Start proc com.android.phone for added application com.android.phone: pid=
> 743 uid=1001 gids={3002, 3001, 3003}
> I/ActivityManager( 706): Start proc android.process.acore for activity com.android.launcher/.Launch
> er: pid=757 uid=10001 gids={3003}
> D/ShutdownThread( 706): Notifying thread to start radio shutdown
> W/ResourceType( 706): No package identifier when getting value for resource number 0x00000000
> W/StatusBar( 706): Icon not found in <system>: 0
> D/ShutdownThread( 706): Radio and Bluetooth shutdown complete.
> D/ShutdownThread( 706): Shutting down power.
> Power down.
>
> Is anybody can help to deal with it?
> Thanks!
>
> 在2009-04-30 19:35:28,cindy_king_1024 <cindy_king_1...@126.com> 写道:
>
> Hi,I meet with the same case,when it boot up with the logo,it will power down,just like:
>
> VFS: Mounted root (nfs filesystem).
> Freeing init memory: 440K
> Warning: unable to open an initial console.
> init: cannot open '/initlogo.rle'
> init: cannot find '/system/bin/playmp3', disabling 'bootsound'
> sh: can't access tty; job control turned off
> # warning: `rild' uses 32-bit capabilities (legacy support in use)
> android_power: wakeup (0->0) at 75883087171 (2000-01-01 00:01:14.743469203 UTC)
> Power down.
>
> 在2009-04-29?23:29:55,"Nick?Pelly"?<npe...@google.com>?写道:
>
>
>
>
>
> >The?framework?assumes?that?if?it?can't?get?the?battery?level?then?the
> >battery?level?is?zero,?and?shuts?down.?This?is?bad?framework?behavior,
> >but?you?can?workaround?by?providing?a?battery?level.?I?don't?know?off
> >the?top?of?my?head?what?interface?this?uses,?but?I?have?a?feeling
> >UEvent?may?be?involved.
>
> >Nick
>
> >On?Sat,?Apr?25,?2009?at?2:34?AM,?John?<arunpra...@gmail.com>?wrote:
>
> >>?Hello?friends,
> >>?????????????????I?downloded?the?latest?Android?opensource?1.5?(API
> >>?level?3)?dated?24-April-2009??from?GIT?and?compiled?for?to?boot?with
> >>?the?omap?2430?board.But?after?the?Android?logo?am?getting?system
> >>?halted?message?in?the?minicom?and?in?target?lcd?it?displays?as?the
> >>?battery?is?getting?low?less?than?15%?remaining?and?then?the?power?off
> >>?msg?comes?and?the?system?hangs?there.
>
> >>?Any?help?would?be?highly?appreciated.
>
> >>?logcat?message?for?system?halting
>
> >>?D/ActivityManager(??565):?Start?running!
> >>?I/Zygote??(??565):?Process:?zygote?socket?opened
> >>?I/ActivityManager(??565):?Start?proc?com.android.phone?for?added
> >>?application?com.android.phone:?pid=602?uid=1001?gids={3002,?3001,
> >>?3003}
> >>?I/ActivityManager(??565):?Start?proc?android.process.acore?for
> >>?activity?com.android.launcher/.Launcher:?pid=604?uid=10000?gids={3003}
> >>?D/ShutdownThread(??565):?Notifying?thread?to?start?radio?shutdown
> >>?W/ResourceType(??565):?No?package?identifier?when?getting?value?for
> >>?resource?number?0x00000000
> >>?W/StatusBar(??565):?Icon?not?found?in?<system>:?0
> >>?D/ShutdownThread(??565):?Radio?aSystem?halted.
> >>?nd?Bluetooth?shutdown?complete.
> >>?D/ShutdownThread(??565):?Shutting?down?power.
> >>?I/ActivityThread(??604):?Publishing?provider?user_dictionary:
> >>?com.android.providers.userdictionary.UserDictionaryProvider
> >>?D/StatusBar(??565):?updateResources
> >>?I/ActivityThread(??604):?Publishing?provider
> >>?com.android.googlesearch.SuggestionProvider:
> >>?com.android.googlesearch.SuggestionProvider
> >>?I/ActivityThread(??602):?Publishing?provider?mms-sms:
> >>?com.android.providers.telephony.MmsSmsProvider
> >>?I/ActivityThread(??604):?Publishing?provider?contacts;call_log:
> >>?com.android.providers.contacts.ContactsProvider
> >>?I/ActivityThread(??602):?Publishing?provider?mms:
> >>?com.android.providers.telephony.MmsProvider
> >>?I/ActivityThread(??602):?Publishing?provider?telephony:
> >>?com.android.providers.telephony.TelephonyProvider
> >>?I/ActivityThread(??602):?Publishing?provider?sms:
> >>?com.android.providers.telephony.SmsProvider
> >>?I/ActivityThread(??602):?Publishing?provider?sim:
> >>?com.android.phone.SimProvider
> >>?W/ActivityManager(??565):?Unable?to?start?service?Intent
> >>?{?action=android.accounts.IAccountsService?comp=
> >>?{com.google.android.googleapps/
> >>?com.google.android.googleapps.GoogleLoginService}?}:?not?found
> >>?W/AccountMonitor(??604):?Couldn't?connect?to?Intent
> >>?{?action=android.accounts.IAccountsService?comp=
> >>?{com.google.android.googleapps/
> >>?com.google.android.googleapps.GoogleLoginService}?}?(Missing?service?)
> >>?I/ActivityThread(??604):?Publishing?provider
> >>?com.android.launcher.settings:?com.android.launcher.LauncherProvider
> >>?E/ApplicationContext(??604):?Couldn't?rename?file?/data/data/
> >>?com.android.launcher/shared_prefs/launcher.xml?to?backup?file?/data/
> >>?data/com.android.launcher/shared_prefs/launcher.xml.bak
>
> >>?>
>
> 网易邮箱,中国第一大电子邮件服务商
Reply all
Reply to author
Forward
0 new messages