This project can run as root to call system service RPC from normal apps.
- Download Android source code, see to https://source.android.com/source/downloading.html.
cd ${SourceDir>}
source build/envsetup.sh
lunch
make
- Wait for compiling, I suggest U have a good sleep.
cd external
git clone https://github.com/ztc1997/anycall-native.git
cd BinderDemo
mm
- The binary should be located in
${SourceDir}/out/target/product/*/system/bin/anycall
.
Start shell and it will connect to service anycall ${service name}
Input format ${transaction code} ${Base64.encodeToString(data.marshall())}
.
Input anycall ${service name} ${transaction code} ${Base64.encodeToString(data.marshall())}
Output format ${Base64.encodeToString(reply.marshall())}
.
The data
, reply
type is android.os.Parcel
.