码迷,mamicode.com
首页 > 其他好文 > 详细

[Call Vibrator] How to Enable Outgoing Call Vibration without ROOT

时间:2014-10-22 06:18:03      阅读:260      评论:0      收藏:0      [点我收藏+]

标签:android   style   blog   http   color   io   ar   for   strong   

Call Vibrator requires the radio log of phone to detect when outgoing call is answered. But since Android JellyBean(4.1), the permission for radio log is not granted to non-system app by default.

If your device is rooted, Call Vibrator will prompt a dialog to let user grant the permission to itself.

If your device is not rooted, follow the instructions to grant the permission to Call Vibrator manually.

1. Install the USB driver of your phone

2. On your phone go to Settings –> Developer options –> toggle on Android debugging . (If you don’t  see Developer options in Settings, go to Settings –> About phone and tap Build number until you see the message that you are a developer and return to Settings, you will then see Developer options)

bubuko.com,布布扣    bubuko.com,布布扣

3. Download Read Log Permission Enabler script from https://bitbucket.org/shaobin0604/readlogpermissionenabler/downloads/readlogpermissionenabler.zip, it’s about 500KB zip file

4. Unzip the content to C:\

5. Click Start –> Run, type cmd, when the black window opens up, type:

cd C:\readlogpermissionenabler\libs

bubuko.com,布布扣

6. Connect your phone to the PC with USB cable.

7. make sure that in command prompt your are now at C:\readlogpermissionenabler\libs and type:

adb devices

you will see a combination of numbers and letters and the word device, that means you are all set.

bubuko.com,布布扣

8. for CallVibrator(Lite) type

adb shell "pm grant io.github.yutouji0917.callvibrator.ad android.permission.READ_LOGS"

for CallVibrator(Donate) type

adb shell "pm grant io.github.yutouji0917.callvibrator.donate android.permission.READ_LOGS" 

bubuko.com,布布扣

or if you are lazy just run the script grant_read_log_permission.bat in C:\readlogpermissionenabler

9. Unplug your phone from PC

10. Open the Call Vibrator app. Check all the options you need.

11. Try making a call. If the phone does not vibrate, try reboot the phone and then making a call once again.  

That’s all, have fun with outgoing call vibration to avoid radiation

[Call Vibrator] How to Enable Outgoing Call Vibration without ROOT

标签:android   style   blog   http   color   io   ar   for   strong   

原文地址:http://www.cnblogs.com/shaobin0604/p/4039309.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!