forked from steven-lay/android_device_sony_rhine-common
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support C6802 and C6902 with a post-install script
* Modem firmware differs on C6[89]02. Change-Id: I3569e37bdd01511b7122620486a954487db5412f
- Loading branch information
1 parent
40631c7
commit cbf3262
Showing
5 changed files
with
47 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
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
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,11 @@ | ||
#!/sbin/sh | ||
|
||
mkdir -p /lta-label | ||
mount -o ro /dev/block/platform/msm_sdcc.1/by-name/LTALabel /lta-label | ||
ls lta-label/*.html | grep -q c6[89]02 | ||
if [ $? -eq 0 ]; then | ||
mount /dev/block/platform/msm_sdcc.1/by-name/system /system | ||
cp /system/etc/firmware/c6x02/* /system/etc/firmware/ | ||
umount /system | ||
fi | ||
umount /lta-label |
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,28 @@ | ||
# Copyright (C) 2012 The Android Open Source Project | ||
# Copyright (C) 2014 The CyanogenMod Project | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
"""Custom OTA Package commands for rhine""" | ||
|
||
import os | ||
|
||
TARGET_DIR = os.getenv('OUT') | ||
TARGET_DEVICE = os.getenv('CM_BUILD') | ||
|
||
def FullOTA_InstallEnd(self): | ||
if TARGET_DEVICE == "honami" or TARGET_DEVICE == "togari": | ||
self.output_zip.write(os.path.join(TARGET_DIR, "c6x02.sh"), "c6x02.sh") | ||
self.script.AppendExtra('package_extract_file("c6x02.sh", "/tmp/c6x02.sh");') | ||
self.script.AppendExtra('set_perm(0, 0, 0777, "/tmp/c6x02.sh");') | ||
self.script.AppendExtra('run_program("/tmp/c6x02.sh");') |
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