Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add device patches to tree, huge thanks to grigorig for the awesome s…
- Loading branch information
Daz Jones
committed
May 20, 2013
1 parent
90b9218
commit d763af4
Showing
4 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/sh | ||
|
||
MYABSPATH=$(readlink -f "$0") | ||
PATCHBASE=$(dirname "$MYABSPATH") | ||
CMBASE=$(readlink -f "$PATCHBASE/../../../../") | ||
|
||
for i in $(find "$PATCHBASE"/* -type d); do | ||
PATCHNAME=$(basename "$i") | ||
PATCHTARGET=$PATCHNAME | ||
for i in $(seq 4); do | ||
PATCHTARGET=$(echo $PATCHTARGET | sed 's/_/\//') | ||
if [ -d "$CMBASE/$PATCHTARGET" ]; then break; fi | ||
done | ||
echo applying $PATCHNAME to $PATCHTARGET | ||
cd "$CMBASE/$PATCHTARGET" || exit 1 | ||
git am -3 "$PATCHBASE/$PATCHNAME"/* || exit 1 | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
From ce1b433a9e978bbd43998510369d1c447cbe6920 Mon Sep 17 00:00:00 2001 | ||
From: Daz Jones <yuki@thebronasium.com> | ||
Date: Thu, 24 Jan 2013 22:30:52 +0000 | ||
Subject: [PATCH] Camera: hack default values to fix areas | ||
|
||
Change-Id: I7829ff64e714ecaab1f3323f33b5340d17460cfc | ||
--- | ||
core/java/android/hardware/Camera.java | 2 +- | ||
1 files changed, 1 insertions(+), 1 deletions(-) | ||
|
||
diff --git a/core/java/android/hardware/Camera.java b/core/java/android/hardware/Camera.java | ||
index 2e2d9a6..3e0f572 100644 | ||
--- a/core/java/android/hardware/Camera.java | ||
+++ b/core/java/android/hardware/Camera.java | ||
@@ -2112,7 +2112,7 @@ public class Camera { | ||
|
||
private void set(String key, List<Area> areas) { | ||
if (areas == null) { | ||
- set(key, "(0,0,0,0,0)"); | ||
+ set(key, "(-1000,-1000,1000,1000,1000)"); | ||
} else { | ||
StringBuilder buffer = new StringBuilder(); | ||
for (int i = 0; i < areas.size(); i++) { | ||
-- | ||
1.7.2.5 | ||
|
26 changes: 26 additions & 0 deletions
26
patches/frameworks_base/0002-audioservice-voice-call.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
From 1707988963b5033349e1d125e4dc4ffec9e53c9e Mon Sep 17 00:00:00 2001 | ||
From: Daz Jones <yuki@thebronasium.com> | ||
Date: Sun, 17 Feb 2013 17:09:06 +0000 | ||
Subject: [PATCH] AudioService: change voice call max stream volume | ||
|
||
Change-Id: I78e79d1b72c88495797e61a428b468949a5d41b2 | ||
--- | ||
media/java/android/media/AudioService.java | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/media/java/android/media/AudioService.java b/media/java/android/media/AudioService.java | ||
index 8cfed1b..ef5c2c56 100644 | ||
--- a/media/java/android/media/AudioService.java | ||
+++ b/media/java/android/media/AudioService.java | ||
@@ -180,7 +180,7 @@ public class AudioService extends IAudioService.Stub { | ||
|
||
/** @hide Maximum volume index values for audio streams */ | ||
private int[] MAX_STREAM_VOLUME = new int[] { | ||
- 5, // STREAM_VOICE_CALL | ||
+ 7, // STREAM_VOICE_CALL | ||
7, // STREAM_SYSTEM | ||
7, // STREAM_RING | ||
15, // STREAM_MUSIC | ||
-- | ||
1.7.10.4 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Run device patches on the tree. I'm lazy and this is easy for nightly builds. | ||
sh device/huawei/u8815/patches/apply.sh |