Quantcast
Channel: xda-developers - Android Software and Hacking General [Developers Only]
Viewing all articles
Browse latest Browse all 3614

Static binaries will be bypass PIE in lollipod

$
0
0
Hi,
After researching why one binary is working in both systems (5.0 and 2.3.5) ive found that (is logic i know) static compiled binaries will be work in both versions.

The problem is that the binary will be increased in size a lot, but you don´t need to touch your application and just compile your c code and put in assets folder.

So all the static compiled binaries still will be working in both versions of Android

With the "file" command you can see if is statically compiled:

ELF 32-bit LSB executable, ARM, version 1 (SYSV), statically linked, not stripped

This binary will work in any version of android and you have to compile with the static flag:
arm-linux-androideabi-gcc -static yourcode.c -o youbinary

I said the binary increase the size dramatically but for small binaries maybe its ok.

Regards,
Sylkat

Viewing all articles
Browse latest Browse all 3614

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>