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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:13:44+00:00 2026-06-11T23:13:44+00:00

Is there any way to run Android system app without root permission? I can

  • 0

Is there any way to run Android system app without root permission? I can execute system app via adb such as:

adb shell /system/bin/screencap -p /sdcard/screen.png

In my own application, I wanna run a shell command like that without “su” command. Is there any way? How does android prevent user apps to execute system app?

  • 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-11T23:13:46+00:00Added an answer on June 11, 2026 at 11:13 pm

    You should be able to run this command in java code:

    Runtime.getRuntime().exec("screencap -p /sdcard/screen.png");
    

    There are some shell commands you can execute without having root. So you don’t need to run “su”. I’m not sure if you can execute screencap. Certainly you need permission to write to the SD_CARD in your app.

    android.permission.WRITE_EXTERNAL_STORAGE
    

    But why you don’t use the Android API to make your screenshot? For more information read this post on stackoverflow: How to programmatically take a screenshot in Android?

    Androids security model bases on user ids, like Linux does. Each app gets his own user id. So your app has a userid like 1001. If your user is allowed to run the command you can, otherwise you will receive an error.

    EDIT:
    You need root to take screenshots or be a system application. There is a permission READ_FRAME_BUFFER but you only can obtain it when you are a system application. Its a security problem when an app could take screenshots of your device.

    I’ve found this API http://code.google.com/p/android-screenshot-library/ which promises to take screenshots without root. I didn’t test it. The library starts a native service which then takes the screenshots for you.
    But you have to run the service each time your phone boots. So it gets the system privileges. That’s not really comfortable…

    Conclusion: There is no nice way to take screenshots without root from code…

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

Sidebar

Related Questions

I'm just wondering, is there any way to run Selenium tests on Android in
Is there any way to run the .NET exe (of a winform app) in
Is there any way to run a Python script in Windows XP without a
Is there any way I can run class files (i.e. with main as the
Is there any way to save data obtained during app-run and afterwards use it
Is there any way to run one same instance of JavaCcript(jQuery) on the server
Is there any way I could run the following 'logical code' to actually work?
Is there any way to force wpf to run the value converter again on
Is there any way to set order by clause in HQL by run time.
Is there any way to link batch script (.bat files) so that they run

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.