Dashboard for Pebble 1.13 – Lollipop Consequences

Dashboard for Pebble is now version 1.13. This version contains a new Materially design, as well as fixes to the Data and ringer toggles as a result of the changes in Android 5.0 Lollipop.

The major point to note is that the method reflection I was using to implement the Data relied on an internal API in the ConnectivityManager class (which has existed in Android since very early versions). This API has since been moved to a more system-exclusive location (the Telephony class) that cannot be invoked using method reflection and as such the feature stopped working on Android 5.

Being one of the main features of Dashboard (and half the sole purpose in the original Data Toggle watchapp), this outcome was unacceptable. After searching for an alternative and finding nothing but similarly disgruntled Android developers, I came across a widget developer named Cygery who had found a way to implement this behavior in Android 5, and after a brief email exchange I was informed of his method, which was quite ingenious.

As a result, full functionality has been restored on Android 5, but at a large price – the feature now requires root privileges to change that particular settings. This is obviously not ideal, but the only way I can see the feature working beyond Android 5. Users on KitKat and below remain unaffected and the app should work as it did for them. Therefore, the Dashboard Android app will request root when it starts, as well as post a notification if the Data toggle is used and root access is not given. Most SuperUser apps will allow this access to be given on a per-app basis, so please allow this if you are a Android 5 user and need to use the Data toggle.

Download

Get it on Google Play

Advertisements
6 comments
  1. JesusC said:

    Just a quick question (maybe this has been asked before)…is it possible to trigger the flashlight of the mobile device via dashboard?

    • bonsitm said:

      It’s a feature of the Camera API. So long as a proper use of the system Camera Service lock can be implemented, it may be possible.

      • JesusC said:

        Sounds good. Thanks for the fast reply. Darn, I love this app. Great tool. 🙂

      • bonsitm said:

        Thanks! I’ll see what I can do.

  2. Fito said:

    Hi there!

    I find your app very helpfull but I miss the GPS toggle. Do you plan to add it?

    Thanks!

    • bonsitm said:

      Unfortunately not, since I cannot find a reliable API to use. Sorry!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: