Android :: Dlopen Error With Working Libraries On Other Phone
Aug 21, 2010I have a problem: Cant load library with my phone, but an other can open it, why?
CODE:..............
And yes, the other lib is there too.
I have a problem: Cant load library with my phone, but an other can open it, why?
CODE:..............
And yes, the other lib is there too.
I am an Android app developer, and I have purchased a Nexus One device which I use to continuously test my developed Android applications.
Background: ----------------- One of the applications I developed uses a native shared library (e.g. myNativeLib.so). Only my application loads & uses this native library. I had developed this app before Android NDK came out. I pack my native library into my apk's 'assets' folder, and during my application start- up, I extract this native library from my package's assets folder to my app private directory (i.e. <assets> -> /data/data/<myappprocess>/ myNativeLib.so). Then I use System.load() API in my application to dynamically load this native library.
Problem: ------------ This application was developed during Android 1.5 (i.e. cupcake) days {I didn't have the Nexus One then}. The above procedure has been working without any problems right from Android 1.5 to Android 2.2 (i.e. Froyo). I have also tested the same on my Nexus One for Android 2.1 (i.e. Eclair) and Android 2.2.
The problem began the moment I recently upgraded my Nexus One to Android 2.2.1 via the FRG83 system update. Now, whenever I try to load my native library, I get the following error:
D/dalvikvm( 3653): Trying to load lib /data/data/<myappprocess>/ <mynativelib>.so <some address> I/dalvikvm( 3653): Unable to dlopen(/data/data/<myappprocess>/ <mynativelib>.so): Cannot load library: link_image[1995]: failed to link <mynativelib>.so
What I have Tried: -------------------------- 1. I tried my application using Android 2.2 SDK (emulator)...it works, no issues. 2. I checked out the latest froyo & android2.2.1 source code from Android open-source, built & tested my application + native lib using the latest froyo source...it built & ran, no issues. This should've taken care of any changes in the native code dependencies between Android 2.2 & Android 2.2.1 3. I even checked Android 2.2.1 source code for dalvik (java System & Runtime classes) + bionic (linker & dlopen sources) between Android 2.2 & Android 2.2.1 (using source checked out from Android open-source), but couldn't find anything consequential 4. I am unable to return my Nexus One to Android 2.2.
I was really excited today when I saw the Tools r7 and ADT 0.9.8 were available and the latter had this note;
Fixes problems with handling of library project names that contain characters that are incompatible with the Eclipse path variable. Now properly sets up the link between the main project and the library project.
I create the library (foolib - no spaces, no caps, no punctuation). So far so good. I go to the main project, go to preferences --> Android. In the library box I add the new library. It appears. I press Apply. I press OK.
Nothing happens.
I return to the preferences, the library is no longer there JUST LIKE BEFORE.
I'm building an app where I want to architect the app layer separately from the service layer (not android services). So I'll create a service interface(the apis) and then create a class(es) that implement that service interface. Inside the android application layer, I want to code to just that service interface. I think this is similar to how the google maps apis works. the api interface and stubs are in the framework, then each device actually provides the implementation. I don't need to go that far, but I am wondering how I package this up. One, where would I put these interfaces, so I can code to them in the app layer (like Activities). Second, how do I tell Android where the implementing classes are? I'm guessing this is somewhere in the manifest? For now I think I would probably just build the service implementation with the application source code, if that's easier. Eventually I'd like to break that out and drop it in as a 3rd-party jar.
View 4 Replies View RelatedI 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. 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.
[code]....
My app uses location services, and has the manifest entry:
<uses-library android:name="com.google.android.maps" />
Does anyone know if these libraries are guaranteed to be included on every Android phone? If not, how would I know if they are not there?
I'm new to Java/Eclipse/Android, so this is probably an easy (if not stupid) question:
After creating a new Android project, I want to import some (what I think are standard) Java libraries. However, some import statements throw an error:
HelloAndroid.java:
import java.awt.Color; (The import java.awt.Color cannot be resolved)
import javax.imageio.ImageIO; (The import javax.imageio cannot be resolved)
while others don't:
import java.io.File; (no error)
I've done some googling and tried to add these classes to my class path by going to project->properties->libraries but I haven't been able to figure out what to do exactly.
Does anyone have any experience using JNI to call native C/C++ libraries in Android? Is the environment suitable for running C/C++ libraries and if so is there anything specific about the environment which you need to accommodate?
View 2 Replies View RelatedA few minutes ago I have updated my Samsung Galaxy with the "New PC Studio" for Germany (not Android 1.6!!!). After that, my mobile restarted and now the whole system isnīt working. There always appers an error message that process com.android.phone has stopped unexpectedly. Normaly( when I bought this phone ) I was able to tap to Wait, but now there is no way to do it. Now I can only tap to close but then it cuttes all my conections. This wouldnīt be the problem if it appeared only one time, but THE ERROR MESSAGE APPEARS EVERY 5 SECONDS.
View 7 Replies View RelatedI have a rooted Evo, running warm's tpt rom. Juice Defender was working fine for me until last night. I noticed it wasnt in the notification bar. (I do not have any task killers)
I am getting the following erros when I set it up:
mobile data control doesnt work
mobile data control (apn method) doesnt work
The log shows:
apn not found
Since froyo my market says an error has occurred please try again later. Is this a known problem or is it me only? My marketplace being down is very annoying. I want to get my backup pro and do a factory reset but I can't get into my market to download my backup pro. fix this!
View 3 Replies View RelatedI have a rooted phone with froyo.
Just got the phone today I was putting music on my phone from doubleTwist everything was going fine.
Then i put pictures / videos on my phone and i started getting an SD error and my camera stopped working.
So i reformatted the SD card and the card started to read fine but the camera is still not working
The camera / video looks like its just flashing red & white no picture at all.
(I tried google goggles as well and it looks the same)
Camera was working FINE before SD problems started
Tried doing a factory reset too
Okay so I rooted using one click method and I choose Tazz Froyo as a custom ROM I want to go back to 2.1 OTA when I download RUU I go threw the wizard I get to the third screen I get ERROR [170]: USB CONNECTION ERROR The ROM update Utility cannot connect to your Android phone. Please check that the USB cable is connected properly between PC and your Android phone. Check the following: 1. The Android phone is connected to the USB cable. 2. The USB is connected to the PC. Which they clearly are the light is on the phone. I made sure it's connected threw the phone and the computer. I don't understand can someone help please so I can go back to 2.1 root isn't for me!
View 3 Replies View RelatedI have recently installed jaggyrom for rooted htc explorer. When programs do not work, I try to report the error and google play store suddenly crashes. I eventually have to force close google play store.
HTC Explorer A310e
I recieved an error two days ago saying "out of disk space". After restoring my phone to factory the ability to receive MMS/SMS went kaput! Surprisingly I can send but not receive messages. I was on the phone with Sprint for hours with to technicians. One of the techs implied that some of the early batch of phones from Best Buy have this issue. This is just one of the techs viewpoint. I am going to swap the phone today and see if it resolves the issue. I switched to Sprint specifically for TEXT so this could be a deal breaker. More to follow.
View 6 Replies View RelatedMy wi fi isn't working it has found our connection ever since I turned it on now it doesn't. I am sitting right next to the computer but it cannot find it. I uninstalled 360 camera because that is the last app I installed. It was working fine untill I did the update. Than it did a force close a couple of times. That was yesterday than when I turned my phone on this morning it can not find the connection and the letter icon that shows you have mail is not up in the left hand corner of the phone. I really don't want to do a factory reset if I can help it.
View 2 Replies View Relatedam trying to call a class from the main and am getting an error and the program is stop working. am trying to call from the main.class the test.class
on the main i have write the following code
Intent connectIntent2 = new Intent(Conn.this, Test.class);
startActivity(connectIntent2);
and on the test.java i have write[code]....
the R.id.button_scan is been define in the main.xml and i just want to make it invisible.
I keep getting the following message.
Sorry The process com. Android phone has stopped unexpectedly please try again. Force close.
This seems to stop the HTC Internet widget from working. I keep replacing it but it still happens.
Is anyone else all of a sudden having problems with Yahoo mail not working and giving an authentication error when trying to re-add the account?
ETA: I just found that these settings work but I have to disable WiFi which is total BS
For Incoming Server Settings set the IMAP server to imap.mail.yahoo.com and the Port to 143
For Outgoing Server Settings set the SMTP Server to "smtp.mobile.mail.yahoo.com and the Port to 587
Okay -- so I finally mustered up the courage to root and try a lag fix. I rooted using the unleash the beast files. And then tried the lag fix over at XDA found here: xda-developers - View Single Post - [UTIL] One Click Lag Fix 2.0
I ran the lagfix_ext2, like the forum says -- it took about 10 minutes to do some things ...There was an error message in the middle saying that it had to stop the process. I said okay, but the process kept working, finished, and then rebooted. It booted up, and I downloaded quadrant again (it was gone for some reason), ran it, and only ran an 895 -- this is 16 points less than what i ran just using the unleash the beast. Should I try the lag fix again?
I currently have swype and I love it, but it only works in portrait mode.. if I turn my phone landscape for anything, I always get the error "not supported in this resolution." All I want is a version that is supported so I don't get this error.
View 20 Replies View RelatedAnyone else's text not working right now? I keep getting 9230 or 2112 error
View 22 Replies View RelatedI have Verizon Galaxy S3 After I update the system to Android 4.3 mobile hotspot it dos`t work (validation error)
View 6 Replies View RelatedI tried to unlock my SPH-L720 (Sprint's GS5) so I downgrade baseband to MDC, all good so far, then I tried to upgrade the baseband again after the unlocking process but got an error, and that's it wifi and sound are not working, phone is slow, it has a security notice that something was block, and I can't flash it to stock ROM or anything using Odin, only got errors.
View 7 Replies View RelatedI looked around for info on this in the group but couldn't find any... so far in my OpenGL programming I've just done everything directly, but I was curious if anyone had written any "wrapper" libraries for it besides min3d. Min3d is great (or is getting there) but it's GPL'd, making it unsuitable for a commercial product (if my understanding of the license is correct).
View 5 Replies View RelatedWe have been using gdbserver to debug our JNI code as follows. We have been less than successful -- breakpoints do not always get activated, sometimes we get SIGILL, and we seldom ever get a useful stack when the debugging stops on SIGSEGV, sometimes the program dies with SIGTRAP!!!
We have occasionally been able to have debug sessions with s/n, but since pretty much every SEGV has resulted in either a damaged stack, or at least, gdbserver can not find the stack, it's a pain.
Is there something we are missing? Is there some reason to use the 4.2.1 vs 4.3.1 toolchain? (Why are there two toolchains? I assume because of bugs in each that are fixed in the other... which bugs?)
We guessed that the "dalvik" process that we wanted to debug was app_process --- we found this out by looking at /proc/XXX/cmdline on our running activity.
This is what we do typically do(repo sync directory is in /build/m1 for me)
invoke:/build/m1/prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin/arm-eabi- gdb
(some of us use -tui, some of us run it under Xemacs, etc.)
We then do:
CODE:..........
We then start our activity, adb shell, discover the PID of the activity, discover the IP of the phone with "netcfg", and:
app_15 1815 49 107468 15744 ffffffff afe0d4a4 S org.credil.thomas_watson.videophoneservice
# gdbserver 0.0.0.0:1234 --attach 1815 Attached; pid = 1815 Listening on port 1234 Remote debugging from host 132.213.238.4
(gdb) target remote 132.213.236.179:1234
This is with a physical device. With an emulator, one has to, of course, run the adb forward stuff. (Too bad that doesn't work with a real device too, as then I would not need to run gdb over the wireless)
Program terminated with signal SIGKILL, Killed. The program no longer exists. (gdb) target remote 132.213.236.179:1234 Remote debugging using 132.213.236.179:1234 Error while mapping shared library sections: /system/bin/linker: No such file or directory. warning: .dynamic section for "/build/m2/out/target/product/generic/ symbols/system/lib/libc.so" is not at the expected address (wrong library or version mismatch?) ... many more GDB will be unable to debug shared library initializers and track explicitly loaded dynamic code. tkill () at bionic/libc/arch-arm/bionic/tkill.S:52
(gdb) break sendframe Breakpoint 1 at 0x80401086: file /build/m1/packages/apps/ VideoPhoneService/libvideophoneservice/src/rooster.cpp, line 96.
(gdb) c Continuing.
Program terminated with signal SIGTRAP, Trace/breakpoint trap. The program no longer exists. (gdb)
(btw, an annoyance about googlegroups is that it seems that it looks at my SMTP from header, rather than From:... This basically means that I can not post from gmane.org via NNTP, which is a shame. Is there a secret NNTP access on googlegroups.com, I wonder?)
I need to know the footPrint of Android and its various Libraries
- Hide quoted text -
Is it possible to use a native C/C++ library? If so, are there any restrictions for those libraries to be used?
View 3 Replies View RelatedI'm currently making a purely math and algorithm-based C++ library. Will I be able to use it when developing for Android? How? I guess writing some Java wrappers, but will it then be usable on all JVMs?
View 3 Replies View RelatedMy YouTube app isn't working, when I click on the video that I want to watch it gives me an error message stating that the video cannot be played. I've searched on the forum and other models have reported similar problems, but as far as I can see this hasn't been discussed specifically for the tattoo
View 10 Replies View Related