Part second of Android Developer Options Explained
Debugging
https://oneuniversalgadget.blogspot.com/2023/02/part-second-of-android-developer.html
Debugging options provide ways to configure on-device debugging and to establish communication between the device and your development computer.
Enable USB debugging, so your Android device can communicate with your development machine through Android Debug Bridge (adb). The Wait for Debugger option is unavailable until you use Select debug app to select the app to debug. If you enable Wait for Debugger, the selected app waits for the debugger to attach before it executes.
Other debugging options include the following:
Store logger data persistently on device: Select the type of log messages you want to store persistently on the device. The options are off, all, all but radio, or kernel only.
Select mock location app: Use this option to fake the GPS location of the device to test whether your app behaves the same in other locations. To use this option, download and install a GPS mock location app.
Enable view attribute inspection: Saves view attribute information in the mAttributes member variable of a View instance so it can be used for debugging. You can access the attribute information through the Layout Inspector user interface. Without this enabled, the **Attributes** item is not available.
Enable GPU debug layers: Available on devices running Android 9 (API level 28) and higher. Enable this option to allow Vulkan validation layers to be loaded from local device storage. To learn more, read Vulkan validation layers on Android.
Networking
Networking options provide ways to configure Wi-Fi and DHCP settings.
Tap Select USB Configuration to specify how you want the computer to identify the device. you can configure devices for charging only, to transfer files (MTP), to transfer pictures (PTP), to use your mobile internet on the PC (RNDIS), or to transfer audio or MIDI files.
Tap Bluetooth AVRCP version and select the profile version you want to use to control the Bluetooth A/V equipment your device has access to.
Additionally, to fine-tune audio playback on the device, tap and set the following options:
Bluetooth Audio Codec: Adjust the sound quality (codec) of your devices by selecting one of the following codecs:
SBC: Transfers data to Bluetooth audio output devices such as headphones and speakers.
AAC: Provides better sound quality from wired devices than MP3 at similar bit rates.
aptX: Provides a wireless sound in high-quality smartphones, speakers, soundbars, headphones, and tablets.
aptX HD: Provides high-resolution streaming to Bluetooth devices.
LDAC: Provides high-quality music listening over wireless connections.
Enable Optional Codecs and Disable Optional Codecs: If you have additional codec implementations installed, use these options to enable and disable them.
Bluetooth Audio Sample Range: Adjusts the number of audio samples per second by selecting an audio codec sample rate. Higher sample rates use more resources.
Bluetooth Audio Bits Per sample: Sets the number of bits of information in each audio sample. With a higher the bit rate, the sound is better but the sample file is larger.
Bluetooth Audio Channel Mode: Selects mono or stereo.
Bluetooth Audio LDAC Codec: Optimizes the sound to increase audio quality, balance audio and connection quality, increase connection quality, or use an adaptive bit rate to balance audio and connection quality.
The followng list describes other ways to configure Wi-Fi and DHCP setup:
Wireless display certification: Enables advanced configuration controls and settings for Wireless Display certification to the specifications set forth in the Wi-Fi Alliance Wi-Fi Display Specification.
Enable Wi-Fi verbose logging: Increases the Wi-Fi logging level for each wireless network (SSID) you connect to according to its relative received signal strength (RSSI). For more information about logs, see Write and view logs with Logcat.
Aggressive Wi-Fi to cellular handover: When the signal is low, makes Wi-Fi more efficient in handing over the data connection to a cellular network.
Input
Enable Show taps to display taps when you touch the screen. A circle appears under your finger or stylus and follows you as you move around the screen. A tap works like a pointer when you record a video on your device.
Enable Pointer Location to show the pointer (tap) location on the device with cross-hairs. A bar appears across the top of the screen to track the cross-hair coordinates. As you move the pointer, the coordinates in the bar track the cross-hair location and the pointer path draws on the screen.
Drawing
Drawing options provide visual cues about the app's user interface and how it operates.
Enable Show Layout Bounds to show your app's clip bounds, margins, and other user interface constructions on the device.
Other drawing options include the following:
Force RTL layout direction: Forces the screen layout direction to be from right to left (RTL) or from left to right (default).
Window animation scale: Sets the window animation playback speed so you can check its performance at different speeds. A lower scale results in a faster speed.
Transition animation scale: Sets the transition animation playback speed so you can check its performance at different speeds. A lower scale results in a faster speed.
Simulate secondary displays: Creates a secondary display as an overlay on the device. This is useful when supporting additional displays with the Presentation API. For more information, see Secondary displays.
Hardware-accelerated rendering
Hardware-accelerated rendering options provide ways to optimize your app for its target hardware platforms by leveraging hardware-based options such as the GPU, hardware layers, and multisample anti-aliasing (MSAA).
Tap Simulate color space to change the color scheme of the entire device UI. The options refer to types of color blindness. The choices are:
Disabled (no simulated color scheme)
Monochromacy (limits color scheme to black, white, and gray)
Deuteranomaly (affects the display of red and green)
Protanomaly (affects the display of red and green)
Tritanomaly (affects the display of blue and yellow)
Protanomaly refers to red-green color blindness with weakness in red colors, and Deuteranomaly, refers to red-green color blindness with weakness in green colors.
If you take screenshots in a simulated color space, they appear normal, as if you didn't change the color scheme.
Some other ways to leverage hardware-based options are the following:
Set GPU renderer: Changes the default Open GL graphics engine to the Open GL Skia graphics engine.
Force GPU rendering: Forces apps to use the GPU for 2D drawing if they were written without GPU rendering by default.
Show GPU view updates: Displays any onscreen element drawn with the GPU.
Debug GPU overdraw: Displays color-coding on your device so you can visualize how how many times the same pixel has been drawn in the same frame. The visualization shows where your app might be doing more rendering than necessary. For more information, see Visualize GPU overdraw.
Debug non-rectangular clip operations: Turns off the clipping area on the canvas to create unusual (non-rectangular) canvas areas. Normally, the clipping area prevents drawing anything outside the bounds of the circular clipping area.
Force 4x MSAA: Enables multisample anti-aliasing (MSAA) in Open GL ES 2.0 apps.
Disable HW overlays: Disables the hardware overlay. Note that using the hardware overlay lets apps that display something on the screen use less processing power. Without the overlay, apps share the video memory and have to constantly check for collision and clipping to render a proper image. The checking uses a lot of processing power.
Media
Set Disable USB audio routing on to disable automatic routing to external audio devices connected to a computer through a USB port. Automatic routing can interfere with apps that are USB-aware.
In Android 11 and higher, when an application without RECORD_AUDIO permission uses UsbManager to request direct access to a USB audio device with audio capture capability (such as a USB headset), a warning message appears asking the user to confirm permission to use the device. The system ignores any "always use" option, so the user must acknowledge the warning and grant permission every time an app requests access. To avoid this behavior, your app should request the RECORD_AUDIO permission.
Monitoring
Monitoring options provide visual information about app performance, such as long thread and GPU operations.
Tap Profile GPU Rendering and then On screen as bars to display the GPU rendering profile as bars, . For more information, see Profile GPU rendering speed.
Apps
App options help you understand how your app operates on the target device.
Tap Background process limit to set the number of processes that can run in the background at one time.
Tap Reset ShortcutManager rate-limiting during testing so background apps can continue to call shortcut APIs until the rate limit is reached again. For more information about shortcuts and rate limits, see ShortcutManager.
Enable Don't keep activities to increase battery life by destroying every activity as soon as the user leaves the activity's main view.
Comments
Post a Comment