summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew F. Davis2018-10-15 12:28:17 -0500
committerAndrew F. Davis2018-10-15 12:28:17 -0500
commitdf013beef1f34b1379c2dc867027ea1fcd6247b8 (patch)
tree26fe781cbe6e40d8a15d69b216e5fe461470da34
parentddcfdd262bd0229baea8fb2aab50e97d40aed8c7 (diff)
downloaddevice-ti-j721e-df013beef1f34b1379c2dc867027ea1fcd6247b8.tar.gz
device-ti-j721e-df013beef1f34b1379c2dc867027ea1fcd6247b8.tar.xz
device-ti-j721e-df013beef1f34b1379c2dc867027ea1fcd6247b8.zip
Add device settings overlays
These define some default behaviors and interface settings. Signed-off-by: Andrew F. Davis <afd@ti.com>
-rw-r--r--overlay/frameworks/base/core/res/res/values/config.xml31
-rw-r--r--overlay/frameworks/base/packages/SettingsProvider/res/values/config.xml25
-rw-r--r--overlay/packages/apps/Launcher3/res/xml/default_workspace_5x6.xml70
3 files changed, 126 insertions, 0 deletions
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml
new file mode 100644
index 0000000..7cc17c1
--- /dev/null
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -0,0 +1,31 @@
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16-->
17
18<!-- These resources are around just to allow their values to be customized
19 for different hardware and product builds. -->
20<resources>
21
22 <!-- This device is not "voice capable"; it's data-only. -->
23 <bool name="config_voice_capable">false</bool>
24
25 <!-- This device does not allow sms service. -->
26 <bool name="config_sms_capable">false</bool>
27
28 <!-- Separate software navigation bar required on this device. -->
29 <bool name="config_showNavigationBar">true</bool>
30
31</resources>
diff --git a/overlay/frameworks/base/packages/SettingsProvider/res/values/config.xml b/overlay/frameworks/base/packages/SettingsProvider/res/values/config.xml
new file mode 100644
index 0000000..af30ee4
--- /dev/null
+++ b/overlay/frameworks/base/packages/SettingsProvider/res/values/config.xml
@@ -0,0 +1,25 @@
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16-->
17
18<resources>
19 <!-- Turn off GPS as a default. -->
20 <string name="def_location_providers_allowed" translatable="false"></string>
21 <!-- DIsable lock screen -->
22 <bool name="def_lockscreen_disabled">true</bool>
23 <!-- Keep screen on allways -->
24 <bool name="def_stay_on_while_plugged_in">true</bool>
25</resources>
diff --git a/overlay/packages/apps/Launcher3/res/xml/default_workspace_5x6.xml b/overlay/packages/apps/Launcher3/res/xml/default_workspace_5x6.xml
new file mode 100644
index 0000000..c3ca045
--- /dev/null
+++ b/overlay/packages/apps/Launcher3/res/xml/default_workspace_5x6.xml
@@ -0,0 +1,70 @@
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16-->
17
18<favorites xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3">
19 <!-- Far-left screen [0] -->
20
21 <!-- Left screen [1] -->
22
23 <!-- Middle screen [2] -->
24
25 <!-- Right screen [3] -->
26
27 <!-- Far-right screen [4] -->
28
29 <!-- Hotseat (We use the screen as the position of the item in the hotseat) -->
30 <resolve
31 launcher:container="-101"
32 launcher:screen="1"
33 launcher:x="1"
34 launcher:y="0">
35 <favorite
36 launcher:packageName="com.android.music"
37 launcher:className="com.android.music.MusicBrowserActivity" />
38 </resolve>
39
40 <resolve
41 launcher:container="-101"
42 launcher:screen="2"
43 launcher:x="2"
44 launcher:y="0">
45 <favorite
46 launcher:packageName="com.android.gallery3d"
47 launcher:className="com.android.gallery3d.app.Gallery" />
48 </resolve>
49
50 <resolve
51 launcher:container="-101"
52 launcher:screen="4"
53 launcher:x="4"
54 launcher:y="0">
55 <favorite
56 launcher:packageName="com.android.settings"
57 launcher:className="com.android.settings.Settings" />
58 </resolve>
59
60 <resolve
61 launcher:container="-101"
62 launcher:screen="5"
63 launcher:x="5"
64 launcher:y="0">
65 <favorite
66 launcher:packageName="com.android.browser"
67 launcher:className="com.android.browser.BrowserActivity" />
68 </resolve>
69
70</favorites>