Problems Compiling Apollo Music Player - Android Q&A, Help & Troubleshooting

I'm having trouble compiling Cyanogenmod's Apollo Music Player from source (I'd link to Github, but <10 posts).
Eclipse threw up a bunch of errors when first imported the project, and to remedy those I:
Manually referenced the anrdoid-support-v4.jar library
Removed a bunch of @Overrides in front of seemingly arbitrary functions that Eclipse was getting angry at.
Now it compiles, but crashes first thing with the error:
Code:
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.andrew.apollo/com.andrew.apollo.activities.MusicLibrary}: java.lang.ClassNotFoundException: com.andrew.apollo.activities.MusicLibrary
Full error message:
Code:
08-26 20:48:02.845: E/AndroidRuntime(525): FATAL EXCEPTION: main
08-26 20:48:02.845: E/AndroidRuntime(525): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.andrew.apollo/com.andrew.apollo.activities.MusicLibrary}: java.lang.ClassNotFoundException: com.andrew.apollo.activities.MusicLibrary
08-26 20:48:02.845: E/AndroidRuntime(525): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1880)
08-26 20:48:02.845: E/AndroidRuntime(525): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
08-26 20:48:02.845: E/AndroidRuntime(525): at android.app.ActivityThread.access$600(ActivityThread.java:123)
08-26 20:48:02.845: E/AndroidRuntime(525): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
08-26 20:48:02.845: E/AndroidRuntime(525): at android.os.Handler.dispatchMessage(Handler.java:99)
08-26 20:48:02.845: E/AndroidRuntime(525): at android.os.Looper.loop(Looper.java:137)
08-26 20:48:02.845: E/AndroidRuntime(525): at android.app.ActivityThread.main(ActivityThread.java:4424)
08-26 20:48:02.845: E/AndroidRuntime(525): at java.lang.reflect.Method.invokeNative(Native Method)
08-26 20:48:02.845: E/AndroidRuntime(525): at java.lang.reflect.Method.invoke(Method.java:511)
08-26 20:48:02.845: E/AndroidRuntime(525): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
08-26 20:48:02.845: E/AndroidRuntime(525): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
08-26 20:48:02.845: E/AndroidRuntime(525): at dalvik.system.NativeStart.main(Native Method)
08-26 20:48:02.845: E/AndroidRuntime(525): Caused by: java.lang.ClassNotFoundException: com.andrew.apollo.activities.MusicLibrary
08-26 20:48:02.845: E/AndroidRuntime(525): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
08-26 20:48:02.845: E/AndroidRuntime(525): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
08-26 20:48:02.845: E/AndroidRuntime(525): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
08-26 20:48:02.845: E/AndroidRuntime(525): at android.app.Instrumentation.newActivity(Instrumentation.java:1023)
08-26 20:48:02.845: E/AndroidRuntime(525): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1871)
08-26 20:48:02.845: E/AndroidRuntime(525): ... 11 more
This happens in a 4.0.4 emulator and on my stock, unrooted VZW Galaxy Nexus.
I've checked, and com.andrew.apollo.activities.MusicLibrary does exist, and I get the exact same error message if I change the android:name attribute to an arbitrary class that definitely doesn't exist (With MusicLibrary substituted out for the arbitrary nonexistent class' name).
I've spent 5 hours trying to get this damn thing to compile correctly. Any help would be appreciated greatly.

Bump.
Anyone have any advice?

I do not know, if this is still of interest, but I did a build myself on last weekend.
I needed to reference the library, check
The @override-errors are due to the wrong java version. Eclipse does import the source and sets java-version to 1.5.
You need to change it so 1.6+ in the project specific settings.
I did use the jellybean branch of CM10, therefore I needed to set the Android version to 4.1.
Other than that, I do not remember any specific problems. I did not test on the emulator.

Related

[Q] TTS force close in Navigation

I am using sonofskywalker3 Rom 4.4 and ec10_voodoo kernel and kept having force close problem with TTS service (Process.android.tts) when trying to use Navigation. Does anyone have similar problems?
This is the dump from the logcat:
I/ActivityManager( 2681): Start proc android.tts for service android.tts/.TtsService: pid=18962 uid=10049 gids={3003, 1015}
V/TtsService(18962): TtsService.onCreate()
W/dalvikvm(18962): ERROR: Unable to find decl for native Landroid/tts/SynthProxy;.native_setConfig (ILjava/lang/StringI
W/dalvikvm(18962): ERROR: Unable to find decl for native Landroid/tts/SynthProxy;.native_setup (Ljava/lang/Object;Ljava/lang/Strin
g;Ljava/lang/StringI
W/dalvikvm(18962): ERROR: Unable to find decl for native Landroid/tts/SynthProxy;.native_setLowShelf (ZFFFF)I
E/JNIHelp (18962): RegisterNatives failed for 'android/tts/SynthProxy'
W/dalvikvm(18962): JNI_OnLoad returned bad version (-1) in /system/lib/libttssynthproxy.so 0x483c3420
W/dalvikvm(18962): Exception Ljava/lang/UnsatisfiedLinkError; thrown during Landroid/tts/SynthProxy;.<clinit>
D/AndroidRuntime(18962): Shutting down VM
W/dalvikvm(18962): threadid=1: thread exiting with uncaught exception (group=0x4001d7f0)
E/AndroidRuntime(18962): FATAL EXCEPTION: main
E/AndroidRuntime(18962): java.lang.ExceptionInInitializerError
E/AndroidRuntime(18962): at android.tts.TtsService.onCreate(TtsService.java:158)
E/AndroidRuntime(18962): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2959)
E/AndroidRuntime(18962): at android.app.ActivityThread.access$3300(ActivityThread.java:125)
E/AndroidRuntime(18962): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2087)
E/AndroidRuntime(18962): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(18962): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(18962): at android.app.ActivityThread.main(ActivityThread.java:4627)
E/AndroidRuntime(18962): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(18962): at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime(18962): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
E/AndroidRuntime(18962): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
E/AndroidRuntime(18962): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(18962): Caused by: java.lang.UnsatisfiedLinkError: Library ttssynthproxy not found
E/AndroidRuntime(18962): at java.lang.Runtime.loadLibrary(Runtime.java:461)
E/AndroidRuntime(18962): at java.lang.System.loadLibrary(System.java:557)
E/AndroidRuntime(18962): at android.tts.SynthProxy.<clinit>(SynthProxy.java:154)
E/AndroidRuntime(18962): ... 12 more
I/ ( 2681): dumpmesg > "/data/log/dumpstate_app_error.log"
I/dumpstate(18971): begin
Yes i got the same problem, cant get voice navigation, TTS force close.

[Q] Mobilenoter SE HD for Tablets, FC's on HC

It might be the leaked version of Honeycomb but I can get the older non-tablet version of Mobilenoter to work but not the new version for HC tablets. I continue to get FCs on start. I've installed, uninstalled, re-installed, rebooted, and deleted directories to no avail. The original version works fine, but the Newer version for HC Tablets has some nice features that I would like to load up. The tool, while not a replacement for OneNote, does allow me to view and edit my OneNote files (no pen input) using skydrive. Anyone with similar issues or suggestions?
Checking logcat would probably be your best bet to see if any error messages were written out during the FC. Are you familiar with logcat? If not, see:
http://developer.android.com/guide/developing/tools/adb.html#logcat
for details.
The logcat file tends to be pretty big, so I tend to write it to an output file and possibly cut off the write procedure early.
Thanks for the directions on logcat. The best I can tell is that there is some resource / file missing. Beyond that, I have not done enough programming with android systems to figure it out.
Code:
I/ActivityManager( 1591): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 pkg=com.themsteam.mobilenoter.direct.tablet cmp=com.themsteam.mobilenoter.direct.tablet/com.themsteam.mobilenoter.ui.tablet.screens.home.TabletScreenHomeActivity } from pid 1694
I/PackageManager( 1591): Linking native library dir for /mnt/asec/com.popcap.pvz-1/pkg.apk
E/AndroidRuntime( 2780): FATAL EXCEPTION: main
E/AndroidRuntime( 2780): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.themsteam.mobilenoter.direct.tablet/com.themsteam.mobilenoter.ui.tablet.screens.home.TabletScreenHomeActivity}: android.content.res.Resources$NotFoundException: Resource ID #0x7f020003
E/AndroidRuntime( 2780): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1997)
E/AndroidRuntime( 2780): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2018)
E/AndroidRuntime( 2780): at android.app.ActivityThread.access$500(ActivityThread.java:139)
E/AndroidRuntime( 2780): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1124)
E/AndroidRuntime( 2780): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 2780): at android.os.Looper.loop(Looper.java:152)
E/AndroidRuntime( 2780): at android.app.ActivityThread.main(ActivityThread.java:4636)
E/AndroidRuntime( 2780): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 2780): at java.lang.reflect.Method.invoke(Method.java:491)
E/AndroidRuntime( 2780): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
E/AndroidRuntime( 2780): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
E/AndroidRuntime( 2780): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 2780): Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f020003
E/AndroidRuntime( 2780): at android.content.res.Resources.getValue(Resources.java:1100)
E/AndroidRuntime( 2780): at android.content.res.Resources.getDrawable(Resources.java:670)
E/AndroidRuntime( 2780): at com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:2613)
E/AndroidRuntime( 2780): at com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:2653)
E/AndroidRuntime( 2780): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:233)
E/AndroidRuntime( 2780): at android.app.Activity.setContentView(Activity.java:1871)
E/AndroidRuntime( 2780): at com.themsteam.mobilenoter.ui.tablet.screens.home.TabletScreenHomeActivity.onCreate(Unknown Source)
E/AndroidRuntime( 2780): at android.app.Activity.performCreate(Activity.java:4521)
E/AndroidRuntime( 2780): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1072)
E/AndroidRuntime( 2780): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1961)
E/AndroidRuntime( 2780): ... 11 more
W/ActivityManager( 1591): Force finishing activity com.themsteam.mobilenoter.direct.tablet/com.themsteam.mobilenoter.ui.tablet.screens.home.TabletScreenHomeActivity
................
/ActivityManager( 1591): Activity pause timeout for ActivityRecord{40f1aa68 com.themsteam.mobilenoter.direct.tablet/com.themsteam.mobilenoter.ui.tablet.screens.home.TabletScreenHomeActivity}
D/ActivityManager( 1591): destroyActivityLocked, r=ActivityRecord{40f1aa68 com.themsteam.mobilenoter.direct.tablet/com.themsteam.mobilenoter.ui.tablet.screens.home.TabletScreenHomeActivity}
V/ActivityManager( 1591): destroyActivityLocked, dalvik.system.VMStack.getThreadStackTrace(Native Method)
V/ActivityManager( 1591): destroyActivityLocked, java.lang.Thread.getStackTrace(Thread.java:746)
V/ActivityManager( 1591): destroyActivityLocked, com.android.server.am.ActivityStack.destroyActivityLocked(ActivityStack.java:3535)
V/ActivityManager( 1591): destroyActivityLocked, com.android.server.am.ActivityStack.activityIdleInternal(ActivityStack.java:3217)
V/ActivityManager( 1591): destroyActivityLocked, com.android.server.am.ActivityManagerService.activityIdle(ActivityManagerService.java:4185)
V/ActivityManager( 1591): destroyActivityLocked, android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:353)
V/ActivityManager( 1591): destroyActivityLocked, com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:1672)
V/ActivityManager( 1591): destroyActivityLocked, android.os.Binder.execTransact(Binder.java:339)
V/ActivityManager( 1591): destroyActivityLocked, dalvik.system.NativeStart.run(Native Method)
I/PackageManager( 1591): Linking native library dir for /mnt/asec/com.aol.mobile.engadget-1/pkg.apk
..................
V/HtcAppUsageStats( 1591): noteAppDied pid=2780
I/ActivityManager( 1591): Process com.themsteam.mobilenoter.direct.tablet (pid 2780) has died.
..................
W/ActivityManager( 1591): Activity destroy timeout for ActivityRecord{40f1aa68 com.themsteam.mobilenoter.direct.tablet/com.themsteam.mobilenoter.ui.tablet.screens.home.TabletScreenHomeActivity}
Nothing is jumping out at me from the logcat output, but I agree with you that it seems to be a missing resource file. There's not much information in the error log, so I believe the exception is just untreated by the developer. I guess the next step would be to send the logcat output to the developer.
Sorry I couldn't be of much more help....
bluebear13 said:
Nothing is jumping out at me from the logcat output, but I agree with you that it seems to be a missing resource file. There's not much information in the error log, so I believe the exception is just untreated by the developer. I guess the next step would be to send the logcat output to the developer.
Sorry I couldn't be of much more help....
Click to expand...
Click to collapse
Thanks anyway. I did send it in to the developer. It could be related to the Flyer HC leak since the program works fine on son's Lenovo Thinkpad Tablet.

