App test-drozer installation and use

Source: Internet
Author: User

Installation and use of Windows platform Drozer

Usage Environment: JDK support is required to use the tool, so install the JDK yourself before using this tool

Other tools: also requires some support from the Android debugging tool ADB, please configure the installation yourself

Drozer Installation

Download the Drozer installation package first, unzip it after downloading

Where Setup.exe is the installation file for Windows hosts, agent.apk installs files for debugging Android phone

Install directly on the host by double-clicking on the Setup.exe installation is possible

Install the agent.apk in the Android phone or virtual machine you want to debug.

Confirm that ADB can connect the device properly before drozer use

CMD under Run command adb devices, if the device information appears in the device list, the device can be recognized normally. (You can call ADB directly by setting environment variables)

Run the ADB shell command to make sure the shell is connected to the phone

Run agent.apk on your Android phone and turn on monitoring

Run Drozer

The above Drozer default port is 31415, so you need to set up 31415 ports on the host to communicate

CMD command downgrade with adb execution command:adb forward tcp:31415 tcp:31415 for Port forwarding

Normally run under the Drozer installation path:Drozer console Connect displays the following interface, which can then be used to debug Android apps normally using Drozer

The first time you run Drozer console connect, you will get a hint of could not find Java, when you first make sure the JDK is installed and the environment variables are configured correctly

The following operations are normal:

Create a file named. Drozer_config, (if you cannot name the. Drozer_config, the workaround is to start by creating x.drozer_config and then cmd to execute rename x.drozer_config in the current directory. Drozer_ Config) file, add the following:

[Executables]
Java=c:\program Files\java\jdk1.7.0_80\bin\java.exe
Javac=c:\program Files\java\jdk1.7.0_80\bin\javac.exe

App test-drozer installation and use

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.