Description:
     The crosswalk manifest permission list mapping to Android manifest needs 
supporting in packaging tool.
The initial permission lists are defined.  The crosswalk manifest permission 
definitions should follow the formats
that have been defined, the permission access(read/write etc.) limitations 
should depend on the specific permission
requirement, not all permissions have the same access requirements.  The 
processes cover the parsing, decomposing,
checking, mapping and updating of the permission list.

Affected component: Android port

Related feature: 
XWALK-651<https://crosswalk-project.org/jira/browse/XWALK<https://crosswalk-project.org/jira/browse/XWALK-651>-651>

Target Release: Crosswalk 4

Implementation details:
To achieve this, three parts of implementation are needed.

1.       Parse and decompose the Crosswalk manifest permission list.

The parsing process should compliant with crosswalk manifest permission 
definition Specification.

2    Check and pick up the supported permissions by Android Manifest
        All of the permissions defined in Crosswalk manifest.json are checked 
and scanned, while only the permissions that are supported by Android Manifest
will be picked up.


3    Execute the mapping of the supported permissions by Android Manifest.

      Execute the mapping from Crosswalk manifest.json to Android Manifest for 
the supported permission.

     Update the supported permission fields in Android Manifest.



The mapping table
Crosswalk Permission Name

Permission field in Manifest.json

Permission fields in Android Manifest

Alarm

Alarm

SET_ALARM<http://developer.android.com/reference/android/Manifest.permission.html#SET_ALARM>

Contacts

Contacts.read

READ_CONTACTS



Contacts.write

WRITE_CONTACTS

Messaging

Sms.read

READ_SMS

Sms.write

WRITE_SMS

Sms.receive

RECEIVE_SMS

Sms.send

SEND_SMS

Mms.receive

RECEIVE_MMS

Message.sendrespond

SEND_RESPOND_VIA_MESSAGE

Wappush.receive

RECEIVE_WAP_PUSH

Telephony

telephonystate

MODIFY_PHONE_STATE

RawSockets

RawSockets

INTERNET

Bluetooth

Bluetooth.connect

BLUETOOTH

Bluetooth.admin

BLUETOOTH_ADMIN

Calendar

Calendar.read

READ_CALENDAR

Calendar.write

WRITE_CALENDAR

SecureElement

Secure.write

WRITE_SECURE_SETTINGS

SystemSettings

System.write

WRITE_SETTINGS

Battery

Battery

BATTERY_STATS

NetworkServiceDiscovery

Network

ACCESS_NETWORK_STATE

Vibration

Vibration

VIBRATE

Geolocation

Geolocation

LOCATION_HARDWARE

ScreenOrientation

ScreenOrientation

SET_ORIENTATION




Best regards
David Liu

_______________________________________________
Crosswalk-dev mailing list
Crosswalk-dev@lists.crosswalk-project.org
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev

Reply via email to