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

  • 相关阅读:
    JavaScript学习总结(十一)——Object类详解
    在mysql命令行下执行sql文件
    canal HA配置
    canal 常用配置
    canal 监控数据库表 快速使用
    HashMap 因子对性能的影响
    JVM 调优
    JVM jstat 详解
    Tomcat 异常关闭排查
    Mysql canal 监控数据变化
  • 原文地址:https://www.cnblogs.com/shaobin0604/p/4039309.html
Copyright © 2011-2022 走看看