I am using the following command from Java and it works with my old phone
adb shell svc data disable
But with my new phone I am required to change to root (su command) in shell before I can successfully execute
svc data disable
Is it possible to do this in one command? I use Java's Process exec method to run this command, and I'm not how to make it work with my new phone since I am required to change the shell to root first.