Android Permission denied error (with Android permissions Daquan)

Source: Internet
Author: User
Tags change settings delete cache

Android Permission denied error (with Android permissions Daquan)

Java.net.SocketException:Permission denied (maybe missing INTERNET Permission)

This is a classic error, the socket can not be connected to the external, the error will not be reported, debugging, you can see exception, this exception will have a very changeable body.

Android does not agree to access the network by default, so in Androidmanifest.xml, for example, the following configuration is required:

<uses-permission android:name= "Android.permission.INTERNET"/>

To join the network access permission.

*************************************************************************************************************** ******************

*************************************************************************************************************** ******************

Android permissions in the source code compiled generated files: Out/target/common/r/android/manifest.java, details such as the following:

Public final class Manifest {

public static final class permission {

Detailed code omitted

}
}

The following is attached to the Android rights in English and Chinese comparison, in case of use, according to the user remind may not be complete, just know the method, find the Easy

Android.permission.ACCESS_CHECKIN_PROPERTIES
Agree to read and write access "properties" table in the Checkin database, change the value can be modified to upload (allows Read/write to the "properties" tables in the Checkin database, to C Hange values that get uploaded)

Android.permission.ACCESS_COARSE_LOCATION
Consent to a program visiting cellid or WiFi hotspot to get a rough location (allows a application to access coarse (e.g., Cell-id, WiFi)

Android.permission.ACCESS_FINE_LOCATION
Consent to a program access to sophisticated locations (such as GPS) (allows an application-to-fine (e.g., GPS) location)

Android.permission.ACCESS_LOCATION_EXTRA_COMMANDS
Consent to application access to additional location provided commands (allows an application to access extra locations provider commands)

Android.permission.ACCESS_MOCK_LOCATION
The consent program creates a simulated location provided for testing (allows an application to create mock locations providers for testing)

Android.permission.ACCESS_NETWORK_STATE
Consent Program Access information about GSM network (allows applications to access information about networks)

Android.permission.ACCESS_SURFACE_FLINGER
The consent program uses the Surfaceflinger underlying feature (allows an application to use Surfaceflinger's low level features)

Android.permission.ACCESS_WIFI_STATE
Consent Program Access Wi-Fi network status information (allows applications to access information about Wi-Fi networks)

Android.permission.ADD_SYSTEM_SERVICE
The consent procedure publishes the System level service (allows an application to publish System-level services).

Android.permission.BATTERY_STATS
Consent Program Update cell Phone battery statistics (allows an application to update the collected battery statistics)

Android.permission.BLUETOOTH
The consent program connects to the paired Bluetooth device (allows applications to connect to paired Bluetooth devices)

Android.permission.BLUETOOTH_ADMIN
Consent program Discovery and pairing of Bluetooth devices (allows applications to discover and pair Bluetooth devices)

Android.permission.BRICK
The request can be disabled (very critical) (Required to be able to disable the device (very *erous!).)

Android.permission.BROADCAST_PACKAGE_REMOVED
Consent program broadcasts a prompt message after an application package has been removed (allows an application to broadcast a notification, a application package have been removed)

Android.permission.BROADCAST_STICKY
Agree to a program broadcast often using intents (allows an application to broadcast sticky intents)

Android.permission.CALL_PHONE
Consent a program to initialize a phone dial without requiring user confirmation via dial-up user interface (allows an application to initiate a phone call without going through the Dialer user Inter Face for the user to confirm the call being placed.)

Android.permission.CALL_PRIVILEGED
Consent to a program dialing no matter what number, including the emergency number without requiring user confirmation via the Dial-up user interface (allows an application to calls any phone numbers, including emergency numbers, Withou T going through the Dialer user interface for the user to confirm the call being placed)

Android.permission.CAMERA
Request an interview using a photographic device (Required to being able to access the camera device.)

Android.permission.CHANGE_COMPONENT_ENABLED_STATE
Agree whether a program changes a component or other enabled or disabled (allows an application to change whether an application component (other than it own) is enabled O R not. )

Android.permission.CHANGE_CONFIGURATION
Agree to a program that changes the current settings, such as localization (allows an application to modify, such as locale.)

Android.permission.CHANGE_NETWORK_STATE
The consent program changes the network connection status (allows applications to change networks connectivity State)

Android.permission.CHANGE_WIFI_STATE
Consent program changes Wi-Fi connection status (allows applications to change Wi-Fi connectivity State)

Android.permission.CLEAR_APP_CACHE
Agree that a program is clearly cached from all installed programs in the device (allows an application to clear the caches of all installed applications on the devices.)

Android.permission.CLEAR_APP_USER_DATA
Agree to a program to clear user settings (allows an application to clear subscriber data)

Android.permission.CONTROL_LOCATION_UPDATES
Agree to enable the Disable location update prompt from the Wireless module (allows enabling/disabling locations update notifications from the radio.)

Android.permission.DELETE_CACHE_FILES
Consent program to delete cache file (allows an application to delete cache files)

Android.permission.DELETE_PACKAGES
Consent to a program removal package (allows an application to delete packages)

Android.permission.DEVICE_POWER
Agree to access the underlying power management (allows low-level to power management)

Android.permission.DIAGNOSTIC
Consent Procedure RW Diagnostic resources (allows applications to RW to diagnostic resources.)

Android.permission.DISABLE_KEYGUARD
The consent program disables the keyboard lock (allows applications to disable the Keyguard)

Android.permission.DUMP
The consent program returns the status crawl information from the system service (allows an application to retrieve state dump information from system services.)

Android.permission.EXPAND_STATUS_BAR
Agreeing to a program extension contraction in the status bar, the Android Developer Web tip should be a similar tray program in Windows Mobile (allows an application to expand or collapse the status bar.)

Android.permission.FACTORY_TEST
As a factory test program, execute the root user (run as a manufacturer test application, running as the root users).

Android.permission.FLASHLIGHT
Visit the Flash, Android development Web tips HTC Dream does not include Flash (allows access to the flashlight)

Android.permission.FORCE_BACK
The consent procedure forces a fallback operation to be in the top layer activities (allows an application to forces a back operation on whatever is the top activity.)

Android.permission.FOTA_UPDATE
Temporarily do not understand what this is doing using the Android Development network analysis may be a reserved privilege.

Android.permission.GET_ACCOUNTS
Visit an account list in the Accounts service (allows access to the list of accounts in the accounts service)

Android.permission.GET_PACKAGE_SIZE
Consent to a program that obtains no matter what package occupies space capacity (allows an application to find out the space used by any packages.)

Android.permission.GET_TASKS
Consent to a program that obtains information about current or recently performed tasks, an abbreviated task status, whether active, etc. (allows an application to get information about the currently or recently running T Asks:a thumbnail representation of the tasks, what activities is running in it, etc.)

Android.permission.HARDWARE_TEST
Agree to the hardware (allows access to hardware peripherals.)

Android.permission.INJECT_EVENTS
Agree to a program to intercept user events such as keystrokes, touches, trackball and so on until a time stream, Android Development Network alert is hook technology bar (allows an application to inject user events (keys, touch, trackball) into the event stream and deliver them to any window.)

Android.permission.INSTALL_PACKAGES
Agree to a program installation packages (allows an application to install packages.)

Android.permission.INTERNAL_SYSTEM_WINDOW
Consent to open the form using the System user interface (allows an application to open windows? is for use by parts of the systems, user interface.)

Android.permission.INTERNET
Consent Program Open Network sockets (allows applications to open networks sockets)

Android.permission.MANAGE_APP_TOKENS
Consent to Program management (Create, post, z-order default to Z-axis) program references in the form manager (allows an application to manage (Create, destroy, Z-order) application tokens in The window manager. )

Android.permission.MASTER_CLEAR at the moment there is no clear explanation, the Android Development network analysis may be to clear all data, similar to the hard lattice machine

Android.permission.MODIFY_AUDIO_SETTINGS
Consent program Changes global audio settings (allows an application to modify global, audio settings)

Android.permission.MODIFY_PHONE_STATE
Agree to change the status of the phone, such as power, human-computer interface (allows modification of the telephony state–power on, MMI, etc.)

Android.permission.MOUNT_UNMOUNT_FILESYSTEMS
Consent to mount and anti-mount file system Removable Storage (allows mounting and unmounting files systems for Removable Storage.)

Android.permission.PERSISTENT_ACTIVITY
Consent to a program setting his activities display (allow a application to make its activities persistent.)

Android.permission.PROCESS_OUTGOING_CALLS
Consent procedure Monitoring, alteration of the broadcast telephone (allows an application to monitor, modify, or abort outgoing calls)

Android.permission.READ_CALENDAR
The consent program reads the user calendar data (allows an application

Android.permission.READ_CONTACTS
The consent program reads the user contact data (allows an application to read the subscriber's contacts.)

Android.permission.READ_FRAME_BUFFER
Consent Program Screen wave or a lot of other regular access to the frame buffer data (allows a application to take screen shots and more generally get in to the frame in data)

Android.permission.READ_INPUT_STATE
The consent program returns the current key state (allows a application to retrieve, and switches.)

Android.permission.READ_LOGS
The consent program reads the underlying system log file (allows an application to read the low-level system log files.)

Android.permission.READ_OWNER_DATA
The consent program reads all the data (allows an application to read the owner's information)

Android.permission.READ_SMS
The consent program reads the short message (allows an application to read SMS messages.)

Android.permission.READ_SYNC_SETTINGS
Consent program read Sync settings (allows applications to read the sync settings)

Android.permission.READ_SYNC_STATS
Consent program Read Sync status (allows applications to read the sync stats)

Android.permission.REBOOT
The request can start the device again (Required to is able to reboot.)

Android.permission.RECEIVE_BOOT_COMPLETED
Consent to a program received action_boot_completed broadcast at System completion boot (allows an application to receive the action_boot_completed that's broadcast aft Er the system finishes booting. )

Android.permission.RECEIVE_MMS
Consent to a program monitoring will receive MMS MMS, recording or processing (allows an application to monitor incoming MMS messages, to record or perform processing on them.)

Android.permission.RECEIVE_SMS
Consent program Monitoring One will receive SMS, recording or processing (allows an application to monitor incoming SMS messages, to record or perform processing on them.)

Android.permission.RECEIVE_WAP_PUSH
Consent program monitoring will receive WAP push message (allows an application to monitor incoming WAP push messages.)

Android.permission.RECORD_AUDIO
Consent Program Recording Audio (allows an application to record audio)

Android.permission.REORDER_TASKS
Consent procedure changes the Z-axis arrangement task (allows an application to change the z-order of tasks)

Android.permission.RESTART_PACKAGES
The consent program starts another program again (allows an application to restart other applications)

Android.permission.SEND_SMS
Consent program sends SMS SMS (allows an application to send SMS messages)

Android.permission.SET_ACTIVITY_WATCHER
Consent program monitoring or control activities has started the global system allows an application to watch and control how activities is started globally in the system.

Android.permission.SET_ALWAYS_FINISH
Consent program Control whether the activity is indirectly completed in the background when allows a application to controls whether activities is immediately finished when put in the Backgroun D.

Android.permission.SET_ANIMATION_SCALE
Change the global information scale (Modify the animation scaling factor.)

Android.permission.SET_DEBUG_APP
Configure a program for debugging (Configure an application for debugging.)

Android.permission.SET_ORIENTATION
Agree to the bottom-up interview setting screen orientation and actual rotation (allows low-level access to setting the orientation (actually rotation) of the.)

Android.permission.SET_PREFERRED_APPLICATIONS
Agree to a list of program changes packagemanager.addpackagetopreferred () and Packagemanager.removepackagefrompreferred () methods (Allows an Application to modify the list of preferred applications with the packagemanager.addpackagetopreferred () and Packagemanage R.removepackagefrompreferred () methods.)

Android.permission.SET_PROCESS_FOREGROUND
The consent program is currently executing the program forcibly to the foreground (allows an application to forces any currently running process to being in the foreground.)

Android.permission.SET_PROCESS_LIMIT
Agree to set the maximum number of execution processes (allows an application to set the maximum numbers of (not needed) application processes, can be running.)

Android.permission.SET_TIME_ZONE
The consent program sets the time zone (allows applications to set the system.

Android.permission.SET_WALLPAPER
Consent program Settings Wallpaper (allows applications to set the wallpaper)

Android.permission.SET_WALLPAPER_HINTS
Consent program Settings Wallpaper hits (allows applications to set the wallpaper hints)

Android.permission.SIGNAL_PERSISTENT_PROCESSES
The consent program requests that the signal be sent to the entire displayed process (allow an application to request, a signal be sent to all persistent processes)

Android.permission.STATUS_BAR
Consent program to open, close, or disable the status bar and icon allows an application to open, close, or disable the status bar and its icons.

Android.permission.SUBSCRIBED_FEEDS_READ
Consent to a program Access subscription to RSS feed content provided (allows an application to the subscribed feeds ContentProvider.)

Android.permission.SUBSCRIBED_FEEDS_WRITE
The system temporarily retains the change settings, the Android development Network think the future version number will increase this feature.

Android.permission.SYSTEM_ALERT_WINDOW
Consent to a program open form using Type_system_alert, displayed at the top level of all other programs (allows an application to open windows using the TYPE Type_system_alert, shown On top of any other applications. )

Android.permission.VIBRATE
Agree to visit the vibrating device (allows access to the vibrator)

Android.permission.WAKE_LOCK
Agree to use PowerManager's wakelocks to keep the process from disappearing while hibernating (allows using PowerManager wakelocks to keep processor from sleeping or screen fr Om dimming)

Android.permission.WRITE_APN_SETTINGS
Consent program written to API settings (allows applications to write the APN settings)

Android.permission.WRITE_CALENDAR
Consent to a program that writes but does not read the user calendar data (allows an application

Android.permission.WRITE_CONTACTS
The consent program writes but does not read the user's contact data (allows an application to write (and not read) the "s contacts.)

Android.permission.WRITE_GSERVICES
Consent program Changes Google services map (allows an application to modify the Google service maps.)

Android.permission.WRITE_OWNER_DATA
Agree that a program writes but does not read all of the data (allows an application to write (though not read) the owner of the database.)

Android.permission.WRITE_SETTINGS
The consent program reads or writes the system settings (allows an application to read or write the settings.)

Android.permission.WRITE_SMS
Consent program Write SMS (allows an application to write SMS messages)

Android.permission.WRITE_SYNC_SETTINGS
Consent program to write sync settings (allows applications to write the sync settings)

The permissions on the Android platform are very thin, assuming that the software is not working properly, to see if the relevant permission statement is missing, and finally we need to use the APK file generated by the Android sign tools signature.

For your safety, please just open the source reliable URL from: http://hi.baidu.com/spare_h/blog/item/10406ba303073eb8c9efd065.html

Android Permission denied error (with Android permissions Daquan)

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.