-
Notifications
You must be signed in to change notification settings - Fork 223
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added bulk-add modules and a fileprovider tracer script
- Loading branch information
Ch0pin
committed
Dec 29, 2022
1 parent
676cbb8
commit e29fb9a
Showing
3 changed files
with
53 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"Name": "content_providers/file_provider_implementation", | ||
"Description": "Logs maps of file->content URIs", | ||
"Help": "N/A", | ||
"Code": " | ||
console.log('\\n-----------File Provider impl Monitor by @chopin---------\\n'); | ||
|
||
let hook_1672136330 = Java.use('androidx.core.content.FileProvider$SimplePathStrategy'); | ||
let overloadCount_1672136330 = hook_1672136330['addRoot'].overloads.length; | ||
for (let i = 0; i < overloadCount_1672136330; i++) {\n\thook_1672136330['addRoot'].overloads[i].implementation = function() { | ||
colorLog('[i] File Provider detected -> uri -> content://' + this.mAuthority.value +'/' + arguments[0],{ c: Color.Green }); | ||
colorLog('\\t\\\\',{c: Color.Blue});\n\t\tcolorLog('\\t for --->file://'+arguments[1] +'\\n', {c: Color.Blue}); | ||
let retval = this['addRoot'].apply(this, arguments); | ||
return retval; | ||
|
||
} | ||
} | ||
|
||
" | ||
} |