Git Product home page Git Product logo

riru-internalbrowserredirect-rules's Introduction

Riru - InternalBrowserRedirect Rules

Rules for Riru - InternalBrowserRedirect

中文说明

Rules Repo Structure

/
|--- 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>

File Structure

packages.json

{
	"packages": [
		{
			"packageName": "com.tencent.tim",
			"version": 2
		}
	]
}
  • packages - Array for rules
  • packageName - Target package of rule in rules directory
  • version - Version of rule in rules directory

<package>.json

{
    "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 intent

    intent://extra/url actually extract by

    intent.getExtras().get("url").toString();

    intent://extra/pluginsdk_inner_intent_extras/url actually extract by

    intent.getExtras().getBundle("pluginsdk_inner_intent_extras").get("url").toString();
  • url-filter - URL from intent that be filtered by regex ignore and force

Tips for find intent url path

  1. Enable Controller App's Debug Mode

    Menu - Settings - Debug Mode

  2. Install Android Debug Bridge

    Google it please

  3. Using adb logcat

    adb logcat -s InternalBrowserRedirect -v raw
  4. Reopen TARGET APPLICATION 's internal browser

  5. ALL Intent structure will print to terminal

    Example

    Extract url in above image by intent://extra/pluginsdk_inner_intent_extras/url

riru-internalbrowserredirect-rules's People

Contributors

kr328 avatar smolder3955 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.