[Xposed General] hamzahrmalik:
I'm trying to replace the lock screen handle

this is my code

public void handleInitPackageResources(InitPackageResourcesParam resparam)
throws Throwable {
if(!resparam.packageName.equals("com.android.keyguard"))
return;
XposedBridge.log("woo");
Drawable d = Drawable.createFromPath("/data/data/" + pname + "/files/lock_ic.png");
XResources.setSystemWideReplacement("com.android.keyguard", "drawable", "ic_lockscreen_handle_normal", d);
}

But get this error

08-12 20:40:33.155: I/Xposed(1051): woo

08-12 20:40:33.255: I/Xposed(1051): android.content.res.Resources$NotFoundException: com.android.keyguard:drawable/ic_lockscreen_handle_normal

08-12 20:40:33.255: I/Xposed(1051):	at android.content.res.XResources.setSystemWideReplacement(XResources.java:325)

08-12 20:40:33.255: I/Xposed(1051):	at com.hamzah.lockscreentweakbox.Main.handleInitPackageResources(Main.java:144)

08-12 20:40:33.255: I/Xposed(1051):	at de.robv.android.xposed.IXposedHookInitPackageResources$Wrapper.handleInitPackageResources(IXposedHookInitPackageResources.java:20)

08-12 20:40:33.255: I/Xposed(1051):	at de.robv.android.xposed.callbacks.XC_InitPackageResources.call(XC_InitPackageResources.java:28)

08-12 20:40:33.255: I/Xposed(1051):	at de.robv.android.xposed.callbacks.XCallback.callAll(XCallback.java:70)

08-12 20:40:33.255: I/Xposed(1051):	at de.robv.android.xposed.XposedBridge$6.afterHookedMethod(XposedBridge.java:344)

08-12 20:40:33.255: I/Xposed(1051):	at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:645)

08-12 20:40:33.255: I/Xposed(1051):	at android.app.ResourcesManager.getTopLevelResources(Native Method)

08-12 20:40:33.255: I/Xposed(1051):	at android.app.ActivityThread.getTopLevelResources(ActivityThread.java:1537)

08-12 20:40:33.255: I/Xposed(1051):	at android.app.LoadedApk.getResources(LoadedApk.java:480)

08-12 20:40:33.255: I/Xposed(1051):	at android.app.ContextImpl.<init>(ContextImpl.java:2030)

08-12 20:40:33.255: I/Xposed(1051):	at android.app.ContextImpl.createPackageContextAsUser(ContextImpl.java:1906)

08-12 20:40:33.255: I/Xposed(1051):	at com.android.server.AttributeCache.get(AttributeCache.java:114)

08-12 20:40:33.255: I/Xposed(1051):	at com.android.server.wm.AppTransition.getCachedAnimations(AppTransition.java:263)

08-12 20:40:33.255: I/Xposed(1051):	at com.android.server.wm.AppTransition.loadAnimation(AppTransition.java:288)

08-12 20:40:33.255: I/Xposed(1051):	at com.android.server.wm.WindowStateAnimator.applyAnimationLocked(WindowStateAnimator.java:1568)

08-12 20:40:33.255: I/Xposed(1051):	at com.android.server.wm.WindowManagerService.relayoutWindow(WindowManagerService.java:2958)

08-12 20:40:33.255: I/Xposed(1051):	at com.android.server.wm.Session.relayout(Session.java:190)

08-12 20:40:33.255: I/Xposed(1051):	at android.view.IWindowSession$Stub.onTransact(IWindowSession.java:235)

08-12 20:40:33.255: I/Xposed(1051):	at com.android.server.wm.Session.onTransact(Session.java:125)

08-12 20:40:33.255: I/Xposed(1051):	at android.os.Binder.execTransact(Binder.java:404)

08-12 20:40:33.255: I/Xposed(1051):	at dalvik.system.NativeStart.run(Native Method)

But when decompiling Keyguard.apk I have these files under drawable-xhdpi and all other dpi folders

http://screencloud.net/v/yOo9