forked from Quarx2k/android_device_lg_w7ds
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove onboot hack for unified builds
Change-Id: I525ed6e5d14c161df951d778133c4cc3b398c324
- Loading branch information
Showing
6 changed files
with
43 additions
and
28 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 |
---|---|---|
@@ -1,28 +1,23 @@ | ||
#!/system/bin/sh | ||
#!/sbin/sh | ||
|
||
model=`getprop ro.product.model` | ||
su -c "setenforce 0" | ||
mount -o remount,rw /system | ||
rm /system/usr/keylayout/Generic.kl | ||
|
||
if [ "$model" = "LG-D410" ] || [ "$model" = "LG-D410hn" ]; then | ||
ln -s /system/usr/keylayout/Generic-D410.kl /system/usr/keylayout/Generic.kl | ||
cp /system/usr/keylayout/Generic-D410.kl /system/usr/keylayout/Generic.kl | ||
else | ||
ln -s /system/usr/keylayout/Generic-D4x5.kl /system/usr/keylayout/Generic.kl | ||
cp /system/usr/keylayout/Generic-D4x5.kl /system/usr/keylayout/Generic.kl | ||
fi | ||
|
||
if [ "$model" = "LG-D410" ] || [ "$model" = "LG-D405" ] || [ "$model" = "LG-D415" ]; then | ||
chmod 000 /system/etc/permissions/android.hardware.nfc.xml | ||
chmod 000 /system/etc/permissions/android.hardware.nfc.hce.xml | ||
chmod 000 /system/lib/hw/nfc_nci.w7.so | ||
find /system/app/NfcNci -type f -exec chmod 000 {} \; | ||
rm /system/etc/permissions/android.hardware.nfc.xml | ||
rm /system/etc/permissions/android.hardware.nfc.hce.xml | ||
rm /system/lib/hw/nfc_nci.pn54x.default.so | ||
rm -rf /system/app/NfcNci | ||
fi | ||
|
||
if [ "$model" = "LG-D415" ]; then | ||
chmod 000 /system/bin/fm_qsoc_patches | ||
chmod 000 /system/etc/permissions/qcom.fmradio.xml | ||
find /system/app/FM2 -type f -exec chmod 000 {} \; | ||
rm /system/bin/fm_qsoc_patches | ||
rm /system/etc/permissions/qcom.fmradio.xml | ||
rm -rf /system/app/FM2 | ||
fi | ||
|
||
mount -o remount,ro /system | ||
su -c "setenforce 1" |
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 @@ | ||
# 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. | ||
|
||
import os | ||
|
||
TARGET_DIR = os.getenv('OUT') | ||
|
||
def FullOTA_InstallEnd(self): | ||
self.output_zip.write(os.path.join(TARGET_DIR, "fixup.sh"), "fixup.sh") | ||
self.script.AppendExtra('package_extract_file("fixup.sh", "/tmp/fixup.sh");') | ||
self.script.AppendExtra('set_metadata("/tmp/fixup.sh", "uid", 0, "gid", 0, "mode", 0755);') | ||
self.script.Mount("/system") | ||
self.script.AppendExtra('run_program("/tmp/fixup.sh");') | ||
self.script.Unmount("/system"); |
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