Remove All Ads from XDA
Honor View 10

How to get package, which calls X function?

1,280 posts
Thanks Meter: 2,346
By pyler, Senior Member on 29th June 2014, 10:57 AM
Post Reply Email Thread

I wrote module XInternalSD. Here is java source: 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, 11:04 AM |#2  
rovo89's Avatar
Senior Recognized Developer
Thanks Meter: 79,077
Donate to Me
Try AndroidAppHelper.currentPackageName().
The Following User Says Thank You to rovo89 For This Useful Post: [ View ]
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes