I want use adb shell cammand in android.
My goal is show "adb shell pm list packages -f" result on android( just print that result )
I think it is only one solution.. is there any other solution on my problem?
I want just print that result( packages list )..!
Process process = Runtime.getRuntime().exec("your command"); BufferedReader bufferedReader = new BufferedReader( new InputStreamReader(process.getInputStream()));
try this one , Hope this will helps you ! cheers !