From 69e9daff39c51f1ab021c2134ad0004971b32124 Mon Sep 17 00:00:00 2001 From: codeworkx Date: Sat, 17 Dec 2011 00:03:32 +0100 Subject: [PATCH 1/3] audio: soundbooster config file Change-Id: Ice36cfa2facfd02faf16ecc20a259b5482d81d1c --- common.mk | 6 ++++-- etc/audio/soundbooster.txt | 4 ++++ etc/init.d/10soundbooster | 7 +++++++ 3 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 etc/audio/soundbooster.txt create mode 100644 etc/init.d/10soundbooster diff --git a/common.mk b/common.mk index 8a04b02..5b169ff 100644 --- a/common.mk +++ b/common.mk @@ -50,7 +50,7 @@ PRODUCT_PACKAGES := \ libexifa \ libjpega \ com.android.future.usb.accessory \ - bdaddr_read + bdaddr_read # These are the hardware-specific configuration files PRODUCT_COPY_FILES := \ @@ -67,7 +67,8 @@ PRODUCT_COPY_FILES += \ device/samsung/c1-common/lpm.rc:root/lpm.rc \ device/samsung/c1-common/init.smdkc210.rc:root/init.smdkc210.rc \ device/samsung/c1-common/init.smdkv310.rc:root/init.smdkv310.rc \ - device/samsung/c1-common/ueventd.smdkv310.rc:root/ueventd.smdkv310.rc + device/samsung/c1-common/ueventd.smdkv310.rc:root/ueventd.smdkv310.rc \ + device/samsung/c1-common/etc/init.d/10soundbooster:system/etc/init.d/10soundbooster # mDNIe PRODUCT_COPY_FILES += \ @@ -90,6 +91,7 @@ PRODUCT_COPY_FILES += \ # Configuration files for audio PRODUCT_COPY_FILES += \ + device/samsung/c1-common/etc/audio/soundbooster.txt:system/etc/audio/soundbooster.txt \ device/samsung/c1-common/etc/audio/LVVEFS_Rx_Configuration.txt:system/etc/audio/LVVEFS_Rx_Configuration.txt \ device/samsung/c1-common/etc/audio/LVVEFS_Tx_Configuration.txt:system/etc/audio/LVVEFS_Tx_Configuration.txt \ device/samsung/c1-common/etc/audio/Rx_ControlParams_EARPIECE_WIDEBAND.txt:system/etc/audio/Rx_ControlParams_EARPIECE_WIDEBAND.txt \ diff --git a/etc/audio/soundbooster.txt b/etc/audio/soundbooster.txt new file mode 100644 index 0000000..42a6ad9 --- /dev/null +++ b/etc/audio/soundbooster.txt @@ -0,0 +1,4 @@ +H,0 +G,6 +C,2 +S,2 diff --git a/etc/init.d/10soundbooster b/etc/init.d/10soundbooster new file mode 100644 index 0000000..1522582 --- /dev/null +++ b/etc/init.d/10soundbooster @@ -0,0 +1,7 @@ +#!/system/bin/sh +# copy soundbooster config if not exists + +if [ ! -e /data/soundbooster.txt ]; +then + cp /system/etc/audio/soundbooster.txt /data/soundbooster.txt +fi; From 92780dfae5ef8360abfcc7bf58766720e2d65dfb Mon Sep 17 00:00:00 2001 From: coudu Date: Tue, 17 Jan 2012 23:40:00 +0100 Subject: [PATCH 2/3] C1Parts: added french translation Change-Id: Id592a09702622e88dcfa86765cfd52b42106ebcc --- C1Parts/res/values-fr/arrays.xml | 60 +++++++++++++++++++++++++++++++ C1Parts/res/values-fr/strings.xml | 24 +++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 C1Parts/res/values-fr/arrays.xml create mode 100644 C1Parts/res/values-fr/strings.xml diff --git a/C1Parts/res/values-fr/arrays.xml b/C1Parts/res/values-fr/arrays.xml new file mode 100644 index 0000000..c9d223c --- /dev/null +++ b/C1Parts/res/values-fr/arrays.xml @@ -0,0 +1,60 @@ + + + + IU (Défaut) + Vidéo + Vidéo Chaud + Vidéo Froid + Caméra + Navigation + Galerie + + + + + + Standard (Défaut) + Dynamique + Film + + + + + + Toujours allumé + 2 secondes + 5 secondes + 10 secondes + 15 secondes + Toujours éteint + + + + + + Jamais + 5 minutes + 10 minutes + 15 minutes + 30 minutes + 60 minutes + + + + + + Activé + Désactivé + + + + + + UMTS Seulement + HSDPA Seulement + HSDPA + HSUPA + + + + + diff --git a/C1Parts/res/values-fr/strings.xml b/C1Parts/res/values-fr/strings.xml new file mode 100644 index 0000000..c11aa13 --- /dev/null +++ b/C1Parts/res/values-fr/strings.xml @@ -0,0 +1,24 @@ + + + Paramètres Galaxy SII + + Paramètres de l\'écran + Couleur + Choix du mode de couleur mDNIe + Netteté + Choix du mode de netteté mDNIe + + Touches Tactiles + Délai Rétroéclairage + Délai de rétroéclairage des touches tactiles avant extinction + + Notifications par LED + Notifications + Activer le support des notifications par LED dans le noyau. Note: Une notification active empêche le téléphone de rentrer en veille profonde + Délai Notification + Délai de l\'indicateur de notification avant extinction + + Radio + HSPA + Activer HSDPA/HSUPA + From 2cd0b405fa1c172e8302f480c504410d03371545 Mon Sep 17 00:00:00 2001 From: codeworkx Date: Sat, 25 Feb 2012 13:17:37 +0100 Subject: [PATCH 3/3] releasetools: force unmount system before format Change-Id: Id7c7c9dc6cde50050256f9495288866a49baf810 --- releasetools/c1_edify_generator.py | 9 +++++++++ releasetools/c1_ota_from_target_files | 1 + 2 files changed, 10 insertions(+) diff --git a/releasetools/c1_edify_generator.py b/releasetools/c1_edify_generator.py index a2ccc30..95bdf48 100755 --- a/releasetools/c1_edify_generator.py +++ b/releasetools/c1_edify_generator.py @@ -35,3 +35,12 @@ class EdifyGenerator(edify_generator.EdifyGenerator): ('assert(package_extract_file("%(image)s", "/tmp/%(image)s"),\n' ' write_raw_image("/tmp/%(image)s", "%(partition)s"),\n' ' delete("/tmp/%(image)s"));') % args) + + def Unmount(self, mount_point): + """Unmount the partition with the given mount_point.""" + fstab = self.info.get("fstab", None) + if fstab: + p = fstab[mount_point] + self.script.append('unmount("%s");' % + (p.mount_point)) + self.mounts.add(p.mount_point) diff --git a/releasetools/c1_ota_from_target_files b/releasetools/c1_ota_from_target_files index bb6b61b..358b3b2 100755 --- a/releasetools/c1_ota_from_target_files +++ b/releasetools/c1_ota_from_target_files @@ -68,6 +68,7 @@ def WriteFullOTAPackage(input_zip, output_zip): if OPTIONS.wipe_user_data: script.FormatPartition("/data") + script.Unmount("/system") script.FormatPartition("/system") script.Mount("/system") script.UnpackPackageDir("recovery", "/system")