我在 android 2.x 中创建了一个应用程序,其中几乎没有活动和一个创建动态壁纸的动态壁纸服务
所以在模拟器中构建和运行整个应用程序后,如果我从动态壁纸选择器访问动态壁纸并尝试设置我创建的动态壁纸,我会遇到以下错误。
而且我真的不知道它在说什么,因为我也删除了 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)