Skip to content

imndx/openssl-compile-android-19

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

为Android 4.4.4编译 openssl 说明

  1. 依赖
    1. NDK r20
  2. 克隆openssl到当前目录,并切换到 OpenSSL_1_1_1-stable分支
    git clone https://github.com/openssl/openssl.git
    git checkout OpenSSL_1_1_1-stable
    
  3. 设置环境变量 export NDK_ROOT=/Users/{你的实际路径}/sdk/ndk/20.1.5948944
  4. 开始编译,编译生成的文件在output目录,Android 4.4.4 只支持arm(armeabi-v7a)和x86两种架构 ./launcher.sh

编译Android 4.4.4版本协议栈

  1. 拷贝上面编译生成的libcrypto.alibssl.amars/openssl/openssl_lib_android的对应目录

    arm对应armapi-v7a

  2. 编译协议栈,但abiFilter未生效,编译生成的aar包含了arm64-v8ax86_64架构的so文件,需要解压aar,删除arm64-v8ax86_64jni/arm64-v8ajni/x86_64,然后用zip压缩工具压缩,并后缀名为```.aar``

致谢

本项目,参考了Tutorial: Compile OpenSSL 1.1.1 for Android application,脚本等也是基于其修改

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published