[Q] i/o error on database

hello im getting the following errors in the logcat, this couses my phone to crush on acore and others as well.
any ideas about it?
thanks.
I/Database( 1277): sqlite returned: error code = 266, msg = disk I/O error
E/Database( 1277): CREATE TABLE android_metadata failed
E/Database( 1277): Failed to setLocale() when constructing, closing the database
E/Database( 1277): android.database.sqlite.SQLiteDiskIOException: disk I/O error
E/Database( 1277): at android.database.sqlite.SQLiteDatabase.native_setLocale(Native Method)
E/Database( 1277): at android.database.sqlite.SQLiteDatabase.setLocale(SQLiteDatabase.java:1987)
E/Database( 1277): at android.database.sqlite.SQLiteDatabase.<init>(SQLiteDatabase.java:1855)
E/Database( 1277): at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:820)
E/Database( 1277): at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:854)
E/Database( 1277): at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:847)
E/Database( 1277): at android.app.ContextImpl.openOrCreateDatabase(ContextImpl.java:551)
E/Database( 1277): at android.content.ContextWrapper.openOrCreateDatabase(ContextWrapper.java:203)
E/Database( 1277): at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:118)
E/Database( 1277): at com.android.providers.contacts.ContactsDatabaseHelper.getWritableDatabase(ContactsDatabaseHelper.java:2890)
E/Database( 1277): at com.android.providers.contacts.CallLogProvider.onCreate(CallLogProvider.java:114)
E/Database( 1277): at android.content.ContentProvider.attachInfo(ContentProvider.java:798)
E/Database( 1277): at android.app.ActivityThread.installProvider(ActivityThread.java:3554)
E/Database( 1277): at android.app.ActivityThread.installContentProviders(ActivityThread.java:3309)
E/Database( 1277): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3265)
E/Database( 1277): at android.app.ActivityThread.access$2200(ActivityThread.java:117)
E/Database( 1277): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:969)
E/Database( 1277): at android.os.Handler.dispatchMessage(Handler.java:99)
E/Database( 1277): at android.os.Looper.loop(Looper.java:130)
E/Database( 1277): at android.app.ActivityThread.main(ActivityThread.java:3683)
E/Database( 1277): at java.lang.reflect.Method.invokeNative(Native Method)
E/Database( 1277): at java.lang.reflect.Method.invoke(Method.java:507)
E/Database( 1277): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:861)
E/Database( 1277): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:619)
E/Database( 1277): at dalvik.system.NativeStart.main(Native Method)
D/AndroidRuntime( 1277): Shutting down VM
W/dalvikvm( 1277): threadid=1: thread exiting with uncaught exception (group=0x4001d560)
E/AndroidRuntime( 1277): FATAL EXCEPTION: main
E/AndroidRuntime( 1277): java.lang.RuntimeException: Unable to get provider com.android.providers.contacts.CallLogProvider: android.database.sqlite.SQLiteDiskIOException: disk I/O error
E/AndroidRuntime( 1277): at android.app.ActivityThread.installProvider(ActivityThread.java:3557)
E/AndroidRuntime( 1277): at android.app.ActivityThread.installContentProviders(ActivityThread.java:3309)
E/AndroidRuntime( 1277): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3265)
E/AndroidRuntime( 1277): at android.app.ActivityThread.access$2200(ActivityThread.java:117)
E/AndroidRuntime( 1277): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:969)
E/AndroidRuntime( 1277): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 1277): at android.os.Looper.loop(Looper.java:130)
E/AndroidRuntime( 1277): at android.app.ActivityThread.main(ActivityThread.java:3683)
E/AndroidRuntime( 1277): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 1277): at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime( 1277): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:861)
E/AndroidRuntime( 1277): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:619)
E/AndroidRuntime( 1277): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 1277): Caused by: android.database.sqlite.SQLiteDiskIOException: disk I/O error
E/AndroidRuntime( 1277): at android.database.sqlite.SQLiteDatabase.native_setLocale(Native Method)
E/AndroidRuntime( 1277): at android.database.sqlite.SQLiteDatabase.setLocale(SQLiteDatabase.java:1987)
E/AndroidRuntime( 1277): at android.database.sqlite.SQLiteDatabase.<init>(SQLiteDatabase.java:1855)
E/AndroidRuntime( 1277): at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:820)
E/AndroidRuntime( 1277): at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:854)
E/AndroidRuntime( 1277): at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:847)
E/AndroidRuntime( 1277): at android.app.ContextImpl.openOrCreateDatabase(ContextImpl.java:551)
E/AndroidRuntime( 1277): at android.content.ContextWrapper.openOrCreateDatabase(ContextWrapper.java:203)
E/AndroidRuntime( 1277): at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:118)
E/AndroidRuntime( 1277): at com.android.providers.contacts.ContactsDatabaseHelper.getWritableDatabase(ContactsDatabaseHelper.java:2890)
E/AndroidRuntime( 1277): at com.android.providers.contacts.CallLogProvider.onCreate(CallLogProvider.java:114)
E/AndroidRuntime( 1277): at android.content.ContentProvider.attachInfo(ContentProvider.java:798)
E/AndroidRuntime( 1277): at android.app.ActivityThread.installProvider(ActivityThread.java:3554)
E/AndroidRuntime( 1277): ... 12 more
I/SurfaceFlinger( 1072): Boot is finished (28155 ms)
I/ActivityThread( 1239): Pub com.google.android.gsf.gservices: com.google.android.gsf.gservices.GservicesProvider
I/GservicesProvider( 1239): Gservices pushing to system: true; secure: true
I/ActivityThread( 1239): Pub com.google.android.providers.talk: com.google.android.gsf.talk.TalkProvider
E/OMXPlayer( 980): reset: 0x10240
D/ ( 980): setting block activity: 1

