Open elichai opened 7 years ago
This example on this repo is meant to compile on your device.. To use his examples on other devices you can compile a couple different ways.. I am not a great teacher. This is complicated stuff maybe, hopefully this is helpful
I realize this is a late reply but I want to answer this for others.
Method 1 for compiling aosp sources is to to use the aosp make system. This is actually the entire branch of Android for your phone on a Linux computer, not Windows or Mac, that's a huge time sync, just use Ubuntu.
It is also c programming there is nothing specialized about it at all. So if you want to open a shared library you can see how timwr did this with dirtycow in his run-as example.
But any time you need to compile something aosp proper, such as an exploited but still working app_process, you should just use aosp. Do little tests by opening shared libraries using dirtycow proof of concept, run-as.c style dlopen..
timwr's exploited run-as.c dlopen section.. (this is inside a function, like main) It will open the shared library on your phone when you execute it (but you don't need aosp to compile it)
void * selinux = dlopen("/system/lib64/libselinux.so", RTLD_LAZY);
void * selinux = dlopen("/system/lib/libselinux.so", RTLD_LAZY);
Hi, I'm trying to compile this for the Galaxy S7 (935F), and I'm trying to understand if I need to download the whole Samsung opensource for my device via
repo
somehow. Or I didn't understood what you meant and I just need to feed thedirtycow.xml
to repo somehow?Thank you.