Commit 417d912a by Tim Van Patten Committed by Commit Bot

Remove Settings GUI from AOSP Builds and make product-specific

The Settings GUI is being removed from the AOSP build to turn the ANGLE APK into essentially a container APK containing the necessary libraries. This reduces the APK size and reduces the risk of users enabling ANGLE by accident. Additionally, ANGLE is being marked product-specific to remove it from all AOSP builds. Bug: b/187345862 Change-Id: I6e1acb9c6e07b419d40aee43d7260060027999ec Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2876213Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Commit-Queue: Tim Van Patten <timvp@google.com>
parent 91429bb1
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2021 The ANGLE Project Authors. All rights reserved. Use of this
source code is governed by a BSD-style license that can be found in the
LICENSE file.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.android.angle">
<application android:label="Angle for Android"
android:extractNativeLibs="false"
android:multiArch="true">
</application>
</manifest>
...@@ -504,11 +504,6 @@ def main(): ...@@ -504,11 +504,6 @@ def main():
blueprint_targets.append(gn_target_to_blueprint(target, build_info)) blueprint_targets.append(gn_target_to_blueprint(target, build_info))
# Add APKs with all of the root libraries # Add APKs with all of the root libraries
blueprint_targets.append(('filegroup', {
'name': 'ANGLE_srcs',
'srcs': ['src/android_system_settings/**/*.java',],
}))
blueprint_targets.append(( blueprint_targets.append((
'java_defaults', 'java_defaults',
{ {
...@@ -525,36 +520,17 @@ def main(): ...@@ -525,36 +520,17 @@ def main():
'aaptflags': [ 'aaptflags': [
# Don't compress *.json files # Don't compress *.json files
'-0 .json', '-0 .json',
# Give com.android.angle.common Java files access to the R class
'--extra-packages com.android.angle.common',
], ],
'srcs': [':ANGLE_srcs'],
'plugins': ['java_api_finder',], 'plugins': ['java_api_finder',],
'privileged': True, 'privileged': True,
'product_specific': True,
'owner': 'google', 'owner': 'google',
})) }))
blueprint_targets.append((
'android_library',
{
'name': 'ANGLE_library',
'sdk_version': 'system_current',
'min_sdk_version': sdk_version,
'resource_dirs': ['src/android_system_settings/res',],
'asset_dirs': ['src/android_system_settings/assets',],
'aaptflags': [
# Don't compress *.json files
'-0 .json',
],
'manifest': 'src/android_system_settings/src/com/android/angle/AndroidManifest.xml',
'static_libs': ['androidx.preference_preference',],
}))
blueprint_targets.append(('android_app', { blueprint_targets.append(('android_app', {
'name': 'ANGLE', 'name': 'ANGLE',
'defaults': ['ANGLE_java_defaults'], 'defaults': ['ANGLE_java_defaults'],
'static_libs': ['ANGLE_library'], 'manifest': 'android/AndroidManifest.xml',
'manifest': 'src/android_system_settings/src/com/android/angle/AndroidManifest.xml',
})) }))
output = [ output = [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment