Cupcake still allows apps to get the wake lock permission.

On Thu, May 7, 2009 at 11:09 PM, Mariano Kamp <[email protected]>wrote:

> Hi,
>
>   I now had this issue twice (see stacktrace below).
>
>   I am sure that the permission is granted as I declare this in my
> manifest. Hence the app wouldn't be installed if the user didn't grant the
> permission.
>
>   (a) My guess is that it's a rooted phone where the app is started from an
> SD card (or similar) whereby the original user id has changed after the
> install.
>   (b) This could be a Cupcake "feature". Acquiring wake locks has gone down
> a similar path as turning GPS on?
>
>   I am trying to track down (a) with my users, but this takes some time. I
> meanwhile now that at least one user uses a JF image. Anybody else has
> experience with that issue?
>
>   Any idea if (b) might be valid? The app works on my 1.5 emulator and on >
> 400 phones with Cupcake, at least it is installed on them and users don't
> submit bug reports. So I guess (b) is not the case, but who knows?
>
> Cheers,
> Mariano
>
> -- Android Version: sdk=3, release=1.5, inc=126986
> -- Memory free: 0.53MB total: 2.75MB max: 16.00MB-- Thread State: RUNNABLE
> -- NewsRob Version: 2.1.2/212
> -- Stacktrace:
> java.lang.SecurityException: Neither user 10039 nor current process has
> android.permission.WAKE_LOCK.
> at android.os.Parcel.readException(Parcel.java:1234)
> at android.os.Parcel.readException(Parcel.java:1222)
> at
> android.os.IPowerManager$Stub$Proxy.acquireWakeLock(IPowerManager.java:178)
> at android.os.PowerManager$WakeLock.acquire(PowerManager.java:228)
> at
> com.newsrob.SynchronizationService.doSync(SynchronizationService.java:109)
> at
> com.newsrob.SynchronizationService.access$0(SynchronizationService.java:86)
> at com.newsrob.SynchronizationService$1.run(SynchronizationService.java:75)
> at java.lang.Thread.run(Thread.java:1058)
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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

Reply via email to