Debug Bridge - cleveradssolutions/CAS-Android GitHub Wiki
Note
This document is intended only for internal debugging of applications in release.
Android Debug Bridge (adb
) is a versatile command-line tool that lets you communicate with a device.
adb
is included in the Android SDK Platform Tools package. Download this package with the SDK Manager, which installs it at android_sdk/platform-tools/
. If you want the standalone Android SDK Platform Tools package, download it here.
Enable adb debugging on your device and connect the device over USB.
Before issuing adb
commands, it is helpful to know what device instances are connected to the adb
server. Generate a list of attached devices using the devices
command:
adb devices
To enable debug mode for all applications using the CAS.AI SDK on a connected device, use the following command. This mode is required for other debug bridge commands and activates all SDK logs.
adb shell setprop debug.clever.ads.solutions.enabled 1
To disable debug mode, use the following command:
adb shell setprop debug.clever.ads.solutions.enabled 0
Note
The debug properties will remain active until you manually disable them.
You can manage the active ad sources using the whitelist and blacklist properties. Enter one or more adapter names separated by commas without spaces.
To specify a whitelist of source adapters for processing:
adb shell setprop debug.clever.ads.solutions.whitelist AdMob,Kidoz
To specify a blacklist of source adapters to filter out from processing:
adb shell setprop debug.clever.ads.solutions.filter AdMob,Kidoz
Note
Make sure you clear the filters after testing to activate the full list of sources for proper operation of the SDK.
To clear the whitelist and blacklist, use the following commands:
adb shell setprop debug.clever.ads.solutions.whitelist .
adb shell setprop debug.clever.ads.solutions.filter .
To open a selected test suite upon application launch, use the command below. Supported values include 'cas', 'max', and 'is'.
Open Test Suite command:
adb shell setprop debug.clever.ads.solutions.testsuit cas
To clear the selected test suite, use:
adb shell setprop debug.clever.ads.solutions.testsuit .