summaryrefstree
path: root/system/etc/dpm/nsrm/NsrmConfiguration.xml
blob: c758daa7fe26a7fc3681654225bc24da4f0d9a87 (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
<?xml version="1.0" encoding="UTF-8"?>
<!--Copyright (c) 2014-2015 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-->
    <GateOpenTime>1</GateOpenTime>
    <!--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">
    <AppName>com.whatsapp</AppName>
    </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>

    <!-- 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 which a decision is learning for an app.
         Default 30 days (2592000s). Range: [1 - 31,536,000] -->
    <TDecisionMade>2592000</TDecisionMade>

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

    <!-- Time margin. 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. Default 5 days (432000s). Range: [1 - 31,536,000] -->
    <TDmThreshold>432000</TDmThreshold>

    <!-- Decision made. 0 false, 1 true -->
    <DNsrmEnable>0</DNsrmEnable>
  </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>