Task #2356
closedRun NFD on unrooted Android phone
Description
Run cross-compiled NFD on unrooted Android phone.
This Task is to figure out a way to:
- install NFD on any stock, unrooted Android phone
- start NFD as a service on Android
- allow other apps to connect to NFD over TCP
- restart NFD when necessary
Files
Updated by Junxiao Shi almost 10 years ago
- Blocked by Task #1988: Compile NFD on Android NDK added
Updated by Junxiao Shi almost 10 years ago
- Related to Task #1989: Basic NFD control app for Android added
Updated by Ivan Yeo almost 10 years ago
- % Done changed from 0 to 20
Looked into compilation options required for the NFD. Will next look into the required libraries that are needed for the NFD. The next step is to attempt to import the required native files into the /jni folder of an Android project and use the Android NDK build tools to compile the NFD as a redistributable .so library file.
Updated by Alex Afanasyev almost 10 years ago
- Project changed from NFD to ndn-embedded
- Category changed from Build to Android
- Target version deleted (
Unsupported)
Updated by Ivan Yeo almost 10 years ago
- % Done changed from 20 to 40
NFD and NRD are not able to run on an unrooted Android phone within a Process container. Using the nfdc tool, a route was registered with the following command:
nfdc register /ndn tcp4://131.179.196.46:6363
Running nfs-status shows that the new RIB entry for the "/ndn" prefix is indeed recognized by the NFD running on localhost.
Following which, the Android NDNPing example application is modified by pointing the Face object's connection to that of the NFD running on the localhost. Running ping, receives a reply which shows that the NFD is working correctly.
Updated by Ivan Yeo almost 10 years ago
Apologies for the typographic error. The first sentence in the earlier post was meant to read:
NFD and NRD are NOW able to run on an unrooted Android phone within a Process container.
Updated by Ivan Yeo almost 10 years ago
- File NFD Service Class Diagram.jpg NFD Service Class Diagram.jpg added
- File NFD Service Communication.jpg NFD Service Communication.jpg added
- File Sequence Diagram1.jpg Sequence Diagram1.jpg added
- % Done changed from 40 to 60
Design of Android Service that runs NFD and NRD has been completed. See attached files for reference.
Updated by Alex Afanasyev almost 10 years ago
- Project changed from ndn-embedded to NFD-android
- Category changed from Android to jni
Updated by Alex Afanasyev almost 10 years ago
Ivan, please upload also .vpp file. I would like make a few changes.
Updated by Ivan Yeo almost 10 years ago
- File NFD_Android.vpp NFD_Android.vpp added
Alex Afanasyev wrote:
Ivan, please upload also .vpp file. I would like make a few changes.
Sure thing! I'll attach them here.
Updated by Ivan Yeo almost 10 years ago
- % Done changed from 60 to 80
The following milestones as set out by this task has been achieved by the NFD Team:
- install NFD on any stock, unrooted Android phone
- start NFD as a service on Android
- allow other apps to connect to NFD over TCP
It has been decided that local NDN enabled applications will communicate with the locally running Android NFD through use of TCP only. However, the NFD will continue to interface with the outside world through both TCP and UDP. A detailed presentation on the NFD Service and Application Interaction can be found at:
Updated by Ivan Yeo almost 10 years ago
- Status changed from New to In Progress
Change of status to appropriately to: in-progress.
Updated by Ivan Yeo almost 10 years ago
- Status changed from In Progress to Resolved
- % Done changed from 80 to 100
Task completed and code has been fully reviewed at: http://gerrit.named-data.net/#/c/1749/
Code has been merged to the public repository located at: https://github.com/named-data/NFD-android
Updated by Ivan Yeo almost 10 years ago
- Status changed from Resolved to Closed
Task has been resolved and closed.
Code has been merged to the public repository located at: https://github.com/named-data/NFD-android