Hi, I have been trying to port Android 4.0.3 to our SoC but encountered a booting failure with the attached log message. As I can see in these error logs, it looks to have some issues, 1. Cannot open power supply device. As for this issue, I have worked around it in BatteryService.java to assign facked battery status. 2. SettingsProvider error 3. BOOT FAILURE starting Input Manager Service 4. BOOT FAILURE making display ready And then finally "FATAL EXCEPTION IN SYSTEM PROCESS: android.server.ServerThread" and stops Android booting. Anybody has suggestions to these issues please? I don't know which issues actually blocks Android booting.
And by the way, since our SoC has no OpenGL ES 2.0 GPU. I don't know if GPU is required or optional for Android 4.0.3? -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting
E/BatteryService( 977): Could not open /sys/class/power_supply E/BatteryService( 977): acOnlinePath not found E/BatteryService( 977): usbOnlinePath not found E/BatteryService( 977): batteryStatusPath not found E/BatteryService( 977): batteryHealthPath not found E/BatteryService( 977): batteryPresentPath not found E/BatteryService( 977): batteryCapacityPath not found E/BatteryService( 977): batteryVoltagePath not found E/BatteryService( 977): batteryTemperaturePath not found E/BatteryService( 977): batteryTechnologyPath not found I/sysproc ( 977): Entered system_init() I/sysproc ( 977): ServiceManager: 0x795030 D/SensorService( 977): nuSensorService starting... E/SensorService( 977): couldn't load sensors module (No such file or directory) I/sysproc ( 977): System server: starting Android runtime. I/sysproc ( 977): System server: starting Android services. I/SystemServer( 977): Entered the Android system server! I/sysproc ( 977): System server: entering thread pool. I/SystemServer( 977): Entropy Service I/SystemServer( 977): Power Manager I/SystemServer( 977): Activity Manager I/ActivityManager( 977): Memory class: 16 F/BatteryStatsImpl( 977): problem reading network stats F/BatteryStatsImpl( 977): java.lang.IllegalStateException: problem parsing line: null F/BatteryStatsImpl( 977): at com.android.internal.net.NetworkStatsFactory.readNetworkStatsDetail(NetworkStatsFactory.java:313) F/BatteryStatsImpl( 977): at com.android.internal.net.NetworkStatsFactory.readNetworkStatsDetail(NetworkStatsFactory.java:247) F/BatteryStatsImpl( 977): at com.android.internal.os.BatteryStatsImpl.getNetworkStatsDetailGroupedByUid(BatteryStatsImpl.java:5734) F/BatteryStatsImpl( 977): at com.android.internal.os.BatteryStatsImpl.access$100(BatteryStatsImpl.java:76) F/BatteryStatsImpl( 977): at com.android.internal.os.BatteryStatsImpl$Uid.computeCurrentTcpBytesReceived(BatteryStatsImpl.java:2457) F/BatteryStatsImpl( 977): at com.android.internal.os.BatteryStatsImpl$Uid.getTcpBytesReceived(BatteryStatsImpl.java:2446) F/BatteryStatsImpl( 977): at com.android.internal.os.BatteryStatsImpl.writeSummaryToParcel(BatteryStatsImpl.java:5437) F/BatteryStatsImpl( 977): at com.android.internal.os.BatteryStatsImpl.writeLocked(BatteryStatsImpl.java:4836) F/BatteryStatsImpl( 977): at com.android.internal.os.BatteryStatsImpl.writeAsyncLocked(BatteryStatsImpl.java:4818) F/BatteryStatsImpl( 977): at com.android.server.am.ActivityManagerService.<init>(ActivityManagerService.java:1441) F/BatteryStatsImpl( 977): at com.android.server.am.ActivityManagerService.<init>(ActivityManagerService.java:151) F/BatteryStatsImpl( 977): at com.android.server.am.ActivityManagerService$AThread.run(ActivityManagerService.java:1343) F/BatteryStatsImpl( 977): Caused by: java.io.FileNotFoundException: /proc/net/xt_qtaguid/stats: open failed: ENOENT (No such file or directory) F/BatteryStatsImpl( 977): at libcore.io.IoBridge.open(IoBridge.java:406) F/BatteryStatsImpl( 977): at java.io.FileInputStream.<init>(FileInputStream.java:78) F/BatteryStatsImpl( 977): at java.io.FileReader.<init>(FileReader.java:42) F/BatteryStatsImpl( 977): at com.android.internal.net.NetworkStatsFactory.readNetworkStatsDetail(NetworkStatsFactory.java:272) F/BatteryStatsImpl( 977): ... 11 more F/BatteryStatsImpl( 977): Caused by: libcore.io.ErrnoException: open failed: ENOENT (No such file or directory) F/BatteryStatsImpl( 977): at libcore.io.Posix.open(Native Method) F/BatteryStatsImpl( 977): at libcore.io.BlockGuardOs.open(BlockGuardOs.java:98) F/BatteryStatsImpl( 977): at libcore.io.IoBridge.open(IoBridge.java:390) F/BatteryStatsImpl( 977): ... 14 more E/AndroidRuntime( 977): Error reporting WTF E/AndroidRuntime( 977): java.lang.NullPointerException E/AndroidRuntime( 977): at com.android.internal.os.RuntimeInit.wtf(RuntimeInit.java:345) E/AndroidRuntime( 977): at android.util.Log$1.onTerribleFailure(Log.java:103) E/AndroidRuntime( 977): at android.util.Log.wtf(Log.java:278) E/AndroidRuntime( 977): at com.android.internal.os.BatteryStatsImpl.getNetworkStatsDetailGroupedByUid(BatteryStatsImpl.java:5738) E/AndroidRuntime( 977): at com.android.internal.os.BatteryStatsImpl.access$100(BatteryStatsImpl.java:76) E/AndroidRuntime( 977): at com.android.internal.os.BatteryStatsImpl$Uid.computeCurrentTcpBytesReceived(BatteryStatsImpl.java:2457) E/AndroidRuntime( 977): at com.android.internal.os.BatteryStatsImpl$Uid.getTcpBytesReceived(BatteryStatsImpl.java:2446) E/AndroidRuntime( 977): at com.android.internal.os.BatteryStatsImpl.writeSummaryToParcel(BatteryStatsImpl.java:5437) E/AndroidRuntime( 977): at com.android.internal.os.BatteryStatsImpl.writeLocked(BatteryStatsImpl.java:4836) E/AndroidRuntime( 977): at com.android.internal.os.BatteryStatsImpl.writeAsyncLocked(BatteryStatsImpl.java:4818) E/AndroidRuntime( 977): at com.android.server.am.ActivityManagerService.<init>(ActivityManagerService.java:1441) E/AndroidRuntime( 977): at com.android.server.am.ActivityManagerService.<init>(ActivityManagerService.java:151) E/AndroidRuntime( 977): at com.android.server.am.ActivityManagerService$AThread.run(ActivityManagerService.java:1343) W/UsageStats( 977): Usage stats version changed; dropping I/SystemServer( 977): Telephony Registry I/ActivityManager( 977): Enabled StrictMode logging for AThread's Looper I/SystemServer( 977): Package Manager D/dalvikvm( 977): GC_CONCURRENT freed 303K, 5% free 6944K/7303K, paused 0ms+8ms W/PackageManager( 977): Running ENG build: no pre-dexopt! E/ ( 977): ***** ERROR! android_os_fileobserver_observe() got a short event! D/dalvikvm( 977): GC_CONCURRENT freed 308K, 6% free 7103K/7495K, paused 0ms+32ms E/StrictMode( 977): A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks. E/StrictMode( 977): java.lang.Throwable: Explicit termination method 'close' not called E/StrictMode( 977): at dalvik.system.CloseGuard.open(CloseGuard.java:184) E/StrictMode( 977): at java.io.FileInputStream.<init>(FileInputStream.java:80) E/StrictMode( 977): at com.android.server.pm.UserManager.readUserList(UserManager.java:114) E/StrictMode( 977): at com.android.server.pm.UserManager.<init>(UserManager.java:81) E/StrictMode( 977): at com.android.server.pm.UserManager.<init>(UserManager.java:85) E/StrictMode( 977): at com.android.server.pm.PackageManagerService.<init>(PackageManagerService.java:923) E/StrictMode( 977): at com.android.server.pm.PackageManagerService.main(PackageManagerService.java:833) E/StrictMode( 977): at com.android.server.ServerThread.run(SystemServer.java:163) D/StrictMode( 977): No activity manager; failed to Dropbox violation. D/dalvikvm( 977): GC_CONCURRENT freed 129K, 3% free 7403K/7623K, paused 0ms+120ms D/dalvikvm( 977): GC_CONCURRENT freed 222K, 4% free 7663K/7943K, paused 20ms+88ms Qt-Trasporter : u32EvtCode=0X530000 W/PackageParser( 977): No actions in intent filter at /system/app/Bluetooth.apk Binary XML file line #125 W/PackageParser( 977): No actions in intent filter at /system/app/Contacts.apk Binary XML file line #539 W/PackageManager( 977): Package com.android.gallery3d desires unavailable shared library com.google.android.media.effects; ignoring! W/PackageManager( 977): Package com.android.camera desires unavailable shared library com.google.android.media.effects; ignoring! D/PackageManager( 977): No files in app dir /vendor/app I/installd( 898): new connection I/Installer( 977): connecting... D/dalvikvm( 977): GC_CONCURRENT freed 256K, 5% free 7912K/8263K, paused 52ms+132ms I/PackageManager( 977): Time to scan packages: 17.185 seconds W/PackageManager( 977): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH.mail in package com.android.contacts W/PackageManager( 977): Unknown permission android.permission.ADD_SYSTEM_SERVICE in package com.android.phone W/PackageManager( 977): Unknown permission android.permission.WRITE_INTERNAL_STORAGE in package com.miui.player W/PackageManager( 977): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH in package com.android.providers.calendar W/PackageManager( 977): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH.cl in package com.android.providers.calendar W/PackageManager( 977): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH.mail in package com.android.calendar W/PackageManager( 977): Not granting permission android.permission.SEND_DOWNLOAD_COMPLETED_INTENTS to package com.android.browser (protectionLevel=2 flags=0x9be45) W/PackageManager( 977): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH in package com.android.settings W/PackageManager( 977): Unknown permission android.permission.READ_EXTERNAL_STORAGE in package com.android.videoeditor W/PackageManager( 977): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH in package com.android.providers.contacts W/PackageManager( 977): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH.cp in package com.android.providers.contacts W/PackageManager( 977): Unknown permission com.google.android.googleapps.permission.ACCESS_GOOGLE_PASSWORD in package com.android.development W/PackageManager( 977): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH in package com.android.development W/PackageManager( 977): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH.ALL_SERVICES in package com.android.development W/PackageManager( 977): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH.YouTubeUser in package com.android.development W/PackageManager( 977): Not granting permission android.permission.DEVICE_POWER to package com.android.deskclock (protectionLevel=2 flags=0x8be45) D/dalvikvm( 977): GC_EXPLICIT freed 360K, 8% free 7778K/8391K, paused 28ms+40ms I/SystemServer( 977): Account Manager D/PackageManager( 977): generateServicesMap(android.accounts.AccountAuthenticator): 2 services unchanged I/SystemServer( 977): Content Manager ices unchangeder( 977): generateServicesMap(android.content.SyncAdapter): 5 ser tent Providers( 977): System Co I/dalvikvm( 977): DexOpt: mismatch dep signature for '/system/framework/services.odex' E/dalvikvm( 977): /system/app/SettingsProvider.apk odex has stale dependencies E/dalvikvm( 977): odex source not available -- failing W/PackageManager( 977): StaleDexCacheError when reading apk: /system/app/SettingsProvider.apk W/PackageManager( 977): dalvik.system.StaleDexCacheError: /system/app/SettingsProvider.apk W/PackageManager( 977): at dalvik.system.DexFile.isDexOptNeeded(Native Method) W/PackageManager( 977): at com.android.server.pm.PackageManagerService.performDexOptLI(PackageManagerService.java:3039) W/PackageManager( 977): at com.android.server.pm.PackageManagerService.performDexOpt(PackageManagerService.java:3024) W/PackageManager( 977): at com.android.server.am.ActivityManagerService.ensurePackageDexOpt(ActivityManagerService.java:1749) W/PackageManager( 977): at com.android.server.am.ActivityManagerService.generateApplicationProvidersLocked(ActivityManagerService.java:5616) W/PackageManager( 977): at com.android.server.am.ActivityManagerService.installSystemProviders(ActivityManagerService.java:6081) W/PackageManager( 977): at com.android.server.ServerThread.run(SystemServer.java:190) I/ActivityThread( 977): Pub settings: com.android.providers.settings.SettingsProvider I/dalvikvm( 977): DexOpt: mismatch dep signature for '/system/framework/services.odex' E/dalvikvm( 977): /system/app/SettingsProvider.apk odex has stale dependencies I/dalvikvm( 977): Zip is good, but no classes.dex inside, and no valid .odex file in the same directory E/System ( 977): ****************************************** E/System ( 977): ************ Failure starting core service E/System ( 977): java.lang.RuntimeException: Unable to get provider com.android.providers.settings.SettingsProvider: java.lang.ClassNotFoundException: com.android.providers.settings.SettingsProvider E/System ( 977): at android.app.ActivityThread.installProvider(ActivityThread.java:4201) E/System ( 977): at android.app.ActivityThread.installContentProviders(ActivityThread.java:3963) E/System ( 977): at android.app.ActivityThread.installSystemProviders(ActivityThread.java:4303) E/System ( 977): at com.android.server.am.ActivityManagerService.installSystemProviders(ActivityManagerService.java:6094) E/System ( 977): at com.android.server.ServerThread.run(SystemServer.java:190) E/System ( 977): Caused by: java.lang.ClassNotFoundException: com.android.providers.settings.SettingsProvider E/System ( 977): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61) E/System ( 977): at java.lang.ClassLoader.loadClass(ClassLoader.java:501) E/System ( 977): at java.lang.ClassLoader.loadClass(ClassLoader.java:461) E/System ( 977): at android.app.ActivityThread.installProvider(ActivityThread.java:4186) E/System ( 977): ... 4 more I/SystemServer( 977): Input Method Service W/InputManagerService( 977): Couldn't create dir.: /data/system/inputmethod D/ActivityThread( 977): Loading provider settings: com.android.providers.settings.SettingsProvider W/SystemServer( 977): *********************************************** F/SystemServer( 977): BOOT FAILURE starting Input Manager Service F/SystemServer( 977): java.lang.RuntimeException: Unable to get provider com.android.providers.settings.SettingsProvider: java.lang.ClassNotFoundException: com.android.providers.settings.SettingsProvider F/SystemServer( 977): at android.app.ActivityThread.installProvider(ActivityThread.java:4201) F/SystemServer( 977): at android.app.ActivityThread.getProvider(ActivityThread.java:4010) F/SystemServer( 977): at android.app.ActivityThread.acquireProvider(ActivityThread.java:4026) F/SystemServer( 977): at android.app.ContextImpl$ApplicationContentResolver.acquireProvider(ContextImpl.java:1612) F/SystemServer( 977): at android.content.ContentResolver.acquireProvider(ContentResolver.java:948) F/SystemServer( 977): at android.provider.Settings$NameValueCache.getString(Settings.java:701) F/SystemServer( 977): at android.provider.Settings$Secure.getString(Settings.java:2207) F/SystemServer( 977): at com.android.server.InputMethodManagerService.buildInputMethodListLocked(InputMethodManagerService.java:1966) F/SystemServer( 977): at com.android.server.InputMethodManagerService.<init>(InputMethodManagerService.java:556) F/SystemServer( 977): at com.android.server.ServerThread.run(SystemServer.java:267) F/SystemServer( 977): Caused by: java.lang.ClassNotFoundException: com.android.providers.settings.SettingsProvider F/SystemServer( 977): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61) F/SystemServer( 977): at java.lang.ClassLoader.loadClass(ClassLoader.java:501) F/SystemServer( 977): at java.lang.ClassLoader.loadClass(ClassLoader.java:461) F/SystemServer( 977): at android.app.ActivityThread.installProvider(ActivityThread.java:4186) F/SystemServer( 977): ... 9 more I/SystemServer( 977): Accessibility Manager F/SystemServer( 977): BOOT FAILURE making display ready F/SystemServer( 977): java.lang.NullPointerException F/SystemServer( 977): at com.android.server.ServerThread.run(SystemServer.java:283) W/SystemServer( 977): *********************************************** W/dalvikvm( 977): threadid=10: thread exiting with uncaught exception (group=0x2c4151f8) E/AndroidRuntime( 977): *** FATAL EXCEPTION IN SYSTEM PROCESS: android.server.ServerThread E/AndroidRuntime( 977): java.lang.NullPointerException E/AndroidRuntime( 977): at com.android.server.am.ActivityManagerService.showBootMessage(ActivityManagerService.java:3877) E/AndroidRuntime( 977): at com.android.server.ServerThread.run(SystemServer.java:295) I/Process ( 977): Sending signal. PID: 977 SIG: 9 I/ServiceManager( 888): service 'power' died I/ServiceManager( 888): service 'batteryinfo' died I/ServiceManager( 888): service 'entropy' died E/installd( 898): eof E/installd( 898): failed to read size I/installd( 898): closing connection I/ServiceManager( 888): service 'usagestats' died I/Zygote ( 894): Exit zygote because system server (977) has terminated I/ServiceManager( 888): service 'sensorservice' died I/ServiceManager( 888): service 'permission' died I/ServiceManager( 888): service 'gfxinfo' died I/ServiceManager( 888): service 'content' died I/ServiceManager( 888): service 'telephony.registry' died I/ServiceManager( 888): service 'account' died I/ServiceManager( 888): service 'package' died I/ServiceManager( 888): service 'accessibility' died I/ServiceManager( request_suspend_state: wakeup (3->0) at 296802548254 (1970-01-02 00:00:30.417901000 UTC) 888): service 'activity' died I/ServiceManager( 888): service 'meminfo' died I/ServiceManager( 888): service 'cpuinfo' died init: untracked pid 890 exited I/ServiceManager( 888): service 'media.audio_flinger' died I/ServiceManager( 888): service 'media.player' died I/ServiceManager( 888): servicinit: untracked pid 896 exited e 'media.camera' died I/ServiceManager( 888): service 'media.audio_policy' died I/Netd ( 1001): Netd 1.0 starting E/Netd ( 1001): Unable to create netlink socket: Protocol not supported E/Netd ( 1001): Unable to open quota2 logging socket