#!/bin/bash . $(dirname $0)/functions PATCHES=0 if [ -n "$1" ]; then AOSP="$1" else AOSP="`pwd`" fi if ! [ -d "$AOSP" ] && ! [ -d "$AOSP/bionic" ] && [ -d "$AOSP"/build ]; then echo "This script must be run from the AOSP source directory" echo "or with the AOSP source directory as its first parameter." exit 1 fi ####################################################### ## workaround for using 4.9 kernel on nougat ########## ####################################################### ## boot parameters: set printk.devkmsg to on ## http://android-review.linaro.org/17601 apply --linaro device/linaro/hikey 17601/1 ## revert "hikey: Read UDC from /sys/class/udc/ at run time" ## since nougat does not have that process in init yet revert device/linaro/hikey cb9d097082ffd71eb220d5af435e5d7f8cddd465 ## init rc files: enabled adb over tcpip by default ## http://android-review.linaro.org/17597 apply --linaro device/linaro/hikey 17597/1 ## sepolicy rules for using kernel 4.9 on nougat ## http://android-review.linaro.org/17567 apply --linaro device/linaro/hikey 17567/2 ## Zygote: Add CAP_WAKE_ALARM to system_server to properly support timerfd alarms cherrypick frameworks/base 5733f387be6cef3836ed06ed897ab43897eb470d ## Remove dependency on android_alarm.h. cherrypick frameworks/base 338893e47ed8e2a913e5def987469647809cdbc6 ## AlarmManagerService: remove legacy /dev/alarm support ## http://android-review.linaro.org/17570 #cherrypick frameworks/base d7151c06f11c05ad3dcab175a6e4b4ea694dab96 apply --linaro frameworks/base 17570/1 ## AlarmManagerService: explain some timerfd_create() failures cherrypick frameworks/base a0126e0857481866dab5060384d611c83ca53d0e ####################################################### ## workaround for using master device for nougat ###### ####################################################### ## revert hikey: Move wpa_supplicant to vendor partition revert device/linaro/hikey 17ea3f3016b967ddcca535acb90dc1c3f8d98ec2 ## update sepolicy rules on bluetooth ## http://android-review.linaro.org/17563 apply --linaro device/linaro/hikey 17563/1 ## disable bluetooth ## https://android-review.linaro.org/#/c/17621/ apply --linaro device/linaro/hikey 17621/1 ####################################################### ## workaround for linaro work ###### ####################################################### ## integrated tests ## http://android-review.linaro.org/17155 apply --linaro device/linaro/hikey 17155/4 ## enabling kernel compilation, etc ## https://android-review.linaro.org/#/c/16834/ apply --linaro device/linaro/hikey 16834/10 ## revert to have default serialno revert device/linaro/hikey 128d7e6340d693af53bdecac28fd97d3ae8695ee