Commit Graph

66 Commits

Author SHA1 Message Date
LuK1337
04e0d97901
Add Wellbeing 2024-02-23 18:16:35 +01:00
Giovanni Ricca
f084165cf7 Remove SpeechServicesByGoogle as well 2023-12-04 16:07:23 +00:00
Paul Keith
36e2940999 gapps: Move tangorpro check to after we've cd'ed into system
Otherwise, we're removing stuff from the wrong path
2023-09-19 21:21:38 -05:00
Paul Keith
d06706f0d8 gapps: Use lowercase -r for rm 2023-09-19 17:36:31 -05:00
Paul Keith
fcc66ec68b gapps: Remove VelvetTitan on low space check 2023-09-19 17:36:31 -05:00
Nolen Johnson
e0583070f1 Use newer velvet ONLY for tangorpro
* Somehow this newer versionis 130mb bigger - and wrecks basically
  all current devices to the point that gapps couldn't fit.
* [javelinanddart]: Script it up.

Co-authored-by: javelinanddart@gmail.com
2023-09-19 17:32:18 -04:00
Paul Keith
251da7189e Fix arch checks
Some devices have a 32-bit userspace but a 64-bit kernel. These
devices need to have 32-bit gapps, not 64-bit ones. To fix this,
switch to getting arch from ro.bionic.arch instead of uname -m.
Additionally, remove the nice_arch function as it makes debugging
issues more difficult when the nice arch matches but the underlying
values don't line up.
2023-08-07 17:43:10 +02:00
Alessandro Astone
49a4548984 Add version and arch checks 2022-02-08 00:40:38 +01:00
Alessandro Astone
2f30bf7eb5 Always cleanup on failure 2022-02-07 23:42:07 +01:00
Alessandro Astone
71198e3696 Update install script after SetupWizard was moved to system_ext 2022-02-03 17:48:43 +01:00
Alessandro Astone
de08478020 Fixup the install-time removal of Provision apk 2021-12-08 18:03:12 +01:00
Paul Keith
720abb0200 Fix check to remove Provision when flashing zip
* Google's SuW was renamed, but this check wasn't fixed
2021-10-20 18:26:47 -07:00
Paul Keith
87b6cc26cb Initial changes for Android 12 zips 2021-10-13 11:23:03 -05:00
Paul Keith
36c78c10d9 Initial list update to 12
* Only updated package names for now
* TODO: Remove Markup libs when removing MarkupGoogle apk
* TODO: Drop x86 support and/or add x86_64 support for emu
2021-10-08 12:22:15 -05:00
Erik Jensen
a91f9c08b5 Support tab-delimited /etc/recovery.fstab
Previously, update-binary only supported space-delimited /etc/recovery.fstab.
2021-04-30 05:42:41 +00:00
LuK1337
90b15f30f8 Ignore {product,system_ext} block devices in case they are symlinks
This is common on devices where maintainers have chosen not to use
real partitions because of their size being too small to be useful
2021-04-03 12:27:02 +02:00
Alessandro Astone
b6db56e186 Add talkback 2021-02-20 14:05:01 +01:00
Alessandro Astone
8650488592 Include prebuilt static toybox
Built from lineage-18
2021-02-10 23:50:13 +01:00
Alessandro Astone
a5e57cee14 Exclude addon.d fragments from backup 2021-02-10 23:50:13 +01:00
Alessandro Astone
2b244a1ead Adapt free space checks to new partitions
And don't count as needed space that will be freed from the replaced
files. This will allow to flash the zip over an existing installation
when space is tight.

Also:
awk      -->  tr | cut  because recovery might not provide awk
grep -v  -->  tail -1   in du because it might spit out 3 lines
2021-02-10 23:50:12 +01:00
Alessandro Astone
964016a9ad Rewrite mounting
* Support dynamic partitions
* Mount product and system_ext when they're dedicated partitions
* Mount system at /mnt/system to not interfere with newer recoveries
* Android 10+ system images always contain a rootfs before system
* Don't use system toybox
2021-02-10 23:50:12 +01:00
Alessandro Astone
653d74aba7 Eleven gapps
From redfin-rq1a.201205.011

* Move everything to product or system_ext
* No more maps jar?
* Fix sha1sum of arm64 MarkupGoogle/lib/arm64/libsketchology_native.so
  The file is unchanged, the checksum simply has always been wrong
* Adapt to new blueprint based extract utils
2021-01-02 21:34:38 +01:00
Paul Keith
dc45a21104 Fix mounting on SAR/AB devices 2019-06-15 05:13:28 +02:00
Paul Keith
48f453389f gapps: Remove MarkupGoogle in update-binary for low resource devices 2019-02-16 21:45:01 +01:00
Paul Keith
b802ae737e gapps: Fix small bugs and style inconsistencies in update-binary 2019-02-16 21:27:24 +01:00
Paul Keith
8a7f260fb7 Revert "Don't mount SAR system to /system"
* This is horribly broken

This reverts commit 7c6536c1e7.
2019-02-16 21:24:13 +01:00
Paul Keith
eb07f340ac Decrease storage buffer to 10MB 2019-02-03 20:07:24 +01:00
Paul Keith
0e1baf6960 Bring back space check
* Requires at least 25MB of space on top of required space
2019-02-03 19:53:19 +01:00
Luca Stefani
7c6536c1e7 Don't mount SAR system to /system 2019-02-03 19:33:51 +01:00
Preetam D'Souza
ae1ceeaccc Remove Provision only if installing SetupWizard
On devices with low memory or storage, the update-binary skips
installation of SetupWizard, which normally overrides AOSP's Provision
app. Unfortunately, the script currently removes the Provision app even
when SetupWizard is not installed in the low memory or storage case,
which causes the device to remain stuck in an unprovisioned state (Home
button doesn't work for example).

Tests
-----

Tested on Nexus 5 (hammerhead) with LOW_STORAGE and confirmed that the
Provision app is not removed since SetupWizard is not installed.
Confirmed that the Play store works.

Tested on Nexus 5X (bullhead) which is not LOW_STORAGE and confirmed
that the Provision app is removed since SetupWizard is installed.
Confirmed that the Play store works.
2019-02-03 19:32:02 +01:00
Paul Keith
2196d7bedf gapps: null out space checks for Pi (for now)
* We need arch specific space requirements, which might be
  more appropriate in addition for some arch checking
2018-08-08 18:01:03 +02:00
Paul Keith
0f6b456028 gapps: Fail if there's not enough space 2018-08-07 14:27:25 -07:00
Paul Keith
25253abdb5 gapps: Check for low storage too 2018-08-07 14:19:26 -07:00
Paul Keith
9cac358dd2 Revert "Cleanup current slot logic"
* This should be left for when/if verity is figured out

This reverts commit 6793b22d9b.
2018-06-10 04:39:18 +02:00
shagbag913
480db6d999 gapps: Add AndroidMigratePrebuilt
* On Custom ROM's on Pixels, the downloading of
  this app by SetupWizard often hangs up,
  and needs to be restarted. Ship this to avoid
  that.

* Added to LOWMEM checkas it isn't necessary.
2018-06-09 22:37:03 -04:00
Paul Keith
6793b22d9b Cleanup current slot logic 2018-06-10 04:11:27 +02:00
Nolen Johnson
b520864106 updater-binary: Revert "Install to opposite slot" logic
* Currently, on both devices enforcing veirty, and devices not
  enforcing verity, we are unable to flash files to the system
  partition after a payload (a/b) style flash. Revert this
  logic until is/when we figure this out.

* A/B users will need to flash the ROM, reboot, and install
  from thee recovery in the other slot.
2018-06-09 22:04:51 -04:00
Paul Keith
885eae94b3 gapps: Unmount /system before attempting to mount it
* On some devices, /system is already mounted, and when we try to
  mount it ourselves, it fails, causing installation to abort
* To prevent this, umount /system before we try to mount it
2018-05-22 01:43:07 +02:00
Dan Pasanen
9aeb1c1bbd update-binary: clean up addon.d_[head,tail]
Change-Id: Iafcfe56d004f3395e194a56b8914febff0948935
2018-03-18 08:04:50 -05:00
Dan Pasanen
6a9b00f22b update-binary: lazy unmount /system and /system_root
* Unsure why these don't want to unmount normally

Change-Id: I732d6f0309e668f64b31561362e93fd09707bafd
2018-03-18 08:04:50 -05:00
Dan Pasanen
12914fac70 update-binary: Add support for system-as-root devices for the zip
* We'll first check the currently loaded slot. We can
  assume the user just flashed a rom and that the target
  slot for this rom is the other slot, so mount that
  system image. TODO: autodetect this somehow

* Mount this system partition at /system_root (rw) and then
  mount the /system/system folder at /system. We do it
  this way for a couple reasons. Because it makes the
  script easier to work with and because we're using
  toybox from the system partition for operations, which
  is expecting /system/bin/linker64 to exist.

Change-Id: Ia6f96f0864d725b0123665bbbce0e31523bb834f
2018-03-18 08:04:48 -05:00
Paul Keith
78275a22ac Remove provision for sideload
* And make overriding of provision script generated
2018-02-21 13:41:31 +01:00
Paul Keith
f73c84ce47 Allow building inline without Google SuW and Velvet
* And remove Velvet for low-ram devices
2018-02-20 00:52:25 +01:00
Abhisek Devkota
962ce30b7c Revert "gapps: Always remove Google SuW"
This reverts commit 637e034149.
2018-02-15 22:14:10 -08:00
Abhisek Devkota
17c1984627 Revert "gapps: Thoroughly remove SuW"
This reverts commit 5caba031a6.
2018-02-15 22:14:04 -08:00
Paul Keith
5caba031a6 gapps: Thoroughly remove SuW
* So that building inline works
2018-02-12 00:19:56 +01:00
Paul Keith
637e034149 gapps: Always remove Google SuW
* I can't find a version that doesn't crash
2018-02-11 14:01:19 +01:00
Paul Keith
a3ae309eaa Add rudimentary detection for A/B devices
* Bail if A/B device is detected

Change-Id: Id1c205eb96d6e5e9e67183f410467d82ac121540
Signed-off-by: Paul Keith <javelinanddart@bestas.gr>
2017-05-10 14:54:40 -05:00
Paul Keith
2d7e0eb47c update-binary: Fix compat with different unzip tools
* For some bizarre reason, the unzip util included with
  lineage recovery doesn't work with the system/*
  wildcard for unzip, so just extract the entire zip
  and remove the META-INF folder from /tmp manually

Change-Id: Id11e18d7fef0c78b10f7060a10274ea0e958ea84
Signed-off-by: Paul Keith <javelinanddart@bestas.gr>
2017-05-05 22:47:00 -05:00
Paul Keith
2caf62a12b update-binary: Selectively remove Google's SuW
* This is done based on the total memory as reported by /proc/meminfo
* If the memory in the MemTotal field is less than 1572864 kB (1.5 GB),
  then Google's SuW is removed as a precaution, as it is known to crash
  on devices that don't have much memory available to use
* Thanks to cdesai for the solution idea

Change-Id: If0d5b9dff7f9536f78d4069df8665b19209fea52
Signed-off-by: Paul Keith <javelinanddart@bestas.gr>
2017-05-05 15:16:16 -05:00