Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8445053
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T09:33:35+00:00 2026-06-10T09:33:35+00:00

This question can be decomposed into multiple smaller problems. The end result would be

  • 0

This question can be decomposed into multiple smaller problems.
The end result would be to be able to set a breakpoint in the C/C++ NFC implementation of a Galaxy Nexus (Android 4.1) device using a debugger such as gdb to examine it’s internal state.

  1. Is it possible to replace the libraries on a Galaxy Nexus devices with ones that contain debugging symbols?
  2. Is it possible to use gdb to debug the C/C++ implementation of an Android device?
  3. Is it possible to cross-compile the NFC implementation of Android?
  4. Are there any examples of somebody trying something similar maybe with another library?

Update: Rooting the device and compiling Jellybean went well overall with some minor errors. In fact there are some very nice flags in the libnfc makefile which enable extensive output while communicating.

However there there is still a debugging problem. To debug libnfc (external/libnfc-nxp) i must attach myself to the process using the library which most likely is the Nfc Manager (packages/apps/Nfc). To debug an application i have to set the debuggable flag.
If i rebuild the Nfc Manager the signature does not match the one already installed on the device which means adb install -r <file> won’t work. adb uninstall com.android.nfc doesn’t work either. Using the hard way of simply deleting the apk from /system/app creates the error INSTALL_FAILED_SHARED_USER_INCOMPATIBLE when i try to install the new one. At this point Nfc didn’t work at all anymore and i had to reflash the stock image.

Any other ideas how to debug the libnfc library?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T09:33:37+00:00Added an answer on June 10, 2026 at 9:33 am

    In general, the answer is yes. The complete Android NFC implementation is part of the Android Open Source Project. Answers to the specific parts of your question:

    1. Yes, you need to unlock the bootloader and root your device to be able to mount the system partition in read/write mode, so you can replace the NFC library.
    2. Yes, you should be able to do remote debugging using gdb. I have never actually done this, though.
    3. Yes, just download the Android source and compile the relevant parts of the NFC stack. The relevant parts are in packages/apps/Nfc (NFC manager), external/libnfc-nxp (C library), frameworks/base/core/java/android/nfc (Java NFC API) and vendor/nxp (NFC chip firmware).
    4. Yes, see e.g. How to debug an App on Android with GDBSERVER? or https://www.google.com/search?q=remote+gdb+android. (This question may be relevant, too: Remote debugging with Android emulator)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have not been able to find any definitive answers to this question: Can
This question can be broken up into a couple of parts: What is the
This question can have different answers because everyone would do it his own way.
I know this question can be answered by searching in google. But I have
I am using the jQuery-File-Upload widget (although I believe this question can generalize to
I asked a question about different testing frameworks yesterday. This question can be found
I am using the SQL Server PHP Driver, I think this question can be
<hyperbole> Whoever answers this question can claim credit for solving the world's most challenging
It's the reverse of this question: Why can't strings be mutable in Java and
I've searched for the answer to this question but I can't seem to find

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.