// Pseudo-code for an Xposed module findAndHookMethod("com.example.game.PlayerStats", lpparam.classLoader, "loseLife", new XC_MethodReplacement() @Override protected void replaceHookedMethod(MethodHookParam param) throws Throwable // Do nothing instead of losing a life // param.setResult(null); // OR Increase lives instead: // int currentLives = (int) param.thisObject.getClass().getMethod("getLives").invoke(param.thisObject); // param.thisObject.getClass().getMethod("setLives", int.class).invoke(param.thisObject, currentLives + 1);