Commit graph

149 commits

Author SHA1 Message Date
Jef Oliver
2de0bba259 Merge "Modular backuptool.sh. Executes backup and restore methods defined in arbitrary /system/addon.d/*.sh scripts." into ics 2012-03-09 10:07:33 +03:00
Warren Togami
b1637c8e2b Modular backuptool.sh. Executes backup and restore methods defined in arbitrary /system/addon.d/*.sh scripts.
Tips & Tricks
=============
* 50-cm.sh contains only a reference implementation.  You may customize the methods however you wish.
  For example, 20-foobar.sh pre-backup can use a loop with conditionals to generate a dynamic backup list in
  /tmp/foobar_file_list which is later printed by list_files() so the backup method will act on those files.
* Optional methods pre-backup, post-backup, pre-restore, or post-restore may be defined for special purposes.
* Inject new files into /tmp/addon.d/ prior to backuptool.sh backup if you want to act during the current CM upgrade.
* Delete files from /tmp/addon.d/ during post-restore if you want to permanently remove files from /system/addon.d/
  Addons may use this approach to run a script only once.
* Scripts run in sort -n order.  Prefix with numbers 00 through 99 if want to run in a particular order.
* You can have two separate scripts, implementing only backup in one, and only restore in the other with a different
  number prefix of each.  This allows even greater control the backup/restore order even further.
* You could use pre-backup to generate a one-time use backup script in /tmp/addon.d/ that deletes itself in
  post-restore.

Patch Series
============
http://review.cyanogenmod.com/#change,13265
CyanogenMod/android_build
  * edify generator
http://review.cyanogenmod.com/#change,13266
CyanogenMod/android_system_core
  * permissions on /system/addon.d
http://review.cyanogenmod.com/#change,13267
CyanogenMod/android_vendor_cm
  * 50-cm.sh reference backup script
  * modular backuptool.sh
  * support backuptool.functions used by /system/addon.d/*.sh scripts

Change-Id: Ifd5eaf9dcfd68d92e5043c21d1bae1dc0ad54860
2012-03-08 20:40:36 -10:00
kallt_kaffe
b8fac54972 apns-conf.xml: Fix Mobifone APN settings.
A Mobifone user contacted me and alerted me that the APN settings for Mobifone was wrong and provided the correct ones.

Change-Id: I8a6b9bde39d7394db2fdf7261b2a8026692fb808
2012-03-05 10:31:48 +01:00
codeworkx
dd5be36f6c added audio files contributed by "Dennis Cleiren"
Change-Id: If10709db3a35e195ed4bf53e7b934d4cc9fbc49c
2012-03-03 23:34:07 +01:00
Steve Kondik
2824bf86ba Fix overridden packages in backuptool
- Fix Gallery typo
 - Add QuickSearchBox override

Change-Id: I7ac14e62eebf4289a55d2d1f065d34866cb67abd
2012-02-29 15:42:19 -08:00
Steve Kondik
b3b545c4ff Merge "Ensure backup of voice search" into ics 2012-02-29 10:53:26 +03:00
Shawn Alty
5dda0a9e97 Ensure backup of voice search
Currently the tool only backs up the lib, but not the apk.
Seeing as how the market version of voice search is still not
up to date with the current release, it should still be backed
up with this script.

Change-Id: Ia130bb3e289fc3c2206a60ed0fcfd7dab816425d
2012-02-25 11:06:23 -06:00
Andrew Sutherland
258d2a7b58 handle_compcache: update props to match MemoryManagement in settings
Change-Id: I74ebcb03d5e096b8e9c71672a23b1c5a70eaef37
2012-02-22 14:55:53 -06:00
Ricardo Cerqueira
2dc7045f2b backuptool: Deal with multiple files with the same name
Since the destination for all backed up files during an installation was
/tmp, all files sharing a name (like the full_model.bin files from
the various face detectors) ended up being restored as copies of
the last such file, effectively breaking the backup.
As a fix, when backing up files, use the entire original path to make
sure they're kept separate and restorable.

Change-Id: I399f7a9433a225871d97e0ecaeb051a90e68696b
2012-02-18 12:28:37 -08:00
Steve Kondik
f342837e69 Revert "Remove gallery from backuptool"
This reverts commit 538b4e9eb4.
2012-02-15 16:33:52 -08:00
Steve Kondik
538b4e9eb4 Remove gallery from backuptool
Change-Id: Ide65c6810955b2be9bc582559c7ba23a0f47cd26
2012-02-10 10:18:52 -08:00
Pawit Pornkitprasan
e1a85eee04 Update MMS APN for Israel
Ref: http://forum.xda-developers.com/showpost.php?p=22210006&postcount=11953

Seems to match other sources on the internet such as http://wiki.apnchanger.org/Israel

Change-Id: I3669ac0f54eeb4e50b7ff1e90e45136378a99773
2012-02-06 20:44:21 +07:00
Mike Kasick
511d60900a Don't export PS1 in /system/etc/mkshrc.
At present, when running a busybox shell ("busybox sh") from mksh
(/system/bin/sh), one gets the following message before every command line:

sh: precmd: Permission denied

This is due to mkshrc exporting a PS1 which depends on a mkshrc defined
function, "precmd".  Since "busybox sh" does not source mkshrc, it does not
have this function defined, resulting in the above error.

By not exporting PS1, "busybox sh" uses its own reasonable default.  mksh
subshells continue to work as usual, since they (re)source /etc/mkshrc
anyways.

Change-Id: Ic9182e42aa033e811300d9e6e8d6d3f43e14e58f
2012-01-26 17:54:31 -05:00
Steve Kondik
387e44993c Merge "vendor: add camera effects prebuilts" into ics 2012-01-15 01:49:01 +03:00
fitsnugly
c1c6ce2414 vendor: add camera effects prebuilts
Change-Id: Ib9ea7c84f43eb5e0451cfecd41d8885e901ea8d4
2012-01-13 20:43:24 -05:00
Tanguy Pruvot
8b24895b20 apns: add entry for the new free mobile operator (france)
Change-Id: Ic6e76b6ca0044cc628dea807fa0badb9ea9bb520
2012-01-10 18:49:55 +01:00
Steve Kondik
f67c4aedf9 cm: Update backuptool for calendar
Change-Id: I882a9e108304649c491b539a7453e29098208b11
2011-12-30 11:31:01 -08:00
Steve Kondik
25d7ca1628 cm: Rename modversion to cm.version
Change-Id: I73da7816fec34e892ee54e1782a18ec1c42863b4
2011-12-29 15:29:34 -08:00
DvTonder
c61cb9242e Backuptool: Add missing google apps files
This commit adds additional gapps files missing from the backuptool

Change-Id: I2848d06c23083def8e92dbf3cf1c024883fb874d
2011-12-26 20:43:28 -05:00
DvTonder
147fb1b1cb backuptool: add missing CalendarProvider.apk
This fixes the broken Calendar Sync after restore

Change-Id: I2ea6c328f64d8fa3022238072cde36f6cb92105d
2011-12-26 11:36:16 -05:00
Steve Kondik
e0711e11f8 cm: Remove junk from backuptool
Change-Id: I1d290c0d685b032fd064cd1fc6b1474359c82c36
2011-12-20 12:51:49 -08:00
Tanguy Pruvot
763624824f Missing Maps.apk in backuptool.sh 2011-12-18 21:32:41 +01:00
Ricardo Cerqueira
e1f3738e7c CM9: initial CM vendor setup for Android 4 2011-11-27 20:15:37 +00:00
Ladios Jonquil
20ac4cd470 gsm: Show localized SPN only when it matches system locale (2/2)
depends on http://review.cyanogenmod.com/10037

Change-Id: Ib405e100ff2d86d5e49c6a47f570df098b9bdcbf
2011-11-13 03:09:15 +08:00
Giulio Cervera
91d5b38230 cm: updated 'download space check' init script
increase required space needed for market downloads from ~20MB
to ~60MB (~105MB if system dalvik is on /cache)

Change-Id: I52fcd648374db4bf73ff478e9991a6a3162521d5
2011-11-02 15:53:15 +01:00
Steve Kondik
41548347f5 Merge "gsm: Update SPN overrides list" into gingerbread 2011-10-29 08:09:07 +04:00
Laurent Monin
14b00a6cc3 Add Celcom Malaysia APNs
Change-Id: I91c56dfaf3091dd25cc81729dd2159261c2f262b
2011-10-21 23:11:38 -07:00
Steve Kondik
3ca58e0db3 Merge "Update the Virgin Mobile UK MMS APN definition" into gingerbread 2011-10-20 08:21:29 +04:00
Ladios Jonquil
af07e50c03 gsm: Update SPN overrides list
Change-Id: Ia869bd96d641a6f2e0164c869b76cb12d8336367
2011-10-16 00:12:01 +08:00
James Zdziebkowski
ec3c9da7e3 Update modelid_cfg.sh to copy correct firmware for ace nam
Change-Id: I030ffe733add1ba1112998d9d04dc4df210eced5
2011-10-07 08:57:46 -04:00
Pat Thoyts
1f937428d7 Update the Virgin Mobile UK MMS APN definition
This corrects the MMS settings to match those seen on Virgin provided stock handsets and
fixes receiving of media messages.
MNCs 31 and 32 are likely to also require changing but have not been tested so are
unchanged by this patch.

Change-Id: I6bc40fa7bfa7f21cf3c6a36cdef2b46512075c6a
Signed-off-by: Pat Thoyts <patthoyts@gmail.com>
2011-09-30 09:30:22 +01:00
Steve Kondik
e4c61244e2 Merge "AicBootFix not needed with source audio Update DSP files for Inspire 4G" into gingerbread 2011-09-24 23:41:51 +04:00
James Zdziebkowski
76b051306e AicBootFix not needed with source audio
Update DSP files for Inspire 4G

Change-Id: Iff324e5318a97097734e3c392ab229258713ad4a
2011-09-21 14:34:17 +02:00
Steve Kondik
2c1e634f7b Revert "New AT&T APN data"
This reverts commit ec3aaca74e7426fc61010445c3257e6200eaa3b2.
2011-09-18 21:22:44 -07:00
Emilio López
2ee4917fd9 New AT&T APN data
Change-Id: I223bc9aac6873a14073ff29ce7a4775999a77e5b
2011-09-17 00:32:22 -07:00
Emilio López
e35e02907f Fix typo in APNs
Change-Id: I33153b7378d6376c20bab98de1756dac01b0bad4
2011-09-01 20:02:45 +00:00
Laurent Monin
d8607172c6 Add APNs for NRJ Mobile MVNO (using SFR network), France.
Change-Id: I50d316e64bfcbd3d529fac2eef9d27f463cc0e4f
2011-08-29 23:52:40 -07:00
Laurent Monin
ca5f8bba8b Drop unknown attribute "authenticationtype", never parsed
According to packages/providers/TelephonyProvider/src/com/android/providers/telephony/TelephonyProvider.java,
getRow() method is knowing nothing about such attribute and just ignore it.
So it should do no harm to remove such.
There's a "authtype" attribute that is parsed, but its value should be an integer.

Change-Id: I9cca16cdd68db30c3a1f76149b0699d49d82fb71
2011-08-29 23:50:25 -07:00
Laurent Monin
b5e56333da Fix bad attribute name vs carrier for Giffgaff MMS.
It seems such entries are coming from apps like APN backup&restore,
which have a slightly different format.

Change-Id: I51d949e4dc13e832c84ecccd66cd9cd723ea2ec4
2011-08-29 23:50:09 -07:00
Laurent Monin
fdc1a3e062 Fix APNs for OPT KNC, invalid attributes (ie. name instead of carrier)
This issue appeared in commit 7df886e58d2ff8d9afa9c3bb2112dc74b66c0a7e

Change-Id: Icbfaf8481b5b051ec131a21b34558e98ab19ab07
2011-08-29 23:49:42 -07:00
fuzz
ea3db5ed80 Add NTT Docomo APN data
Change-Id: I43ddd5edcdad49bcdc053972eebf973b2493f1ed
2011-08-29 23:49:23 -07:00
David Lebel
a4746c0a6c Add Videotron APN data.
Change-Id: I2d8b8e2fb578527bb63f47f68fa9d1f1ea8c73fb
2011-08-29 23:49:05 -07:00
jt1134
6cb24c1fa7 add Cellular South apn
Change-Id: I5edd2e31bd2337980969eabeafbde06c409929be
2011-08-29 23:47:40 -07:00
Laurent Monin
8b2ce2ec42 Remove duplicate three.co.uk mms APN.
This duplicate appeared with commit 294302200411907d848a0f51652a233398056360
"apn list refresh from paulweiss"

Change-Id: I0b66591088f67d04e8b7f94ebc5d1e41b1c45596
2011-08-28 23:46:41 +01:00
Andreas Oeldenberger
28e4bfb4db APNS: remove E-Plus WAP APN
WAP APN is shadowing WEB APN as default and might not be usefull at all(?).

Change-Id: I5555ce5b05233a2dc80073d9fa4fb75734e60995
2011-08-26 15:17:15 +02:00
Emilio López
d641b9c778 Add CGI Wireless APN data
Change-Id: I0d73b46c39a474cc8129fc13e8d3604aebb56b95
2011-08-14 01:42:17 +01:00
jt1134
df2525e278 add US Cellular apn
Change-Id: I189cd5268d0c79b61d037360b77e6e405b23ba8e
2011-08-08 15:30:54 -05:00
Stefano Picciolo
30eb9065bd Delete duplicate Wind IT apn
Change-Id: If277e1cae0fa590f1ff392f8dfe4155ec501fa84
2011-08-06 16:15:49 +02:00
Giulio Cervera
e4600998e6 Cosmote Broadband RO apn
Change-Id: I83efb8998956eacbbc3ccc188affe469360e0e74
2011-07-27 10:55:27 +02:00
Quarx2k
fdd96a84b0 Add Tele2 RU to apns-conf.xml
Change-Id: I882f289c11d5b6a0a962342f94f69ba802db4316
2011-07-17 13:42:10 +07:00