How to get package, which calls X function?

976 posts
Thanks Meter: 1,109
 
By pyler, Senior Member on 29th June 2014, 09:57 AM
Post Reply Subscribe to Thread Email Thread
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?
 
 
29th June 2014, 10:04 AM |#2  
rovo89's Avatar
Senior Recognized Developer
Thanks Meter: 37,185
 
Donate to Me
More
Try AndroidAppHelper.currentPackageName().
The Following User Says Thank You to rovo89 For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes