我在android 2.x中创建了一个应用程序,其中很少有活动和livewallpaper服务创建动态壁纸
所以在模拟器中构建并运行整个应用程序之后,如果我从Livewallpaper选择器访问Livewallpaper并尝试设置我创建的动态壁纸,我遇到了以下错误。
我真的不知道它的说法,因为我已经删除了BIND_WALLPAPER权限
WARN/LiveWallpaperPreview(373): Failure setting wallpaper
WARN/LiveWallpaperPreview(373): java.lang.SecurityException: Selected service does not require android.permission.BIND_WALLPAPER: ComponentInfo{com.vb.ui/com.vb.ui.CWallpaper}
WARN/LiveWallpaperPreview(373): at android.os.Parcel.readException(Parcel.java:1247)
WARN/LiveWallpaperPreview(373): at android.os.Parcel.readException(Parcel.java:1235)
WARN/LiveWallpaperPreview(373): at android.app.IWallpaperManager$Stub$Proxy.setWallpaperComponent(IWallpaperManager.java:210)
WARN/LiveWallpaperPreview(373): at com.android.wallpaper.livepicker.LiveWallpaperPreview.setLiveWallpaper(LiveWallpaperPreview.java:95)
WARN/LiveWallpaperPreview(373): at java.lang.reflect.Method.invokeNative(Native Method)
WARN/LiveWallpaperPreview(373): at java.lang.reflect.Method.invoke(Method.java:521)
WARN/LiveWallpaperPreview(373): at android.view.View$1.onClick(View.java:2067)
WARN/LiveWallpaperPreview(373): at android.view.View.performClick(View.java:2408)
WARN/LiveWallpaperPreview(373): at android.view.View$PerformClick.run(View.java:8816)
WARN/LiveWallpaperPreview(373): at android.os.Handler.handleCallback(Handler.java:587)
WARN/LiveWallpaperPreview(373): at android.os.Handler.dispatchMessage(Handler.java:92)
WARN/LiveWallpaperPreview(373): at android.os.Looper.loop(Looper.java:123)
WARN/LiveWallpaperPreview(373): at android.app.ActivityThread.main(ActivityThread.java:4627)
WARN/LiveWallpaperPreview(373): at java.lang.reflect.Method.invokeNative(Native Method)
WARN/LiveWallpaperPreview(373): at java.lang.reflect.Method.invoke(Method.java:521)
WARN/LiveWallpaperPreview(373): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
WARN/LiveWallpaperPreview(373): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
WARN/LiveWallpaperPreview(373): at dalvik.system.NativeStart.main(Native Method)