summaryrefstree
path: root/system/etc/dpm/nsrm/NsrmConfiguration.xml
blob: c0c9fc0d9ee831a8361248dc167759a154721e85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<?xml version="1.0" encoding="UTF-8"?>
<!--Copyright (c) 2014-2017 Qualcomm Technologies, Inc.  All 
    Rights Reserved. Qualcomm Technologies Proprietary and
    Confidential.-->
<NsrmPolicy>
  <Nsrm>
    <!--The version of the NSRM software-->
    <Version>2.0</Version>
    <!--Length of time in seconds to keep gate open each time it is opened
        valid values 1 to 24*60*60 seconds-->
    <GateOpenWwanTime>1</GateOpenWwanTime>
    <!--Length of time in seconds to keep gate open each time it is opened
        valid values 1 to 24*60*60 seconds-->
    <GateOpenWlanTime>10</GateOpenWlanTime>
    <!--Maximum time in seconds to wait before forcing gate open for connect,
         getaddrinfo or other resolver calls
         valid values 1 to 24*60*60 seconds-->
    <GateSyncSocketSetupTime>1200</GateSyncSocketSetupTime>
    <!--Maximum time in seconds to wait before forcing gate open for write and
        other socket calls that send data
        valid values 1 to 24*60*60 seconds-->
    <GateSyncSocketWriteTime>600</GateSyncSocketWriteTime>
    <!--Time in seconds to wait before releasing the queued sockets when the
        emergency alert notification is received
        EAQSRT stands for Emergency Alert Queued Socket Release Delay Time
        valid values 1 to 24*60*60 seconds-->
    <EAQSRDT>60</EAQSRDT>
    <!--Mode to indicate how processes which share the same UID should be
        handled-->
    <SharedUIDMode>Conservative</SharedUIDMode>
    <!--List of applications which to apply Nsrm to-->
    <AppList Type="Exclusion">
    </AppList>
    <!-- Example MCC_MNC configuration
         NTO values are configured in seconds
         GATE will OPEN seconds before expiration of network binding, based on NTO
         Twsync will expires 10 seconds before NTO value
         port "0" is the default configuration, applies if no port match is found
         valid values for NTO is 0 to 24*60*60 seconds-->
    <!--MCC_MNC value="210456">
        <port value="8080" NTO="1200"/>
        <port value="56" NTO="1800"/>
        <port value="0" NTO="300"/>
    </MCC_MNC-->
    <MCC_MNC value="Default">
        <port value="0" NTO="300"/>
    </MCC_MNC>

    <MCC_MNC value="Wlan">
        <port value="0" NTO="900"/>
    </MCC_MNC>

    <!-- Good Threshold. Double type. Range: [0.0 - 10.0] -->
    <GoodThr>1.0</GoodThr>

    <!-- Bad Threshold. Double type.  Range: [1.0 - 10.0] -->
    <BadThr>3.0</BadThr>

    <!-- Time period of connect count which will be used for decision making.
         Default 4 hours (14400s). Range: [1 - 86,400] -->
    <TConnect>14400</TConnect>

    <!-- Time period of days for which a previous made decesion is valid.
         with a margin of 1 day which is the Min allowed value.
         Default 30 days (2592000s). Range: [86400 - 31,536,000] -->
    <TDecisionMade>2592000</TDecisionMade>

    <!-- Minimum connect counts. Range: [0 - 100] -->
    <MinThr>5</MinThr>

    <!-- Time margin to wait before entering learning mode.
         Default 60s. Range: [1 - 1800] -->
    <TMargin>60</TMargin>

    <!-- Minimum time idle. Default 10 min (600s). Range: [1 - 3600] -->
    <TMinIdle>600</TMinIdle>

    <!-- Time for query. Default 5 min (300s). Range: [60 - 3600] -->
    <TQuery>300</TQuery>

    <!-- Decision made time threshold. If an app gets updated we consider it
         valid only if it was taken within this threshold value.
         Default 5 days (432000s). Range: [1 - 31,536,000] -->
    <TDmThreshold>432000</TDmThreshold>

    <!-- Recheck threshold. Default 1.1 Range: [1.0 - 10.0] -->
    <RecheckThr>1.1</RecheckThr>

    <!-- Decision made. 0 false, 1 true -->
    <DNsrmEnable>1</DNsrmEnable>

    <!-- Nsrm Wlan Enable . 0 Disable, 1 Enable -->
    <NsrmWlanEnable>0</NsrmWlanEnable>

    <!-- Nsrm Wlan 0 Aggressive, 1 Conservative -->
    <NsrmWlanMode>1</NsrmWlanMode>

  </Nsrm>
  <!-- The next element is for reference only to show how to config NSRM
       parameters for another version that may be supported on the device -->
  <!--
  <Nsrm>
    <Version>1.2</Version>
    <GateOpenTime>32</GateOpenTime>
    <GateSyncTime>1202</GateSyncTime>
    <EAQSRDT>62</EAQSRDT>
    <SharedUIDMode>Conservative</SharedUIDMode>
    <AppList Type="Exclusion">
    </AppList>
  </Nsrm>
  -->
</NsrmPolicy>