Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Initial jb-mr1 vendor

  • Loading branch information...
commit 86c80ab7f623a3ee8c54db9fa287f67c860a3d20 0 parents
@xoomdev xoomdev authored
Showing with 2,304 additions and 0 deletions.
  1. +2 −0  .gitignore
  2. +43 −0 README.mkdn
  3. +3 −0  configs/cdma.mk
  4. +79 −0 configs/common.mk
  5. +20 −0 configs/common_versions.mk
  6. +7 −0 configs/gsm.mk
  7. +10 −0 configs/vzw.mk
  8. +6 −0 overlay/common/frameworks/base/core/res/res/values/config.xml
  9. +21 −0 overlay/common/frameworks/base/packages/SettingsProvider/res/values/defaults.xml
  10. +28 −0 overlay/common/frameworks/base/packages/SystemUI/res/values/config.xml
  11. +88 −0 prebuilt/Android.mk
  12. BIN  prebuilt/bootanimation/bootanimation_1024_600.zip
  13. BIN  prebuilt/bootanimation/bootanimation_1024_600_ccw90.zip
  14. BIN  prebuilt/bootanimation/bootanimation_1024_768.zip
  15. BIN  prebuilt/bootanimation/bootanimation_1280_800.zip
  16. BIN  prebuilt/bootanimation/bootanimation_240_320.zip
  17. BIN  prebuilt/bootanimation/bootanimation_320_480.zip
  18. BIN  prebuilt/bootanimation/bootanimation_480_800.zip
  19. BIN  prebuilt/bootanimation/bootanimation_480_854.zip
  20. BIN  prebuilt/bootanimation/bootanimation_540_960.zip
  21. BIN  prebuilt/bootanimation/bootanimation_600_1024.zip
  22. BIN  prebuilt/bootanimation/bootanimation_720_1280.zip
  23. BIN  prebuilt/common/app/LatinImeDictionaryPack.apk
  24. BIN  prebuilt/common/app/Microbes.apk
  25. BIN  prebuilt/common/app/NovaLauncher.apk
  26. BIN  prebuilt/common/app/SuperSU.apk
  27. BIN  prebuilt/common/app/Superuser.apk
  28. BIN  prebuilt/common/app/Thinkfree.apk
  29. BIN  prebuilt/common/app/UnicornPorn.apk
  30. +4 −0 prebuilt/common/bin/sysinit
  31. +140 −0 prebuilt/common/etc/apns-conf-cdma.xml
  32. +1,337 −0 prebuilt/common/etc/apns-conf.xml
  33. +3 −0  prebuilt/common/etc/init.d/00start
  34. +2 −0  prebuilt/common/etc/init.d/01sysctl
  35. +19 −0 prebuilt/common/etc/permissions/com.tmobile.software.themes.xml
  36. +2 −0  prebuilt/common/etc/resolv.conf
  37. +6 −0 prebuilt/common/etc/sysctl.conf
  38. BIN  prebuilt/common/lib/libmicrobes_jni.so
  39. BIN  prebuilt/common/xbin/su
  40. +1 −0  prebuilt/tuna/vold.fstab
  41. BIN  prebuilt/vzw/app/VerizonSSO.apk
  42. +6 −0 prebuilt/vzw/etc/permissions/com.vzw.hardware.ehrpd.xml
  43. +6 −0 prebuilt/vzw/etc/permissions/com.vzw.hardware.lte.xml
  44. +5 −0 prebuilt/vzw/etc/permissions/com.vzw.vzwapnlib.xml
  45. BIN  prebuilt/vzw/lib/libmotricity.so
  46. +5 −0 products/AndroidProducts.mk
  47. +17 −0 products/grouper.mk
  48. +27 −0 products/maguro.mk
  49. +27 −0 products/toro.mk
  50. +24 −0 products/toroplus.mk
  51. +11 −0 tools/colors
  52. +2 −0  tools/getdate
  53. +156 −0 tools/opticharger
  54. +193 −0 tools/squisher
  55. +4 −0 vendorsetup.sh
