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 <[email protected]> wrote: > From: shridhar desai <[email protected]> > Subject: [android-porting] Re: MX27 Android porting problems > To: [email protected] > Date: Monday, June 8, 2009, 8:11 PM > > 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 > > On Sun, Jun 7, 2009 at 5:32 PM, Neil Nguyen<[email protected]> > wrote: > > > > > > 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 <[email protected]> > wrote: > > > >> From: shridhar <[email protected]> > >> Subject: [android-porting] Re: MX27 Android > porting problems > >> To: "android-porting" <[email protected]> > >> Date: Sunday, June 7, 2009, 8:14 PM > >> > >> 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 <[email protected]> > >> 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. > >> > > >> > 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 > downpower. > >> > > >> > Thanks > >> > > >> > Arnaud > >> > > >> > On 21 avr, 16:51, Michael Trimarchi <[email protected]> > >> > 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 <[email protected] > >> > > > <mailto:[email protected]>> > >> > > >> > > > Drakou wrote: > >> > > > > Hello, > >> > > >> > > > > I am actually working on > porting > >> Android to anMx27custom > >> > > > 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 > >> > > >> > > > 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 > >> > > > > E/GLLogger( 1464): > couldn't load > >> <libhgl.so> library (Cannot find > >> > > > > library) > >> > > > > 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/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> > >> > > > > 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 > >> > > > <http://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 > >> > > >> > > > I think this can be critical, > because > >> it can't start the battery > >> > > > service. > >> > > > I don't have idea to the > other one. > >> > > > > 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 > >> > > >> > > ... > >> > > >> > > plus de détails » > >> > > >> > > > > > > > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ unsubscribe: [email protected] website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---
com_android_server_BatteryService.cpp
Description: Binary data
