#!/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 ########## ####################################################### ## init rc files: enabled adb over tcpip by default ## http://android-review.linaro.org/17707 apply --linaro device/linaro/hikey 17707/1 ## 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