summaryrefslogtreecommitdiffabout
path: root/contrib/com.palm.app.deviceinfo
blob: 07e18d5621a55a5d3331ce0b41087662a8ee3c3d (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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
#!/bin/sh

APPID=`basename $0`
APPNAME="Misc OS Backup Files"
APPNOTE="Luna Restart required after restore.  Does not restore PalmDatabase, cookies.db, databases.db or /dev/tokens/"
APPDIR="/usr/palm/sysmgr/images/"

source `dirname $0`/srf.app.info

# Save/restore a variety of user-updated personalized files (boot logo, lock screen)
SRCDIR="/usr/palm/sysmgr/images/"
DSTSUB="sysimages"

if `webos_version_lt 2.0.0` ; then

	FILES="palm-logo.png* palm-logo-bright.png* screen-lock-padlock*.png screen-lock-target-scrim.png screen-lock-wallpaper-mask*.png"

fi

if `webos_version_ge 2.0.0` ; then

	FILES="hp-logo.png* hp-logo-bright.png* screen-lock-padlock*.png screen-lock-target-scrim.png screen-lock-wallpaper-mask*.png"

fi

source `dirname $0`/srf.app.files

# Save/restore a variety of phone-related personalized files
SRCDIR="/usr/palm/applications/com.palm.app.phone/images"
DSTSUB="phoneimages"

if `webos_version_lt 2.0.0` ; then

   FILES="backdrop*.png* phone-menu-short-fade.png* list-section-line.png*"

fi

if `webos_version_ge 2.0.0` ; then

   FILES="backdrop*.png* list-section-line.png*"

fi

source `dirname $0`/srf.app.files

# Save/restore other phone-related personalized files
if `webos_version_ge 2.0.0` ; then
	SRCDIR="/usr/palm/applications/com.palm.app.phone/images/framework"
	DSTSUB="framework"

	FILES="*"

	source `dirname $0`/srf.app.files
fi

# Save PalmDatabase.db3, but do not restore
if `webos_version_lt 2.0.0` ; then

	SRCDIR="/var/luna/data/dbdata"
	FILES="PalmDatabase.db3"
	DSTSUB="dbdata"

	if [ "$1" == "save" ] ; then
	   source `dirname $0`/srf.app.files
	fi

	if [ "$1" == "restore" ] ; then
	   echo "PalmDatabase.db3 not restored"
	fi

fi


# Save cookies.db and databases.db, but do not restore
SRCDIR="/var/palm/data/"
FILES="cookies.db Databases.db"
DSTSUB="data"

if [ "$1" == "save" ] ; then
   source `dirname $0`/srf.app.files
fi

if [ "$1" == "restore" ] ; then
   echo "cookies.db and database.db not restored"
fi

# Save systemprefs.db, but do not restore
SRCDIR="/var/luna/preferences/"
FILES="systemprefs.db"
DSTSUB="preferences"

if [ "$1" == "save" ] ; then
   source `dirname $0`/srf.app.files
fi

if [ "$1" == "restore" ] ; then
   echo "systemprefs.db not restored"
fi

# Save /dev/tokens, but do not restore
SRCDIR="/dev/tokens/"
DSTSUB="tokens"
FILES="*"
OPTIONAL=true

if [ "$1" == "save" ] ; then
   source `dirname $0`/srf.app.files
fi

if [ "$1" == "restore" ] ; then
   echo "/dev/tokens/* not restored"
fi

# Save/restore 1.5 images
# Save/restore a variety of user-updated personalized files (boot logo, lock screen)
SRCDIR="/usr/palm/sysmgr/images/1.5/"
DSTSUB="sysimages15"
OPTIONAL=true

if `webos_version_lt 2.0.0` ; then

	FILES="palm-logo.png* palm-logo-bright.png* screen-lock-padlock*.png screen-lock-target-scrim.png screen-lock-wallpaper-mask*.png"

fi

if `webos_version_ge 2.0.0` ; then

	FILES="hp-logo.png* hp-logo-bright.png* screen-lock-padlock*.png screen-lock-target-scrim.png screen-lock-wallpaper-mask*.png"

fi

source `dirname $0`/srf.app.files

# Save/restore a variety of phone-related personalized files
SRCDIR="/usr/palm/applications/com.palm.app.phone/images/1.5"
DSTSUB="phoneimages15"
OPTIONAL=true

if `webos_version_lt 2.0.0` ; then

   FILES="backdrop*.png* phone-menu-short-fade.png* list-section-line.png*"

fi

if `webos_version_ge 2.0.0` ; then

   FILES="backdrop*.png* list-section-line.png*"

fi

source `dirname $0`/srf.app.files


OPTIONAL=false

exit 0

Disclaimer

Enacting any set of instructions from this site has the (remote, but greater than zero) potential to void your warranty. Our intention and the specific design of all instructions is such that you should be able to recover using the webOS Doctor should anything go wrong, and put your device back to a state which is indistinguishable from a factory-new device, but we give no guarantee. Use any information from this site at your own risk. At the very least, you should be prepared to lose all data on your phone at any time. We cannot tell you what you should do - we provide the information, but it's up to your own sense of personal responsibility to determine what you do with that information. We require you to use the webOS Doctor to put your device back to factory condition before contacting Palm or your cellular carrier for service or support.

Hosting for WebOS Internals provided by