[Q] [AOSP][Gingerbread]Camera Libraries Error

I compiled the AOSP Gingerbread for Samsung Galaxy Fit. Wenever i replace the libcam.so, libcameraservice.so, and the libcameraclient.so and delete the seccam libraries my ROM boot well but i want to fix them . Here is the logcat of the error
Logcat error in camera libraries. Can anyone hlp me to fix them
This is the logcat
E/AndroidRuntime( 618): *** FATAL EXCEPTION IN SYSTEM PROCESS: main
E/AndroidRuntime( 618): java.lang.UnsatisfiedLinkError: Cannot load library: link_image[1962]: 609 could not load needed library 'libsystem_server.so' for 'libandroid_servers.so' (link_image[1962]: 609 could not load needed library 'libcameraservice.so' for 'libsystem_server.so' (link_image[1962]: 609 could not load needed library 'libseccameraadaptor.so' for 'libcameraservice.so' (link_image[1962]: 609 could not load needed library 'libcamera.so' for 'libseccameraadaptor.so' (reloc_library[1311]: 609 cannot locate '_ZN7android7Overlay5setFdEi'...
E/AndroidRuntime( 618): ))))
E/AndroidRuntime( 618): at java.lang.Runtime.loadLibrary(Runtime.java:455)
E/AndroidRuntime( 618): at java.lang.System.loadLibrary(System.java:554)
E/AndroidRuntime( 618): at com.android.server.SystemServer.main(SystemServer.java:624)
E/AndroidRuntime( 618): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 618): at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime( 618): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
E/AndroidRuntime( 618): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
E/AndroidRuntime( 618): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 618): Error reporting crash
E/AndroidRuntime( 618): java.lang.NullPointerException
E/AndroidRuntime( 618): at com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java:76)
E/AndroidRuntime( 618): at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:854)
E/AndroidRuntime( 618): at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:851)
E/AndroidRuntime( 618): at dalvik.system.NativeStart.main(Native Method)
I/Zygote ( 609): Exit zygote because system server (618) has terminated
yajnab said:
I compiled the AOSP Gingerbread for Samsung Galaxy Fit. Wenever i replace the libcam.so, libcameraservice.so, and the libcameraclient.so and delete the seccam libraries my ROM boot well but i want to fix them . Here is the logcat of the error
Logcat error in camera libraries. Can anyone hlp me to fix them
This is the logcat
E/AndroidRuntime( 618): *** FATAL EXCEPTION IN SYSTEM PROCESS: main
E/AndroidRuntime( 618): java.lang.UnsatisfiedLinkError: Cannot load library: link_image[1962]: 609 could not load needed library 'libsystem_server.so' for 'libandroid_servers.so' (link_image[1962]: 609 could not load needed library 'libcameraservice.so' for 'libsystem_server.so' (link_image[1962]: 609 could not load needed library 'libseccameraadaptor.so' for 'libcameraservice.so' (link_image[1962]: 609 could not load needed library 'libcamera.so' for 'libseccameraadaptor.so' (reloc_library[1311]: 609 cannot locate '_ZN7android7Overlay5setFdEi'...
E/AndroidRuntime( 618): ))))
E/AndroidRuntime( 618): at java.lang.Runtime.loadLibrary(Runtime.java:455)
E/AndroidRuntime( 618): at java.lang.System.loadLibrary(System.java:554)
E/AndroidRuntime( 618): at com.android.server.SystemServer.main(SystemServer.java:624)
E/AndroidRuntime( 618): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 618): at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime( 618): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
E/AndroidRuntime( 618): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
E/AndroidRuntime( 618): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 618): Error reporting crash
E/AndroidRuntime( 618): java.lang.NullPointerException
E/AndroidRuntime( 618): at com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java:76)
E/AndroidRuntime( 618): at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:854)
E/AndroidRuntime( 618): at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:851)
E/AndroidRuntime( 618): at dalvik.system.NativeStart.main(Native Method)
I/Zygote ( 609): Exit zygote because system server (618) has terminated
Click to expand...
Click to collapse
Hope you have fixed the issues, if yes could you please share some info.

