1
Completed

Add WRITE_SETTINGS and MODIFY_PROFILES to manifest

Hello,

I'm wondering if these two permissions could be added to the manifest?

lineageos.permission.WRITE_SETTINGS
lineageos.permission.MODIFY_PROFILES

These two simple lines have the potential to greatly ease the life of LineageOS users

According to: Official LineageOS SDK manifest:

  • Allows an application to write to Lineage system settings
  • Allows an application to modify system profiles

Anyway, thank you a lot for letting us enjoying this wonderful Tasker application!

1 reply

How exactly would you use those permissions in Tasker? Can you clarify? Thanks!

H

I wanted to be granted these permissions to set lineageos' system profile with tasker (Home, Silent, Auto, Custom(s)...)

But I found a way to make it work without these permissions! Here are the tasker tasks: https://gist.github.com/Helium100/cc817db5d3ac8508bdda6a00134be0dd

These tasks work for Lineage OS 20, likely 19.1, and for some future versions I guess.

The only thing that was a bit tedious was about the none referenced Java objects from the lineageos framework. But never mind, I found my way through Java reflexion, dex injection and an obsolete (yet very complete) Samara Jinnah's github to get everything to work properly.

The unreferenced lineageos framework that gave me hard time is the one located here (on almost all recent lineageos) "/system/framework/org.lineageos.platform.jar". I confess I do not know if there is an easy way to reference .jar in tasker (to get some object finder and methods suggestions)