Hendrik,

If you are taking about the built it "Power Controls" widget - it's part of the system image, more specifically, Settings application, and is signed with the platform key.

Note that starting with Android 2.0 (AFAIK), this settings only gives LocationManager permission to use the GPS chip, if/when an application requests it. It does not mean that the GPS chip is on all the time.

-- Kostya

11.12.2010 10:46, Hendrik Greving ?????:
I've triedWRITE_SECURE_SETTINGS.I've found out that only system apps can get this permission.Actually I've found out how to toggle GPS etc., but it is an expoit which I guess will be fixed with Gingerbread. Unfortunately.

    ----- Original Message -----
    *From:* TreKing <mailto:treking...@gmail.com>
    *To:* android-developers@googlegroups.com
    <mailto:android-developers@googlegroups.com>
    *Sent:* Friday, December 10, 2010 10:09 PM
    *Subject:* Re: [android-developers] Re: GPS

    On Fri, Dec 10, 2010 at 7:41 PM, Hendrik Greving
    <fourhend...@gmail.com <mailto:fourhend...@gmail.com>> wrote:

        I've actually just tried that. But even if I put the
        permission in the manifest, it still makes a security
        exception that this permission was missing


    What did you try?

    On Fri, Dec 10, 2010 at 11:06 PM, Hendrik Greving
    <fourhend...@gmail.com <mailto:fourhend...@gmail.com>> wrote:

        The "power control plus" application can do it. So what's the
        trick?


    Being built as part of the firmware probably helps.

    
-------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> -
    Chicago transit tracking app for Android-powered devices

-- You received this message because you are subscribed to the Google
    Groups "Android Developers" group.
    To post to this group, send email to
    android-developers@googlegroups.com
    To unsubscribe from this group, send email to
    android-developers+unsubscr...@googlegroups.com
    For more options, visit this group at
    http://groups.google.com/group/android-developers?hl=en

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to