Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

...

Code Block
languagexml
<?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:

...

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.

...