I have an application with the following manifest permission. My application runs on Android JB 4.1.2.
UPDATE I am trying to run an application on JB, but it does not work. It works with earlier versions of the API.
<manifest xmlns...> <uses-permission android:name="android.permission.SET_DEBUG_APP"/>
The problem is that I execute the command as follows:
Process proc = Runtime.getRuntime().exec("service call activity 42 s16 com.android.systemui"); BufferedReader bufferedReader = new BufferedReader( new InputStreamReader(proc.getInputStream())); String line; while ((line = bufferedReader.readLine()) != null) { Log.e("IDSPlayer", "RESULTAT BARRA:" + line); }
The result is as follows:
12-20 11:17:50.110: E/IDSPlayer(23840): RESULTAT BARRA:Result: Parcel( 12-20 11:17:50.110: E/IDSPlayer(23840): RESULTAT BARRA: 0x00000000: ffffffff 00000064 00650050 006d0072 '....d...Perm' 12-20 11:17:50.110: E/IDSPlayer(23840): RESULTAT BARRA: 0x00000010: 00730069 00690073 006e006f 00440020 'ission .D.' 12-20 11:17:50.110: E/IDSPlayer(23840): RESULTAT BARRA: 0x00000020: 006e0065 00610069 003a006c 00730020 'enial:. .s.' 12-20 11:17:50.110: E/IDSPlayer(23840): RESULTAT BARRA: 0x00000030: 00740065 00650044 00750062 00410067 'etDebugA' 12-20 11:17:50.110: E/IDSPlayer(23840): RESULTAT BARRA: 0x00000040: 00700070 00290028 00660020 006f0072 'pp(.). .fro' 12-20 11:17:50.110: E/IDSPlayer(23840): RESULTAT BARRA: 0x00000050: 0020006d 00690070 003d0064 00330032 'm. .pid=.2.3.' 12-20 11:17:50.110: E/IDSPlayer(23840): RESULTAT BARRA: 0x00000060: 00370038 002c0033 00750020 00640069 '8.7.3.,. .uid' 12-20 11:17:50.110: E/IDSPlayer(23840): RESULTAT BARRA: 0x00000070: 0031003d 00300030 00320037 00720020 '=.1.0.0.7.2. .r.' 12-20 11:17:50.110: E/IDSPlayer(23840): RESULTAT BARRA: 0x00000080: 00710065 00690075 00650072 00200073 'equires .' 12-20 11:17:50.110: E/IDSPlayer(23840): RESULTAT BARRA: 0x00000090: 006e0061 00720064 0069006f 002e0064 'android..' 12-20 11:17:50.110: E/IDSPlayer(23840): RESULTAT BARRA: 0x000000a0: 00650070 006d0072 00730069 00690073 'permissi' 12-20 11:17:50.110: E/IDSPlayer(23840): RESULTAT BARRA: 0x000000b0: 006e006f 0053002e 00540045 0044005f 'on..SET_.D.' 12-20 11:17:50.110: E/IDSPlayer(23840): RESULTAT BARRA: 0x000000c0: 00420045 00470055 0041005f 00500050 'EBUG_.APP' 12-20 11:17:50.110: E/IDSPlayer(23840): RESULTAT BARRA: 0x000000d0: 00000000 '.... ')
This worked fine on ICS devices, and for it to run properly, it must have SET_DEBUG_APP permission. It doesnβt work on my new device, even if the resolution is on the manifest.
On the other hand, the command works fine in this new device if I execute through ADB.
How can I solve the resolution problem? Could there be a device error?
source share