0
Alert Slider - Send intent to three_key_mode

  1. Weathon
    Honeycomb Jul 21, 2016


    #1
  2. Hogyoku
    Donut Jul 21, 2016

    Hogyoku , Jul 21, 2016 :
    To me this commit seemed like they will allow you to customize the 2 key state in a future rom release or am i mistaken ?
     

    #2
  3. rharshit
    Donut Jul 21, 2016

    rharshit , Jul 21, 2016 :
    Try sending this intent with tasker

    Where <int state> is int value of state you want to set

    Here is a list

    Source: https://github.com/OnePlusOSS/andro...bb6#diff-742a31f24aca5140cae50895679adbccR137

    P.S. I hope you remember me :p
     

    #3
  4. Weathon
    Honeycomb Jul 22, 2016

    Weathon , Jul 22, 2016 :
    @Hogyoku yea it seems a bit like that.
    @rharshit
    Well, thanks for the answer ;) First of all, the extra name will not be TRI_STATE_KEY_INTENT_EXTRA, thats the variable name, the value of the variable is "switch_state" (Source: https://github.com/OnePlusOSS/android_frameworks_base/blob/ad12b9182ece358083b57592ef39d0270d20fbb6/core/java/com/oneplus/Actions.java )

    Second, why sending it as a Target: Activity?
    There is a Broadcast Receiver, so i guess i need to send it as Broadcast?

    Third, if i send it as Broadcast, it will deny the permission, because in tasker i cant send an intent with root.
    Thats why i sent it with the shell where i can enable root.

    Am i right or completely wrong?
     

    #4
  5. rharshit
    Donut Jul 26, 2016


    #5
  6. Weathon
    Honeycomb Jul 26, 2016


    #6