Skip to content

Latest commit

 

History

History
49 lines (38 loc) · 1.84 KB

README.md

File metadata and controls

49 lines (38 loc) · 1.84 KB

Android-Deeplink-Parser

This Script can be used to Parse the AndroidManifest.xml and Strings.xml to List the all deeplinks of the android application

Alt Text

Example

     <activity android:theme="@style/Theme.lolSplashBackground" android:name="com.lol.test.LaunchActivity" android:screenOrientation="portrait">
            <intent-filter>
                <action android:name="android.intent.action.VIEW"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <category android:name="android.intent.category.BROWSABLE"/>
                <data android:scheme="@string/application_data_scheme" android:host="@string/application_data_host"/>
                <data android:scheme="@string/application_scheme" android:host="@string/application_data_host"/>
            </intent-filter>
            <intent-filter>
                <data android:scheme="@string/lol_schema" android:host="@string/lol_host"/>
                <action android:name="android.intent.action.VIEW"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <category android:name="android.intent.category.BROWSABLE"/>
            </intent-filter>

Output

AndroidManifest.xml and Strings.xml will parsed and all deeplink will be resulted as shown below

------------------------------------com.lol.test.LaunchActivity----------------------------------------------

https://example.lol.com/test
lol://lol
word://

Installation

Install the apktool 
sudo apt-get install apktool
git clone https://github.com/Shapa7276/Android-Deeplink-Parser.git
Run below command with apk file as input 
python3 deeplinkparser.py facebook.apk

Reference