Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

How to get package, which calls X function?

OP pyler

29th June 2014, 10:57 AM   |  #1  
OP Senior Member
Thanks Meter: 575
 
477 posts
Join Date:Joined: Jan 2013
More
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, 11:04 AM   |  #2  
rovo89's Avatar
Senior Recognized Developer
Thanks Meter: 15,039
 
2,385 posts
Join Date:Joined: Jan 2012
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