0x0 Introduction
We know that Intent-based attacks on Android are common. Such attacks may cause application crash, but may evolve the Elevation of Privilege Vulnerability. Of course, Intent-Based malicious samples are easily identified by static feature matching.
However, an Android Browser-based attack,
0x0 Introduction We know that intent-based attacks on Android are common, and that this kind of attack can cause the application to crash, and that it may evolve to exploit the rights. Of course, intent-based's malicious samples can be easily identified by static feature matching. However, there has been a recent attack on an
Android browser cross-Origin data theft and Intent Scheme attacks
The vulnerability we will introduce next affects self-built browsers and some other specific Android browsers in Android versions earlier than 4.4. It allows hackers to read cookie database files in sqlite for
the intent, we need to add the category in the intent-filter of the Activity.
Based on the examples above, we can summarize them as follows:1.Intent that does not contain any category can always be tested by all any intent-filter category;2.If the intent object contains at
Scheme can be either a common protocol in Android or a custom protocol. The common protocols in Android include content protocols, HTTP protocols, file protocols, and so on, and custom protocols can use custom strings.
The following is the URI of a content protocol:
Content://com.example.project:200/folder/subfolder/etcIn this URI,
Intent mainly includes implicit intent and explicit intent. Explicit intent is usually used to start data between activities in the current application, while implicit intent is commonly used in some specific actions in the startup system, such as making phone calls or sendi
There are two types of intentions in android: explicit and implicit,
Explicitly requires that you know the package and class of the activated component
For implicit intent, you only need to know the actions and data of the jump activity to activate the corresponding component.
A main activity B receives the redirected activity
Procedure
1: declare B in the main configuration file at least one
have the category of "android. intent. category. the default value can be received, that is, the activity in manifest must have at least intent. category_defaul (that is, "android. intent. category. default "), and set intent in
"CorrespondingACTION_EDITConstant.
If an intent wants to pass the test, all its category must match the filter. Filters can contain additional category, but do not omit any category in intent.
In principle, an intent without category can always pass the test without considering what is included in the filter. However, there is one exception: if implicit intents h
intent parsing Mechanism finds the most matched intent by finding all intentfilters registered in the androidmanifest. xml file and intentfilters defined by intentfilter.
In the parsing process, Android identifies the most matched intent by judging the intent action, type
Intent can be divided into two types:an explicit intentAndImplicit Intent;an explicit intent: Specifies the target component through the Component Name field, because developers often do not know the component names of other applications, so explicit intent is typically used for intra-application messaging; For example
1. First, there is an action name defined internally by the dial. You can also define your own developed applications.2. Category. No category is set in the Code. Cause: When we call the startActivity method to pass intent to the operating system, the startActivity method adds the intent to a category, which is android.
So far, we have learned how to use the Intent object to call other activities. Next, let's talk about how Intent objects are used.
1. You can pass an action to the Intent constructor:
[Java] startActivity (new Intent ("net. learn2develop. SecondActivity "));StartActivity (new Inten
:1. androidmainfest.xml file for intent configuration:2. Create a string action in the Activity--myaty.java that is started: public static final String ACTION = "Com.w.learnintent.intent.action.myaty";3, start the function code: StartActivity (New Intent (myaty.action)); Implicit intentIii. between different applications (implicit intent):1. Create another pr
Intent is frequently used in Android. Intent is used for system functions, whether it is page redirection, data transmission, or external program calling. After some intent examples, I sorted out the intent and hoped it would be useful to everyone. Because there are too many
The intention is very important in Android application development, understand the intention of the role and use, the development will be a great help. If you do not understand the intent, future development applications will feel missing something.Effect of the intention:1. Activating the component2. Carry data3. Matching of intentions (applied to implicit intent
Explanation of Intent in Android (2) Introduction to using Intent to Broadcast events and Broadcast Receiver
The first article explains how to use Intent to start new application components. However, they can also use the sendBroadcast method to anonymously broadcast messages between components.
As a system-level messa
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.