2  .gitignore
@@ -0,0 +1,2 @@
+bot/
+.DS_Store
43 README.mkdn
@@ -0,0 +1,43 @@
+Android Open Kang Project
+=========================
+
+
+
+
+
+Getting Started
+---------------
+
+Please see the [Android source page](http://source.android.com/source/index.html) for building instructions.
+
+To initialize your local repository using my trees, use the following command:
+
+ repo init -u https://github.com/AOKP/platform_manifest.git -b jb
+
+Then to sync up:
+
+ repo sync
+
+
+
+Building
+--------
+
+After the sync is finished, please read the [instructions from the Android site](http://s.android.com/source/building.html) on how to build.
+
+Once you've read that, you can build with
+
+ mka
+
+This will compile everything and use the correct "-j#" flag.
+
+You can also build a flashable zip with
+
+ mka bacon
+
+
+Special Thanks
+--------------
+Huge shout out to [@peteralfonzo](http://twitter.com/peteralfonso) for his wonderfully clean vendor tree to use as a base. This makes this infinitely more oragnized and easier to work with. Thank him!
+
+
3  configs/cdma.mk
@@ -0,0 +1,3 @@
+# CDMA APN list
+PRODUCT_COPY_FILES += \
+ vendor/aokp/prebuilt/common/etc/apns-conf-cdma.xml:system/etc/apns-conf.xml
79 configs/common.mk
@@ -0,0 +1,79 @@
+$(call inherit-product-if-exists, vendor/aokp/prebuilt/prebuilts.mk)
+
+# Common overlay
+PRODUCT_PACKAGE_OVERLAYS += vendor/aokp/overlay/common
+
+PRODUCT_PACKAGES += \
+ AOKPtips \
+ AppWidgetPicker \
+ LatinImeDictionary \
+ Microbes \
+ MusicFX \
+ MusicVisualization \
+ NoiseField \
+ NovaLauncher \
+ PhaseBeam \
+ ROMControl \
+ SuperSU \
+ SwagPapers \
+ Torch \
+ UnicornPorn
+
+# Use prebuilt su until fixed when built
+PRODUCT_COPY_FILES += \
+ vendor/aokp/prebuilt/common/xbin/su:system/xbin/su
+
+PRODUCT_PROPERTY_OVERRIDES += \
+ ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html \
+ ro.url.legal.android_privacy=http://www.google.com/intl/%s/mobile/android/basic/privacy.html \
+ ro.com.google.clientidbase=android-google \
+ ro.com.android.wifi-watchlist=GoogleGuest \
+ ro.error.receiver.system.apps=com.google.android.feedback \
+ ro.com.google.locationfeatures=1 \
+ ro.setupwizard.enterprise_mode=1 \
+ windowsmgr.max_events_per_sec=240 \
+ ro.kernel.android.checkjni=0
+
+PRODUCT_COPY_FILES += \
+ vendor/aokp/prebuilt/common/lib/libmicrobes_jni.so:system/lib/libmicrobes_jni.so \
+ vendor/aokp/prebuilt/common/etc/apns-conf.xml:system/etc/apns-conf.xml \
+ vendor/aokp/prebuilt/common/etc/resolv.conf:system/etc/resolv.conf
+
+# init.d
+PRODUCT_COPY_FILES += \
+ vendor/aokp/prebuilt/common/etc/init.d/00start:system/etc/init.d/00start \
+ vendor/aokp/prebuilt/common/etc/init.d/01sysctl:system/etc/init.d/01sysctl \
+ vendor/aokp/prebuilt/common/etc/sysctl.conf:system/etc/sysctl.conf \
+ vendor/aokp/prebuilt/common/bin/sysinit:system/bin/sysinit
+
+# Enable SIP+VoIP on all targets
+PRODUCT_COPY_FILES += \
+ frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml
+
+PRODUCT_PACKAGES += \
+ openvpn \
+ e2fsck \
+ mke2fs \
+ tune2fs \
+ libssh \
+ ssh \
+ sshd \
+ sshd-config \
+ ssh-keygen \
+ sftp \
+ scp
+
+# Default ringtone
+PRODUCT_PROPERTY_OVERRIDES += \
+ ro.config.ringtone=Scarabaeus.ogg \
+ ro.config.notification_sound=Antimony.ogg \
+ ro.config.alarm_alert=Scandium.ogg
+
+# BT config
+PRODUCT_COPY_FILES += \
+ system/bluetooth/data/main.conf:system/etc/bluetooth/main.conf
+
+PRODUCT_COPY_FILES += packages/wallpapers/LivePicker/android.software.live_wallpaper.xml:/system/etc/permissions/android.software.live_wallpaper.xml
+
+# Inherit common build.prop overrides
+-include vendor/aokp/configs/common_versions.mk
20 configs/common_versions.mk
@@ -0,0 +1,20 @@
+# Version information used on all builds
+PRODUCT_BUILD_PROP_OVERRIDES += BUILD_VERSION_TAGS=release-keys USER=android-build BUILD_UTC_DATE=$(shell date +"%s")
+
+DATE = $(shell vendor/aokp/tools/getdate)
+
+ifneq ($(AOKP_BUILD),)
+ # AOKP_BUILD=<goo version int>/<build string>
+ PRODUCT_PROPERTY_OVERRIDES += \
+ ro.goo.developerid=aokp \
+ ro.goo.rom=aokp \
+ ro.goo.version=$(shell echo $(AOKP_BUILD) | cut -d/ -f1) \
+ ro.aokp.version=$(TARGET_PRODUCT)_jb_$(shell echo $(AOKP_BUILD) | cut -d/ -f2)
+else
+ PRODUCT_PROPERTY_OVERRIDES += \
+ ro.aokp.version=$(TARGET_PRODUCT)_unofficial_$(DATE)
+endif
+
+# Camera shutter sound property
+PRODUCT_PROPERTY_OVERRIDES += \
+ persist.sys.camera-sound=1
7 configs/gsm.mk
@@ -0,0 +1,7 @@
+# GSM APN list
+PRODUCT_COPY_FILES += \
+ vendor/aokp/prebuilt/common/etc/apns-conf.xml:system/etc/apns-conf.xml
+
+# SIM Toolkit
+PRODUCT_PACKAGES += \
+ Stk
10 configs/vzw.mk
@@ -0,0 +1,10 @@
+#Permissions and Lib for Verizon Wireless Apps
+PRODUCT_PACKAGES += \
+ VerizonSSO
+
+PRODUCT_COPY_FILES += \
+ vendor/aokp/prebuilt/vzw/etc/permissions/com.vzw.hardware.ehrpd.xml:system/etc/permissions/com.vzw.hardware.ehrpd.xml \
+ vendor/aokp/prebuilt/vzw/etc/permissions/com.vzw.hardware.lte.xml:system/etc/permissions/com.vzw.hardware.lte.xml \
+ vendor/aokp/prebuilt/vzw/etc/permissions/com.vzw.vzwapnlib.xml:system/etc/permissions/com.vzw.vzwapnlib.xml \
+ vendor/aokp/prebuilt/vzw/lib/libmotricity.so:system/lib/libmotricity.so
+
6 overlay/common/frameworks/base/core/res/res/values/config.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <!-- Set default for disabling menu key. Option to
+ disable does not work unless this is true. -->
+ <bool name="config_disableMenuKeyInLockScreen">true</bool>
+</resources>
21 overlay/common/frameworks/base/packages/SettingsProvider/res/values/defaults.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/**
+ * Copyright (c) 2009, The Android Open Source 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.
+ */
+-->
+<resources>
+ <string name="def_backup_transport">com.google.android.backup/.BackupTransportService</string>
+</resources>
28 overlay/common/frameworks/base/packages/SystemUI/res/values/config.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+** Copyright 2011, The Android Open Source 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.
+*/
+-->
+
+<!-- These resources are around just to allow their values to be customized
+ for different hardware and product builds. -->
+<resources>
+
+ <!-- Control whether status bar should distinguish HSPA data icon form UMTS
+ data icon on devices -->
+ <bool name="config_hspa_data_distinguishable">true</bool>
+
+</resources>
88 prebuilt/Android.mk
@@ -0,0 +1,88 @@
+# Copyright (C) 2012 The Android Open Source 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.
+
+LOCAL_PATH := $(call my-dir)
+
+#
+# Prebuilt APKs
+#
+include $(CLEAR_VARS)
+LOCAL_MODULE := LatinImeDictionaryPack
+LOCAL_MODULE_OWNER := aokp
+LOCAL_SRC_FILES := common/app/$(LOCAL_MODULE).apk
+LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_SUFFIX := .apk
+LOCAL_MODULE_CLASS := APPS
+LOCAL_CERTIFICATE := PRESIGNED
+include $(BUILD_PREBUILT)
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := Microbes
+LOCAL_MODULE_OWNER := aokp
+LOCAL_SRC_FILES := common/app/$(LOCAL_MODULE).apk
+LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_SUFFIX := .apk
+LOCAL_MODULE_CLASS := APPS
+LOCAL_CERTIFICATE := PRESIGNED
+include $(BUILD_PREBUILT)
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := NovaLauncher
+LOCAL_MODULE_OWNER := aokp
+LOCAL_SRC_FILES := common/app/$(LOCAL_MODULE).apk
+LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_SUFFIX := .apk
+LOCAL_MODULE_CLASS := APPS
+LOCAL_CERTIFICATE := PRESIGNED
+include $(BUILD_PREBUILT)
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := SuperSU
+LOCAL_MODULE_OWNER := aokp
+LOCAL_SRC_FILES := common/app/$(LOCAL_MODULE).apk
+LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_SUFFIX := .apk
+LOCAL_MODULE_CLASS := APPS
+LOCAL_CERTIFICATE := PRESIGNED
+include $(BUILD_PREBUILT)
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := Thinkfree
+LOCAL_MODULE_OWNER := aokp
+LOCAL_SRC_FILES := common/app/$(LOCAL_MODULE).apk
+LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_SUFFIX := .apk
+LOCAL_MODULE_CLASS := APPS
+LOCAL_CERTIFICATE := PRESIGNED
+include $(BUILD_PREBUILT)
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := VerizonSSO
+LOCAL_MODULE_OWNER := aokp
+LOCAL_SRC_FILES := vzw/app/$(LOCAL_MODULE).apk
+LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_SUFFIX := .apk
+LOCAL_MODULE_CLASS := APPS
+LOCAL_CERTIFICATE := PRESIGNED
+include $(BUILD_PREBUILT)
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := UnicornPorn
+LOCAL_MODULE_OWNER := aokp
+LOCAL_SRC_FILES := common/app/$(LOCAL_MODULE).apk
+LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_SUFFIX := .apk
+LOCAL_MODULE_CLASS := APPS
+LOCAL_CERTIFICATE := PRESIGNED
+include $(BUILD_PREBUILT)
BIN  prebuilt/bootanimation/bootanimation_1024_600.zip
Binary file not shown
BIN  prebuilt/bootanimation/bootanimation_1024_600_ccw90.zip
Binary file not shown
BIN  prebuilt/bootanimation/bootanimation_1024_768.zip
Binary file not shown
BIN  prebuilt/bootanimation/bootanimation_1280_800.zip
Binary file not shown
BIN  prebuilt/bootanimation/bootanimation_240_320.zip
Binary file not shown
BIN  prebuilt/bootanimation/bootanimation_320_480.zip
Binary file not shown
BIN  prebuilt/bootanimation/bootanimation_480_800.zip
Binary file not shown
BIN  prebuilt/bootanimation/bootanimation_480_854.zip
Binary file not shown
BIN  prebuilt/bootanimation/bootanimation_540_960.zip
Binary file not shown
BIN  prebuilt/bootanimation/bootanimation_600_1024.zip
Binary file not shown
BIN  prebuilt/bootanimation/bootanimation_720_1280.zip
Binary file not shown
BIN  prebuilt/common/app/LatinImeDictionaryPack.apk
Binary file not shown
BIN  prebuilt/common/app/Microbes.apk
Binary file not shown
BIN  prebuilt/common/app/NovaLauncher.apk
Binary file not shown
BIN  prebuilt/common/app/SuperSU.apk
Binary file not shown
BIN  prebuilt/common/app/Superuser.apk
Binary file not shown
BIN  prebuilt/common/app/Thinkfree.apk
Binary file not shown
BIN  prebuilt/common/app/UnicornPorn.apk
Binary file not shown
4 prebuilt/common/bin/sysinit
@@ -0,0 +1,4 @@
+#!/system/bin/sh
+
+export PATH=/sbin:/system/sbin:/system/bin:/system/xbin
+/system/bin/logwrapper /system/xbin/run-parts /system/etc/init.d
140 prebuilt/common/etc/apns-conf-cdma.xml
@@ -0,0 +1,140 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+** Copyright 2012, Cyanogenmod
+**
+** 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.
+*/
+-->
+
+<!-- use empty string to specify no proxy or port -->
+<!-- This version must agree with that in apps/common/res/apns.xml -->
+<apns version="7">
+ <apn carrier="MobiPCS" mcc="310" mnc="00" apn="MobiPCS" user="@mobipcs.com" password="mobipcs" mmsc="http://mms.mobipcs.com" authtype="3" type="*" />
+ <apn carrier="Cricket" mcc="310" mnc="16" apn="wap.mycricket.com" user="@mycricket.com" password="cricket" mmsc="http://mms.mycricket.com/servlets/mms" mmsproxy="" mmsport="" proxy="wap.mycricket.com" port="8080" authtype="2" type="*" />
+ <apn carrier="Cellular South" mcc="310" mnc="023" apn="internet" mmsc="http://pix.cellularsouth.com/servlets/mms" authtype="3" port="" mmsport="" type="mms" />
+ <apn carrier="MetroPCS" mcc="310" mnc="027" apn="wap.metropcs.net" user="MDN@mymetropcs.com" password="metropcs" server="http://mms.metropcs.net/servlets/mmsc" mmsc="http://mms.metropcs.net/mmsc" mmsport="3128" type="default,supl,mms" />
+ <apn carrier="Virgin Mobile US" mcc="311" mnc="490" apn="0" mmsproxy="205.239.233.136" mmsport="81" mmsc="http://mmsc.vmobl.com:8088/mms?" port="" type="mms" />
+ <apn carrier="Boost MMS" mcc="505" mnc="02" apn="mms" user="" password="" server="" proxy="61.88.190.10" port="8070" mmsc="http://mmsc.optus.com.au:8002/" mmsproxy="61.88.190.10" mmsport="8070" type="mms" authtype="3"/>
+ <apn carrier="Boost Mobile" mcc="505" mnc="02" apn="yesinternet" user="" password="" server="" proxy="" port="" mmsc="" mmsproxy="" mmsport="" type="default,supl" authtype="3"/>
+
+
+<!-- Sprint -->
+ <!-- Modify Apn database for Sprint CDMA MMS support -->
+ <apn carrier="Sprint" mcc="310" mnc="120" apn="Sprint" user="Sprint" server="*" password="*" mmsc="http://mms.sprintpcs.com" authtype="3"/>
+
+ <!-- Modify Apn database for Sprint LTE support -->
+ <apn carrier="LTE - SPRINT test ISP" mcc="001" mnc="01" apn="n.ispsn" type="default,mms" mmsc="http://mms.sprintpcs.com" mmsproxy="68.28.31.7" mmsport="80" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="14" />
+ <apn carrier="LTE - SPRINT test OTA" mcc="001" mnc="01" apn="otasn" type="fota" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="14" />
+ <apn carrier="LTE - SPRINT test PAM" mcc="001" mnc="01" apn="pamsn" type="dun" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="14" />
+ <apn carrier="LTE - SPRINT test ISP" mcc="001" mnc="010" apn="n.ispsn" type="default,mms" mmsc="http://mms.sprintpcs.com" mmsproxy="68.28.31.7" mmsport="80" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="14" />
+ <apn carrier="LTE - SPRINT test OTA" mcc="001" mnc="010" apn="otasn" type="fota" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="14" />
+ <apn carrier="LTE - SPRINT test PAM" mcc="001" mnc="010" apn="pamsn" type="dun" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="14" />
+<!-- END modify Apn database for Sprint LTE support -->
+
+ <!-- Modify Apn database for Sprint EHRPD support -->
+ <apn carrier="EHRPD - SPRINT test ISP" mcc="001" mnc="01" apn="n.ispsn" type="default,mms" mmsc="http://mms.sprintpcs.com" mmsproxy="68.28.31.7" mmsport="80" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="13" />
+ <apn carrier="EHRPD - SPRINT test OTA" mcc="001" mnc="01" apn="otasn" type="fota" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="13" />
+ <apn carrier="EHRPD - SPRINT test PAM" mcc="001" mnc="01" apn="pamsn" type="dun" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="13" />
+ <apn carrier="EHRPD - SPRINT test ISP" mcc="001" mnc="010" apn="n.ispsn" type="default,mms" mmsc="http://mms.sprintpcs.com" mmsproxy="68.28.31.7" mmsport="80" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="13" />
+ <apn carrier="EHRPD - SPRINT test OTA" mcc="001" mnc="010" apn="otasn" type="fota" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="13" />
+ <apn carrier="EHRPD - SPRINT test PAM" mcc="001" mnc="010" apn="pamsn" type="dun" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="13" />
+ <!-- END modify Apn database for Sprint EHRPD support -->
+
+ <!-- Sprint LTE/eHRPD: These apns are added then programmatically removed in S3 LG8 build. -->
+ <!--<apn carrier="LTE - SPRINT OTA" mcc="310" mnc="120" apn="otasn" type="fota" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="14" />-->
+ <!--<apn carrier="EHRPD - SPRINT OTA" mcc="310" mnc="120" apn="otasn" type="fota" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="13" />-->
+
+ <!-- Sprint LTE/eHRPD: Programmatically added in S3 LG8 build. -->
+ <apn carrier="APN0 LTE ota" mcc="310" mnc="120" apn="otasn" type="fota" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="14" />
+ <apn carrier="APN0 EHRPD ota" mcc="310" mnc="120" apn="otasn" type="fota" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="13" />
+ <apn carrier="APN2 LTE internet" mcc="310" mnc="120" apn="n.ispsn" type="default,mms" mmsc="http://mms.sprintpcs.com" mmsproxy="68.28.31.7" mmsport="80" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="14" />
+ <apn carrier="APN2 EHRPD internet" mcc="310" mnc="120" apn="n.ispsn" type="default,mms" mmsc="http://mms.sprintpcs.com" mmsproxy="68.28.31.7" mmsport="80" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="13" />
+<!-- END Sprint -->
+
+<!-- Verizon Wireless -->
+ <!-- Modify Apn database for VZW CDMA MMS, internet, cbs, fota, and ims support -->
+ <apn carrier="Verizon" mcc="310" mnc="004" apn="internet" type="default,mms,dun" mmsc="http://mms.vtext.com/servlets/mms" protocol="IPV4V6" />
+ <apn carrier="Verizon Internet" mcc="310" mnc="004" apn="VZWINTERNET" type="default,dun" protocol="IPV4V6" roaming_protocol="IPV4V6" />
+ <apn carrier="Verizon FOTA" mcc="310" mnc="004" apn="VZWADMIN" type="fota" protocol="IPV4V6" roaming_protocol="IPV4V6" />
+ <apn carrier="Verizon IMS" mcc="310" mnc="004" apn="VZWIMS" type="ims" protocol="IPV4V6" roaming_protocol="IPV4V6" />
+ <apn carrier="Verizon CBS" mcc="310" mnc="004" apn="VZWAPP" type="cbs,mms" mmsc="http://mms.vtext.com/servlets/mms" protocol="IPV4V6" roaming_protocol="IPV4V6" />
+
+ <!-- Modify Apn database for VZW LTE support -->
+ <apn carrier="LTE - Verizon Internet" mcc="311" mnc="480" apn="VZWINTERNET" type="default,dun" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="14" />
+ <apn carrier="LTE - Verizon FOTA" mcc="311" mnc="480" apn="VZWADMIN" type="fota" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="14" />
+ <apn carrier="LTE - Verizon IMS" mcc="311" mnc="480" apn="VZWIMS" type="ims" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="14" />
+ <apn carrier="LTE - Verizon CBS" mcc="311" mnc="480" apn="VZWAPP" type="cbs,mms" mmsc="http://mms.vtext.com/servlets/mms" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="14" />
+ <apn carrier="LTE - Verizon SUPL" mcc="311" mnc="480" apn="VZW800" type="supl" protocol="IPV4V6" bearer="14" />
+ <apn carrier="LTE - VZW Roaming Internet" mcc="204" mnc="04" apn="VZWINTERNET" type="default,dun" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="14" />
+ <apn carrier="LTE - VZW Roaming FOTA" mcc="204" mnc="04" apn="VZWADMIN" type="fota" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="14" />
+ <apn carrier="LTE - VZW Roaming IMS" mcc="204" mnc="04" apn="VZWIMS" type="ims" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="14" />
+ <apn carrier="LTE - VZW Roaming CBS" mcc="204" mnc="04" apn="VZWAPP" type="cbs,mms" mmsc="http://mms.vtext.com/servlets/mms" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="14" />
+ <apn carrier="LTE - Test Internet" mcc="001" mnc="01" apn="VZWINTERNET" type="default,dun" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="14" />
+ <apn carrier="LTE - Test FOTA" mcc="001" mnc="01" apn="VZWADMIN" type="fota" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="14" />
+ <apn carrier="LTE - Test IMS" mcc="001" mnc="01" apn="VZWIMS" type="ims" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="14" />
+ <apn carrier="LTE - Test CBS" mcc="001" mnc="01" apn="VZWAPP" type="cbs,mms" mmsc="http://mms.vtext.com/servlets/mms" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="14" />
+ <apn carrier="LTE - VZW Test Internet" mcc="001" mnc="010" apn="VZWINTERNET" type="default,dun" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="14" />
+ <apn carrier="LTE - VZW Test FOTA" mcc="001" mnc="010" apn="VZWADMIN" type="fota" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="14" />
+ <apn carrier="LTE - VZW Test IMS" mcc="001" mnc="010" apn="VZWIMS" type="ims" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="14" />
+ <apn carrier="LTE - VZW Test CBS" mcc="001" mnc="010" apn="VZWAPP" type="cbs,mms" mmsc="http://mms.vtext.com/servlets/mms" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="14" />
+ <apn carrier="LTE - VZW Test Internet" mcc="246" mnc="81" apn="VZWINTERNET" type="default,dun" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="14" />
+ <apn carrier="LTE - VZW Test FOTA" mcc="246" mnc="81" apn="VZWADMIN" type="fota" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="14" />
+ <apn carrier="LTE - VZW Test IMS" mcc="246" mnc="81" apn="VZWIMS" type="ims" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="14" />
+ <apn carrier="LTE - VZW Test CBS" mcc="246" mnc="81" apn="VZWAPP" type="cbs,mms" mmsc="http://mms.vtext.com/servlets/mms" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="14" />
+ <apn carrier="LTE - VZW Test Internet" mcc="246" mnc="081" apn="VZWINTERNET" type="default,dun" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="14" />
+ <apn carrier="LTE - VZW Test FOTA" mcc="246" mnc="081" apn="VZWADMIN" type="fota" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="14" />
+ <apn carrier="LTE - VZW Test IMS" mcc="246" mnc="081" apn="VZWIMS" type="ims" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="14" />
+ <apn carrier="LTE - VZW Test CBS" mcc="246" mnc="081" apn="VZWAPP" type="cbs,mms" mmsc="http://mms.vtext.com/servlets/mms" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="14" />
+ <!-- END modify Apn database for VZW LTE support -->
+
+ <!-- Modify Apn database for VZW EHRPD support -->
+ <apn carrier="EHRPD - Verizon Internet" mcc="311" mnc="480" apn="VZWINTERNET" type="default,dun" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="13" />
+ <apn carrier="EHRPD - Verizon FOTA" mcc="311" mnc="480" apn="VZWADMIN" type="fota" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="13" />
+ <apn carrier="EHRPD - Verizon IMS" mcc="311" mnc="480" apn="VZWIMS" type="ims" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="13" />
+ <apn carrier="EHRPD - Verizon CBS" mcc="311" mnc="480" apn="VZWAPP" type="cbs,mms" mmsc="http://mms.vtext.com/servlets/mms" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="13" />
+ <apn carrier="EHRPD - Verizon SUPL" mcc="311" mnc="480" apn="VZW800" type="supl" protocol="IPV4V6" bearer="13" />
+ <apn carrier="EHRPD - VZW Roaming Internet" mcc="204" mnc="04" apn="VZWINTERNET" type="default,dun" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="13" />
+ <apn carrier="EHRPD - VZW Roaming FOTA" mcc="204" mnc="04" apn="VZWADMIN" type="fota" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="13" />
+ <apn carrier="EHRPD - VZW Roaming IMS" mcc="204" mnc="04" apn="VZWIMS" type="ims" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="13" />
+ <apn carrier="EHRPD - VZW Roaming CBS" mcc="204" mnc="04" apn="VZWAPP" type="cbs,mms" mmsc="http://mms.vtext.com/servlets/mms" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="13" />
+ <apn carrier="EHRPD - Test Internet" mcc="001" mnc="01" apn="VZWINTERNET" type="default,dun" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="13" />
+ <apn carrier="EHRPD - Test FOTA" mcc="001" mnc="01" apn="VZWADMIN" type="fota" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="13"/>
+ <apn carrier="EHRPD - Test IMS" mcc="001" mnc="01" apn="VZWIMS" type="ims" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="13" />
+ <apn carrier="EHRPD - Test CBS" mcc="001" mnc="01" apn="VZWAPP" type="cbs,mms" mmsc="http://mms.vtext.com/servlets/mms" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="13" />
+ <apn carrier="EHRPD - VZW Test Internet" mcc="001" mnc="010" apn="VZWINTERNET" type="default,dun" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="13" />
+ <apn carrier="EHRPD - VZW Test FOTA" mcc="001" mnc="010" apn="VZWADMIN" type="fota" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="13" />
+ <apn carrier="EHRPD - VZW Test IMS" mcc="001" mnc="010" apn="VZWIMS" type="ims" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="13" />
+ <apn carrier="EHRPD - VZW Test CBS" mcc="001" mnc="010" apn="VZWAPP" type="cbs,mms" mmsc="http://mms.vtext.com/servlets/mms" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="13" />
+ <apn carrier="EHRPD - VZW Test Internet" mcc="246" mnc="81" apn="VZWINTERNET" type="default,dun" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="13" />
+ <apn carrier="EHRPD - VZW Test FOTA" mcc="246" mnc="81" apn="VZWADMIN" type="fota" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="13" />
+ <apn carrier="EHRPD - VZW Test IMS" mcc="246" mnc="81" apn="VZWIMS" type="ims" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="13" />
+ <apn carrier="EHRPD - VZW Test CBS" mcc="246" mnc="81" apn="VZWAPP" type="cbs,mms" mmsc="http://mms.vtext.com/servlets/mms" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="13" />
+ <apn carrier="EHRPD - VZW Test Internet" mcc="246" mnc="081" apn="VZWINTERNET" type="default,dun" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="13" />
+ <apn carrier="EHRPD - VZW Test FOTA" mcc="246" mnc="081" apn="VZWADMIN" type="fota" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="13" />
+ <apn carrier="EHRPD - VZW Test IMS" mcc="246" mnc="081" apn="VZWIMS" type="ims" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="13" />
+ <apn carrier="EHRPD - VZW Test CBS" mcc="246" mnc="081" apn="VZWAPP" type="cbs,mms" mmsc="http://mms.vtext.com/servlets/mms" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="13" />
+ <!-- END modify Apn database for VZW EHRPD support -->
+<!-- END Verizon Wireless -->
+
+<!-- US Cellular -->
+ <!-- Modify Apn database for USCC CDMA for MMS Support -->
+ <apn carrier="USCC" mcc="311" mnc="220" apn="internet" mmsc="http://mmsc1.uscc.net/mmsc/MMS" authtype="3" port="80" mmsport="80" type="mms" />
+
+ <!-- Modify Apn database for USCC LTE support -->
+ <apn carrier="LTE - USCC INTERNET" mcc="311" mnc="580" apn="usccinternet" type="default,dun,mms,fota" mmsc="http://mmsc1.uscc.net/mmsc/MMS" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="14" />
+ <apn carrier="LTE - USCC INTERNET 2" mcc="311" mnc="225" apn="usccinternet" type="default,dun,mms,fota" mmsc="http://mmsc1.uscc.net/mmsc/MMS" protocol="IPV4V6" roaming_protocol="IPV4V6" bearer="14" />
+ <!-- END modify Apn database for USCC LTE support -->
+<!-- END US Cellular -->
+
+</apns>
1,337 prebuilt/common/etc/apns-conf.xml
1,337 additions, 0 deletions not shown
3  prebuilt/common/etc/init.d/00start
@@ -0,0 +1,3 @@
+#!/system/bin/sh
+log -p i -t start " A wise man never plays leapfrog with a unicorn";
+
2  prebuilt/common/etc/init.d/01sysctl
@@ -0,0 +1,2 @@
+#!/system/bin/sh
+sysctl -p
19 prebuilt/common/etc/permissions/com.tmobile.software.themes.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2011 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.
+-->
+
+<permissions>
+ <feature name="com.tmobile.software.themes" />
+</permissions>
2  prebuilt/common/etc/resolv.conf
@@ -0,0 +1,2 @@
+nameserver 8.8.8.8
+nameserver 8.8.4.4
6 prebuilt/common/etc/sysctl.conf
@@ -0,0 +1,6 @@
+vm.dirty_ratio = 90
+vm.dirty_background_ratio = 55
+vm.min_free_kbytes = 2048
+vm.oom_kill_allocating_task = 0
+vm.swappiness = 0
+vm.vfs_cache_pressure = 20
BIN  prebuilt/common/lib/libmicrobes_jni.so
Binary file not shown
BIN  prebuilt/common/xbin/su
Binary file not shown
1  prebuilt/tuna/vold.fstab
@@ -0,0 +1 @@
+dev_mount usb /mnt/usb auto /devices/platform/omap-ehci.0
BIN  prebuilt/vzw/app/VerizonSSO.apk
Binary file not shown
6 prebuilt/vzw/etc/permissions/com.vzw.hardware.ehrpd.xml
@@ -0,0 +1,6 @@
+<!-- This is the standard set of telephony features for a Verizon eHRPD phone. -->
+
+<permissions>
+ <feature name="com.vzw.hardware.ehrpd"/>
+</permissions>
+
6 prebuilt/vzw/etc/permissions/com.vzw.hardware.lte.xml
@@ -0,0 +1,6 @@
+<!-- This is the standard set of telephony features for a Verizon LTE phone. -->
+
+<permissions>
+ <feature name="com.vzw.hardware.lte"/>
+</permissions>
+
5 prebuilt/vzw/etc/permissions/com.vzw.vzwapnlib.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<permissions>
+ <library name="com.vzw.apnlib"
+ file="/system/app/VZWAPNLib.apk"/>
+</permissions>
BIN  prebuilt/vzw/lib/libmotricity.so
Binary file not shown
5 products/AndroidProducts.mk
@@ -0,0 +1,5 @@
+PRODUCT_MAKEFILES := \
+ $(LOCAL_DIR)/grouper.mk \
+ $(LOCAL_DIR)/maguro.mk \
+ $(LOCAL_DIR)/toro.mk \
+ $(LOCAL_DIR)/toroplus.mk
17 products/grouper.mk
@@ -0,0 +1,17 @@
+# Inherit AOSP device configuration for grouper
+$(call inherit-product, device/asus/grouper/full_grouper.mk)
+
+# Inherit AOKP common bits
+$(call inherit-product, vendor/aokp/configs/common.mk)
+
+# Setup device specific product configuration.
+PRODUCT_NAME := aokp_grouper
+PRODUCT_BRAND := google
+PRODUCT_DEVICE := grouper
+PRODUCT_MODEL := Nexus 7
+PRODUCT_MANUFACTURER := asus
+
+PRODUCT_BUILD_PROP_OVERRIDES := PRODUCT_NAME=nakasi BUILD_FINGERPRINT=google/nakasi/grouper:4.1.1/JRO03H/405518:user/release-keys PRIVATE_BUILD_DESC="nakasi-user 4.1.1 JRO03H 405518 release-keys" BUILD_NUMBER=405518
+
+PRODUCT_COPY_FILES += \
+ vendor/aokp/prebuilt/bootanimation/bootanimation_1280_800.zip:system/media/bootanimation.zip
27 products/maguro.mk
@@ -0,0 +1,27 @@
+# Inherit AOSP device configuration for maguro.
+$(call inherit-product, device/samsung/maguro/full_maguro.mk)
+
+# Inherit AOKP common bits
+$(call inherit-product, vendor/aokp/configs/common.mk)
+
+# Inherit GSM common stuff
+$(call inherit-product, vendor/aokp/configs/gsm.mk)
+
+# Setup device specific product configuration.
+PRODUCT_NAME := aokp_maguro
+PRODUCT_BRAND := google
+PRODUCT_DEVICE := maguro
+PRODUCT_MODEL := Galaxy Nexus
+PRODUCT_MANUFACTURER := samsung
+
+PRODUCT_BUILD_PROP_OVERRIDES := PRODUCT_NAME=takju BUILD_FINGERPRINT=google/takju/maguro:4.1.1/JRO03C/398337:user/release-keys PRIVATE_BUILD_DESC="takju-user 4.1.1 JRO03C 398337 release-keys" BUILD_NUMBER=398337
+
+PRODUCT_COPY_FILES += \
+ vendor/aokp/prebuilt/tuna/vold.fstab:system/etc/vold.fstab
+
+# Maguro specific packages
+PRODUCT_PACKAGES += \
+ Thinkfree
+
+PRODUCT_COPY_FILES += \
+ vendor/aokp/prebuilt/bootanimation/bootanimation_720_1280.zip:system/media/bootanimation.zip
27 products/toro.mk
@@ -0,0 +1,27 @@
+# Inherit AOSP device configuration for toro.
+$(call inherit-product, device/samsung/toro/full_toro.mk)
+
+# Inherit AOKP common bits
+$(call inherit-product, vendor/aokp/configs/common.mk)
+
+# Inherit common Verizon Wireless Files
+$(call inherit-product, vendor/aokp/configs/vzw.mk)
+
+# Setup device specific product configuration.
+PRODUCT_NAME := aokp_toro
+PRODUCT_BRAND := google
+PRODUCT_DEVICE := toro
+PRODUCT_MODEL := Galaxy Nexus
+PRODUCT_MANUFACTURER := samsung
+
+PRODUCT_BUILD_PROP_OVERRIDES := PRODUCT_NAME=mysid BUILD_ID=ICL53F BUILD_FINGERPRINT=google/mysid/toro:4.0.2/ICL53F/235179:user/release-keys PRIVATE_BUILD_DESC="mysid-user 4.0.2 ICL53F 235179 release-keys" BUILD_NUMBER=235179
+
+PRODUCT_COPY_FILES += \
+ vendor/aokp/prebuilt/tuna/vold.fstab:system/etc/vold.fstab
+
+# Toro specific packages
+PRODUCT_PACKAGES += \
+ Thinkfree
+
+PRODUCT_COPY_FILES += \
+ vendor/aokp/prebuilt/bootanimation/bootanimation_720_1280.zip:system/media/bootanimation.zip
24 products/toroplus.mk
@@ -0,0 +1,24 @@
+# Inherit AOSP device configuration for toroplus.
+$(call inherit-product, device/samsung/toroplus/full_toroplus.mk)
+
+# Inherit AOKP common bits
+$(call inherit-product, vendor/aokp/configs/common.mk)
+
+# Setup device specific product configuration.
+PRODUCT_NAME := aokp_toroplus
+PRODUCT_BRAND := Google
+PRODUCT_DEVICE := toroplus
+PRODUCT_MODEL := Galaxy Nexus
+PRODUCT_MANUFACTURER := Samsung
+
+PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_NAME=mysidspr BUILD_FINGERPRINT=samsung/mysidspr/toroplus:4.0.4/IMM76I/330937:user/release-keys PRIVATE_BUILD_DESC="mysidspr-user 4.0.4 IMM76I 330937 release-keys" BUILD_NUMBER=330937
+
+PRODUCT_COPY_FILES += \
+ vendor/aokp/prebuilt/tuna/vold.fstab:system/etc/vold.fstab
+
+# Torospr specific packages
+PRODUCT_PACKAGES += \
+ Thinkfree
+
+PRODUCT_COPY_FILES += \
+ vendor/aokp/prebuilt/bootanimation/bootanimation_720_1280.zip:system/media/bootanimation.zip
11 tools/colors
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+if [ ! "$BUILD_WITH_COLORS" = "0" ]; then
+ CL_RED="\033[31m"
+ CL_GRN="\033[32m"
+ CL_YLW="\033[33m"
+ CL_BLU="\033[34m"
+ CL_MAG="\033[35m"
+ CL_CYN="\033[36m"
+ CL_RST="\033[0m"
+fi
2  tools/getdate
@@ -0,0 +1,2 @@
+#!/bin/sh
+LC_ALL=C date +%h-%d-%y
156 tools/opticharger
@@ -0,0 +1,156 @@
+#!/bin/sh
+#
+# Super-mega opticharger of doom
+# Shrinks apks by running pngcrush or optipng or pngout on png images
+#
+# Point APKCERTS at the full path to a generated apkcerts.txt file, such as:
+# /home/shade/dev/sources/android-cm-eclair/out/target/product/dream_sapphire/obj/PACKAGING/target_files_intermediates/cyanogen_dream_sapphire-target_files-eng.shade/META/apkcerts.txt
+#
+# cyanogen - shade@chemlab.org
+# ChrisSoyars - me@ctso.me
+
+OUT_TARGET_HOST=$(uname -a | grep Darwin)
+if [ -z "$OUT_TARGET_HOST" ]
+then
+ OUT_TARGET_HOST=linux-x86
+else
+ OUT_TARGET_HOST=darwin-x86
+fi
+
+. $ANDROID_BUILD_TOP/vendor/aokp/tools/colors
+
+set -e
+QUIET=1
+BASE=`pwd`
+BRUTECRUSH="-brute"
+TMPDIR=/tmp/opticharge-$$
+
+if [ -z "$BRUTE_PNGCRUSH" ]
+then
+ BRUTECRUSH=""
+fi
+
+if [ "$APKCERTS" = "" ];
+then
+ if [ "$TARGET_BUILD_VARIANT" = "userdebug" ]; then
+ TARGET_BUILD_VARIANT="eng"
+ fi
+
+ APKCERTS=$OUT/obj/PACKAGING/target_files_intermediates/$TARGET_PRODUCT-target_files-$TARGET_BUILD_VARIANT.$USER/META/apkcerts.txt
+ if [ ! -f "$APKCERTS" ];
+ then
+ echo $CL_RED"Set APKCERTS to the path to your apkcerts.txt file"$CL_RST
+ exit 1;
+ fi
+fi
+
+if [ ! -f "$APKCERTS" ];
+then
+ echo $CL_RED"Invalid path to apkcerts.txt, set APKCERTS to the correct path."$CL_RST
+fi
+
+if [ "$(which pngcrush)" != "" ];
+then
+ optimize_png () {
+ pngcrush -q ${BRUTECRUSH} $1 ${1}.out 1> /dev/null 2> /dev/null
+ mv ${1}.out ${1}
+ }
+elif [ "$(which optipng)" != "" ];
+then
+ optimize_png () {
+ optipng -o7 -quiet $1 1> /dev/null 2> /dev/null
+ }
+elif [ "$(which pngout-static)" != "" ];
+then
+ optimize_png () {
+ pngout-static $1
+ }
+elif [ "$(which pngout)" != "" ];
+then
+ optimize_png () {
+ pngout $1
+ }
+else
+ echo $CL_RED"Please install pngcrush, optipng, or pngout"$CL_RST
+ exit 1;
+fi
+
+if [ "`which aapt`" = "" ];
+then
+ echo $CL_RED"Please ensure aapt is in your \$PATH"$CL_RST
+ exit 1;
+fi
+
+if [ "`which zipalign`" = "" ];
+then
+ echo $CL_RED"Please ensure zipalign is in your \$PATH"$CL_RST
+ exit 1;
+fi
+
+if [ -e "$1" ];
+then
+ NAME=`basename $1`;
+ echo $CL_CYN"Optimizing"$CL_RST" $NAME...";
+
+ if [ "$2" != "" ];
+ then
+ CERT=build/target/product/security/$2.x509.pem
+ KEY=build/target/product/security/$2.pk8
+ if [ ! -f "$ANDROID_BUILD_TOP/$CERT" ];
+ then
+ echo $CL_RED"$CERT does not exist!";$CL_RST
+ exit 1;
+ fi
+ else
+ APKINFO=`grep "name=\"$NAME\"" $APKCERTS`;
+ [ $QUIET ] || echo "APKINFO: $APKINFO";
+ if [ "$APKINFO" = "" ];
+ then
+ echo $CL_RED"No apk info for $NAME";$CL_RST
+ exit 1;
+ fi
+ CERT=`echo $APKINFO | awk {'print $2'} | cut -f 2 -d "=" | tr -d "\""`;
+ KEY=`echo $APKINFO | awk {'print $3'} | cut -f 2 -d "=" | tr -d "\""`;
+ if [ "$CERT" = "" ];
+ then
+ echo $CL_RED"Unable to find certificate for $NAME"$CL_RST
+ exit 1;
+ fi
+ if [ "$CERT" = "PRESIGNED" ];
+ then
+ echo $CL_GRN"$NAME is presigned, skipping"$CL_RST
+ exit 1;
+ fi
+ fi
+
+ [ $QUIET ] || echo $CL_YLW"Certificate:"$CL_RST" $CERT";
+
+ [ -d $TMPDIR/$NAME ] && rm -rf $TMPDIR/$NAME
+ mkdir -p $TMPDIR/$NAME
+ trap "rm -rf $TMPDIR; exit" INT TERM EXIT
+ cd $TMPDIR/$NAME
+ unzip -q $BASE/$1
+ for x in `find . -name "*.png" | grep -v "\.9.png$" | tr "\n" " "`
+ do
+ [ $QUIET ] || echo $CL_GRN"Crushing $x"$CL_RST
+ optimize_png $x
+ done
+ cp $BASE/$1 $BASE/$1.old
+
+ [ $QUIET ] || echo $CL_GRN"Repacking apk.."$CL_RST
+ aapt p -0 .dat -0 .dict -0 .arsc -F $NAME .
+
+ [ $QUIET ] || echo $CL_YLW"Resigning with cert: `echo $CERT`"$CL_RST
+
+ [ $QUIET ] || echo java -jar $ANDROID_BUILD_TOP/out/host/$OUT_TARGET_HOST/framework/signapk.jar $ANDROID_BUILD_TOP/$CERT $ANDROID_BUILD_TOP/$KEY $NAME signed_$NAME
+ java -jar $ANDROID_BUILD_TOP/out/host/$OUT_TARGET_HOST/framework/signapk.jar $ANDROID_BUILD_TOP/$CERT $ANDROID_BUILD_TOP/$KEY $NAME signed_$NAME
+ [ $QUIET ] || echo $CL_GRN"Zipalign.."$CL_RST
+ zipalign -f 4 signed_$NAME $BASE/$1
+ if [ ! $QUIET ]; then
+ ls -l $BASE/$1.old
+ ls -l $BASE/$1
+ fi
+ rm $BASE/$1.old
+else
+ echo "Usage: $0 [apk file]"
+fi
193 tools/squisher
@@ -0,0 +1,193 @@
+#!/bin/sh
+#
+# Squish a CM otapackage for distribution
+#
+# cyanogen
+# AOKP
+
+. $ANDROID_BUILD_TOP/vendor/aokp/tools/colors
+
+OUT_TARGET_HOST=`uname -a | grep Darwin`
+if [ -z "$OUT_TARGET_HOST" ]
+then
+ OUT_TARGET_HOST=linux-x86
+ MD5=md5sum
+ XARGS="xargs --max-args=1 --max-procs `grep 'processor' /proc/cpuinfo|wc -l`"
+ SED=sed
+else
+ OUT_TARGET_HOST=darwin-x86
+ MD5=md5
+ XARGS="xargs -n 1 -P `sysctl hw.ncpu | awk '{print $2}'`"
+ SED=gsed
+fi
+
+if [ -z "$OUT" -o ! -d "$OUT" ]; then
+ echo "ERROR: $0 only works with a full build environment. $OUT should exist."
+ exit 1
+fi
+
+if [ "$TARGET_BUILD_TYPE" = "debug" ]; then
+ OTAPACKAGE=$OUT/${TARGET_PRODUCT}_debug-ota-$TARGET_BUILD_VARIANT.$USER.zip
+elif [ "$TARGET_BUILD_VARIANT" = "userdebug" ]; then
+ OTAPACKAGE=$OUT/$TARGET_PRODUCT-ota-eng.$USER.zip
+else
+ OTAPACKAGE=$OUT/$TARGET_PRODUCT-ota-$TARGET_BUILD_VARIANT.$USER.zip
+fi
+if [ ! -f "$OTAPACKAGE" ]; then
+ echo "$OTAPACKAGE doesn't exist!";
+ exit 1
+fi
+
+OPTICHARGER=$ANDROID_BUILD_TOP/vendor/aokp/tools/opticharger
+QUIET=-q
+DELETE_BINS="applypatch applypatch_static check_prereq recovery updater"
+
+
+# Some products want a squashfs for xbin for space
+case "$TARGET_PRODUCT" in
+ cyanogen_dream_sapphire) WANT_SQUASHFS=1 ;;
+ *) WANT_SQUASHFS=0 ;;
+esac
+
+if [ "$WANT_SQUASHFS" -eq 1 ]; then
+ fatal=0
+ MKSQUASHFS_VER_REQ=4
+ if type mksquashfs >/dev/null 2>&1; then
+ if mksquashfs -version | grep -q "version $MKSQUASHFS_VER_REQ"; then :; else
+ echo
+ echo $CL_RED"ERROR: mksquashfs must be at least version $MKSQUASHFS_VER_REQ for this build."$CL_RST
+ fatal=1
+ fi
+ else
+ echo
+ echo $CL_RED"ERROR: $TARGET_PRODUCT requires mksquashfs."$CL_RST
+ fatal=1
+ fi
+
+ if [ "$fatal" -ne 0 ]; then
+ echo
+ echo $CL_YLW" Unoptimized package is still available at"
+ echo " $OTAPACKAGE"$CL_RST
+ exit $fatal
+ fi
+fi
+
+REPACK=$OUT/repack.d
+echo $CL_CYN"Sanitizing environment..."$CL_RST
+rm -rf $REPACK
+mkdir -p $REPACK
+echo
+
+
+# Unpack the otapackage and opticharge all apks
+mkdir $REPACK/ota
+(
+cd $REPACK/ota
+echo $CL_CYN"Unpacking $OTAPACKAGE..."$CL_RST
+unzip $QUIET $OTAPACKAGE
+echo
+
+# Move all apks to the same directory so xargs can
+# use also with framework-res.apk. This allow process
+# framework-res.apk in parallel with other apks
+mkdir -p $REPACK/parallel
+cd $REPACK/parallel
+cp $REPACK/ota/system/framework/framework-res.apk .
+cp $REPACK/ota/system/app/*.apk .
+
+# Do optimization in parallel
+find ./ -name \*.apk | $XARGS $OPTICHARGER
+
+# Move optimized apks to repack directory
+mv -f $REPACK/parallel/framework-res.apk $REPACK/ota/system/framework/framework-res.apk
+mv -f $REPACK/parallel/*.apk $REPACK/ota/system/app/
+
+# Return to directory
+cd $REPACK/ota
+rm -rf $REPACK/parallel
+)
+
+
+if [ "$WANT_SQUASHFS" -eq 1 ]; then
+ squash_opts="-force-uid 1000 -force-gid 1000 -no-progress -noappend -no-exports -no-recovery"
+ updater=$REPACK/ota/META-INF/com/google/android/updater-script
+
+ # Relocate su
+ cp -a $REPACK/ota/system/xbin $REPACK/_xbin/
+ rm -f $REPACK/_xbin/su $REPACK/ota/system/bin/su
+ mv $REPACK/ota/system/xbin/su $REPACK/ota/system/bin/su
+ chmod -R 555 $REPACK/_xbin/*
+
+ # Create symlinks for su and busybox (since updater-script can't work on the squashfs filesystem).
+ # Forgive me for the regex hell here.
+ ln -s ../bin/su $REPACK/_xbin/su
+ for link in `sed -n -e's/,//g' -e'/symlink(.*busybox/,/xbin.*);/p' $updater | tr '"' '\n' | sed -n -e'\,/system/xbin/,s,/system/xbin/,,p'`
+ do
+ ln -s busybox $REPACK/_xbin/$link
+ done
+
+ # Create the squashfs with new and improved symlinkage!
+ mksquashfs $REPACK/_xbin/* $REPACK/_xbin.sqf $squash_opts
+ rm -rf $REPACK/ota/system/xbin/*
+ mv $REPACK/_xbin.sqf $REPACK/ota/system/xbin/xbin.sqf
+ chmod 444 $REPACK/ota/system/xbin/xbin.sqf
+
+ # Remove xbin stuff and fix up updater-script
+ $SED -i -e's,system/xbin/su,system/bin/su,g' -e'/xbin/d' $updater
+fi
+
+
+# Fix build.prop
+$SED -i \
+ -e '/ro\.kernel\.android\.checkjni/d' \
+ -e '/ro\.build\.type/s/eng/user/' \
+ $REPACK/ota/system/build.prop
+
+
+# Delete unnecessary binaries
+( cd $REPACK/ota/system/bin; echo $DELETE_BINS | xargs rm -f; )
+
+# Delete leftover wireless driver
+# rm -rf $REPACK/ota/system/lib/modules/*/kernel/drivers/net
+
+# No need for recovery
+rm -rf $REPACK/ota/recovery
+
+# Strip modules
+[ -d $REPACK/ota/system/lib/modules ] && \
+ find $REPACK/ota/system/lib/modules -name "*.ko" -print0 | xargs -0 arm-eabi-strip --strip-unneeded
+
+# Determine what to name the new signed package
+
+#MODVERSION=`sed -n -e'/ro\.modversion/s/^.*=//p' $REPACK/ota/system/build.prop`
+VERSION=`sed -n -e'/ro.aokp.version/s/^.*=//p' $REPACK/ota/system/build.prop`
+MODVERSION="$VERSION"
+OUTFILE=$OUT/$MODVERSION.zip
+
+# Pack it up and sign
+echo $CL_CYN"Zipping package..."$CL_RST
+( cd $REPACK/ota; zip $QUIET -r $REPACK/update.zip . )
+echo
+echo $CL_CYN"Signing package..."$CL_RST
+SECURITYDIR=$ANDROID_BUILD_TOP/build/target/product/security
+java -Xmx1024m \
+ -jar $ANDROID_BUILD_TOP/out/host/$OUT_TARGET_HOST/framework/signapk.jar \
+ -w $SECURITYDIR/testkey.x509.pem $SECURITYDIR/testkey.pk8 \
+ $REPACK/update.zip $OUTFILE
+echo
+echo $CL_CYN"Cleaning up..."$CL_RST
+rm -rf $REPACK
+echo
+
+# Create a md5 checksum image of the repacked package
+(
+img=`basename $OUTFILE`
+cd `dirname $OUTFILE`
+$MD5 $img >$img.md5sum
+echo
+echo $CL_CYN"Package complete:"$CL_MAG" $OUTFILE"$CL_RST
+cat $img.md5sum
+echo
+)
+
+exit 0
4 vendorsetup.sh
@@ -0,0 +1,4 @@
+add_lunch_combo aokp_maguro-userdebug
+add_lunch_combo aokp_toro-userdebug
+add_lunch_combo aokp_toroplus-userdebug
+add_lunch_combo aokp_grouper-userdebug
Please sign in to comment.
Something went wrong with that request. Please try again.