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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:28:16+00:00 2026-06-17T09:28:16+00:00

I want to trace system calls against some specific code lines in an Android

  • 0

I want to trace system calls against some specific code lines in an Android application and using strace or system call hooking, I can get list of system calls against an APK.

I was wondering if there is any function call or anything else for which we know already exact number of system calls so that I can put it before and after my interested lines of code?

  • 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-17T09:28:16+00:00Added an answer on June 17, 2026 at 9:28 am

    The trouble with what your trying to do is that your one-step divorced from the underlying system by the Java VM. It can be doing all sorts of system-call related stuff under your feet which your app has no control of.

    In non-android world the most often used system call is ”gettimeofday” as it is never cached by the library functions and reasonably easy to see happen. However as you note in you previous question this is a lot harder as the VM is making gettimoufday calls of it’s own accord (most likely for accounting purposes). Therefor you want to choose a android function that results in a system call but isn’t likely to be called normally by the VM. Some candidates looking through the API include:

    • statfs
    • socket

    Good luck.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following situation, I want to monitor the system calls on Android
I want to trace the modification history of a specific file. Does linux have
I want to trace the source code , but when I set a breakpoint,
I've started using svn with Versions.app locally, as I want to keep trace of
Any there any good libraries out there that extend System.Diagnostics.Trace? Some of the features
I need a flexible way to log keyvalue pairs of arguments using System.Diagnostics.Trace. Basically,
I want to improve the performance of a specific method inside a larger application.
Can child process use the ptrace system call to trace its parent? Os is
The standard way to profile an Android application in Eclipse is using the plugin
I want to trace all the parent controls of a control (e.g) if i

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.