Or Continue to Thread: [Q] android.app.DownloadManage…
Find Your Device:
17th June 2014, 04:51 AM   |  #1  
OP Junior Member
Thanks Meter: 2
28 posts
Join Date:Joined: Nov 2007

I am developing a module for which I have hooked android.app.DownloadManager.enqueue callback. The code is like this -
Unhook hook = findAndHookMethod(android.app.DownloadManager.class,
		    		new XC_MethodHook() {
	            protected void afterHookedMethod(MethodHookParam param) throws Throwable {
	            	log("After enqueue.");
This code is invoked from initZygote. It was working perfectly fine in Jellybean 4.1.2 on my older Xperia J. However, the callback is not invoked in Xperia Z running Kitkat 4.4.2 ROM. The callback does get attached successfully since the "hook" value is not null. I have tried moving the invoke into handlePackageLoad when the "android" package is loaded, but still no luck.

Any suggestions?
Last edited by ie5x; 17th June 2014 at 05:17 AM. Reason: Corrected the hook name.