1. Everything Android is a community forum that makes it easy to ask questions about anything and everything Android. It's 100% free and no registration required (though we think it would be awesome if you joined our community). Our community of experts are here to help.
    Dismiss Notice

Preshared library loading error

Discussion in 'Android Questions' started by Sensejus, Aug 13, 2014.

  1. Sensejus

    Sensejus New Member

    Aug 8, 2014

    Sponsored Ad

    Hi all,
    i am kinda new here, so this might not be the best section to post such topic, so if there is more appropriate section would be good if moderators would move it there.

    Now lets go to the problem:
    I am trying to create the app which would be able to do screenshots.
    I have downloaded master revision of AOSP from git. Compiled all OS source in linux. After that compiled native/cmds/screenshot source with mmm command, just before compiling changed so that it would produce me shared library with .so extension instead of executable.

    This way I got predefined shared library which I attached to hello-jni sample app from android-ndk-r10.

    Everything compiled and built in eclipse without any errors, and I install that app on physical device (tried on samsung galaxy s2 with android 4.1.2 and samsung galaxy s5 with android version 4.4) Everything here is still ok, but if i try opening that app i am getting such error:

    08-08 15:32:33.832: E/AndroidRuntime(12001): Caused by: java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1306]:  1694 cannot locate '__strrchr_chk'...
    and this happens when i try loading that screenshot library with such code:

    static {
    If anyone has had similar problems or have any ideas what might be wrong, I am happy to hear it.
  2. stevetaz


    Sep 23, 2008
    There are not many developers here. I suggest you try XDA Developers Forum....You will probably have much better luck at a quick and knowledgeable response....
  3. Sponsored Advertisement

  4. Sensejus

    Sensejus New Member

    Aug 8, 2014
    well i have had posted on there as well and there are no responses there as well :)
  5. nilofar shaikh


    Oct 20, 2015
    Performing a Hard Reset always solve all the problems on your device.

Share This Page