google / conscrypt

Conscrypt is a Java Security Provider that implements parts of the Java Cryptography Extension and Java Secure Socket Extension.
Apache License 2.0
1.28k stars 274 forks source link

libconscrypt_jni.so is not 16kb aligned for Android #1212

Open fxsweety opened 1 month ago

fxsweety commented 1 month ago

Android has released to check if the libraries used are 16kb aligned https://developer.android.com/guide/practices/page-sizes#:~:text=Beginning%20with%20Android%2015%2C%20Android,on%20these%2016%20KB%20devices and we noticed libconscrypt_jni.so comign from aws sdk is not aligned

/tmp/my_apk_out9/tmp/my_apk_out8/lib/arm64-v8a/libconscrypt_jni.so: \e[31mUNALIGNED\e[0m (2**12)

when checked with aws (https://github.com/aws-amplify/aws-sdk-android/issues/3624) they mentioned its coming from google could you please help

smore-lore commented 1 month ago

Hi, are you building from source? You should be able to try something like this: https://github.com/google/conscrypt/pull/1213

tylerjroach commented 1 month ago

Confirming that org.conscrypt:conscrypt-android:2.5.3 has 16KB page support and our dependency has tested it to work properly.