summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2017-06-25 07:46:08 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2017-06-25 07:46:08 +0000
commite2b7042e7647c828441d15e9bde63437e74f8873 (patch)
tree03dc65b4237d74e0d67cc5196eac1151f10e8255
parent71024bb6fc543fbd932fd59986c33982273cae7e (diff)
parent0fc588fb5fe44563d7ab02db3b2e14604f836f2b (diff)
downloadandroid_development-e2b7042e7647c828441d15e9bde63437e74f8873.tar.gz
android_development-e2b7042e7647c828441d15e9bde63437e74f8873.tar.bz2
android_development-e2b7042e7647c828441d15e9bde63437e74f8873.zip
release-request-c5216b17-dc50-4b24-831c-dc696ed657cc-for-git_oc-dr1-release-4133426 snap-temp-L83500000077479774
Change-Id: I8dc3b36e034f725606cb904b322ec181de96ea27
-rw-r--r--apps/SdkSetup/Android.mk3
-rw-r--r--apps/SdkSetup/AndroidManifest.xml1
-rw-r--r--apps/SdkSetup/src/com/android/sdksetup/DefaultActivity.java6
-rw-r--r--build/product_sdk.mk1
-rw-r--r--build/sdk-android-arm64-v8a.atree1
-rw-r--r--build/sdk-android-armeabi-v7a.atree1
-rw-r--r--build/sdk-android-x86.atree4
-rw-r--r--build/sdk-android-x86_64.atree4
-rw-r--r--build/sdk-windows-x86.atree3
-rw-r--r--build/sdk.atree4
-rw-r--r--sys-img/advancedFeatures.ini5
11 files changed, 29 insertions, 4 deletions
diff --git a/apps/SdkSetup/Android.mk b/apps/SdkSetup/Android.mk
index c8b11f68a..16a6e94e5 100644
--- a/apps/SdkSetup/Android.mk
+++ b/apps/SdkSetup/Android.mk
@@ -10,4 +10,7 @@ LOCAL_CERTIFICATE := platform
LOCAL_PROGUARD_ENABLED := disabled
+LOCAL_STATIC_JAVA_LIBRARIES := \
+ gsf-client
+
include $(BUILD_PACKAGE)
diff --git a/apps/SdkSetup/AndroidManifest.xml b/apps/SdkSetup/AndroidManifest.xml
index 8f7268418..4ead2d687 100644
--- a/apps/SdkSetup/AndroidManifest.xml
+++ b/apps/SdkSetup/AndroidManifest.xml
@@ -18,6 +18,7 @@
package="com.android.sdksetup">
<!-- For miscellaneous settings -->
+ <uses-permission android:name="com.google.android.providers.settings.permission.WRITE_GSETTINGS" />
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
<uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
diff --git a/apps/SdkSetup/src/com/android/sdksetup/DefaultActivity.java b/apps/SdkSetup/src/com/android/sdksetup/DefaultActivity.java
index 505a35368..101b3f60a 100644
--- a/apps/SdkSetup/src/com/android/sdksetup/DefaultActivity.java
+++ b/apps/SdkSetup/src/com/android/sdksetup/DefaultActivity.java
@@ -25,7 +25,9 @@ import android.location.LocationManager;
import android.os.Bundle;
import android.os.RemoteException;
import android.os.ServiceManager;
+import android.os.SystemProperties;
import android.provider.Settings;
+import com.google.android.gsf.UseLocationForServices;
/**
* Entry point for SDK SetupWizard.
@@ -46,6 +48,10 @@ public class DefaultActivity extends Activity {
// Not needed since this SDK will contain the Settings app.
Settings.Secure.putString(getContentResolver(), Settings.Secure.LOCATION_PROVIDERS_ALLOWED,
LocationManager.GPS_PROVIDER);
+ // Allow google apps to have access to (emulated) location services in emulator
+ if (SystemProperties.getBoolean("ro.kernel.qemu", false)) {
+ UseLocationForServices.forceSetUseLocationForServices(this, true);
+ }
// enable install from non market
Settings.Global.putInt(getContentResolver(), Settings.Global.INSTALL_NON_MARKET_APPS, 1);
diff --git a/build/product_sdk.mk b/build/product_sdk.mk
index 889de258d..33929a453 100644
--- a/build/product_sdk.mk
+++ b/build/product_sdk.mk
@@ -31,6 +31,7 @@ PRODUCT_PACKAGES += \
aapt2 \
adb \
aidl \
+ apksigner \
zipalign \
bcc_compat \
bios.bin \
diff --git a/build/sdk-android-arm64-v8a.atree b/build/sdk-android-arm64-v8a.atree
index 5151680be..9c0e0eef2 100644
--- a/build/sdk-android-arm64-v8a.atree
+++ b/build/sdk-android-arm64-v8a.atree
@@ -16,6 +16,7 @@
prebuilts/qemu-kernel/${TARGET_ARCH}/kernel-qemu system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/kernel-qemu
prebuilts/qemu-kernel/${TARGET_ARCH}/kernel-qemu system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/kernel-ranchu
+device/generic/goldfish/data/etc/encryptionkey.img system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/encryptionkey.img
# version files for the SDK updater, from development.git
${HOST_OUT}/development/sys-img-${TARGET_CPU_ABI}/images_arm64-v8a_source.properties system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/source.properties
diff --git a/build/sdk-android-armeabi-v7a.atree b/build/sdk-android-armeabi-v7a.atree
index a693138d4..26352e4e2 100644
--- a/build/sdk-android-armeabi-v7a.atree
+++ b/build/sdk-android-armeabi-v7a.atree
@@ -17,6 +17,7 @@
# Copy the ARMv7 specific kernel image to .../kernel-qemu
prebuilts/qemu-kernel/${TARGET_ARCH}/kernel-qemu-armv7 system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/kernel-qemu
prebuilts/qemu-kernel/${TARGET_ARCH}/ranchu/kernel-qemu system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/kernel-ranchu
+device/generic/goldfish/data/etc/encryptionkey.img system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/encryptionkey.img
# version files for the SDK updater, from development.git
${HOST_OUT}/development/sys-img-${TARGET_CPU_ABI}/images_armeabi-v7a_source.properties system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/source.properties
diff --git a/build/sdk-android-x86.atree b/build/sdk-android-x86.atree
index 46d05f52d..f8aeff09a 100644
--- a/build/sdk-android-x86.atree
+++ b/build/sdk-android-x86.atree
@@ -14,8 +14,8 @@
# limitations under the License.
#
-prebuilts/qemu-kernel/${TARGET_ARCH}/kernel-qemu system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/kernel-qemu
-prebuilts/qemu-kernel/${TARGET_ARCH}/ranchu/kernel-qemu system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/kernel-ranchu
+prebuilts/qemu-kernel/${TARGET_ARCH}/3.18/kernel-qemu2 system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/kernel-ranchu
+device/generic/goldfish/data/etc/encryptionkey.img system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/encryptionkey.img
# version files for the SDK updater, from development.git
${HOST_OUT}/development/sys-img-${TARGET_CPU_ABI}/images_${TARGET_ARCH}_source.properties system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/source.properties
diff --git a/build/sdk-android-x86_64.atree b/build/sdk-android-x86_64.atree
index b9867d867..b1b534b1d 100644
--- a/build/sdk-android-x86_64.atree
+++ b/build/sdk-android-x86_64.atree
@@ -14,8 +14,8 @@
# limitations under the License.
#
-prebuilts/qemu-kernel/${TARGET_ARCH}/kernel-qemu system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/kernel-qemu
-prebuilts/qemu-kernel/${TARGET_ARCH}/ranchu/kernel-qemu system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/kernel-ranchu
+prebuilts/qemu-kernel/${TARGET_ARCH}/3.18/kernel-qemu2 system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/kernel-ranchu
+device/generic/goldfish/data/etc/encryptionkey.img system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/encryptionkey.img
# version files for the SDK updater, from development.git
${HOST_OUT}/development/sys-img-${TARGET_CPU_ABI}/images_${TARGET_ARCH}_source.properties system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/source.properties
diff --git a/build/sdk-windows-x86.atree b/build/sdk-windows-x86.atree
index 0f6a76b45..bd1537645 100644
--- a/build/sdk-windows-x86.atree
+++ b/build/sdk-windows-x86.atree
@@ -77,6 +77,9 @@ bin/split-select.exe strip build-tools/${PLATFORM_NAME}/split
rm build-tools/${PLATFORM_NAME}/aidl
bin/aidl.exe strip build-tools/${PLATFORM_NAME}/aidl.exe
+rm build-tools/${PLATFORM_NAME}/apksigner
+tools/apksig/etc/apksigner.bat build-tools/${PLATFORM_NAME}/apksigner.bat
+
rm build-tools/${PLATFORM_NAME}/zipalign
bin/zipalign.exe strip build-tools/${PLATFORM_NAME}/zipalign.exe
diff --git a/build/sdk.atree b/build/sdk.atree
index 658de57d4..ef80f3875 100644
--- a/build/sdk.atree
+++ b/build/sdk.atree
@@ -128,6 +128,10 @@ prebuilts/sdk/renderscript/lib/x86_64/librsjni.so build-tools/${PLATFORM
prebuilts/sdk/renderscript/lib/x86_64/libblasV8.so build-tools/${PLATFORM_NAME}/renderscript/lib/blas/x86_64/libblasV8.so
prebuilts/sdk/renderscript/lib/x86_64/librsrt_x86_64.bc build-tools/${PLATFORM_NAME}/renderscript/lib/bc/x86_64/libclcore.bc
+# apksigner
+bin/apksigner build-tools/${PLATFORM_NAME}/apksigner
+framework/apksigner.jar build-tools/${PLATFORM_NAME}/lib/apksigner.jar
+
# dx
bin/dx build-tools/${PLATFORM_NAME}/dx
framework/dx.jar build-tools/${PLATFORM_NAME}/lib/dx.jar
diff --git a/sys-img/advancedFeatures.ini b/sys-img/advancedFeatures.ini
index 445312f2c..ad39ea4c8 100644
--- a/sys-img/advancedFeatures.ini
+++ b/sys-img/advancedFeatures.ini
@@ -1 +1,6 @@
GrallocSync = on
+LogcatPipe = on
+GLAsyncSwap = on
+GLESDynamicVersion = on
+GLDMA = on
+EncryptUserData = on