I want to use commandline to start an android intent (say play a video in the Gallery app). Can I start the intent as root?
I tried
su -c "am start -a android.intent.action.VIEW -n com.android.gallery3d/.app.MovieActivity -d <some_file>"
It throws the error
su: exec failed for am start -a android.intent.action.VIEW -n com.android.gallery3d/.app.MovieActivity -d <some_file> Error:No such file or directory
EDIT :
This works alright (plays a video in gallery without root permissions). I want to run gallery with root permissions though.
am start -a android.intent.action.VIEW -n com.android.gallery3d/.app.MovieActivity -d <some_file>