MX27 Android porting problems

64 views
Skip to first unread message

Drakou

unread,
Apr 21, 2009, 9:56:42 AM4/21/09
to android-porting
Hello,

I am actually working on porting Android to an Mx27 custom board. That
board is really close to the Mx27ADS. I used the Mx31 porting advices
to make my own porting.

I have a 2.6.25 kernel with freescale and android patches. I can start
the system , get the animated ANDROID logo centered on screen . But
then nothing more happens. If I look into the log files, there is a
lot of errors and warnings. But I am too new to android system to spot
the critical one. So I request some help in analysing the log files. I
made a little selection of all Warning and Errors lines and some
usefull debug lines.

If someone could tell me where to find to solve that problems.

I/DEBUG ( 400): debuggerd: Apr 2 2009 14:18:20
I/vold ( 399): Android Volume Daemon version 2.0
E/flash_image( 408): can't find recovery partition
E/vold ( 399): Unable to open '/sys/class/mmc_host' (m)
E/vold ( 399): Unable to open '/sys/class/switch' (m)
D/vold ( 399): Bootstrapping complete
D/AndroidRuntime( 402):
D/AndroidRuntime( 402): >>>>>>>>>>>>>> AndroidRuntime START
<<<<<<<<<<<<<<
D/AndroidRuntime( 402): CheckJNI is ON
I/ ( 403): ServiceManager: 0xac38
W/AudioHardwareInterface( 403): Using stubbed audio hardware. No
sound will be produced.
E/MemoryHeapBase( 1464): error opening /dev/pmem: No such file or
directory
E/SurfaceFlinger( 1464): Couldn't open /sys/power/wait_for_fb_sleep
or /sys/power/wait_for_fb_wake
E/SurfaceFlinger( 1464): ioctl(20, VT_ACTIVATE, ...) failed, 6 (No
such device or address) for 7
E/GLLogger( 1464): couldn't load <libhgl.so> library (Cannot find
library)
W/HAL ( 1464): load: module=/system/lib/hw/copybit.intuitive.so
error=Cannot find library
W/HAL ( 1464): load: module=/system/lib/hw/copybit.default.so
error=Cannot find library
W/SurfaceFlinger( 1464): ro.sf.lcd_density not defined, using 160 dpi
by default.
W/HAL ( 1464): load: module=/system/lib/hw/copybit.intuitive.so
error=Cannot find library
W/HAL ( 1464): load: module=/system/lib/hw/copybit.default.so
error=Cannot find library
W/HAL ( 1464): load: module=/system/lib/hw/overlay.intuitive.so
error=Cannot find library
W/HAL ( 1464): load: module=/system/lib/hw/overlay.default.so
error=Cannot find library
E/GLLogger( 1464): couldn't load <libhgl.so> library (Cannot find
library)
E/PackageManager( 1464): Package com.android.providers.subscribedfeeds
requires unavailable shared library com.google.android.gtalkservice;
ignoring!
E/PackageManager( 1464): Package com.android.development requires
unavailable shared library com.google.android.maps; ignoring!
W/PackageManager( 1464): Unknown permission
com.google.android.googleapps.permission.GOOGLE_AUTH in package
com.android.providers.contacts
W/PackageManager( 1464): Unknown permission
com.google.android.googleapps.permission.GOOGLE_AUTH.cp in package
com.android.providers.contacts
W/PackageManager( 1464): Unknown permission
com.google.android.providers.gmail.permission.WRITE_GMAIL in package
com.android.settings
W/PackageManager( 1464): Unknown permission
com.google.android.providers.gmail.permission.READ_GMAIL in package
com.android.settings
W/PackageManager( 1464): Unknown permission
com.google.android.googleapps.permission.GOOGLE_AUTH in package
com.android.settings
W/PackageManager( 1464): Unknown permission
com.google.android.googleapps.permission.GOOGLE_AUTH.mail in package
com.android.calendar
W/PackageManager( 1464): Unknown permission
com.google.android.googleapps.permission.GOOGLE_AUTH in package
com.android.providers.calendar
W/PackageManager( 1464): Unknown permission
com.google.android.googleapps.permission.GOOGLE_AUTH.cl in package
com.android.providers.calendar
W/PackageManager( 1464): Unknown permission
com.google.android.googleapps.permission.GOOGLE_AUTH in package
com.android.browser
W/PackageManager( 1464): Unknown permission
com.google.android.googleapps.permission.GOOGLE_AUTH.mail in package
com.android.contacts
W/ActivityManager( 1464): Unable to start service Intent
{ action=android.accounts.IAccountsService comp=
{com.google.android.googleapps/
com.google.android.googleapps.GoogleLoginSe
rvice} }: not found
W/AccountMonitor( 1464): Couldn't connect to Intent
{ action=android.accounts.IAccountsService comp=
{com.google.android.googleapps/
com.google.android.googleapps.GoogleLoginService
} } (Missing service?)
E/BatteryService( 1464): Could not open '/sys/class/power_supply/ac/
online'
E/BatteryService( 1464): Could not open '/sys/class/power_supply/usb/
online'
E/BatteryService( 1464): Could not open '/sys/class/power_supply/
battery/present'
E/BatteryService( 1464): Could not open '/sys/class/power_supply/
battery/capacity'
E/BatteryService( 1464): Could not open '/sys/class/power_supply/
battery/batt_vol'
E/BatteryService( 1464): Could not open '/sys/class/power_supply/
battery/batt_temp'
E/BatteryService( 1464): Could not open '/sys/class/power_supply/
battery/status'
E/BatteryService( 1464): Could not open '/sys/class/power_supply/
battery/health'
E/BatteryService( 1464): Could not open '/sys/class/power_supply/
battery/technology'
E/ActivityManager( 1464): Attempt to launch receivers of broadcast
intent Intent { action=android.intent.action.POWER_DISCONNECTED }
before boot completion
E/System ( 1464): Failure starting core service
E/System ( 1464): java.lang.IllegalStateException: Cannot broadcast
before boot completed
E/System ( 1464): at
com.android.server.am.ActivityManagerService.broadcastIntent
(ActivityManagerService.java:10241)
E/System ( 1464): at android.app.ApplicationContext.sendBroadcast
(ApplicationContext.java:640)
E/System ( 1464): at com.android.server.BatteryService.update
(BatteryService.java:247)
E/System ( 1464): at com.android.server.BatteryService.<init>
(BatteryService.java:131)
E/System ( 1464): at com.android.server.ServerThread.run
(SystemServer.java:128)
E/AndroidRuntime( 1464): Crash logging skipped, no checkin service
W/ResourceType( 1464): No package identifier when getting value for
resource number 0x7f060000
W/ActivityManager( 1464): Unable to start service Intent { comp=
{com.google.android.server.checkin/
com.google.android.server.checkin.CheckinService} }: not found
W/SystemServer( 1464): Using fallback Checkin Service.
W/AudioService( 1464): Soundpool could not load file: /system/media/
audio/ui/Effect_Tick.ogg
W/AudioService( 1464): Soundpool could not load file: /system/media/
audio/ui/KeypressStandard.ogg
W/AudioService( 1464): Soundpool could not load file: /system/media/
audio/ui/KeypressSpacebar.ogg
W/AudioService( 1464): Soundpool could not load file: /system/media/
audio/ui/KeypressDelete.ogg
W/AudioService( 1464): Soundpool could not load file: /system/media/
audio/ui/KeypressReturn.ogg
W/HeadsetObserver( 1464): This kernel does not have wired headset
support
W/dalvikvm( 1464): threadid=15: thread exiting with uncaught exception
(group=0x4000fe70)
E/AndroidRuntime( 1464): Uncaught handler: thread
android.server.ServerThread exiting due to uncaught exception
E/AndroidRuntime( 1464): *** EXCEPTION IN SYSTEM PROCESS. System will
crash.
E/AndroidRuntime( 1464): java.lang.NullPointerException
E/AndroidRuntime( 1464): at com.android.server.ServerThread.run
(SystemServer.java:332)
I/ServiceManager( 397): service 'activity' died
I/ServiceManager( 397): service 'meminfo' died
I/ServiceManager( 397): service 'package' died
I/ServiceManager( 397): service 'permission' died
I/ServiceManager( 397): service 'SurfaceFlinger' died
I/ServiceManager( 397): service 'power' died
I/ServiceManager( 397): service 'batteryinfo' died
I/ServiceManager( 397): service 'usagestats' died
I/ServiceManager( 397): service 'telephony.registry' died
I/ServiceManager( 397): service 'appwidget' died
I/ServiceManager( 397): service 'cpuinfo' died
I/ServiceManager( 397): service 'activity.broadcasts' died
I/ServiceManager( 397): service 'activity.services' died
I/ServiceManager( 397): service 'activity.senders' died
I/ServiceManager( 397): service 'activity.providers' died
I/ServiceManager( 397): service 'content' died
I/ServiceManager( 397): service 'clipboard' died
I/ServiceManager( 397): service 'statusbar' died
I/ServiceManager( 397): service 'input_method' died
I/ServiceManager( 397): service 'netstat' died
I/ServiceManager( 397): service 'audio' died
I/ServiceManager( 397): service 'wifi' died
I/ServiceManager( 397): service 'mount' died
I/ServiceManager( 397): service 'connectivity' died
I/ServiceManager( 397): service 'devicestoragemonitor' died
I/ServiceManager( 397): service 'notification' died
I/ServiceManager( 397): service 'location' died
I/ServiceManager( 397): service 'search' died
I/ServiceManager( 397): service 'checkin' died
I/ServiceManager( 397): service 'wallpaper' died
I/Zygote ( 402): Exit zygote because system server (424) has
terminated

