Debug an Existing APK


The following instructions are only applicable to Android users.

In order to debug an existing .apk file with native .so libraries compiled separately from Nsight Tegra, you should do the following:

  1. Create a new project by going to File > New > Project. Select the Android Hello World Demo project.
  2. Go to Build > Configuration Manager and uncheck the Build checkbox.

  3. Go to your project's Properties page and do the following:
    1. On the Debugging tab, click the drop-down arrow next to Override APK Path, and select Edit. Then enter the path to your APK.

      Note that if you select the Browse dialog, it will require you to select an .exe file. This is a known issue.

    2. On the General tab, click the drop-down arrow next to Target Android API Level, and set the required API level.

  4. Create a libs\<architecture> directory inside the Hello World project root folder. The default setting is libs\armeabi-v7a. Alternately, this can be done through the project's debug properties.
  5. Update AndroidManifest.xml with relevant data, the most important of which is to change the package and activity names. Alternately, you can also substitute it with your own manifest file.
  6. Set breakpoints and begin debugging.

 


NVIDIA® GameWorks™ Documentation Rev. 1.0.200608 ©2014-2020. NVIDIA Corporation. All Rights Reserved.