Skip to content

Commit

Permalink
add Android 14 microg vendor package
Browse files Browse the repository at this point in the history
  • Loading branch information
PizzaG committed Jun 30, 2024
1 parent b2935d0 commit 1b810e7
Show file tree
Hide file tree
Showing 22 changed files with 212 additions and 0 deletions.
17 changes: 17 additions & 0 deletions vendor/microg_A14/AuroraDroid/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
prebuilt_etc {
name: "sysconfig_com.aurora.adroid.xml",
src: "sysconfig_com.aurora.adroid.xml",
product_specific: true,
relative_install_path: "sysconfig",
}

android_app_import {
name: "AuroraDroid",
apk: "AuroraDroid.apk",
presigned: true,
preprocessed: true,
skip_preprocessed_apk_checks: true,
privileged: true,
product_specific: true,
required: ["sysconfig_com.aurora.adroid.xml"],
}
Binary file added vendor/microg_A14/AuroraDroid/AuroraDroid.apk
Binary file not shown.
22 changes: 22 additions & 0 deletions vendor/microg_A14/AuroraDroid/sysconfig_com.aurora.adroid.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2017-2018 ale5000
SPDX-License-Identifer: GPL-3.0-or-later
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version, w/ zip exception.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<config>

<allow-in-power-save-except-idle package="com.aurora.adroid" />

</config>
40 changes: 40 additions & 0 deletions vendor/microg_A14/GmsCore/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
prebuilt_etc {
name: "default-permissions-com.google.android.gms.xml",
src: "default-permissions-com.google.android.gms.xml",
product_specific: true,
relative_install_path: "default-permissions",
}

prebuilt_etc {
name: "privapp-permissions-com.google.android.gms.xml",
src: "privapp-permissions-com.google.android.gms.xml",
product_specific: true,
relative_install_path: "permissions",
}

prebuilt_etc {
name: "sysconfig-com.google.android.gms.xml",
src: "sysconfig-com.google.android.gms.xml",
product_specific: true,
relative_install_path: "sysconfig",
}

android_app_import {
name: "GmsCore",
apk: "GmsCore.apk",
presigned: true,
privileged: true,
product_specific: true,
optional_uses_libs: [
"org.apache.http.legacy",
"androidx.window.extensions",
"androidx.window.sidecar",
],
overrides: ["com.qualcomm.location"],
required: [
"default-permissions-com.google.android.gms.xml",
"privapp-permissions-com.google.android.gms.xml",
"sysconfig-com.google.android.gms.xml",
],
uses_libs: ["com.android.location.provider"],
}
Binary file added vendor/microg_A14/GmsCore/GmsCore.apk
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<exceptions>
<exception package="com.google.android.gms">
<permission name="android.permission.FAKE_PACKAGE_SIGNATURE" fixed="false"/>
</exception>
</exceptions>
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<permissions>
<privapp-permissions package="com.google.android.gms">
<permission name="android.permission.CHANGE_DEVICE_IDLE_TEMP_WHITELIST"/>
<permission name="android.permission.FAKE_PACKAGE_SIGNATURE"/>
<permission name="android.permission.INSTALL_LOCATION_PROVIDER"/>
<permission name="android.permission.LOCATION_HARDWARE"/>
<permission name="android.permission.MANAGE_USB"/>
<permission name="android.permission.MODIFY_PHONE_STATE"/>
<permission name="android.permission.NETWORK_SCAN"/>
<permission name="android.permission.START_ACTIVITIES_FROM_BACKGROUND"/>
<permission name="android.permission.UPDATE_APP_OPS_STATS"/>
<permission name="android.permission.UPDATE_DEVICE_STATS"/>
<permission name="android.permission.WATCH_APPOPS"/>
</privapp-permissions>
</permissions>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<config>
<allow-in-data-usage-save package="com.google.android.gms"/>
<allow-in-power-save package="com.google.android.gms"/>
<allow-unthrottled-location package="com.google.android.gms"/>
</config>
7 changes: 7 additions & 0 deletions vendor/microg_A14/GoogleCalendarSyncAdapter/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
android_app_import {
name: "GoogleCalendarSyncAdapter",
apk: "GoogleCalendarSyncAdapter.apk",
presigned: true,
preprocessed: true,
product_specific: true,
}
Binary file not shown.
8 changes: 8 additions & 0 deletions vendor/microg_A14/GoogleContactsSyncAdapter/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
android_app_import {
name: "GoogleContactsSyncAdapter",
apk: "GoogleContactsSyncAdapter.apk",
presigned: true,
preprocessed: true,
product_specific: true,
optional_uses_libs: ["org.apache.http.legacy"],
}
Binary file not shown.
6 changes: 6 additions & 0 deletions vendor/microg_A14/GsfProxy/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
android_app_import {
name: "GsfProxy",
apk: "GsfProxy.apk",
presigned: true,
product_specific: true,
}
Binary file added vendor/microg_A14/GsfProxy/GsfProxy.apk
Binary file not shown.
14 changes: 14 additions & 0 deletions vendor/microg_A14/Maps/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
dex_import {
name: "com.google.android.maps",
owner: "gms",
jars: ["com.google.android.maps.jar"],
product_specific: true,
required: ["com.google.android.maps.xml"],
}

prebuilt_etc {
name: "com.google.android.maps.xml",
src: "com.google.android.maps.xml",
product_specific: true,
relative_install_path: "permissions",
}
Binary file not shown.
20 changes: 20 additions & 0 deletions vendor/microg_A14/Maps/com.google.android.maps.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2008 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<permissions>
<library name="com.google.android.maps"
file="/system/framework/com.google.android.maps.jar" />
</permissions>
29 changes: 29 additions & 0 deletions vendor/microg_A14/Phonesky/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
prebuilt_etc {
name: "default-permissions-com.android.vending.xml",
src: "default-permissions-com.android.vending.xml",
product_specific: true,
relative_install_path: "default-permissions",
}

prebuilt_etc {
name: "privapp-permissions-com.android.vending.xml",
src: "privapp-permissions-com.android.vending.xml",
product_specific: true,
relative_install_path: "permissions",
}

android_app_import {
name: "PhoneskyG",
apk: "Phonesky.apk",
presigned: true,
privileged: true,
product_specific: true,
optional_uses_libs: [
"androidx.window.extensions",
"androidx.window.sidecar",
],
required: [
"default-permissions-com.android.vending.xml",
"privapp-permissions-com.android.vending.xml",
],
}
Binary file added vendor/microg_A14/Phonesky/Phonesky.apk
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<exceptions>
<exception package="com.android.vending">
<permission name="android.permission.FAKE_PACKAGE_SIGNATURE" fixed="false"/>
</exception>
</exceptions>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<permissions>
<privapp-permissions package="com.android.vending">
<permission name="android.permission.FAKE_PACKAGE_SIGNATURE"/>
</privapp-permissions>
</permissions>
9 changes: 9 additions & 0 deletions vendor/microg_A14/product.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Micro-G
PRODUCT_PACKAGES += \
AuroraDroid \
GmsCore \
GsfProxy \
GoogleCalendarSyncAdapter \
GoogleContactsSyncAdapter \
PhoneskyG \
com.google.android.maps

0 comments on commit 1b810e7

Please sign in to comment.