Then it restart .. and generate the same errors.

Michael Trimarchi

unread,
Apr 21, 2009, 10:03:33 AM4/21/09
to android...@googlegroups.com
These are not critical, but your android version is not ok:
the 2.6.25 use the /sys/android_power/ path instead of sys/power/path
> E/SurfaceFlinger( 1464): ioctl(20, VT_ACTIVATE, ...) failed, 6 (No
> such device or address) for 7
>
Increase the vt terminal in you kernel configuration
I think this can be critical, because it can't start the battery service.
I don't have idea to the other one.

Arnaud Derasse

unread,
Apr 21, 2009, 10:29:11 AM4/21/09
to android...@googlegroups.com
You say my android version is not ok. But what can I do ? Need to update the kernel ?
To donwload android I used the two commands :
repo init -u git://android.git.kernel.org/platform/manifest.git
repo sync

How can I switch to the good version of android to work with the 2.6.25 kernel ?

Thanks for your answers
Arnaud

2009/4/21 Michael Trimarchi <trim...@gandalf.sssup.it>

Michael Trimarchi

unread,
Apr 21, 2009, 10:51:47 AM4/21/09
to android...@googlegroups.com
Arnaud Derasse wrote:
> You say my android version is not ok. But what can I do ? Need to
> update the kernel ?
> To donwload android I used the two commands :
> repo init -u git://android.git.kernel.org/platform/manifest.git
> <http://android.git.kernel.org/platform/manifest.git>
> repo sync
>
> How can I switch to the good version of android to work with the
> 2.6.25 kernel ?
Maybe the release-1.0, but I'm not sure,
Michael
>
> Thanks for your answers
> Arnaud
>
> 2009/4/21 Michael Trimarchi <trim...@gandalf.sssup.it
> <mailto:trim...@gandalf.sssup.it>>
> <http://copybit.intuitive.so>
> > error=Cannot find library
> > W/HAL ( 1464): load:
> module=/system/lib/hw/copybit.default.so <http://copybit.default.so>
> > error=Cannot find library
> > W/SurfaceFlinger( 1464): ro.sf.lcd_density not defined, using
> 160 dpi
> > by default.
> > W/HAL ( 1464): load:
> module=/system/lib/hw/copybit.intuitive.so
> <http://copybit.intuitive.so>
> > error=Cannot find library
> > W/HAL ( 1464): load:
> module=/system/lib/hw/copybit.default.so <http://copybit.default.so>
> > error=Cannot find library
> > W/HAL ( 1464): load:
> module=/system/lib/hw/overlay.intuitive.so
> <http://overlay.intuitive.so>
> > error=Cannot find library
> > W/HAL ( 1464): load:
> module=/system/lib/hw/overlay.default.so <http://overlay.default.so>
> <http://com.google.android.googleapps.permission.GOOGLE_AUTH.cl>

