wrote a Quick Map application for my wife. This application is mainly used to solve her problem with the existing navigation application. She only wants a contact list and a path to the location of these contacts.
Here, you may think that I need to apply for access to all the contact information to complete this application: Hahaha, you are wrong again! If you read my source code, you will know that I used the Intent ACTION_PICK to start the application to get the contact address:
Intentin
permissions to read and write the app's database, and so on. If the vulnerability is found, you can pass Dz> Run Scanner.provider.finduris-a com.example Dz> Run Scanner.provider.finduris-a com.example To scan some of the available URIs, such as username, password, IDs, and so on, or even modify values (such as what SQL injects): Dz> run app.provider.query content://xxxxxx--preinjection "xxx" Dz> run app.provider.query content://xxxxxx--preinjection
for my wife. This application is mainly used to solve her problem with the existing navigation application. She only wants a contact list and a path to the location of these contacts.
Here, you may think that I need to apply for access to all the contact information to complete this application: Hahaha, you are wrong again! If you read my source code, you will know that I used it.ACTION_PICKThis Intent starts related applications to obtain the contact address:
Intentintent=newIntent(Intent.ACT
Get network status
Android.permission.ACCESS_NETWORK_STATE, gets the status of the network information, such as whether the current network connection is valid
Access Surface Flinger
Graphical display support at the bottom of the Android.permission.access_surface_flinger,android platform, typically used for game or Camera preview and underlying mode screens
Get WiFi status
Android.permission.AC
Shareitem.setlabel (Resolve.loadlabel (Pmanager). toString ());
Set Package Name
Shareitem.setpackagename (Resolve.activityInfo.packageName);
}
Summarize:Get the specific information method by PackageInfo:Package name Get method: Packageinfo.packagenameIcon Get Get Method: Packagemanager.getapplicationicon (ApplicationInfo)Application name Get method: Packagemanager.getapplicationlabel (ApplicationInfo)Access method using permissions
the network information, such as whether the current network connection is valid
Android.permission.ACCESS_SURFACE_FLINGER
Access Surface Flinger
Low-level graphical display support on Android platform, commonly used in game or Camera preview interface and bottom mode screen
Android.permission.ACCESS_WIFI_STATE
Get WiFi status
Get the status of your current WiFi access and information about your WLAN ho
Android Permissions Daquan
Access Registration Properties
Android.permission.ACCESS_CHECKIN_PROPERTIES, read or write permission to enlist Check-in Database property sheet
Get the wrong position
Android.permission.ACCESS_COARSE_LOCATION, through WiFi or mobile base station way to obtain user error of latitude and longitude information, positioning accuracy of about 30~1
valid
Access Surface Flinger
Android.permission.ACCESS_SURFACE_FLINGER, theunderlying graphical display support on the Android platform, typically used for game or Camera preview and underlying mode screens
Get WiFi status
Android.permission.ACCESS_WIFI_STATE, get the status of your current WIFI access and information about Wi-Fi hotspots
Account Management
Android.permission.ACCOUNT_MANAGER, G
, gets the status of the network information, such as whether the current network connection is valid
Access Surface Flinger
Graphical display support at the bottom of the Android.permission.access_surface_flinger,android platform, typically used for game or Camera preview and underlying mode screens
Get WiFi status
Android.permission.ACCESS_WIFI_STATE, get the status of your current WIFI access and information ab
Features: Anti-compilation APK reduced permissions and re-signingScenario: Many software applications that may cause charges (such as texting, calling numbers) or disclosing privacy (such as reading a newsletter) are not reassuring. For example: fetion, ink weather, ireader, etc. are listed in this column. In order to be able to use with ease, need to do some hack work, reduce the permissions of the applica
A provider can specify some permissions. Other applications must apply for permissions to access the data of the provider. These permissions ensure that the user understands what data the application will attempt to access. Based on the requirements of the provider, other applications need to apply for the required permission
changes in Android permissionsIn previous versions of Android6.0, Android's permissions were all configured at the time of installation. However, this often leads to some security problems.Google's solution:There are two main categories of permissions in Android:Normal: Permissions do not directly relate to the user's
Android defines a privilege scheme to protect resources and functionality on a device. For example, by default, an application cannot access a contact list, make a phone call, and so on. The following is a call to the example of the system to introduce the requirements of the permissions. Generally in our application, if we want to use the function of dialing telephone, we will encode this way:
Uri
valid
Access Surface Flinger
Graphical display support at the bottom of the Android.permission.access_surface_flinger,android platform, typically used for game or Camera preview and underlying mode screens
Get WiFi status
Android.permission.ACCESS_WIFI_STATE, get the status of your current WIFI access and information about Wi-Fi hotspots
Account Management
Android.permission.ACCOUNT_MANAGER, Ge
valid
Access Surface Flinger
Graphical display support at the bottom of the Android.permission.access_surface_flinger,android platform, typically used for game or Camera preview and underlying mode screens
Get WiFi status
Android.permission.ACCESS_WIFI_STATE, get the status of your current WIFI access and information about Wi-Fi hotspots
Account Management
Android.permission.ACCOUNT_MANAGER, Ge
AndroidPermissionsSystem is very large, we do anything in the Android system will need to get the Android system permissions, this article records all the Android permissions issues, tidy up share to everyone. Access Registration PropertiesAndroid.permission.ACCESS_CHECKIN
privilegesSystem permissions should be installed in the/system/app apk get, (and the system-level signature will also be installed in the/system/app directory)If you want to use the third "signature" permission, then even if you root after the force of the APK push to/system/appAfter restarting the phone in the directory is also unable to obtain this permission
applications.
Apply private folders By default, other apps are inaccessible to keep their data safe
Apply private file path:/data/data/Package name/
Get Path Method:File path = 当前类名.this.getFilesDir();//获取目录是会自动创建files文件夹 Context.getFilesDir();返回:/data/data/包名/files
Get temporary cache directory caches:File path = 当前类名.this.getCacheDir(); Context.getCacheDir();返回:/data/data/包名/cache
(Files folders)
At the beginning of Android 6.0, some of the privileges required us to apply dynamically, that is, when we open the app, the system will not take the initiative like you need to apply for apps, and require customers to apply actively when using the app.
First, the application of the right of two steps:
1. Permission application:
/**
* @param
This article was reproduced from: http://blog.csdn.net/self_study/article/details/52965045Recently in the study of the relevant content of authority adaptation, the collation of the previous rights blog as follows:Android permission permissions and security mechanism resolution (on)Android permission permissions and security mechanism analysis (next)
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.