第7章 andriod so 环境配置

来源:互联网 发布:百度ar扫描软件 编辑:程序博客网 时间:2024/06/01 08:48

So 逆向环境配置

 

1、 环境Ubuntu 15.10 IP:192.168.153.130

2、 工具android-ndk-r10

 

 

1、 配置andriod-ndk-r10

1)创建目录

root@strom-virtual-machine:~# mkdirandroid-ndk

2)解压包

root@strom-virtual-machine:~/android-ndk#tar -jxvf android-ndk32-r10-linux-x86_64.tar.bz2

3)配置环境变量(注意:加入环境变量)

export PATH=$ANDROID_NDK

export ANDROID_NDK=/root/android-ndk

 

在此NDK环境配置成功

 

2、 编译makefile(注意:这几行改成你相应的路径)

NDK_ROOT=/root/android-ndk

TOOLCHAINS_ROOT=$(NDK_ROOT)/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64

TOOLCHAINS_PREFIX=$(TOOLCHAINS_ROOT)/bin/arm-linux-androideabi

TOOLCHAINS_INCLUDE=$(TOOLCHAINS_ROOT)/lib/gcc/arm-linux-androideabi/4.8/include-fixed

 

3、 使用make命令

root@strom-virtual-machine:~/apktool/hello1#make

 

4、 生成hello 文件和hello.o文件

root@strom-virtual-machine:~/apktool/hello1#ls

hello  hello.c hello.o

 

 

 

0 0