zoukankan      html  css  js  c++  java
  • [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:
    eadlogpermissionenablerlibs

    image

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

    7. make sure that in command prompt your are now at C: eadlogpermissionenablerlibs 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: eadlogpermissionenabler

    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

  • 相关阅读:
    Navicat Premium 12安装及破解(四)
    ajax原理及应用(十六)
    为什么每次下载后必须关闭掉IO流(十五)
    FormData提交文件(十四)
    代理设计模式(三)
    单例模式(二)
    工厂模式(一)
    集采用的验证规则
    java泛型的理解
    spring中如何直接注入session和request对像
  • 原文地址:https://www.cnblogs.com/shaobin0604/p/4039309.html
Copyright © 2011-2022 走看看