Command Line Program

export LD_PRELOAD=/data/local/tmp/test.so
./test

UI Program

setprop wrap.com.test.game "LD_PRELOAD=/data/local/tmp/test.so"
am start -n com.test.game/com.test.game.Main