How to get package, which calls X function?

Search This thread

pyler

Senior Member
Jan 13, 2013
1,279
2,372
Hello,

I wrote module XInternalSD. Here is java source: http://pastebin.com/VJ8CT5UR. But many people have asked for feature to change path to internal SD per app. I agree with them but I simply have no idea how to do it. I was thinking about small check > check which app calls getExternalStorageDirectory() and if this app is in whitelist, function will be hooked. But I am not sure if this is possible and/or the best way how to do it.

Have you any ideas how this can be done?
 

Top Liked Posts