So debugging for Android native C

Source: Internet
Author: User

So debugging for Android native C

Basically the same as Linux
1. Upload android_server under the IDA directory to the android directory.
For example:
ADB push android_server/data/local/tmp/
ADB shell enters the simulator
CD/data/local/tmp/
Chmod 755 android_server
./Android_server
View listening port 23946

2. Forward the window to the simulator or mobile phone port in the Windows Console
ADB forward TCP: 23946 TCP: 23946

3. Android debugging in IDA
Process options in debuggger
Enter localhost in hostname
Port: 23946

4. Attach the corresponding androidProgramThat's all.

If so is not called, But Bin is called
Fill in the 3rd application: path of your bin on the simulator or mobile phone
Input File: Same as application
Directory: directory path of your bin in the simulator or mobile phone
If there is a parameter, enter the Parameter
And then directly go to part 1 F9 or start Process

Note the following when using Symbian:
Fill in the 3rd application: path of your bin on your mobile phone
Input File: Program path on your local computer
Port: comport

Install TRK on your phone
Note: Only ida6.1 supports Android debugging, and 5.5 does not.

Available in ida6.1

Hex-Rays.IDA.Pro.Advanced.v6.1.part1.rar

Hex-Rays.IDA.Pro.Advanced.v6.1.part2.rar

Instructions

No. starch. The. Ida. Pro. book.2nd. Edition. jun.2011

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.