Commit 9139db4d authored by Ted Choc's avatar Ted Choc Committed by Commit Bot

Add a GN file to create the PartnerBrowserCustomizationsExample apk.

Bug: 985905

Change-Id: I65cb5cc35a8f4f61322e14cda76e63ee34ed7a48
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2128932
Commit-Queue: Ted Choc <tedchoc@chromium.org>
Reviewed-by: default avatarWei-Yin Chen (陳威尹) <wychen@chromium.org>
Reviewed-by: default avatarAndrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/master@{#755051}
parent 65bd7e54
......@@ -383,6 +383,7 @@ group("gn_all") {
"//chrome/android:chrome_junit_tests",
"//chrome/android:chrome_public_apk",
"//chrome/android:chrome_public_test_apk",
"//chrome/android/examples/partner_browser_customizations_provider:partner_browser_customizations_example_apk",
"//chrome/android/features/media_router:media_router_junit_tests",
"//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
"//content/shell/android:content_shell_test_apk",
......
......@@ -5,14 +5,16 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.chromium.example.partnercustomizations">
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="14" />
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="21" />
<application>
<!-- Provider for partner bookmarks. android:authorities must not be changed. -->
<provider android:name="PartnerBookmarksProviderExample"
android:authorities="com.android.partnerbookmarks" />
android:authorities="com.android.partnerbookmarks"
android:exported="true" />
<!-- Provider for other partner customizations. android:authorities must not be changed. -->
<provider android:name="PartnerBrowserCustomizationsProviderExample"
android:authorities="com.android.partnerbrowsercustomizations" />
android:authorities="com.android.partnerbrowsercustomizations"
android:exported="true" />
</application>
</manifest>
# Copyright 2020 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/android/rules.gni")
android_resources("partner_browser_customizations_example_apk_resources") {
resource_dirs = [ "res" ]
android_manifest = "AndroidManifest.xml"
custom_package = "org.chromium.example.partnercustomizations"
}
android_apk("partner_browser_customizations_example_apk") {
skip_jetify = true
sources = [
"src/org/chromium/example/partnercustomizations/PartnerBookmarksProviderExample.java",
"src/org/chromium/example/partnercustomizations/PartnerBrowserCustomizationsProviderExample.java",
]
android_manifest = "AndroidManifest.xml"
min_sdk_version = 21
target_sdk_version = 21
apk_name = "PartnerCustomizationProviderExample"
deps = [ ":partner_browser_customizations_example_apk_resources" ]
chromium_code = false
never_incremental = true
}
......@@ -14,6 +14,9 @@ disable bookmark editing.
adb remount
* Build an example customizations content provider APK.
* autoninja -C $CHROMIUM_OUTPUT_DIR partner_browser_customizations_example_apk
* [LEGACY non-GN] Build an example customizations content provider APK.
* Rollback the SDK version before 25.3.0
cd src/third_party/android_tools
git checkout b65c4776d
......@@ -25,6 +28,9 @@ disable bookmark editing.
* Install the compiled APK.
adb shell mkdir -p /system/app
adb push $CHROMIUM_OUTPUT_DIR/apks/PartnerCustomizationProviderExample.apk /system/app/ChromeCustomizations.apk
[LEGACY non-GN]
adb push bin/PartnerCustomizationProviderExample-debug.apk /system/app/ChromeCustomizations.apk
* If you want partner bookmarks to work, delete or rename the preinstalled
......
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