When the user clicks on the restricted icon or interface on the LCD screen, a pop-up window prompts to enter the password. After entering the correct password, it can be executed normally.
Feature Settings
First of all, there are 3 settings to control this feature.
Parameter Example | <P20952>$LcdItemLevelEnable$</P20952> <LcdItemLevelEnable>$LcdItemLevelEnable$</LcdItemLevelEnable> |
P Value Format | P20952 |
Description | Enable/Disable User Access Level for the phone LCD 0-Disable, 1-Enable Example: <P20952>0</P20952> <LcdItemLevelEnable>1</LcdItemLevelEnable> |
Permitted Values | Bool: 0 ~ 1 |
Default | 0 |
Web UI | Blank |
Phone UI | Blank |
Parameter Example | <P24995>$UserAccessLevel$</P24995> <UserLcdLevel>$UserAccessLevel$</UserLcdLevel> |
P Value Format | P24995 |
Description | It configures the user access level of the phone. A user with high level can access all the features in his user level and lower level. And 3-none means no limit. 0-user,1-var,2-admin,3-none Example: <P24995>3</P24995> <UserLcdLevel>3</UserLcdLevel> |
Permitted Values | Int: 0-3 |
Default | 3 |
Web UI | Blank |
Phone UI | Blank |
Parameter Example | <P20645>$Url$</P20645> <Preference_ItemLevelUrl>$Url$</Preference_ItemLevelUrl> |
P Value Format | P20645 |
Description | It configures the user access level xml file server url. Example: <P20645>192.168.1.2/UserAccess.cfg</P20645> <Preference_ItemLevelUrl>192.168.1.2/UserAccess.cfg</Preference_ItemLevelUrl> |
Permitted Values | string;maxlength: 0-255 |
Default | Blank |
Web UI | Blank |
Phone UI | Blank |
Assignment profiles can refer to:
A minimal configuration file to provision these settings to the phone shown as below:
Code Block | ||
---|---|---|
| ||
<?xml version="1.0" encoding="UTF-8" ?> |
...
<hl_provision version="1"> |
...
<config version="1"> |
...
<P20952 para="Preference_ItemLevelLcdEnable">1</P20952> |
...
<P24995 para="UserLcdLevel">0</P24995> |
...
<P20645 para="Preference_ItemLevelUrl">http://10.6.0.116:8099/UserAccess.cfg</P20645> |
...
</config> |
...
</hl_provision> |
UAL File
The format to specify the User Access Level of a fucntion in the UAL file is:
Panel | ||
---|---|---|
| ||
function = x |
X represents the user level required to access the function.
When operating the function, if the phone does not meet the required level, a pop-up window will prompt that a password needs to be entered.(1)[ SystemUI ]
Now, there are 3 modules can apply the UAL:
SystemUI: Restrict the button function of the drop-down menu.
...
Launcher
...
: Restrict desktop icon clicks and pop up a pop-up when accessing an application, format is Launcher-[package name]=X
...
Settings
...
: It is the access restriction for specific items under the Settings interface.
A UserAccess.cfg file configuration can be referred to:
Code Block |
---|
[ SystemUI ] |
...
SystemUI-WiFi = 0 |
...
SystemUI-BT = 1 |
...
SystemUI-Forward = 1 |
...
SystemUI-VOIPDND = 2 |
...
SystemUI-Settings = 0 |
...
SystemUI-ScreenRecord =1 |
...
SystemUI-ScreenCast = 1 |
...
[ Launcher ] |
...
Launcher-com.htek.voip:DndEmptyActivity = 1 |
...
Launcher-com.android.vending = 1 |
...
[ Settings ] |
...
Settings-WiFi = 1 |
...
Settings-DND = 1 |
...
Settings-General = 1 |
After above settings, if the user access a feature without permission, the phone will prompt for password.
...