why not able to run dumpsys in android os in 2.3

Discussion in 'Android Forum' started by tarun18, Aug 22, 2012.

  1. tarun18

    tarun18 New Member

    Joined:
    Aug 22, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    i am getting output of dumpsys command in Android OS 2.2 but not in Android OS 2.3


    i am running the following instruction:-
    Process p = Runtime.getRuntime().exec("/system/bin/dumpsys media.player");
    in Android OS 2.2 i am getting output as:-
    DUMP OF SERVICE media.player:
    Files opened and/or mapped:
    /proc/33/fd/15 -> /system/media/audio/ui/VideoRecord.ogg


    but in Android OS 2.3
    we are getting permission denied


    What changes should i do?
     
Search tags for this page
android dumpsys media.player -m
,
android dumpsys permission
,
android dumpsys thread
,
dumpsys exec
,

dumpsys permission denied