Drakou

unread,
Apr 28, 2009, 9:59:51 AM4/28/09
to android-porting
I made a new kernel version 2.6.27 with freescale patches for Mx27.
I also created a power_supply sysfs driver for MC13783 PMIC .

Now, The system is starting, as soon as the window manager is on, I
have a "Power Off" menu, and the system is halting immediatly.

I can't understand why the system is halting. What could be a reason
for that ? This is the logfile : we can see the Shutdown Thread but
can't undestrand why it's trying to halt the system.

D/PowerManagerService( 481): system ready!
W/ResourceType( 481): No package identifier when getting value for
resource number 0x7f030000
W/ResourceType( 481): No package identifier when getting value for
resource number 0x7f030000
W/ResourceType( 481): No package identifier when getting value for
resource number 0x7f030003
W/ResourceType( 481): No package identifier when getting value for
resource number 0x7f03000c

D/ActivityManager( 481): Start running!
I/Zygote ( 481): Process: zygote socket opened
I/ActivityManager( 481): Start proc com.android.phone for added
application com.android.phone: pid=596 uid=1001 gids={3002, 3001,
3003}
I/ActivityManager( 481): Starting activity: Intent
{ action=android.intent.action.MAIN categories=
{android.intent.category.HOME} flags=0x10000000 comp=
{com.android.launcher/com.a
ndroid.launcher.Launcher} }
I/ActivityManager( 481): Start proc android.process.acore for
activity com.android.launcher/.Launcher: pid=600 uid=10002 gids={3003}

D/ShutdownThread( 481): Notifying thread to start radio shutdown
W/ResourceType( 481): No package identifier when getting value for
resource number 0x00000000

W/StatusBar( 481): Icon not found in <system>: 0
I/ActivityThread( 596): Publishing provider mms-sms:
com.android.providers.telephony.MmsSmsProvider
I/ActivityThread( 600): Publishing provider user_dictionary:
com.android.providers.userdictionary.UserDictionaryProvider
I/ActivityThread( 600): Publishing provider
com.android.googlesearch.SuggestionProvider:
com.android.googlesearch.SuggestionProvider
I/ActivityThread( 596): Publishing provider mms:
com.android.providers.telephony.MmsProvider
I/ActivityThread( 600): Publishing provider contacts;call_log:
com.android.providers.contacts.ContactsProvider
I/ActivityThread( 596): Publishing provider telephony:
com.android.providers.telephony.TelephonyProvider
I/ActivityThread( 596): Publishing provider sms:
com.android.providers.telephony.SmsProvider

D/ShutdownThread( 481): Radio and Bluetooth shutdown complete.
D/ShutdownThread( 481): Shutting down power.

Thanks

Arnaud

On 21 avr, 16:51, Michael Trimarchi <trimar...@gandalf.sssup.it>
wrote:
> Arnaud Derasse wrote:
> > You say my android version is not ok. But what can I do ? Need to
> > update the kernel ?
> > To donwload android I used the two commands :
> > repo init -u git://android.git.kernel.org/platform/manifest.git
> > <http://android.git.kernel.org/platform/manifest.git>
> > repo sync
>
> > How can I switch to the good version of android to work with the
> > 2.6.25 kernel ?
>
> Maybe the release-1.0, but I'm not sure,
> Michael
>
>
>
> > Thanks for your answers
> > Arnaud
>
> > 2009/4/21 Michael Trimarchi <trimar...@gandalf.sssup.it
> > <mailto:trimar...@gandalf.sssup.it>>
> ...
>
> plus de détails »

shridhar

unread,
Jun 7, 2009, 8:14:26 PM6/7/09
to android-porting
Hi,
were you able to solve the power off issue,

Even I am facing the same problem. I am getting power off, shuting
down message on my touchscreen.

Please let me know if you have the solution.

Regards,
Shridhar

On Apr 28, 6:59 am, Drakou <deras...@gmail.com> wrote:
> I made a new kernel version 2.6.27 with freescale patches for Mx27.
> I also created a power_supply sysfs driver for MC13783 PMIC .
>
> Now, The system is starting, as soon as the window manager is on, I
> have a "PowerOff" menu, and the system is halting immediatly.

Neil Nguyen

unread,
Jun 7, 2009, 8:32:17 PM6/7/09
to android...@googlegroups.com

