Skip to content

Java As Root , executing a class - Not found error #15

Description

@oabukmail

i finally managed to build the anbuild.dex with AndroidStudio

but when i run the JavaCommand

it outputs ( not found ) , as if its executing the class as string in the command line

Shell shell;
        try {
            shell = RootShell.getShell(true);
            JavaCommand cmd = new JavaCommand(
                    43,
                    false,
                    MainActivity.this,
                    runclass.class.getName()) {

                @Override
                public void commandOutput(int id, String line) {
                    Log.v("aaaaa",line);
                    //visualUpdate(TestHandler.ACTION_DISPLAY, line + "\n");
                    super.commandOutput(id, line);
                }

            };
            shell.add(cmd);
        } catch (Exception e) {
            e.printStackTrace();
        }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions