I develope a lockscreen app which installed in system/app,the app has 
permission:android.permission.BIND_APPWIDGET and android:sharedUserId = 
"android.uid.system". In my app I would bind system music appwidget as 
default.And if I run it just as a system app,it runs properly and binds 
widget successfully.But I want to use reflection to reflec the lockscreen 
view when lockscreen should be actived(this is what I exactly want to 
do).So I just modified createLockScreen method in LockPatternKeyguardView 
as before.But when it runs to bind appwidget code, error happens with no 
android.permission.BIND_APPWIDGET permission,says uid of my app > 1000 or 
something like that. And I also notice that AppWidgetPickerActivity in 
system Settings app use bindAppWidgetId() either and it even doesn't 
declare android.permission.BIND_APPWIDGET and it still works properly. I 
wonder why my app runs properly as a normal system app and it can bind 
widget successfully but when it ran by reflection in system_server 
process,things goes wrong,and why AppWidgetPickerActivity does not declare 
the permission it still binds widgets successfully with no security 
exception?

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to