Comments (4)
Lowering the target SDK version doesn't seem to be a good approach.
Agreed, and the Play Store is going to be enforcing a minimum target SDK version later this year.
To clarify: it still fails with a latest code version
How are you testing this? Did you rebuild the libraries from source?
Are you on arm, arm64, or something else?
I've been running the ics-openconnect master branch on Android O for several months, and haven't seen the nag toast since I applied the fix. The fix will be in the next release.
from ics-openconnect.
More details:
- latest code from master branch;
- building on Debian 9;
- NDK versions 16 and 17 (tried both);
- target SDK in build.gradle is 27;
- I assume that libraries are rebuilt from source, as per makefile and fetch.sh script in:
https://github.com/cernekee/openconnect/tree/12581e2dcef823b95c14952839b7c7be9bd37130/android
The runtime error message is:
java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/{APP_ID}/lib/arm/libopenconnect.so: has text relocations
So it is a case for ARM. Thing worth to mention:
- it crashes on Nexus 7 and Moto Z;
- it doesn't crash on Samsung devices (probably android core was modified by Samsung to remove this check) with both arm (Android 6.0.1) and arm64 (Android 7) architectures.
Another thing: readelf/scanelf do not show TEXTRELs in openconnect.so, which is strange ...
Also, the app crashes with same error if instead of rebuilding I just use these files:
openconnect-wrapper.jar & stoken-wrapper.jar
to compile the app.
Some of my findings:
- There could be an issue with GMP being a static lib. Going to try and add GMP as shared library.
https://stackoverflow.com/questions/39232794/shared-library-using-static-gnutls-library-has-text-relocations - Build some (or all) libs with
API_LEVEL := 26
instead of 14 for arm may help:
https://gmplib.org/list-archives/gmp-discuss/2017-May/006109.html
https://github.com/Rupan/gmp
Going to try the above and post an update.
from ics-openconnect.
Hi,
I am so sorry about this, but the problem was with my local environment:
I had a custom setup of a project, with a wrong symlink for jni. So I was trying to launch the app with old jni (before --with-pic change was commited, and probably few other changes) and new jar.
I can confirm that the latest codebase works fine with target SDK > 22 on all android devices (tested on multiple arm & arm64 phones).
Sorry for a false-positive alert.
from ics-openconnect.
Hi bro, can you send me your new artifacts? I use the author new artifacts and encounter MTU problem, I wanna check if my build is wrong. Thank you very much.
from ics-openconnect.
Related Issues (20)
- compile fail HOT 1
- OpenConnect Removed from play strore HOT 7
- openconnect not working android 10 HOT 3
- please help whenever I try to compile with nettle 3.4.1 and gnutls 3.6.8 HOT 1
- Can't build package missing using in Windows 10
- Update binary components with fixes for android 10 crash HOT 1
- Integration with Client
- App crash in all android version HOT 1
- import org.stoken.LibStoken not found HOT 1
- DNS!
- cannot connect to vpn server hosted by cisco vpn with error message "tls fatal alert has been received" HOT 3
- How can I get DTLSCompression and an DTLSCipher information HOT 6
- Error building make external HOT 1
- why is the project not developing? HOT 2
- library "libopenconnect.so" not found
- Openconnect APK 1119 does not work on Amazon Fire TV
- Hello This error occurs when we click on the server HOT 2
- apk download link? HOT 4
- undefined reference from libz.so and libm.so how to fix it help plz
- it does not work for android 12 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ics-openconnect.