Open Change Performance Profile

Discussion in 'Tasker' started by Biojo, Apr 2, 2020.

  1. Biojo

    Biojo New Member

    Joined:
    Apr 2, 2020
    Messages:
    7
    Likes Received:
    0
    Hi,

    I recently upgraded to Android 10 (Linage 17.1)

    I would like to change the Device Performance (Power Save, Effieciency, Balanced, Quick, Performance)

    Ive tried doing the autotools secure setting this didnt notice a change, same with the adb and compare.

    Is there any way this can be changed?

    thanks
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,477
    Likes Received:
    799
    Hi there. Maybe you can try using the "Custom Setting" action for that. Try using the Magnifying glass in the action with the option to automatically find the setting and see if Tasker can find it. Hope this helps! :)
     
  3. Biojo

    Biojo New Member

    Joined:
    Apr 2, 2020
    Messages:
    7
    Likes Received:
    0
    Hi João

    tried that says no settings where changed, any other ideas?

    thansk
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,477
    Likes Received:
    799
  5. Biojo

    Biojo New Member

    Joined:
    Apr 2, 2020
    Messages:
    7
    Likes Received:
    0
  6. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,477
    Likes Received:
    799
    Ok, that means that there's no setting that corresponds to that system setting unfortunately. Nothing you can do but use AutoInput in that case, sorry!
     
  7. Biojo

    Biojo New Member

    Joined:
    Apr 2, 2020
    Messages:
    7
    Likes Received:
    0
    No worries, I didnt know if since android 10 there might be another location info/settings was stored

    My last rom used boeffla kernal, so tasker sent a message to boeffla app to change it

    thansk
    Carl
     
  8. Biojo

    Biojo New Member

    Joined:
    Apr 2, 2020
    Messages:
    7
    Likes Received:
    0
    Would knowing this help? Just unsure which java to use in Tasker and which bit goes where

    https://lineageos.github.io/android...ower/PerformanceManager.html#PROFILE_BALANCED


    package lineageos.power {

    public class PerformanceManager {
    method public lineageos.power.PerformanceProfile getActivePowerProfile();
    method public static lineageos.power.PerformanceManager getInstance(android.content.Context);
    method public int getNumberOfProfiles();
    method public int getPowerProfile();
    method public lineageos.power.PerformanceProfile getPowerProfile(int);
    method public java.util.SortedSet<lineageos.power.PerformanceProfile> getPowerProfiles();
    method public boolean setPowerProfile(int);
    method public boolean setPowerProfile(lineageos.power.PerformanceProfile);
    field public static final java.lang.String POWER_PROFILE_CHANGED = "lineageos.power.PROFILE_CHANGED";
    field public static final int PROFILE_BALANCED = 1; // 0x1
    field public static final int PROFILE_BIAS_PERFORMANCE = 4; // 0x4
    field public static final int PROFILE_BIAS_POWER_SAVE = 3; // 0x3
    field public static final int PROFILE_HIGH_PERFORMANCE = 2; // 0x2
    field public static final int PROFILE_POWER_SAVE = 0; // 0x0
    field public static final java.lang.String TAG = "PerformanceManager";
    }
     
    Last edited: Apr 3, 2020
: tasker

Share This Page