Got things working. The problem seems to be `$PPID`, if I find and concat the pid manually things seem to work on `4.0`.

    var pid = obj.getClass().forName('android.os.Process').getMethod('myPid', null).invoke(null, null);