Thanks again. Another problem to start it: I/SystemServer( 2543): Starting Battery Service. E/BatteryService( 2543): Could not open '/sys/class/power_supply/ac/ online' E/BatteryService( 2543): Could not open '/sys/class/power_supply/usb/ online' E/BatteryService( 2543): Could not open '/sys/class/power_supply/ battery/present' E/BatteryService( 2543): Could not open '/sys/class/power_supply/ battery/capacity' E/BatteryService( 2543): Could not open '/sys/class/power_supply/ battery/batt_vol' E/BatteryService( 2543): Could not open '/sys/class/power_supply/ battery/batt_temp' E/BatteryService( 2543): Could not open '/sys/class/power_supply/ battery/status' E/BatteryService( 2543): Could not open '/sys/class/power_supply/ battery/health' E/BatteryService( 2543): Could not open '/sys/class/power_supply/ battery/technology' E/ActivityManager( 2543): Attempt to launch receivers of broadcast intent Intent { action=android.intent.action.POWER_DISCONNECTED } before boot completion E/System ( 2543): Failure starting core service E/System ( 2543): java.lang.IllegalStateException: Cannot broadcast before boot completed E/System ( 2543): at com.android.server.am.ActivityManagerService.broadcastIntent (ActivityManagerService.java:10241) E/System ( 2543): at android.app.ApplicationContext.sendBroadcast (ApplicationContext.java:640) E/System ( 2543): at com.android.server.BatteryService.update (BatteryService.java:247) E/System ( 2543): at com.android.server.BatteryService.<init> (BatteryService.java:131) E/System ( 2543): at com.android.server.ServerThread.run (SystemServer.java:128) E/AndroidRuntime( 2543): Crash logging skipped, no checkin service I/SystemServer( 2543): Starting Status Bar Service. .... Starting more services. .... I/SystemServer( 2543): Starting HeadsetObserver W/HeadsetObserver( 2543): This kernel does not have wired headset support I/SystemServer( 2543): Starting AppWidget Service W/dalvikvm( 2543): threadid=15: thread exiting with uncaught exception (group=0xa8007df8) E/AndroidRuntime( 2543): Uncaught handler: thread android.server.ServerThread exiting due to uncaught exception E/AndroidRuntime( 2543): *** EXCEPTION IN SYSTEM PROCESS. System will crash. E/AndroidRuntime( 2543): java.lang.NullPointerException E/AndroidRuntime( 2543): at com.android.server.ServerThread.run (SystemServer.java:332) I/Process ( 2543): Sending signal. PID: 2543 SIG: 9 I/ServiceManager( 2076): service 'batteryinfo' died I/ServiceManager( 2076): service 'usagestats' died more services died...
Is the problem here at the BatteryService? On 31 mrt, 11:51, Chen Yang <sunsety...@gmail.com> wrote: > The problem comes from the lack update in init.rc on x86, you may need > to put those lines in the vendor/asus/eee_701/init.rc. > # Define the oom_adj values for the classes of processes that can be > # killed by the kernel. These are used in ActivityManagerService. > setprop ro.FOREGROUND_APP_ADJ 0 > setprop ro.VISIBLE_APP_ADJ 1 > setprop ro.SECONDARY_SERVER_ADJ 2 > setprop ro.HOME_APP_ADJ 4 > setprop ro.HIDDEN_APP_MIN_ADJ 7 > setprop ro.CONTENT_PROVIDER_ADJ 14 > setprop ro.EMPTY_APP_ADJ 15 > > You can reference the system/core/rootdir/init.rc > -- > Chen > > On Tue, Mar 31, 2009 at 5:45 PM, Androidphan <niels.kee...@tass.nl> wrote: > > > Thanks, removing the classes in preloaded-classes dit work. > > The Android screen is loading now. But now I'm getting the following > > errors: > > > I/SurfaceFlinger( 2238): SurfaceFlinger is starting > > I/SurfaceFlinger( 2238): SurfaceFlinger's main thread ready to run. > > Initializing graphics H/W... > > E/MemoryHeapBase( 2238): error opening /dev/pmem: No such file or > > directory > > E/SurfaceFlinger( 2238): Couldn't open /sys/power/wait_for_fb_sleep > > or /sys/power/wait_for_fb_wake > > E/GLLogger( 2238): couldn't load <libhgl.so> library (Cannot find > > library) > > .... > > W/HAL ( 2238): load: module=/system/lib/hw/copybit.default.so > > error=Cannot find library > > .... > > W/HAL ( 2238): load: module=/system/lib/hw/copybit.default.so > > error=Cannot find library > > W/HAL ( 2238): load: module=/system/lib/hw/overlay.default.so > > error=Cannot find library > > ..... > > E/GLLogger( 2238): couldn't load <libhgl.so> library (Cannot find > > library) > > I/SystemServer( 2238): Starting Power Manager. > > I/SystemServer( 2238): Starting Activity Manager. > > W/dalvikvm( 2238): threadid=17: thread exiting with uncaught exception > > (group=0xb0064df8) > > E/AndroidRuntime( 2238): Uncaught handler: thread ActivityManager > > exiting due to uncaught exception > > E/AndroidRuntime( 2238): *** EXCEPTION IN SYSTEM PROCESS. System will > > crash. > > E/AndroidRuntime( 2238): java.lang.NumberFormatException: unable to > > parse '' as integer > > E/AndroidRuntime( 2238): at java.lang.Integer.parseInt > > (Integer.java:364) > > E/AndroidRuntime( 2238): at java.lang.Integer.parseInt > > (Integer.java:333) > > E/AndroidRuntime( 2238): at java.lang.Integer.valueOf > > (Integer.java:590) > > E/AndroidRuntime( 2238): at > > com.android.server.am.ActivityManagerService.<init> > > (ActivityManagerService.java:1288) > > E/AndroidRuntime( 2238): at > > com.android.server.am.ActivityManagerService.<init> > > (ActivityManagerService.java:110) > > E/AndroidRuntime( 2238): at > > com.android.server.am.ActivityManagerService$AThread.run > > (ActivityManagerService.java:1130) > > E/AndroidRuntime( 2238): Crash logging skipped, no checkin service > > I/Process ( 2238): Sending signal. PID: 2238 SIG: 9 > > I/ServiceManager( 2076): service 'SurfaceFlinger' died > > I/ServiceManager( 2076): service 'power' died > > I/Zygote ( 2237): Exit zygote because system server (2238) has > > terminated > > > On 31 mrt, 11:23, Chen Yang <sunsety...@gmail.com> wrote: > >> Tha seems to be from the mismatch of the eee_701's policy profile, you > >> can remove those classes in frameworks/base/preloaded-classes or > >> replace them with Mid related classes, and rebuild the image. > >> -- > >> Chen > > >> On Tue, Mar 31, 2009 at 4:51 PM, Androidphan <niels.kee...@tass.nl> wrote: > > >> > I'm getting the following error when having built the latest source of > >> > Android for x86: > > >> > E/Zygote ( 2124): Class not found for preloading: > >> > com.android.internal.policy.impl.PhoneLayoutInflater > >> > E/Zygote ( 2124): Class not found for preloading: > >> > com.android.internal.policy.impl.PhoneWindow > >> > E/Zygote ( 2124): Class not found for preloading: > >> > com.android.internal.policy.impl.PhoneWindow$1 > >> > E/Zygote ( 2124): Class not found for preloading: > >> > com.android.internal.policy.impl.PhoneWindow$ContextMenuCallback > >> > E/Zygote ( 2124): Class not found for preloading: > >> > com.android.internal.policy.impl.PhoneWindow$DecorView > >> > E/Zygote ( 2124): Class not found for preloading: > >> > com.android.internal.policy.impl.PhoneWindow$PanelFeatureState > >> > E/Zygote ( 2124): Class not found for preloading: > >> > com.android.internal.policy.impl.PhoneWindow$PanelFeatureState > >> > $SavedState > >> > E/Zygote ( 2124): Class not found for preloading: > >> > com.android.internal.policy.impl.PhoneWindow$PanelFeatureState > >> > $SavedState$1 > >> > .... > >> > E/Zygote ( 2124): Zygote died with exception > >> > E/Zygote ( 2124): java.lang.IllegalStateException: Missing class(es) > >> > for preloading, update preloaded-classes > >> > [com.android.internal.policy.impl.PhoneLayoutInflater > >> > com.android.internal.policy.impl.PhoneWindow > >> > com.android.internal.policy.impl.PhoneWindow$1 > >> > com.android.internal.policy.impl.PhoneWindow$ContextMenuCallback > >> > com.android.internal.policy.impl.PhoneWindow$DecorView > >> > com.android.internal.policy.impl.PhoneWindow$PanelFeatureState > >> > com.android.internal.policy.impl.PhoneWindow$PanelFeatureState > >> > $SavedState com.android.internal.policy.impl.PhoneWindow > >> > $PanelFeatureState$SavedState$1] > >> > E/Zygote ( 2124): at > >> > com.android.internal.os.ZygoteInit.preloadClasses(ZygoteInit.java:299) > >> > E/Zygote ( 2124): at com.android.internal.os.ZygoteInit.main > >> > (ZygoteInit.java:512) > >> > E/Zygote ( 2124): at dalvik.system.NativeStart.main(Native > >> > Method) > >> > D/AndroidRuntime( 2124): Shutting down VM > > >> > Is something not comE/Zygote ( 2124): Zygote died with exception > >> > E/Zygote ( 2124): java.lang.IllegalStateException: Missing class(es) > >> > for preloading, update preloaded-classes > >> > [com.android.internal.policy.impl.PhoneLayoutInflater > >> > com.android.internal.policy.impl.PhoneWindow > >> > com.android.internal.policy.impl.PhoneWindow$1 > >> > com.android.internal.policy.impl.PhoneWindow$ContextMenuCallback > >> > com.android.internal.policy.impl.PhoneWindow$DecorView > >> > com.android.internal.policy.impl.PhoneWindow$PanelFeatureState > >> > com.android.internal.policy.impl.PhoneWindow$PanelFeatureState > >> > $SavedState com.android.internal.policy.impl.PhoneWindow > >> > $PanelFeatureState$SavedState$1] > >> > E/Zygote ( 2124): at > >> > com.android.internal.os.ZygoteInit.preloadClasses(ZygoteInit.java:299) > >> > E/Zygote ( 2124): at com.android.internal.os.ZygoteInit.main > >> > (ZygoteInit.java:512) > >> > E/Zygote ( 2124): at dalvik.system.NativeStart.main(Native > >> > Method) > >> > D/AndroidRuntime( 2124): Shutting down VM > > >> > Why is this? Did I miss something during compiling? --~--~---------~--~----~------------~-------~--~----~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---