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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T20:46:59+00:00 2026-05-28T20:46:59+00:00

I see a couple threads on this, but none really speak to what I

  • 0

I see a couple threads on this, but none really speak to what I would like to do. I am trying to write an application that will deny another application the ability to connect to the internet (IE Firewall). Based on algorithms I am creating it will determine that application as being malicious. The app would be on a rooted phone. I would then like to either

  1. Strip all permissions from the Application
  2. Deny it specific permissions (Internet Access)
  3. Force Uninstall that application.

I know there are several programs already out there, but I would like to code this myself :]]

With that being said could anyone point me in the right direction?

Thank you!

EDIT: So I have found this:

public static void killRunningPackage(final Context context, String packageName)
       { 
        ActivityManager activityManager = (ActivityManager)context.getSystemService(Context.ACTIVITY_SERVICE); 
        activityManager.killBackgroundProcesses(packageName); 
       }

What argument do I pass in for a context? I looked at contexts online but I didnt really understand them

  • 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-05-28T20:47:00+00:00Added an answer on May 28, 2026 at 8:47 pm

    Build Perspective

    Even with a rooted phone, because this is handled by the frameworks, I highly doubt that you can achieve something like this.

    Specifically unless you have the source and can compile the source of a new phone, you cannot do this.

    SDK Perspective

    Also another thing about this is you can’t “strip” an application of its permissions BECAUSE its in the Manifest.xml which gets embedded into the .apk of an application, which is a binary and is registered with the PackageManager.

    This is far beyond the scope of the SDK.

    What you CAN do is kill an application if it isn’t to your liking. The PackageManager would be your best option, however; that is as far as you can go.

    Update

    Check this out:
    http://android.amberfog.com/?p=98

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

Sidebar

Related Questions

I see a couple of threads on this topic, but none of them seem
See this question. How to show popup message like in stackoverflow I am trying
I would like to have an iterator that can be read by multiple threads
I have a couple of questions. 1) Why cannot we see system tables (like
I have an application that I'm working on that requires a couple of secondary
I see a couple of previously answered questions about adding an item to an
This is a big-picture question... but I also have details on the problem I
For starters I have checked out a couple of the other regex threads and
Ok I know this is pretty broad, but let me narrow it down a
Hi i have a couple of question about using named pipes. Firstly, when trying

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.