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 8482153
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T19:45:05+00:00 2026-06-10T19:45:05+00:00

Is there any way in way in Android or in Android NDK to know

  • 0

Is there any way in way in Android or in Android NDK to know which application is reading or writing data on disk or device memory?

  • 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-10T19:45:06+00:00Added an answer on June 10, 2026 at 7:45 pm

    I don’t know if there is a SDK way of doing it but Linux will allow you to list processes/open files/sockets and you can try grabbing things from there.

    First use ps command to get PID of process, enter:

    $ ps -aef | grep {process-name}
    $ ps -aef | grep httpd
    

    Next pass this PID to pfiles command,

    $ pfiles {PID}
    $ pfile 3533
    

    This is how you’d list all open files used by firefox…

    lsof -p `ps -C firefox -o pid=`
    

    You can use System.exec() to execute these, but you also need to have root access. Which is something you had to have to view that kind of information anyway I suppose…

    EDIT:

    this is what i got from Py2Cmod

    init.c

    /* Generated by py2cmod
    *
    * py2cmod (c) 2001 Mark Rowe
    */
    
    #include "Python.h"
    
    static PyObject *ErrorObject;
    
    /* ----------------------------------------------------- */
    
    /* List of methods defined in the module */
    
    static struct PyMethodDef iotop/__init___methods[] = {
    
    {NULL,   (PyCFunction)NULL, 0, NULL}        /* sentinel */
    };
    
    
    /* Initialization function for the module (*must* be called initiotop/__init__) */
    
    static char iotop/__init___module_documentation[] =  "";
    
    void initiotop/__init__()
    {
    PyObject *m, *d;
    
    /* Create the module and add the functions */
    m = Py_InitModule4("iotop/__init__", iotop/__init___methods,
        iotop/__init___module_documentation,
        (PyObject*)NULL,PYTHON_API_VERSION);
    
    /* Add some symbolic constants to the module */
    d = PyModule_GetDict(m);
    ErrorObject = PyString_FromString("iotop/__init__.error");
    PyDict_SetItemString(d, "error", ErrorObject);
    
    /* XXXX Add constants here */
    PyDict_SetItemString(d, "__file__", PyString_FromString("iotop/__init__.py"));
    PyDict_SetItemString(d, "__name__", PyString_FromString("iotop/__init__"));
    
    
    /* Check for errors */
    if (PyErr_Occurred())
        Py_FatalError("can't initialize module iotop/__init__");
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any programatically way for my android application to know which version of
Is there any way to get android market application id which is installed in
Is there any way to disable localization in an Android application? It must use
Is there any way to format a USB mass storage device programmatically in Android?
Is there any way in Android to determine whether a device is running Sense
Is there any way to dynamically view the application specific cache in Android? I'm
Is there any way to connect to a SQL Server from an Android application
Is there any way in which I can pass/get an object of android context
Is there any way for an Android application to declare requested permissions as optional?
Is there any way for an Android phone with NFC (Nexus, Galaxy, etc.) to

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.