329 Commits (master)
 

Author SHA1 Message Date
FriendlyNeighborhoodShane feb0df733b file_getprop: fix regex 2 years ago
FriendlyNeighborhoodShane 317c3871ca conf: add minimalIAP back
minimal + playstore has too much conflict to be resolveable without a lot
of complicated machinations.
2 years ago
FriendlyNeighborhoodShane da140955c7 README.md: formatting updates 2 years ago
FriendlyNeighborhoodShane 2bffffd37a conf: make AuroraServices into a "MinAddon" package, and add Playstore
Drop minimalIAP, because it's basically Minimal + Playstore
2 years ago
FriendlyNeighborhoodShane 87610579fd update-binary: use sysrootpart to properly handle partition-level tasks 2 years ago
FriendlyNeighborhoodShane d0db360aca update-binary: eliminate inconsistent usage of sysroot 2 years ago
FriendlyNeighborhoodShane adb99b5fde update-binary: use a list for cleanup unmounting 2 years ago
FriendlyNeighborhoodShane 7c40dd091c update-binary: refactor into cleanup() 2 years ago
FriendlyNeighborhoodShane 48e4d058f3 update-binary: make sizecheck_pack a function 2 years ago
FriendlyNeighborhoodShane 67cc86bfd5 update-binary: use tr to get lowercase basename 2 years ago
FriendlyNeighborhoodShane cf1c5e80e9 res: move gsync perms into right place 2 years ago
FriendlyNeighborhoodShane d922ca278c res: add old (deprecated) privperm for backuptransport 2 years ago
FriendlyNeighborhoodShane b0660cca5e func-resdl.sh: fix privperm detections
It will now parse privperm files by contents instead of filepath.
2 years ago
FriendlyNeighborhoodShane a1c7cbd13c func-resdl.sh: improve privperm extraction
Extract privperm list directly from the master branch of Android source
instead of regexing through a docpage.

Referenced from what mindthegapps does.
2 years ago
FriendlyNeighborhoodShane 53ff515063 res: add new A12 privperm the 'proper' way
Figured out by @AkiraNoSushi

Solves bootloops on some ROMs that weren't happy without the prefix. Don't
ask me how or why.
2 years ago
FriendlyNeighborhoodShane 99aecd0a29 conf: bump versions 2 years ago
FriendlyNeighborhoodShane 969e15e982 npem: fix permissions not being granted
I messed up with the last fix. While that solved the case where there were
both 'granted=true' and 'granted=false' entries, it introduced a regression.

It was written with the assumption that whenever a permission is not granted,
there will be 'granted=false' entries. That assumption was not tested well
at the time, and further testing has revealed that there are also many
situations where there are no 'granted=' entries for permissions at all, not
even 'false'.

Since there is no defined spec for the output of dumpsys, we just do a
pessimistic case-by-case parsing of its output.
2 years ago
FriendlyNeighborhoodShane e4543b1e39 build.sh: prefer items in res by order 2 years ago
FriendlyNeighborhoodShane 299972d76c Revert "build.sh: prefer objects in res over resdl"
This reverts commit 98d1e8ff14.

It breaks files included using SDK/arch wildcards.
2 years ago
FriendlyNeighborhoodShane 96681acc03 update-binary: stop backing up debloated objects
In retrospect, this was a pretty stupid thing to do.
2 years ago
FriendlyNeighborhoodShane 09c78815bd func-resdl.sh: update privperm webpage parsing regexes 2 years ago
FriendlyNeighborhoodShane 847d3908ac squash another shellcheck warning 2 years ago
FriendlyNeighborhoodShane 232cef7271 npem: vendor "nlp backends as user app" from upstream 2 years ago
FriendlyNeighborhoodShane 8f742762c3 INSTALL.md: update troubleshooting section about npem 2 years ago
FriendlyNeighborhoodShane 235beff955 conf: bump versions 2 years ago
FriendlyNeighborhoodShane dd25765cb6 npem: install microG APKs as user app
The init script was used to do it before, but init.d has been all but
abandoned by ROMs universally, so effectively the only situation in which
the init script runs is for Magisk.

This change will be very helpful for non-Magisk users, as they will no
longer have to extract and install the APK by hand.

