Tech Updates

Android developer options tips and tricks

Android developer options tips and tricks

Android developer options tips and tricks android developers may not know.

Advertisements

The Android Developer Options is where you go to enable USB debugging, mock locations, show FPS counter, force RTL layout direction on your device etc. But did you know that Developer Options has a ton of other cool features hidden inside it?

Here are some Android developer options tips and tricks you might not know about.

1. Show CPU usage

If you want to keep an eye on the processor utilization, head over to Settings > Developer Options > Process Stats. You can view the CPU usage of all apps or choose any app to see its CPU usage in real-time. This is one of the cool Android developer options tips and tricks.

2. Show GPU overdraw

Advertisements

GPU (Graphics Processing Unit) overdraw shows how many times a pixel on your device’s display is drawn by the system or other apps. The more pixels on the screen, the more the GPU overdraw. If this number is higher than expected, it means that there’s a problem in the graphics rendering.

3. Record CPU usage

You can enable CPU sampling by going to Settings > Developer options > Profile GPU rendering, and checking the box next to “Record CPU usage”. Now when you run any app, you’ll see a notification in the status bar showing the average CPU usage for 1 minute.

4. Profile GPU rendering

This option will help you profile the time needed to render each frame of your app in real time. It records data about frames rendered, CPU usage and other hardware performance metrics that can be shared with developers. Make sure to check the box next to “Profile GPU rendering” in Developer Options > Profile GPU rendering before running any app.

5. Enable developer options by tapping 7 times on the build number

In Developer Options, you can find the “Enable developer options” option that is unchecked by default. Tapping it seven times in quick succession checks this box and enables Developer Options in your phone or tablet. A nice trick isn’t it?

6. Show pointer location

Developer Options have an option called “Show pointer location” that you can use to show a small circle around your device’s cursor. This makes it easier for you to know the exact touch location on the screen while using any app that manipulates or lets you draw something on-screen, e.g., Google Keep Note, A Sketch-type app, etc.

7. Show layout bounds

If you’re not a designer and don’t mind having reference points when building an app, for example for aligning menus and UI elements, check the box next to “Show layout bounds” in Developer Options > Drawable settings to see dotted lines around your screen’s edges.

8. Show GPU overdraw by colour

You can see the overdraw by colours in Developer Options > Debug GPU overdraw. For example, green means there’s no issue, orange means mild concern and red means major concern.

9. Show hardware layers updates

To monitor the framerate of your device’s animations and other 3D graphics rendering, check the box next to “Show hardware layers updates” in Developer Options > Debug GPU rendering.

10. Show CPU usage in ADB shell dumpsys activity

You can enable a special debug mode when you connect your device via USB and run the following command from your computer’s terminal: ADB shell dumpsys debug settings. This will give you detailed information about your device’s CPU usage.

11. Enable Bluetooth HCI snoop log

When you enable this option, all outgoing Bluetooth HCI packets will be saved on the sd card in /sdcard/btsnoop_hci.log file as a CSV list separated by commas. In other words, you’ll get a copy of all data packets sent by your device via Bluetooth.

12. Take bug report instantly after device crashes

If your phone or tablet is unstable, you can enable this option to take a bug report once it reboots after a crash. To do that, check the box next to “Take bug report instantly after boot” in Developer Options > Take bug report.

13. Optimize 2D graphics performance

You can optimize the 2D graphics rendering by checking this box in Developer Options > Debug GPU rendering. This option may slow down your device’s animations, but it’ll make scrolling faster and smoother.

14. Show GPU overdraw

This option will help you analyze how many times a pixel is rendered on your screen and how many times it is painted away. Check the box next to “Show GPU overdraw” in Developer Options > Debug GPU rendering.

15. Force 4x MSAA for OpenGL ES 2 apps

You can enable multi-sample anti-aliasing or MSAA which adds a level of smoothness to graphics. It has been designed from the ground up to support a large number of samples. You can enable this feature by checking the box next to “Force 4x MSAA for OpenGL ES 2” in Developer Options > Debug GPU rendering.

16. Show hardware layers updates during screen composition

This will allow you to see the framerate and other performance-related information during screen composition. If you want to make sure your phone or tablet is stable, check the box next to “Show hardware layers updates during screen composition” in Developer Options > Debug GPU rendering.

17. Show all ANRs (app not responding)

Checking this option will enable you to see any processes that are causing problems and preventing your device from switching between apps and/or making a call. To check this option, open Developer Options and check the box next to “Show all ANRs” under Application > Process Stats.

18. Enable OpenGL traces

OpenGL is the low-level rendering technology that Android uses for displaying graphics on devices such as tablets and mobile phones. If you want to see information related to all OpenGL rendering, check the box next to “Enable OpenGL traces” in Developer Options > Debug GPU rendering.

19. Enable tile update recording for UI debugging

If you often have trouble figuring out how your app works and what’s going on inside it, this is a good debug setting that will help you check what’s happening on the screen. It’ll record all tile updates and show you a preview of your screen whenever possible.

20. Show hardware layers updates

This option will help you monitor how your app is performing by giving you detailed info about all layers rendering in real-time. If you want to use this feature, go to Developer Options > Debug GPU rendering and check the box next to the “Show hardware layers updates” option.

21. Show all ANRs (app not responding)

Developer Options > Process Stats will show you information about all apps that are currently running or waiting in the background for a network or other resource, as well as app battery usage statistics. If you want to keep track of how your apps are performing, make sure you check the box next to the “Show all ANRs” option.

22. Show wake-locks

Checking this option will enable you to see any processes that prevent your device from sleeping, which means it may cause some serious battery drain if left active. If you want to troubleshoot battery drain problems, make sure you check the box next to “Show wake locks” in Developer Options > Debug GPU rendering.

23. Show all ANRs (app not responding) (2×1)

If you want to keep track of how your apps are performing and which processes may be causing performance or other problems, checking this option will show you all not responding processes.

24. Show CPU usage overlay

I often use this option to figure out whether I have any apps or processes that are using too much of my phone’s resources and causing performance issues, lags or other problems. It allows you to see the percentage for each app that is currently running in the background and how many resources it uses for displaying its own UI and processing different data.

25. Enable Wi-Fi Verbose Logging

Developer Options > Android debugging will let you see all Wi-Fi related information, such as Ver: Major and minor numbers of the current software version Phone MAC address SSID names (which may be hidden due to privacy) BSSID of the router itself Channel and band number of the current connection RSSI Signal level Link speed – down/up Encryption information

26. Enable bug report in the status bar

When you have a problem with your device, checking this option will enable a bug report icon in your notification area that you can tap to share crash reports with your developers.

27. Enable OpenGL traces (2×1)

Developer Options > Debug GPU rendering will give you a preview of your screen whenever possible in the form of notification in your status bar, which may be a much easier way to diagnose problems when compared to switching from one app to another and checking what’s going on.

Conclusion

These are some of the most useful developer options which you can enable on your Android device. There are also other helpful hidden settings such as Show touches – shows touch points on the display and vibrates when a new point is added. Allow mock locations – lets apps that simulate location data be used by other apps, i.e., GPS spoofing.

Advertisements

Related Articles

Leave a Reply

Your email address will not be published.

Check Also
Close
Back to top button