首页 > 代码库 > [Call Vibrator] How to Enable Outgoing Call Vibration without ROOT

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

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)

image    image

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

image

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.

image

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" 

image

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