-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Text relocations and crash in android 6.0 #76
Comments
I can confirm that setting the target SDK version to 23 causes my app to crash when playing AACPlayer. It does not crash when the target SDK version is 22. This was tested on the Marshmallow armeabi-v7a emulator. The issue is that the native components have text relations, and Marshmallow won't load them. Earlier versions of Android would load native components even if they had text relocations. I believe the solution is to recompile with the latest version of the NDK, and make sure there are no text relocations. More:
I have not rebuilt the aacdecoder components yet myself, since I will target SDK version 22 for the time being. |
Recompile with the latest version of the NDK is not helped |
Fixed here. |
Hmm.. when I've used *.so files that I've compiled from your code I'm getting this: 12-11 20:40:10.142 1888-1888/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** Any ideas? |
@radzio |
@tarigo it was my fault. I didn't update java code. After it everything has started working like a charm! THX! |
could anyone provide the compiled files thx so much |
@089apps Here it is :) |
Unfortunately I got the following exception: INFO] Decoder: start() starting native decoder - OpenCORE-MP3 [INFO] art: art/runtime/thread.cc:1336] No pending exception expected: java.lang.NoSuchMethodError: no non-static method "Lcom/spoledge/aacdecoder/Decoder$Info;.next()Lcom/spoledge/aacdecoder/BufferReader$Buffer;" [INFO] art: art/runtime/thread.cc:1336] at int com.spoledge.aacdecoder.Decoder.nativeStart(int, com.spoledge.aacdecoder.BufferReader, com.spoledge.aacdecoder.Decoder$Info) (Decoder.java:-2) Alternatively I found this thread: vbartacek/aacdecoder-android#76 With a link to a android.zip with new compiled accdecoder libs fixing text relocations issues, preventing the lib to run on Android 6.0 Marshmellow. I updated the libs in the 1.7.1 version of Trevor's module. Everything works now!
@tarigo how do I use your fork? |
@karaoak how do i use your fork? |
I'm already using the new lib and it works on Android M. |
@Informatheus where did u find it the new lib? |
@lucViana are the same that you posted. I only structured according to project folders and zipped with an instructions file. |
@Informatheus ooh great :) |
@lucViana you have no idea how much u helped me and other developers. |
Hi Informatheus, I see this lib is nice and could we improve further because there are some other issues as well in this lib.
|
Awesome, Informatheus , I am just using the new lib and testing a shoutcast audio/aacp on Eclipse Android 6.0 Emulator and it is working so f...ing awesome, thanks. |
Same thing on Android Studio 2, working great on Android 6.0 emulator. |
Just tested it on Nexus 5x with Nougat works like a charm after replacing the .jar and .so files with the ones from the zip provided on the link above. Thank you so very much :) |
"Informatheus" that's work! |
I needed for 64bit (Oreo) for arm64-v8a, armeabi-v7a and x86 |
@AppWerft You can download the requsted so files from maximxt@fd8d24b I have tested its working fine but this maximxt#1 issue occurs rarely. |
Currently I'm using a libs package from a phonegap project: |
@AppWerft have you recreated your app from scratch using Phonegap or can we just use these .so files in our android app for 64 bit support? |
I found this libs in an phonegap project and I'm using it in my Titanium project. I never seen this crash. |
When decoder library is loaded we have this warning:
W/linker: libaacdecoder.so has text relocations. This is wasting memory and prevents security hardening. Please fix.
But, if we set build target to API 23 and run this app on android 6.0 (emulator or device, doesnt matter) this causes exception and app force close.
The text was updated successfully, but these errors were encountered: