Commit Graph

273 Commits

Author SHA1 Message Date
FriendlyNeighborhoodShane
adb99b5fde update-binary: use a list for cleanup unmounting 2022-08-14 22:07:55 +05:30
FriendlyNeighborhoodShane
7c40dd091c update-binary: refactor into cleanup() 2022-08-14 22:03:01 +05:30
FriendlyNeighborhoodShane
48e4d058f3 update-binary: make sizecheck_pack a function 2022-08-14 22:00:26 +05:30
FriendlyNeighborhoodShane
67cc86bfd5 update-binary: use tr to get lowercase basename 2022-08-14 22:00:26 +05:30
FriendlyNeighborhoodShane
cf1c5e80e9 res: move gsync perms into right place 2022-02-23 14:24:00 +05:30
FriendlyNeighborhoodShane
d922ca278c res: add old (deprecated) privperm for backuptransport 2022-02-23 13:20:17 +05:30
FriendlyNeighborhoodShane
b0660cca5e func-resdl.sh: fix privperm detections
It will now parse privperm files by contents instead of filepath.
2022-02-23 13:20:17 +05:30
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.
2022-02-23 00:27:58 +05:30
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.
2022-02-20 22:05:19 +05:30
FriendlyNeighborhoodShane
99aecd0a29 conf: bump versions 2022-02-02 21:02:52 +05:30
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.
2022-02-02 19:31:26 +05:30
FriendlyNeighborhoodShane
e4543b1e39 build.sh: prefer items in res by order 2022-02-02 18:24:02 +05:30
FriendlyNeighborhoodShane
299972d76c Revert "build.sh: prefer objects in res over resdl"
This reverts commit 98d1e8ff14.

It breaks files included using SDK/arch wildcards.
2022-02-02 18:20:09 +05:30
FriendlyNeighborhoodShane
96681acc03 update-binary: stop backing up debloated objects
In retrospect, this was a pretty stupid thing to do.
2022-01-31 19:25:14 +05:30
FriendlyNeighborhoodShane
09c78815bd func-resdl.sh: update privperm webpage parsing regexes 2022-01-31 19:00:43 +05:30
FriendlyNeighborhoodShane
847d3908ac squash another shellcheck warning 2022-01-31 18:49:46 +05:30
FriendlyNeighborhoodShane
232cef7271 npem: vendor "nlp backends as user app" from upstream 2022-01-27 10:17:00 +05:30
FriendlyNeighborhoodShane
8f742762c3 INSTALL.md: update troubleshooting section about npem 2022-01-26 13:10:00 +05:30
FriendlyNeighborhoodShane
235beff955 conf: bump versions 2022-01-26 10:19:34 +05:30
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.
2022-01-26 09:34:14 +05:30
FriendlyNeighborhoodShane
6489b85d56 npem: add new microG perms
These were added by microG updates about covid tracing, etc.
2022-01-26 09:32:56 +05:30
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.
2022-01-26 09:09:41 +05:30
FriendlyNeighborhoodShane
8aa22acfa0 npem: grant permissions to wifi and GSM backends
NanoDroid didn't include these backends.
2022-01-26 09:09:41 +05:30
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.
2022-01-26 09:09:41 +05:30
FriendlyNeighborhoodShane
98d1e8ff14 build.sh: prefer objects in res over resdl 2022-01-19 11:43:40 +05:30
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.
2022-01-18 18:28:54 +05:30
FriendlyNeighborhoodShane
25ec2335b9 res: add new priv-perm to allowlist XMLs 2021-12-05 18:47:42 +05:30
FriendlyNeighborhoodShane
4beff58121 README.md: add note about LOS recovery 2021-11-04 22:06:31 +05:30
FriendlyNeighborhoodShane
9476c514fc README.md: split links section 2021-09-22 02:05:08 +05:30
FriendlyNeighborhoodShane
346e77a188 *.md: reflow text to 80 cols 2021-09-08 04:05:45 +05:30
FriendlyNeighborhoodShane
6f03fa5b1f README.md: rephrase link 2021-09-04 01:13:05 +05:30
FriendlyNeighborhoodShane
061c1d040d res/util/func-resdl.sh: make logs work with symlinked reldir 2021-08-31 20:40:12 +05:30
FriendlyNeighborhoodShane
e0185e5a60 INSTALL.md: update contacts sync section
The DAVDroid app was renamed to DAVx5 a while ago.
2021-08-28 16:28:04 +05:30
FriendlyNeighborhoodShane
1767477965 README.md: add "microG user group" on Telegram as a support channel 2021-08-27 12:17:11 +05:30
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.
2021-08-07 19:16:19 +05:30
FriendlyNeighborhoodShane
637f3b768f README.md: update sync adapter status
We forgot to update the README when we added support for it back in
c6292f83d7
2021-08-07 19:16:19 +05:30
FriendlyNeighborhoodShane
1074e15a0f Fix some shellcheck complaints 2021-07-25 14:58:06 +05:30
FriendlyNeighborhoodShane
cb531cf13f script-addon.sh: better helper script detection 2021-07-22 23:15:58 +05:30
FriendlyNeighborhoodShane
9f429c16fe script-addin.sh: add footer meesage 2021-07-22 23:15:58 +05:30
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.
2021-07-22 16:46:39 +05:30
FriendlyNeighborhoodShane
a06a773915 test.sh: use globs for root scripts 2021-07-22 13:38:36 +05:30
FriendlyNeighborhoodShane
feeb079155 test.sh: add exception SC1091 2021-07-22 13:31:14 +05:30
FriendlyNeighborhoodShane
491f4ea4f4 func-defconf.sh: make sure required conditions are met for script 2021-07-22 13:31:14 +05:30
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...
2021-07-22 01:22:29 +05:30
FriendlyNeighborhoodShane
4079901354 func-defconf.sh: remove superfluous tr invocation 2021-07-22 00:26:40 +05:30
FriendlyNeighborhoodShane
4f21907d11 INSTALL.md: rename from lowercase 2021-07-21 19:23:50 +05:30
FriendlyNeighborhoodShane
e115e7bf92 func-defconf.sh: remove detection for old markfile
It has been over half a year (even if just one release) but it should be
okay. Everybody should have upgraded by now.
2021-07-20 21:10:47 +05:30
FriendlyNeighborhoodShane
09f3944ab3 install.md: make command a code block 2021-07-19 00:48:41 +05:30
FriendlyNeighborhoodShane
e02b835069 README.md: update outdated pack info
We switched back to the F-Droid builds for the LocalGSM backend back in
077072685f but forgot to update the README.
2021-07-16 12:56:45 +05:30
FriendlyNeighborhoodShane
b141a67afd conf/resdl-download.txt: use master branch instead of eleven for A11 APKs 2021-07-12 11:19:42 +05:30