add microG permission files by ale5000

merge-requests/23/head NanoDroid-20180302-16.2
Christopher Roy Bratusek 6 years ago
parent f70a9e6971
commit c3a766b542

@ -8,6 +8,11 @@
* General Changes:
* Full, microG, F-Droid packages
* use modified Magisk mount code to support of devices with A/B partion scheme
* Full, microG packages
* install microG permission settings file by ale5000
* updated Credits section in README
* extended by FAKE_SIGNATURE permission for microG Gms Core and Play Store
* removed NewPipe from microG permissions file
* Full, microG packages
* nanodroid-overlay Script
* add `-U`, `--update-apks` switch to nanodroid-overlay script, downloads and installs latest versions of custom NanoDroid apks, requires Busybox to be installed (for wget applet)

@ -505,6 +505,14 @@ install_microg () {
cp ${INSTALLER}/system/priv-app/DroidGuard/DroidGuard.apk \
/data/app/org.microg.gms.droidguard/base.apk
set_perm_data -r /data/app/org.microg.gms.droidguard/
nanodroid_install_file etc/permissions/features.xml
nanodroid_install_file etc/default-permissions/microg-permissions.xml
nanodroid_install_file etc/sysconfig/microg-a5k.xml
if ! grep -q 'com.google.android.gms' /data/system/users/*/runtime-permissions.xml; then
rm /data/system/users/*/runtime-permissions.xml
fi
else ui_print " << without microG"
fi
}
@ -513,7 +521,7 @@ install_mapsv1 () {
# install mapsv1 if requested
if [ "${nanodroid_mapsv1}" -eq 1 ]; then
ui_print " << with Maps API version 1"
nanodroid_install_dir etc/permissions
nanodroid_install_file etc/permissions/com.google.android.maps.xml
nanodroid_install_dir framework
else ui_print " << without Maps API version 1"
fi

@ -0,0 +1,91 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2017 ale5000
This file was created by ale5000 (ale5000-git on GitHub).
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/>.
-->
<!-- This file contains permissions to be granted by default.
Default permissions are granted to special platform components and to apps
that are approved to get default grants.
The special components are apps that are expected to work out-of-the-box
as they provide core use cases. These grants are managed by the platform.
Fixed permissions cannot be controlled by the user and need a special
approval. Typically these are to ensure either legally mandated functions
or the app is considered a part of the OS.
Granting these permissions could prevent issues on some ROMs or
on non-clean installations.
-->
<exceptions>
<exception package="com.google.android.gms">
<!-- Phone -->
<permission name="android.permission.READ_PHONE_STATE" fixed="false"></permission>
<!-- Account -->
<permission name="android.permission.GET_ACCOUNTS" fixed="false"></permission>
<!-- Location -->
<permission name="android.permission.ACCESS_FINE_LOCATION" fixed="false"></permission>
<permission name="android.permission.ACCESS_COARSE_LOCATION" fixed="false"></permission>
<!-- Storage -->
<permission name="android.permission.READ_EXTERNAL_STORAGE" fixed="false"></permission>
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" fixed="false"></permission>
<!-- Fake Signature Spoofing -->
<permission name="android.permission.FAKE_PACKAGE_SIGNATURE" fixed="false"></permission>
</exception>
<exception package="com.google.android.gsf">
<permission name="com.google.android.c2dm.permission.RECEIVE" fixed="false"></permission>
<permission name="com.google.android.c2dm.permission.SEND" fixed="false"></permission>
</exception>
<exception package="com.android.vending">
<!-- Phone -->
<permission name="android.permission.READ_PHONE_STATE" fixed="false"></permission>
<!-- Account -->
<permission name="android.permission.GET_ACCOUNTS" fixed="false"></permission>
<!-- Location -->
<permission name="android.permission.ACCESS_FINE_LOCATION" fixed="false"></permission>
<permission name="android.permission.ACCESS_COARSE_LOCATION" fixed="false"></permission>
<!-- Storage -->
<permission name="android.permission.READ_EXTERNAL_STORAGE" fixed="false"></permission>
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" fixed="false"></permission>
<!-- Fake Signature Spoofing -->
<permission name="android.permission.FAKE_PACKAGE_SIGNATURE" fixed="false"></permission>
</exception>
<exception package="org.microg.gms.droidguard">
<permission name="android.permission.INTERNET" fixed="false"></permission>
</exception>
<exception package="org.microg.nlp.backend.ichnaea">
<permission name="android.permission.ACCESS_COARSE_LOCATION" fixed="false"></permission>
<permission name="android.permission.ACCESS_FINE_LOCATION" fixed="false"></permission>
<permission name="android.permission.ACCESS_NETWORK_STATE" fixed="false"></permission>
<permission name="android.permission.ACCESS_WIFI_STATE" fixed="false"></permission>
<permission name="android.permission.CHANGE_WIFI_STATE" fixed="false"></permission>
<permission name="android.permission.INTERNET" fixed="false"></permission>
<permission name="android.permission.READ_PHONE_STATE" fixed="false"></permission>
</exception>
<exception package="org.fitchfamily.android.dejavu">
<permission name="android.permission.ACCESS_COARSE_LOCATION" fixed="false"></permission>
<permission name="android.permission.ACCESS_FINE_LOCATION" fixed="false"></permission>
<permission name="android.permission.ACCESS_WIFI_STATE" fixed="false"></permission>
<permission name="android.permission.CHANGE_WIFI_STATE" fixed="false"></permission>
</exception>
<exception package="org.microg.nlp.backend.nominatim">
<permission name="android.permission.INTERNET" fixed="false"></permission>
</exception>
</exceptions>

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2010 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.
-->
<!-- This is the standard set of features for an auto-focus camera. -->
<permissions>
<feature name="com.google.android.feature.GOOGLE_BUILD" />
<!-- This should be added to all Nexus and GPe devices -->
<feature name="com.google.android.feature.GOOGLE_EXPERIENCE" />
</permissions>

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2017 ale5000
This file was created by ale5000 (ale5000-git on GitHub).
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>
<!-- These are the packages that are white-listed to always have internet
access while in power save mode, even if they aren't in the foreground. -->
<allow-in-power-save package="com.google.android.gms"></allow-in-power-save>
</config>

@ -396,6 +396,8 @@ Additional credits go to
* topjohnwu for Magisk
* Lanchon for dexpatcher and haystack
* osm0sis for GNU Nano build
* shadow53 for automatic apk grabbing base code
* ale5000 for microG system permission files
Special Thanks to the beta testers

@ -24,7 +24,8 @@ create_microg_package() {
for input in "system/xbin/nanodroid-overlay" "system/xbin/novl" \
"system/xbin/bash*" "system/xbin/aapt*" "system/xbin/column*" \
"system/xbin/unzip*" "system/framework/" "gsync/" \
"system/etc/permissions/" "system/etc/bash*" "swipe/"; do
"system/etc/permissions/" "system/etc/sysconfig/" \
"system/etc/default-permissions/" "system/etc/bash*" "swipe/"; do
zip_add "${input}"
done

Loading…
Cancel
Save