Skip to content

8kdesign/Android-Dev-Assistant

Repository files navigation

Android Dev Assistant

Android Dev Assistant is a productivity tool for macOS designed to help Android developers save time. It combines essential debugging and testing tools into an intuitive interface that anyone can use.

Features

  • Quick APK Installation/Management

    Drag and drop the apk file from your project's build filter to quickly install the latest build with a click. After installation, you can also cold restart or uninstall the app directly from the assistant.

  • Screenshot Edit + Sharing

    Capture a screenshot on your device directly from your Mac, and it will be copied to your clipboard. You can also crop/highlight a particular section before sharing it with the built-in editor.

  • Display Size Switching

    Mock a different display size/ratio on your device with just a click.

  • View Last Crash

    Check the last crash logs on your device with a click, sorted from most recent to oldest.

  • View logs, network, and shared preferences

    Trace logs and network on the device in real time. Check shared preferences values for debuggable apps.

  • Off-Commit File Search

    View and compare a file's state on another branch/commit without switching your current branch. Designed for large projects where switching branches could easily take a couple of minutes.

Installation

  1. Download the latest dmg file on your Mac.
  2. Double-click to open, then drag and drop the app into the application folder.
  3. Open the Android Dev Assistant app.

How to Use

Toggle between apk/device and repository mode with the tabs above.

image

📱 Apk/Device Mode

In this mode, you can perform apk and device-specific tasks, such as installing apk, viewing crash logs, and mocking screen sizes.

image

To import an apk file, drag it to the left panel. Ideally, the apk should be in the original folder it was generated in, so that it can be replaced by the latest build every time. After importing, you can tap on the toggles below to install, force restart, or uninstall the app.

image

On the main panel, you will find tools for interacting with your device via ADB. If you have multiple devices connected, tap on the device name at the top to open the menu to select your device.

image

1. Screenshot

The screenshot toggle allows you to quickly capture a screenshot. After capturing, it will automatically be copied to your Mac's clipboard, and a preview will pop up at the same time. A backup is also saved in the app's folder.

image

Click the preview to bring up the editor, where you can crop or highlight a particular section of the image.

image

2. Mock Screen

Select a screen size from the list, and your device will mock it.

image

⚠️ Note: You will need to enable WRITE_SECURE_SETTINGS in the developer settings for this to work. If you encounter any UI issues, switch back to the default mode and restart your device to clear it.

3. Crash Logs

Even after your app closed, the crash logs are still stored on the device for a period of time. Quickly view the logs sorted in chronological order, starting with the most recent crash, and quickly copy them if needed.

image

4. Read Layout

Capture the current screen layout and compare on-screen views. Click/right-click to select a component, then shift-click another component to compare their positions.

image

5. View Device Logs

Find what went wrong inside of logcat. Filter by tag to only keep the relevant logs.

image

6. View Network Logs

Capture network logs for unprotected requests.

image

🗃️ Repository Mode

In repository mode, you can browse files across any commits and branches without switching.

image

To get started, drag your project folder (which contains the git folder) into the left panel to import it.

image

Then, on the main panel, tap on the current branch to select the branch you want to view. Next, select the commit that you are interested in, and the tool will load all the files in the commit. Larger projects may take a while.

image

Once the files are ready, the spinner should disappear, and you will be able to use the search bar to look for any file in the project. Right-click to copy the entire file, or click to select lines, then right-clicking to copy a range of lines.

image

Tap on the compare icon to the right of the current file item to compare the file across commits.

image

About

Dev/debug tool for Android apps

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages