Hi Karthik

The problem are not the Java or JNI files, the problem is in the
kernel.

I guess you also have an error like this, right before the crash log
you posted:

E/BatteryService( 1737): Could not open /sys/class/power_supply

You have to add a generic power management driver in your kernel or
otherwise the system class will not be found.


In the JNI file, the first thing before registering the native calls
is a check for the /sys/class/power_supply path. If it doesn't exist,
this function returns without registering any native functions. This
check was added with 2.0 thats why your 1.6 file worked just fine.


(I had the same problem, worked for me)

Sven



On 22 Dez. 2009, 06:42, Karthik P <[email protected]> wrote:
> Hi,
>
> We are facing a bootup issue on Beagle board, I could see the logs as shown
> below.
>
> I/SystemServer( 829): System Content Providers
>
> I/ActivityThread( 829): Publishing provider settings:
> com.android.providers.settings.SettingsProvider
>
> I/SystemServer( 829): Battery Service
>
> W/dalvikvm( 829): No implementation found for native
> Lcom/android/server/BatteryService;.native_update ()V
>
> W/dalvikvm( 829): threadid=15: thread exiting with uncaught exception
> (group=0x4001b170)
>
> E/AndroidRuntime( 829): Uncaught handler: thread android.server.ServerThread
> exiting due to uncaught exception
>
> E/AndroidRuntime( 829): *** EXCEPTION IN SYSTEM PROCESS. System will crash.
>
> E/AndroidRuntime( 829): java.lang.UnsatisfiedLinkError: native_update
>
> E/AndroidRuntime( 829): at
> com.android.server.BatteryService.native_update(Native Method)
>
> E/AndroidRuntime( 829): at
> com.android.server.BatteryService.update(BatteryService.java:200)
>
> E/AndroidRuntime( 829): at
> com.android.server.BatteryService.<init>(BatteryService.java:138)
>
> E/AndroidRuntime( 829): at
> com.android.server.ServerThread.run(SystemServer.java:140)
>
> E/AndroidRuntime( 829): Crash logging skipped, no checkin service
>
> I/Process ( 829): Sending signal. PID: 829 SIG: 9
>
> Any pointers to skip this to bring up the board quickly will be of great
> help.
>
> Karthik

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to