so im having problem with accessing root app data directory my example dir: /data/app/com.android.chrome-jAB96abq4RXcFrKebL0BUQ==
i want to get into /data/app/com.android.chrome without extension name to get list folder tried /data/app/* com.android.chrome */ but got null
and here's my code
String path = "/data/app/*com.android.chrome*";
File file = new File(path);
String[] dir = file.list();
for(int i=0;i<dir.length;i++) {
Toast.makeText(this, "File: "+dir[i], Toast.LENGTH_LONG).show();}
and before that i've done changing the permission to 777 and using * com.android.chrome * goes well but my code above return null when try to listing directory
try {
Runtime.getRuntime().exec("su -c chmod 777 /data");
Runtime.getRuntime().exec("su -c chmod 777 /data/app");
Runtime.getRuntime().exec("su -c chmod 777 /data/app/*com.android.chrome*")
} catch (IOException e) { e.printStackTrace(); }
tried without * package * and still got null sry the stars doesnt have whitespace...got to whitespace because the texteditor recognize as text format
thanks before