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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:35:01+00:00 2026-05-31T23:35:01+00:00

I have 2 application A and B Application A is signed with certificate C_A

  • 0

I have 2 application “A” and “B”

Application “A” is signed with certificate C_A and “B” with C_B

in “A”

    <activity android:name=".ActivityA" android:protectionLevel="signature" android:label="@string/app_name">
        <intent-filter>
            <action android:name="com.temp.packagea" />
            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
    </activity> 

in app “B”

        Intent i = new Intent();
        i.setAction("com.temp.package");
        startActivity(i);

and the problem is that the application A is started with no problems from application B.

How can I protect starting activity in my app from application that are signed with the same signature as mine.

  • 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-31T23:35:02+00:00Added an answer on May 31, 2026 at 11:35 pm

    protectionLevel is not a valid attribute for an Activity tag within a manifest. The protectionLevel tag applies to a <permission> element and is used when your application is specifying a new permission (not one of the default Android system permissions).

    It looks like you are trying to prevent applications from invoking an Activity (A, in your example) if they are not signed with the same certificate as the containing application. What you want to do here is to declare a new permission in the manifest (of the application containing A) by using a <permission> element and set the protectionLevel of your new permission to Signature. Then, in your manifest declaration for the Activity, use an android:permission attribute so that this new permission is required to start the Activity. For any other application that you want to be able to invoke the Activity, you just need to add a uses-permission element in that other application’s manifest and specify the new permission you created. Since that permission is a Signature permission, the system will automatically grant it when the new application is installed.

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

Sidebar

Related Questions

I have a web based application that uses a self signed certificate. When you
I have a server with https with self signed certificate and client application on
I have an application that has only signed jars, all by the same certificate,
I have created a self-signed certificate on my server. Now I need to import
I have a C/C++ application and I need to create a X509 pem certificate
I am trying to get a self-signed certificate to work with my application. I
My company finally bought a code-signing certificate. I have a WinForms application (1 exe
I have a self signed server certificate (cert.pem) and need to enable it for
I have application which needs to use a dll (also written by me) which
I have application that makes different queries with different results so the caching in

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.