Google for some patch in the battery service will fix the problem for you.
If you are unable to find it, I will send you a link tomorrow.
I do not have source code in front of me.
Cheers,
Neil

--- On Sun, 6/7/09, shridhar <shri.d...@gmail.com> wrote:

Yi Sun

unread,
Jun 7, 2009, 10:15:44 PM6/7/09
to android...@googlegroups.com
Hmm... we all end up in the same hole. Ok, check the following:
1. check the sys fs patch used by com_android_server_BatteryService.cpp
to make sure they are correct for your platform.
2. check the battery capacity caulation to make sure it is correct for
your platform.
3. you may see vold crash when you plug and unplug AC. If you see it,
let me know.

shridhar desai

unread,
Jun 8, 2009, 8:11:46 PM6/8/09
to android...@googlegroups.com
Thank for the reply Neil, can you please send me the patch. Also i
dint mention one thing i am trying to port Android on AT91SAM9263-ek
board.

Shridhar

Neil Nguyen

unread,
Jun 9, 2009, 1:15:15 PM6/9/09
to android...@googlegroups.com
Here is the battery patches. The reason of the patch is because we do not have a real charger. The battery level reported is always low. The Battery controller shuts down the phone.

I hope it helps.
Neil

--- On Mon, 6/8/09, shridhar desai <shri.d...@gmail.com> wrote:
com_android_server_BatteryService.cpp

shridhar desai

unread,
Jun 9, 2009, 1:24:47 PM6/9/09
to android...@googlegroups.com
Hi Neil,
Thanks for the file. Am I supposed to apply this patch just like any
other patch, because it does'nt seem to be like a .patch file.

Regards,
Shridhar

Elvis Dowson

unread,
Jun 9, 2009, 3:06:27 PM6/9/09
to android...@googlegroups.com
Hi Shridhar,
                     That is a full source file, if you want a patch, here it is for the android-1.5r2 release.

Best regards,

Elvis

diff --git a/services/jni/com_android_server_BatteryService.cpp b/services/jni/com_android_server_BatteryService.cpp
index 6636a97..748f514 100644
--- a/services/jni/com_android_server_BatteryService.cpp
+++ b/services/jni/com_android_server_BatteryService.cpp
@@ -150,12 +150,12 @@ static void setBooleanField(JNIEnv* env, jobject obj, const char* path, jfieldID
     const int SIZE = 16;
     char buf[SIZE];
     
-    jboolean value = false;
-    if (readFromFile(path, buf, SIZE) > 0) {
+    jboolean value = true;
+/*    if (readFromFile(path, buf, SIZE) > 0) {
         if (buf[0] == '1') {
             value = true;
         }
-    }
+    } */
     env->SetBooleanField(obj, fieldID, value);
 }
 
@@ -164,10 +164,10 @@ static void setIntField(JNIEnv* env, jobject obj, const char* path, jfieldID fie
     const int SIZE = 128;
     char buf[SIZE];
     
-    jint value = 0;
-    if (readFromFile(path, buf, SIZE) > 0) {
+    jint value = 100;
+/*    if (readFromFile(path, buf, SIZE) > 0) {
         value = atoi(buf);
-    }
+    } */
     env->SetIntField(obj, fieldID, value);
 }
 
@@ -181,17 +181,21 @@ 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];
     
-    if (readFromFile(BATTERY_STATUS_PATH, buf, SIZE) > 0)
+/*    if (readFromFile(BATTERY_STATUS_PATH, buf, SIZE) > 0)
         env->SetIntField(obj, gFieldIds.mBatteryStatus, getBatteryStatus(buf));
     
     if (readFromFile(BATTERY_HEALTH_PATH, buf, SIZE) > 0)
         env->SetIntField(obj, gFieldIds.mBatteryHealth, getBatteryHealth(buf));
 
     if (readFromFile(BATTERY_TECHNOLOGY_PATH, buf, SIZE) > 0)
-        env->SetObjectField(obj, gFieldIds.mBatteryTechnology, env->NewStringUTF(buf));
+        env->SetObjectField(obj, gFieldIds.mBatteryTechnology, env->NewStringUTF(buf));  */
 }
 
 static JNINativeMethod sMethods[] = {

Neil Nguyen

unread,
Jun 9, 2009, 5:26:04 PM6/9/09
to android...@googlegroups.com

You are right, it is a copy we use.
Sorry, it is patched already. I hope it will work for you.
Neil

--- On Tue, 6/9/09, Elvis Dowson <elvis....@gmail.com> wrote:

> From: Elvis Dowson <elvis....@gmail.com>
> Subject: [android-porting] Re: MX27 Android porting problems
> To: android...@googlegroups.com
> 0)-        env->SetObjectField(obj,

shridhar desai

unread,
Jun 10, 2009, 12:28:27 AM6/10/09
to android...@googlegroups.com
This seems like a very silly question.
where am I suppossed to put this file
"com_android_server_BatteryService.cpp" in the kernel source and build
the image again, or somewhere in the filesystem. kindly please let me
know the directory where in I have to put it.

Regards,
Shridhar

Yi Sun

unread,
Jun 10, 2009, 12:41:18 AM6/10/09
to android...@googlegroups.com
It is silly one, try frameworks/base/service/jni. Please save the old
file just in case

周克军

unread,
Jun 10, 2009, 11:05:32 AM6/10/09
to android...@googlegroups.com
Neil Nguyen,

Thanks for the patch com_android_server_BatteryService.cpp. It solves
the power off issue.

Thanks a lot.

Regards.

zhou kejun

2009-06-10

xro

unread,
Jun 11, 2009, 7:01:55 AM6/11/09
to android-porting
hello,

i'm trying to boot android on a I.mx27 plateform... I can see the logo
and the system shutdown after that... Is it because of power
management?

i don't have any files in sys/class/power/....
i patched my com_android_server_BatteryService.cpp and compile again

can you help me?


that's the logcat


# chroot /mnt/usb /init&
# pwd[42949485.040000] init: cannot open '/initlogo.rle'
[42949485.250000] init: cannot find '/system/bin/mountd', disabling
'mountd'
[42949485.340000] init: cannot find '/system/bin/playmp3', disabling
'bootsound'
sh: can't access tty; job control turned off
# [42949486.120000] warning: `rild' uses 32-bit capabilities (legacy
support in use)

