Skip to content

Commit f633baa

Browse files
authored
Add com.android.vending.BILLING permission (#2930)
1 parent c876a52 commit f633baa

4 files changed

Lines changed: 12 additions & 0 deletions

File tree

vending-app/src/main/AndroidManifest.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@
2828
tools:ignore="ProtectedPermissions" />
2929
<uses-permission android:name="com.google.android.gms.auth.permission.GOOGLE_ACCOUNT_CHANGE"/>
3030

31+
<permission
32+
android:description="@string/billing_permission_desc"
33+
android:label="@string/billing_permission_label"
34+
android:name="com.android.vending.BILLING"
35+
android:protectionLevel="instant|normal"/>
36+
3137
<uses-permission
3238
android:name="android.permission.USE_CREDENTIALS"
3339
android:maxSdkVersion="22" />

vending-app/src/main/res/values-zh-rCN/strings.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,6 @@
4444
<string name="vending_overview_enterprise_row_mandatory_missing_hint">你的设备缺少由你的管理员选择的强制应用。</string>
4545
<string name="vending_overview_enterprise_no_apps_available">你的管理员尚未提供应用。</string>
4646
<string name="vending_overview_row_installed">已安装的应用</string>
47+
<string name="billing_permission_desc">允许用户通过 Google Play 在此应用内购买商品。</string>
48+
<string name="billing_permission_label">Google Play 结算服务</string>
4749
</resources>

vending-app/src/main/res/values-zh-rTW/strings.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,6 @@
4444
<string name="toast_not_installed">microG Companion 無法單獨使用,請安裝 microG Services 以使用 microG 。</string>
4545
<string name="download_notification_attachment_file">%s 的附加元件</string>
4646
<string name="download_notification_tips">下載中</string>
47+
<string name="billing_permission_desc">允許使用者透過 Google Play 在此應用程式內購買商品。</string>
48+
<string name="billing_permission_label">Google Play 結帳服務</string>
4749
</resources>

vending-app/src/main/res/values/strings.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,7 @@
5656
<string name="installer_notification_progress_splitinstall_commiting">Installing required components for %s</string>
5757
<string name="download_notification_attachment_file">Additional files for %s</string>
5858
<string name="download_notification_tips">Downloading</string>
59+
<string name="billing_permission_desc">Allows the user to purchase items through Google Play from within this app.</string>
60+
<string name="billing_permission_label">Google Play billing service</string>
5961

6062
</resources>

0 commit comments

Comments
 (0)