Hi Pierre Hébert​​​, could you add a permission package with android.permission.STATUS_BAR

Hi Pierre Hébert​​​, could you add a permission package with android.permission.STATUS_BAR ? (I’m not root so I can’t use Lukas’s app unfortunately)

I’m testing some things, and I need that permission.

What I found so far is this (important! It won’t probably work on most devices)

Expand notification tray:

var sbservice = LL.getContext().getSystemService( “statusbar” );

sbservice.expandNotificationsPanel();

Expand quick settings:

var sbservice = LL.getContext().getSystemService( “statusbar” );

sbservice.expandSettingsPanel();

Hide clock (needs the permission, not sure if this work):

var sbservice = LL.getContext().getSystemService( “statusbar” );

sbservice.disable(sbservice.DISABLE_CLOCK);

]]>

3 Commentsto Hi Pierre Hébert​​​, could you add a permission package with android.permission.STATUS_BAR

  1. Anonymous says:

    < ![CDATA[

    Seems that permission is only for system apps…ouch

    ]]>

  2. Anonymous says:

    < ![CDATA[

    These non public APIs have changed over time. LL requests for android.permission.EXPAND_STATUS_BAR but I am not sure it is granted on all versions. Before API 17 “expandNotificationsPanel” was simply “expand”

    ]]>

  3. Anonymous says:

    < ![CDATA[

    First and second works for me!!!

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *