The origin of

Some time ago, Hong Yang pushed aRecommended 3 Useful Open Source ProjectsIn the article, a github post is recommendedADB ADBAs mentioned in daqo: “ADB, i.eAndroid Debug Bridge”It’s an irreplaceable tool for Android developers/testers and a great toy for Android device players.” Its function is very powerful. But powerful can also mean complex. I don’t know much about any of them, except for a few commands I use frequently. It is not very convenient to use, for example, to install an APK file on the phone, I usually first open the apK directory, right click Git Bash Here, and type:adb install -r ./apkFile.apkIs there a more convenient way to do this? Hongyang’s article also talks about an existing ADB integration plug-inadb-ideaI use this plugin all the time, especially for debugging. For example, if you want to add a breakpoint to the code that starts the process (such as onCreate() on the first Activity your App starts), the only way to get to the breakpoint is to hit the Debug ‘App’ button and go through the compilation process again. But sometimes nothing changes at all. This compilation process is completely unnecessary. But with this plugin. Just hit a break point. Ctrl+Alt+Shift+A, select ADB Restart App With Debugger, you can skip the compilation process, directly start the breakpoint, very convenient. Hongyang’s article also mentioned the hope that someone can combine these two excellent projects to make a relatively complete prompt plug-in. Recently, the project is also relatively easy, and I can’t get private work. In my spare time, I am tinkering with some auxiliary tools for development. It just so happens that I have a little bit of experience with mods, and I love standing on the shoulders of giants.



My forkadb-ideaThis project refers toADB ADB, after intermittent development, in the original function to do some redundant expansion, made a look feel and “prompt plug-in” is not too big relationship, can be regarded as auxiliary plug-in. Not perfect, at least there is some effect, now recommended to everyone, do a simple explanation of the use of posture.

Features and Usage

Original plug-in functions

  • Uninstall App

  • Kill App

  • Start App

  • Restart App

  • Clear App Data

  • Clear App Data and Restart

    The apps here are all currently open projects. Use posture to refer to the project home page :github.com/pbreault/ad…

Extend the functionality

Application management

All the above functions are integrated into :Application Management

It is mainly to see the output information, do not remember the command does not matter, the package name also need not lose, a little OK. After the output information is selected, Ctrl+C can be copied, and right click can clear the screen. All need to select the target APP except the Foreground Activity and Monkey Test.

Interacting with the application

  • Tuned up Service

  • Send broadcast

    Send broadcast on my 8.1 real phone has a security problem, can not send normally,6.0 seems to be ok.

The above functions are integrated into the following :Application Galaxies.

Viewing Device Information

Practical function

download

Now I’m sending a pull-request to the original author of adB-idea, but my code is so bad that they won’t accept it. I don’t plan to release it to jetBrains’ plugin repository for now, so the original version is now available from the repository. You can download my version and install it manually.

  • Download the latest plug-in package > File >Preferences(Settings) > Plugins > Install plugin from disk…

After the installation is complete, restart AS and click Tools>ADB Idea to see the menu. If each click is not convenient, you can also set the corresponding function shortcut key.



The default Popup shortcut is Ctrl+Alt+Shift+A, which allows you to press A number key to select A command.



Thank you

  • Thanks to the ADB Usage Complete/ADB Usage Complete repository contributor for collating
  • Thanks to pBreault/ADB-idea for the excellent open source plugin
  • Thanks to Hongyang Dashen for the trial test and modification suggestions. At the beginning of the development, I was lazy and I had been developing on Windows platform, so I didn’t pay much attention to other platforms. As a result, some functions of version 1.6 failed on other platforms. During the weekend, I set up virtual machines for Linux(Ubuntu 18.10) and macOS(10.13). Because we don’t know much about these two platforms, if users of these two platforms have any problems, please contact me.

advertising

Recently are doing some android development assistance tools, incidentally hit an advertisement ha.

  • A plugin that inherits your own interface and superclass to generate MVP template code: MvpAutoCodePlus
  • A similar to Postman support custom encryption transmission background API interface debugging tool
  • A small plug-in that can sort kotlin code. KotlinCodeSorter
  • A super useful plugin for previewing images in projects, I added support for IconViewer in. Webp format

In my column are: blog.csdn.net/column/deta…

Warehouse address :github.com/longforus/a… Welcome to try,star,issue. Your star is my motivation. thank you