To ensure the output format is APK, add --target_android_output_format=apk
to the build command:
npm run build -- Debug --target_os=android --target_arch=arm --target_android_output_format=apk
To change the target SDK level, add --target_android_base
:
npm run build -- Debug --target_os=android --target_arch=arm --target_android_output_format=apk --target_android_base=mono
For devices or an emulator:
./src/build/android/adb_install_apk.py ./src/out/android_Debug_x86/apks/Bravex86.apk
Or:
adb install ./src/out/android_Debug_x86/apks/Bravex86.apk
If you have an AAB file:
bundletool build-apks --connected-device --bundle=out/android_Debug_x86/apks/Bravex86.aab --output=out/android_Debug_x86/apks/Bravex86.apks
bundletool install-apks --apks=out/android_Debug_x86/apks/Bravex86.apks
adb logcat -d | third_party/android_platform/development/scripts/stack --output-directory out/android_Component_arm
Refer to the Chromium debugging instructions.
To set up an Android emulator, follow these steps:
- Install Android Studio from the official website.
- Open Android Studio and navigate to the AVD Manager.
- Create a new virtual device and select the desired phone model and system image.
- Configure the emulator settings and finish the setup.
- Start the emulator from the AVD Manager.