Shell dumpsys telephony.registry on Lolipop

328 views
Skip to first unread message

Venca Vašátko

unread,
Jun 19, 2015, 8:57:49 AM6/19/15
to tas...@googlegroups.com
Hello, 

exist way how to check if phone setted call divert (forwarding) on Lolipop (rooted original Smasung GT-I9515 ROM I9515XXU1BOC3)? 

I'm try shell command 'dumpsys telephony.registry...' but not working. Causes permission denial. If i install tasker as system app, i see 'cant find service...'. Im try recompile tasker with adding to Manifest file user-permission for DUMP.

Exist any other way?

Thx. Vasatko

Baudouin MARBACH

unread,
Jun 24, 2015, 7:47:19 AM6/24/15
to tas...@googlegroups.com
Hi Venca,

was interesting by same feature, but without root. anyway, here some information found around about your issue:

There's another (hacky) way to access dumpsys without rooting your device - through adb shell.

This will require allowing USB debugging, and finding the port of the adb service.

  1. Enable USB debugging on your device. This option is found under Settings -> Developer Options.

  2. Connect your device to a PC, and run the following command from the PC's shell/command line: adb tcpip 12345. Then, from your devices shell, issue the command adb connect localhost:12345 from your application. You can now disconnect the device from USB. Alternatively, you can scan the ports on your device one by one without USB connection, using adb connect localhost:<portnum> and find the port adb service is listening to.

  3. Authorize USB debugging from the pop up confirmation dialog, if prompted. Check the "always" checkbox to do not require this step again.

  4. Now, when you have access to the adb service, use adb shell dumpsys ... from your application code to get whatever service dump you need.

NOTE: You don't need the DUMP permission for that to work.

source > http://stackoverflow.com/questions/17493316/android-dumpsys-permission-denial

hope that helps


Reply all
Reply to author
Forward
0 new messages