[Solved] Uninstall android application with out user interaction


I got solution for this question.
I have cracked code AOSP framework level(android.content.pm) and signed as a ploatform apk …
Finally app is silently uninstalling…

or

String cmd = “sh /system/bin/pm uninstall ” + packageName;

    try {Process su = Runtime.getRuntime().exec("su");
        DataOutputStream outputStream = new DataOutputStream(su.getOutputStream());
        outputStream.writeBytes(cmd+"\n");
        outputStream.flush();
        outputStream.writeBytes("exit\n");
        outputStream.flush();
        su.waitFor();

    } catch (IOException e) {

        throw new RuntimeException(e);

    } catch (InterruptedException e) {

        throw new RuntimeException(e);
    }

solved Uninstall android application with out user interaction