/mnt/usb/system/bin
# ogatlc: not found
# logcat: not found
# I/DEBUG ( 1716): debuggerd: May 26 2009 13:57:55
E/flash_image( 1724): can't find recovery partition
D/AndroidRuntime( 1718):
D/AndroidRuntime( 1718): >>>>>>>>>>>>>> AndroidRuntime START
<<<<<<<<<<<<<<
D/AndroidRuntime( 1718): CheckJNI is ON
D/AndroidRuntime( 1718): --- registering native functions ---
I/ ( 1719): ServiceManager: 0xac38
W/AudioHardwareInterface( 1719): Using stubbed audio hardware. No
sound will be produced.
I/AudioFlinger( 1719): AudioFlinger's thread ready to run for output 0
I/CameraService( 1719): CameraService started: pid=1719
I/Zygote ( 1718): Preloading classes...
D/dalvikvm( 1718): GC freed 763 objects / 42128 bytes in 11ms
D/dalvikvm( 1718): GC freed 278 objects / 17200 bytes in 9ms
D/dalvikvm( 1718): GC freed 204 objects / 12424 bytes in 10ms
D/dalvikvm( 1718): GC freed 441 objects / 28216 bytes in 12ms
D/dalvikvm( 1718): GC freed 3595 objects / 174328 bytes in 38ms
D/dalvikvm( 1718): GC freed 11589 objects / 408968 bytes in 69ms
D/dalvikvm( 1718): GC freed 10633 objects / 446152 bytes in 72ms
D/dalvikvm( 1718): GC freed 10529 objects / 440176 bytes in 74ms
D/dalvikvm( 1718): GC freed 14636 objects / 516376 bytes in 91ms
D/dalvikvm( 1718): GC freed 11453 objects / 487776 bytes in 83ms
D/dalvikvm( 1718): GC freed 5527 objects / 232912 bytes in 72ms
D/dalvikvm( 1718): GC freed 348 objects / 37120 bytes in 55ms
D/dalvikvm( 1718): GC freed 778 objects / 48384 bytes in 71ms
D/dalvikvm( 1718): GC freed 323 objects / 37256 bytes in 74ms
D/dalvikvm( 1718): GC freed 476 objects / 29456 bytes in 73ms
D/dalvikvm( 1718): Trying to load lib /system/lib/libwebcore.so 0x0
D/dalvikvm( 1718): Added shared lib /system/lib/libwebcore.so 0x0
D/dalvikvm( 1718): GC freed 443 objects / 26360 bytes in 77ms
D/dalvikvm( 1718): GC freed 505 objects / 41456 bytes in 78ms
D/dalvikvm( 1718): GC freed 540 objects / 38864 bytes in 82ms
D/dalvikvm( 1718): GC freed 340 objects / 22280 bytes in 78ms
D/dalvikvm( 1718): GC freed 339 objects / 18872 bytes in 83ms
D/dalvikvm( 1718): GC freed 629 objects / 32168 bytes in 81ms
D/dalvikvm( 1718): GC freed 14444 objects / 504392 bytes in 153ms
D/dalvikvm( 1718): GC freed 11367 objects / 479944 bytes in 139ms
D/dalvikvm( 1718): GC freed 6740 objects / 293256 bytes in 131ms
D/dalvikvm( 1718): GC freed 753 objects / 43688 bytes in 95ms
D/dalvikvm( 1718): GC freed 599 objects / 31744 bytes in 102ms
D/dalvikvm( 1718): GC freed 416 objects / 26640 bytes in 97ms
I/Zygote ( 1718): ...preloaded 1163 classes in 16625ms.
D/dalvikvm( 1718): GC freed 313 objects / 19952 bytes in 102ms
I/Zygote ( 1718): Preloading resources...
D/dalvikvm( 1718): GC freed 54 objects / 11248 bytes in 115ms
D/dalvikvm( 1718): GC freed 337 objects / 15032 bytes in 106ms
D/dalvikvm( 1718): GC freed 264 objects / 11328 bytes in 111ms
I/Zygote ( 1718): ...preloaded 48 resources in 1340ms.
I/Zygote ( 1718): ...preloaded 15 resources in 42ms.
D/dalvikvm( 1718): GC freed 113 objects / 8304 bytes in 119ms
D/dalvikvm( 1718): GC freed 195 objects / 7720 bytes in 109ms
D/dalvikvm( 1718): GC freed 36 objects / 1392 bytes in 106ms
I/dalvikvm( 1718): Splitting out new zygote heap
I/dalvikvm( 1718): System server process 1736 has been created
I/Zygote ( 1718): Accepting command socket connections
D/dalvikvm( 1736): Trying to load lib /system/lib/
libandroid_servers.so 0x0
D/dalvikvm( 1736): Added shared lib /system/lib/libandroid_servers.so
0x0
I/sysproc ( 1736): Entered system_init()
I/sysproc ( 1736): ServiceManager: 0x104548
I/SurfaceFlinger( 1736): SurfaceFlinger is starting
I/SurfaceFlinger( 1736): SurfaceFlinger's main thread ready to run.
Initializing graphics H/W...
E/MemoryHeapBase( 1736): error opening /dev/pmem: No such file or
directory
E/GLLogger( 1736): couldn't load <libhgl.so> library (Cannot find
library)
I/SurfaceFlinger( 1736): EGL informations:
I/SurfaceFlinger( 1736): # of configs : 6
I/SurfaceFlinger( 1736): vendor : Android
I/SurfaceFlinger( 1736): version : 1.31 Android META-EGL
I/SurfaceFlinger( 1736): extensions:
I/SurfaceFlinger( 1736): Client API: OpenGL ES
I/EGLDisplaySurface( 1736): using (fd=23)
I/EGLDisplaySurface( 1736): id = DISP0 BG
I/EGLDisplaySurface( 1736): xres = 480 px
I/EGLDisplaySurface( 1736): yres = 272 px
I/EGLDisplaySurface( 1736): xres_virtual = 480 px
I/EGLDisplaySurface( 1736): yres_virtual = 544 px
I/EGLDisplaySurface( 1736): bpp = 16
I/EGLDisplaySurface( 1736): r = 11:5
I/EGLDisplaySurface( 1736): g = 5:6
I/EGLDisplaySurface( 1736): b = 0:5
I/EGLDisplaySurface( 1736): width = 76 mm (160.421051 dpi)
I/EGLDisplaySurface( 1736): height = 43 mm (160.669769 dpi)
I/EGLDisplaySurface( 1736): refresh rate = 67.13 Hz
W/HAL ( 1736): load: module=/system/lib/hw/copybit.armadeus.so
error=Cannot find library
W/HAL ( 1736): load: module=/system/lib/hw/copybit.default.so
error=Cannot find library
W/SurfaceFlinger( 1736): ro.sf.lcd_density not defined, using 160 dpi
by default.
I/SurfaceFlinger( 1736): OpenGL informations:
I/SurfaceFlinger( 1736): vendor : Android
I/SurfaceFlinger( 1736): renderer : Android PixelFlinger 1.0
I/SurfaceFlinger( 1736): version : OpenGL ES-CM 1.0
I/SurfaceFlinger( 1736): extensions: GL_OES_byte_coordinates
GL_OES_fixed_point GL_OES_single_precision GL_OES_read_format
GL_OES_compressed_palet
W/HAL ( 1736): load: module=/system/lib/hw/copybit.armadeus.so
error=Cannot find library
W/HAL ( 1736): load: module=/system/lib/hw/copybit.default.so
error=Cannot find library
W/HAL ( 1736): load: module=/system/lib/hw/overlay.armadeus.so
error=Cannot find library
W/HAL ( 1736): load: module=/system/lib/hw/overlay.default.so
error=Cannot find library
I/sysproc ( 1736): System server: starting Android runtime.
I/sysproc ( 1736): System server: starting Android services.
I/SystemServer( 1736): Entered the Android system server!
I/sysproc ( 1736): System server: entering thread pool.
E/GLLogger( 1736): couldn't load <libhgl.so> library (Cannot find
library)
I/ARMAssembler( 1736): generated
scanline__00000077:03545404_00000A01_00000000 [ 30 ipp] (51 ins) at
[0x192f50:0x19301c] in 0 ns
I/SystemServer( 1736): Starting Power Manager.
I/SystemServer( 1736): Starting Activity Manager.
I/SystemServer( 1736): Starting telephony registry
I/SystemServer( 1736): Starting Package Manager.
I/Installer( 1736): connecting...
I/installd( 1723): new connection
I/PackageManager( 1736): Got library android.awt in /system/framework/
android.awt.jar
I/PackageManager( 1736): Got library android.test.runner in /system/
framework/android.test.runner.jar
I/PackageManager( 1736): Got library com.android.im.plugin in /system/
framework/com.android.im.plugin.jar
D/PackageManager( 1736): Scanning app dir /system/framework
D/PackageManager( 1736): Scanning app dir /system/app
D/dalvikvm( 1736): GC freed 6430 objects / 258200 bytes in 192ms
I/PackageManager( 1736): /system/app/Development.apk changed;
collecting certs
E/PackageManager( 1736): Package com.android.development requires
unavailable shared library com.google.android.maps; ignoring!
D/dalvikvm( 1736): GC freed 4503 objects / 305968 bytes in 169ms
I/PackageManager( 1736): /system/app/SubscribedFeedsProvider.apk
changed; collecting certs
E/PackageManager( 1736): Package com.android.providers.subscribedfeeds
requires unavailable shared library com.google.android.gtalkservice;
ignori!
D/PackageManager( 1736): Scanning app dir /data/app
D/PackageManager( 1736): Scanning app dir /data/app-private
I/PackageManager( 1736): Time to scan packages: 4.029 seconds
W/PackageManager( 1736): Unknown permission
com.google.android.googleapps.permission.GOOGLE_AUTH in package
com.android.providers.contacts
W/PackageManager( 1736): Unknown permission
com.google.android.googleapps.permission.GOOGLE_AUTH.cp in package
com.android.providers.contacts
W/PackageManager( 1736): Unknown permission
com.google.android.providers.gmail.permission.WRITE_GMAIL in package
com.android.settings
W/PackageManager( 1736): Unknown permission
com.google.android.providers.gmail.permission.READ_GMAIL in package
com.android.settings
W/PackageManager( 1736): Unknown permission
com.google.android.googleapps.permission.GOOGLE_AUTH in package
com.android.settings
W/PackageManager( 1736): Unknown permission
com.google.android.googleapps.permission.GOOGLE_AUTH.mail in package
com.android.calendar
W/PackageManager( 1736): Unknown permission
com.google.android.googleapps.permission.GOOGLE_AUTH in package
com.android.providers.calendar
W/PackageManager( 1736): Unknown permission
com.google.android.googleapps.permission.GOOGLE_AUTH.cl in package
com.android.providers.calendar
W/PackageManager( 1736): Unknown permission
com.google.android.googleapps.permission.GOOGLE_AUTH in package
com.android.browser
W/PackageManager( 1736): Unknown permission
com.google.android.googleapps.permission.GOOGLE_AUTH.mail in package
com.android.contacts
D/dalvikvm( 1736): GC freed 5116 objects / 313072 bytes in 175ms
I/SystemServer( 1736): Starting Content Manager.
W/ActivityManager( 1736): Unable to start service Intent
{ action=android.accounts.IAccountsService comp=
{com.google.android.googleapps/com.googled
W/AccountMonitor( 1736): Couldn't connect to Intent
{ action=android.accounts.IAccountsService comp=
{com.google.android.googleapps/com.google.andr)
I/SystemServer( 1736): Starting System Content Providers.
I/ActivityThread( 1736): Publishing provider settings:
com.android.providers.settings.SettingsProvider
I/ActivityThread( 1736): Publishing provider sync:
android.content.SyncProvider
I/SystemServer( 1736): Starting Battery Service.
E/BatteryService( 1736): Could not open '/sys/class/power_supply/ac/
online'
E/BatteryService( 1736): Could not open '/sys/class/power_supply/usb/
online'
E/BatteryService( 1736): Could not open '/sys/class/power_supply/
battery/present'
E/BatteryService( 1736): Could not open '/sys/class/power_supply/
battery/capacity'
E/BatteryService( 1736): Could not open '/sys/class/power_supply/
battery/batt_vol'
E/BatteryService( 1736): Could not open '/sys/class/power_supply/
battery/batt_temp'
E/BatteryService( 1736): Could not open '/sys/class/power_supply/
battery/status'
E/BatteryService( 1736): Could not open '/sys/class/power_supply/
battery/health'
E/BatteryService( 1736): Could not open '/sys/class/power_supply/
battery/technology'
I/SystemServer( 1736): Starting Hardware Service.
W/HAL ( 1736): load: module=/system/lib/hw/lights.armadeus.so
error=Cannot find library
W/HAL ( 1736): load: module=/system/lib/hw/lights.default.so
error=Cannot find library
[42949515.570000] request_suspend_state: wakeup (3->0) at 142610531773
(2008-11-06 10:10:53.154715870 UTC)
I/SystemServer( 1736): Starting Alarm Manager.
I/SystemServer( 1736): Starting Sensor Service.
W/HAL ( 1736): load: module=/system/lib/hw/sensors.armadeus.so
error=Cannot find library
W/HAL ( 1736): load: module=/system/lib/hw/sensors.default.so
error=Cannot find library
I/SystemServer( 1736): Starting Window Manager.
I/EventHub( 1736): New device: path=/dev/input/event0 name=TSC210x
Touchscreen id=0x10000 (of 0x1) index=1 fd=44 classes=0x4
I/KeyInputQueue( 1736): Device added: id=0x10000, name=null, classes=4
I/KeyInputQueue( 1736): X: unknown values
I/KeyInputQueue( 1736): Y: unknown values
I/KeyInputQueue( 1736): Pressure: unknown values
I/KeyInputQueue( 1736): Size: unknown values
W/HAL ( 1736): load: module=/system/lib/hw/sensors.armadeus.so
error=Cannot find library
W/HAL ( 1736): load: module=/system/lib/hw/sensors.default.so
error=Cannot find library
D/SensorManager( 1736): found sensor: null, handle=0
I/SystemServer( 1736): Starting Bluetooth Service.
I/SystemServer( 1736): Starting Status Bar Service.
I/SystemServer( 1736): Starting Clipboard Service.
I/SystemServer( 1736): Starting Input Method Service.
W/ResourceType( 1736): No package identifier when getting value for
resource number 0x7f060000
I/InputManagerService( 1736): Enabled input methods:
com.android.inputmethod.latin/.LatinIME
I/SystemServer( 1736): Starting NetStat Service.
I/SystemServer( 1736): Starting Connectivity Service.
I/WifiService( 1736): WifiService starting up with Wi-Fi disabled
I/SystemServer( 1736): Starting Notification Manager.
I/SystemServer( 1736): Starting Mount Service.
I/SystemServer( 1736): Starting DeviceStorageMonitor service
I/SystemServer( 1736): Starting Location Manager.
D/libhardware_legacy( 1736): no GPS hardware on this device
I/SystemServer( 1736): Starting Search Service.
I/SystemServer( 1736): Starting Checkin Service.
W/ActivityManager( 1736): Unable to start service Intent { comp=
{com.google.android.server.checkin/
com.google.android.server.checkin.CheckinServicd
W/SystemServer( 1736): Using fallback Checkin Service.
I/SystemServer( 1736): Starting Wallpaper Service
D/WallpaperService( 1736): WallpaperService startup
I/SystemServer( 1736): Starting Audio Service
D/dalvikvm( 1736): Trying to load lib /system/lib/libsoundpool.so 0x0
D/dalvikvm( 1736): Added shared lib /system/lib/libsoundpool.so 0x0
W/AudioService( 1736): Soundpool could not load file: /system/media/
audio/ui/Effect_Tick.ogg
W/AudioService( 1736): Soundpool could not load file: /system/media/
audio/ui/KeypressStandard.ogg
W/AudioService( 1736): Soundpool could not load file: /system/media/
audio/ui/KeypressSpacebar.ogg
W/AudioService( 1736): Soundpool could not load file: /system/media/
audio/ui/KeypressDelete.ogg
W/AudioService( 1736): Soundpool could not load file: /system/media/
audio/ui/KeypressReturn.ogg
I/SystemServer( 1736): Starting HeadsetObserver
W/HeadsetObserver( 1736): This kernel does not have wired headset
support
I/SystemServer( 1736): Starting AppWidget Service
I/WindowManager( 1736): Menu key state: -1 safeMode=false
I/WindowManager( 1736): Config changed: { scale=1.0 imsi=0/0
locale=en_US touch=3 key=1/1/2 nav=1 orien=2 }
D/PowerManagerService( 1736): system ready!
I/ActivityManager( 1736): Starting activity: Intent
{ action=android.intent.action.MAIN categories=
{android.intent.category.HOME} flags=0x10000000}
W/ResourceType( 1736): No package identifier when getting value for
resource number 0x7f03000c
W/ResourceType( 1736): No package identifier when getting value for
resource number 0x7f030003
W/ResourceType( 1736): No package identifier when getting value for
resource number 0x7f030000
W/ResourceType( 1736): No package identifier when getting value for
resource number 0x7f030000
D/ActivityManager( 1736): Start running!
I/Zygote ( 1736): Process: zygote socket opened
I/ActivityManager( 1736): Start proc com.android.phone for added
application com.android.phone: pid=1769 uid=1001 gids={3002, 3001,
3003}
D/dalvikvm( 1736): GC freed 5050 objects / 281280 bytes in 315ms
I/ActivityManager( 1736): Start proc android.process.acore for
activity com.android.launcher/.Launcher: pid=1775 uid=10001 gids=
{3003}
W/ResourceType( 1736): No package identifier when getting value for
resource number 0x00000000
D/ShutdownThread( 1736): Notifying thread to start radio shutdown
W/StatusBar( 1736): Icon not found in <system>: 0
I/ActivityThread( 1775): Publishing provider user_dictionary:
com.android.providers.userdictionary.UserDictionaryProvider
I/ActivityThread( 1769): Publishing provider mms-sms:
com.android.providers.telephony.MmsSmsProvider
I/ActivityThread( 1775): Publishing provider
com.android.googlesearch.SuggestionProvider:
com.android.googlesearch.SuggestionProvider
I/ActivityThread( 1769): Publishing provider mms:
com.android.providers.telephony.MmsProvider
I/ActivityThread( 1775): Publishing provider contacts;call_log:
com.android.providers.contacts.ContactsProvider
I/ActivityThread( 1769): Publishing provider telephony:
com.android.providers.telephony.TelephonyProvider
I/ActivityThread( 1769): Publishing provider sms:
com.android.providers.telephony.SmsProvider
I/ActivityThread( 1769): Publishing provider sim:
com.android.phone.SimProvider
W/ActivityManager( 1736): Unable to start service Intent
{ action=android.accounts.IAccountsService comp=
{com.google.android.googleapps/com.googled
W/AccountMonitor( 1775): Couldn't connect to Intent
{ action=android.accounts.IAccountsService comp=
{com.google.android.googleapps/com.google.andr)
I/ActivityThread( 1775): Publishing provider
com.android.launcher.settings: com.android.launcher.LauncherProvider
D/ShutdownThread( 1736): Radio and Bluetooth shutdown complete.
D/ShutdownThread( 1736): Shutting down power.
[42949520.620000] System halted.
D/StatusBar( 1736): updateResources

shridhar desai

unread,
Jun 11, 2009, 9:06:25 PM6/11/09
to android...@googlegroups.com
Hi ,
I am still stuck with the power off problem. In my framework folder I
don't have folders called base or service etc. I just have framework
in /system.
I am not getting where to put this file "com_android_server_BatteryService.cpp".
Please help me out with this

Regards,
Shridhar

mizmit1222

unread,
Jun 11, 2009, 10:41:54 PM6/11/09
to android-porting
Hi,

I'm not sure though, this patch may be helpful.

---------- services/java/com/android/server/PowerManagerService.java
----------
index bbca401..6e01e5b 100644
@@ -350,7 +350,7 @@ class PowerManagerService extends
IPowerManager.Stub implements LocalPowerManage
Power.setLastUserActivityTimeout(7*24*3600*1000); // one week

// assume nothing is on yet
- mUserState = mPowerState = 0;
+ mUserState = mPowerState = SCREEN_BRIGHT;

// Add ourself to the Watchdog monitors.
Watchdog.getInstance().addMonitor(this);
> I/SystemServer( 1736): Starting Content ...
>
> もっと読む >>

xro

unread,
Jun 12, 2009, 2:06:06 AM6/12/09
to android-porting
hi...

I know the power problem ;)

so, you have to modify your com_android_server_BatteryService.cpp.
This file is in your Android environment (mydroid).... there is a
patch somewhere...

after that you have to build mydroid again... (make)

Vinay Rao

unread,
Jun 12, 2009, 2:22:09 AM6/12/09
to android...@googlegroups.com
Solution for power off problem:
consider the file:
"frameworks/base/services/java/com/android/server/BatteryService.java"
Add the following line in the above file in the function sendIntent():
(Approx line : 100)
mBatteryLevel = 100;

Build the Android source with the above change and check it.
It will work 100%.

Regards,
Vinay r Rao
--
VINAY.R.RAO
Reply all
Reply to author
Forward
0 new messages