Rules for Riru - InternalBrowserRedirect
/
|--- packages.json
|--- rules
|--- <package>.json
|--- <package2>.json
|--- <package3>.json
|--- ...json
- packages.json - Version and target package of ALL rules
- rules directory - All rules save in this directiry
- <package>.json - Rule for <package>
{
"packages": [
{
"packageName": "com.tencent.tim",
"version": 2
}
]
}
packages
- Array for rulespackageName
- Target package of rule inrules
directoryversion
- Version of rule inrules
directory
{
"tag": "TIM",
"authors": "Kr328",
"rules": [
{
"tag": "default",
"url-source": "intent://extra/url",
"url-filter": {
"ignore": ".*qq\\.com/.*",
"force": ""
}
},
{
"tag" :"build-in QQ Mail",
"url-source": "intent://extra/pluginsdk_inner_intent_extras/url",
"url-filter": {
"ignore": ".*qq\\.com/.*",
"force": ""
}
}
]
}
-
tag
- Rule mark that display in controller app -
authors
- Rules authors (eg.Kr328, null, ...
) -
rules
- Rules array -
url-source
- Path that extract URL from intentintent://extra/url
actually extract byintent.getExtras().get("url").toString();
intent://extra/pluginsdk_inner_intent_extras/url
actually extract byintent.getExtras().getBundle("pluginsdk_inner_intent_extras").get("url").toString();
-
url-filter
- URL from intent that be filtered by regexignore
andforce
-
Enable Controller App's
Debug Mode
Menu - Settings - Debug Mode
-
Install Android Debug Bridge
Google it please
-
Using
adb logcat
adb logcat -s InternalBrowserRedirect -v raw
-
Reopen TARGET APPLICATION 's internal browser
-
ALL Intent structure will print to terminal
Example
Extract
url
in above image byintent://extra/pluginsdk_inner_intent_extras/url