How To Install The Application On Physical Device?
Table Of Contents:
- Build A Debug APK.
- Check For The Device Id.
- Install The App On Specific Device.
- Check if the App is Installed.
- Add Changes In AndroidManifest.xml File.
(1) Build A Debug APK
cd android
./gradlew assembleDebug
- The APK will be generated at:
android/app/build/outputs/apk/debug/app-debug.apk
(2) Check For The Device Id
adb devices

(3) Install The App On Specific Device.
- Now, install the APK on a specific device by using its device ID:
adb -s P122C3000278 install android\app\build\outputs\apk\debug\app-debug.apk
(4) Check if the App is Installed.
adb -s P122C3000278 shell pm list packages | findstr com.ammyai

(4) Add Changes In AndroidManifest.xml File
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
android:launchMode="singleTask"
android:windowSoftInputMode="adjustResize"
android:exported="true">
<! – ✅ This intent filter is for launching the app – >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<! – ✅ This intent filter is for deep linking – >
<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="ammyai" android:host="verify" />
</intent-filter>
</activity>