Resource Encryption — Options
The Resource Encryption — Options page allows you to enable or disable DashO's Resource Encryption.
Composite Resource View
When an Android project is built, its resources are gathered from several potential locations, derived from the variant name. For example, for a variant named menuPaidRelease
, the assets will be aggregated based on Android directory priority from:
src/menuPaidRelease/assets
src/release/assets
src/menuPaid/assets
src/menu/assets
src/paid/assets
src/main/assets
The left pane of include and exclude rule editor pages for Resource Encryption present a single composite representation of the resources in the final .apk
(or .aar
) for the current build variant.
This has two interesting consequences. First, all of the include and exclude rules / patterns are relative paths, since they could refer to files in different directory roots. Second, the include and exclude rules apply to all build variants, but since left pane only shows resources for the current build variant, the Preview Rule / Preview All features only show the effects of the rules on those resources.
Note: Variations from the standard directories with
sourceSets
are supported (Android Source Sets).
Resource Encryption — Asset
The Resource Encryption — Asset page allows you to enable or disable DashO's Resource Encryption for assets.
Resource Encryption — Asset — Include and Exclude
The Resource Encryption Asset Include and Exclude pages let you compose rules that determine which assets will be encrypted. Specific assets or entire directories can be selected. Any code that accesses an encrypted resource must be wrapped with the decryption code. If there are any assets that are accessed by code that cannot be wrapped with the decryption code, they will need to be excluded from Resource Encryption. See APIs and Behavior for more details.
The left pane presents a directory tree of assets from all of the directories that contribute to the current build variant.
See Graphical Rules Editor for details about creating rules in DashO.
Resource Encryption — Raw
The Resource Encryption — Raw page allows you to enable or disable DashO's Resource Encryption for raw resources.
Resource Encryption — Raw — Include and Exclude
The Resource Encryption Raw Include and Exclude pages let you compose rules that determine which raw resources will be encrypted. Specific raw resources can be selected. Any code that accesses an encrypted resource must be wrapped with the decryption code. If there are any raw resources that are accessed by code that cannot be wrapped with the decryption code, they will need to be excluded from Resource Encryption. See APIs and Behavior for more details.
The left pane presents a list of raw resources from all of the directories that contribute to the current build variant.
See Graphical Rules Editor for details about creating rules in DashO.