[Q] [Help] Adding Su to build

I'm in the process of learning to build android from source. I've got my AOKP rom booting and am working on adding superuser to it, and am running into troubles. After much googling here is what I've done
Cloned Superuser source code
Code:
git clone git://github.com/ChainsDD/Superuser.git packages/apps/Superuser
Copied the su binary from my current rom (/system/xbin/su) to my device tree
Edited device.mk
Code:
# Build superuser
PRODUCT_PACKAGES := \
Superuser
# copy su binary
PRODUCT_COPY_FILES += \
device/lge/E973/su:system/xbin/su
Everything built fine and Superuser is in my app drawer when rom boots. If i try to open Superuser it force closes. Root checker shows that i am rooted, and typing 'su' in terminal emulator gets root access. Neither will give me a dialog asking to deny or grant.
If i install SuperSuperuser from the market, it will present all the normal dialogs and everything seems as it should.
I'm wondering what it is I'm doing wrong, and how I can correct it.
Here is a logcat of the failed attempt to open superuser
Code:
D/dalvikvm( 2157): Late-enabling CheckJNI
I/ActivityManager( 530): Start proc com.noshufou.android.su for activity com.noshufou.android.su/.Su: pid=2157 uid=10040 gids={50040, 3003, 1015, 1028}
I/dalvikvm( 2157): Turning on JNI app bug workarounds for target SDK version 11...
D/overlay ( 161): FROM_STATE = OV_BYPASS_3_LAYER TO_STATE = OV_CLOSED
I/ActivityThread( 2157): Pub com.noshufou.android.su.provider: com.noshufou.android.su.provider.PermissionsProvider
D/Su.HomeActivity( 2157): onCreate()
D/AndroidRuntime( 2157): Shutting down VM
W/dalvikvm( 2157): threadid=1: thread exiting with uncaught exception (group=0x40dd7930)
E/AndroidRuntime( 2157): FATAL EXCEPTION: main
E/AndroidRuntime( 2157): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.noshufou.android.su/com.noshufou.android.su.HomeActivity}: java.lang.RuntimeException: java.lang.NoSuchMethodException: <init> [class android.app.Activity, int]
E/AndroidRuntime( 2157): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2306)
E/AndroidRuntime( 2157): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2356)
E/AndroidRuntime( 2157): at android.app.ActivityThread.access$600(ActivityThread.java:150)
E/AndroidRuntime( 2157): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1244)
E/AndroidRuntime( 2157): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 2157): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 2157): at android.app.ActivityThread.main(ActivityThread.java:5193)
E/AndroidRuntime( 2157): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 2157): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 2157): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)
E/AndroidRuntime( 2157): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562)
E/AndroidRuntime( 2157): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 2157): Caused by: java.lang.RuntimeException: java.lang.NoSuchMethodException: <init> [class android.app.Activity, int]
E/AndroidRuntime( 2157): at com.actionbarsherlock.ActionBarSherlock.wrap(ActionBarSherlock.java:232)
E/AndroidRuntime( 2157): at com.actionbarsherlock.app.SherlockFragmentActivity.getSherlock(SherlockFragmentActivity.java:32)
E/AndroidRuntime( 2157): at com.actionbarsherlock.app.SherlockFragmentActivity.requestWindowFeature(SherlockFragmentActivity.java:265)
E/AndroidRuntime( 2157): at com.noshufou.android.su.HomeActivity.onCreate(HomeActivity.java:59)
E/AndroidRuntime( 2157): at android.app.Activity.performCreate(Activity.java:5104)
E/AndroidRuntime( 2157): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
E/AndroidRuntime( 2157): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2260)
E/AndroidRuntime( 2157): ... 11 more
E/AndroidRuntime( 2157): Caused by: java.lang.NoSuchMethodException: <init> [class android.app.Activity, int]
E/AndroidRuntime( 2157): at java.lang.Class.getConstructorOrMethod(Class.java:460)
E/AndroidRuntime( 2157): at java.lang.Class.getConstructor(Class.java:431)
E/AndroidRuntime( 2157): at com.actionbarsherlock.ActionBarSherlock.wrap(ActionBarSherlock.java:229)
E/AndroidRuntime( 2157): ... 17 more
W/ActivityManager( 530): Force finishing activity com.noshufou.android.su/.Su
D/dalvikvm( 2157): GC_CONCURRENT freed 219K, 15% free 2489K/2912K, paused 2ms+1ms, total 21ms
I/dalvikvm( 530): Jit: resizing JitTable from 8192 to 16384
W/ActivityManager( 530): Activity pause timeout for ActivityRecord{41681370 u0 com.noshufou.android.su/.Su}
I/Process ( 2157): Sending signal. PID: 2157 SIG: 9
I/ActivityManager( 530): Process com.noshufou.android.su (pid 2157) has died.
W/InputMethodManagerService( 530): Window already focused, ignoring focus gain of: [email protected] attribute=null, token = [email protected]
D/dalvikvm( 530): GC_CONCURRENT freed 7964K, 44% free 13574K/23868K, paused 2ms+6ms, total 57ms
D/overlay ( 161): FROM_STATE = OV_CLOSED TO_STATE = OV_BYPASS_3_LAYER
just a lilttle bump, if anyone can just point me in the dirrection of where i'm going wrong here I would be very appreciative.

Categories

Resources