Also deduplicate code from init script and make it just call npem.
2 years ago
FriendlyNeighborhoodShane 6489b85d56 npem: add new microG perms
These were added by microG updates about covid tracing, etc.
2 years ago
FriendlyNeighborhoodShane 45850cebd6 npem: fix false positive in permission check
Sometimes when a permission is not granted (e.g. when a default permission
to a system app is ungranted by the user), dumpsys emits two lines about
it, one with granted=true and the GRANTED_BY_DEFAULT flag.

Since we are not properly parsing flags and getting the full context, just
reverse the check to make sure the value doesn't fall through.

A 'false negative' grant won't hurt anyway.
2 years ago
FriendlyNeighborhoodShane 8aa22acfa0 npem: grant permissions to wifi and GSM backends
NanoDroid didn't include these backends.
2 years ago
FriendlyNeighborhoodShane 81294c7c06 res: add npem to res as part of repo
MinMicroG has always had to modify npem for its own apps, but now NanoDroid
seems to have gone on hiatus, and important changes are sitting in PRs.

I fgfure it'd be more convenient if we just maintain a clone in-tree and
keep it up to date with NanoDroid's changes.
2 years ago
FriendlyNeighborhoodShane 98d1e8ff14 build.sh: prefer objects in res over resdl 2 years ago
FriendlyNeighborhoodShane d4589f8b9b INSTALL.md: remove 'SmaliPatcher' entry from sigspoof section
It was never a good recommendation anyway, but its sigspoof patch has been
deprecated now, according to its thread.
2 years ago
FriendlyNeighborhoodShane 25ec2335b9 res: add new priv-perm to allowlist XMLs 3 years ago
FriendlyNeighborhoodShane 4beff58121 README.md: add note about LOS recovery 3 years ago
FriendlyNeighborhoodShane 9476c514fc README.md: split links section 3 years ago
FriendlyNeighborhoodShane 346e77a188 *.md: reflow text to 80 cols 3 years ago
FriendlyNeighborhoodShane 6f03fa5b1f README.md: rephrase link 3 years ago
FriendlyNeighborhoodShane 061c1d040d res/util/func-resdl.sh: make logs work with symlinked reldir 3 years ago
FriendlyNeighborhoodShane e0185e5a60 INSTALL.md: update contacts sync section
The DAVDroid app was renamed to DAVx5 a while ago.
3 years ago
FriendlyNeighborhoodShane 1767477965 README.md: add "microG user group" on Telegram as a support channel 3 years ago
FriendlyNeighborhoodShane ad28359a70 func-resdl.sh: use apksigner instead of jarsigner for signature verification
It's much more robust and complete than jarsigner and should catch more
issues than it. I suspect the flags that I'm using to make it work for
JARs (signature format v1) is a hack and not actually an intended feature
but it works for now.

It also likely has much more availability across platforms as it's a
Java applet (separately packaged for Debian etc.) instead of being part of
a JDK.
3 years ago
FriendlyNeighborhoodShane 637f3b768f README.md: update sync adapter status
We forgot to update the README when we added support for it back in
c6292f83d7
3 years ago
FriendlyNeighborhoodShane 1074e15a0f Fix some shellcheck complaints 3 years ago
FriendlyNeighborhoodShane cb531cf13f script-addon.sh: better helper script detection 3 years ago
FriendlyNeighborhoodShane 9f429c16fe script-addin.sh: add footer meesage 3 years ago
FriendlyNeighborhoodShane 44a349c531 script-addon.sh: recursively pass files to functions, not dirs
The addon.d helper functions don't like being passed directories, so we
just use find and pass the them the files ourselves.

We could have implemented the helper functions, but there's too much of
a mess going on in the addon.d world. That will probably cause more problems
that it will solve.
3 years ago
FriendlyNeighborhoodShane a06a773915 test.sh: use globs for root scripts 3 years ago
FriendlyNeighborhoodShane feeb079155 test.sh: add exception SC1091 3 years ago
FriendlyNeighborhoodShane 491f4ea4f4 func-defconf.sh: make sure required conditions are met for script 3 years ago
FriendlyNeighborhoodShane 190131eafc script-{addon,init}.sh: split out from func-defconf.sh
The scripts were initially embedded because I didn't want to have extra
files other than the defconfs, but since we have funcs now anyway...
3 years ago