Commit Graph

1108 Commits

Author SHA1 Message Date
tenzap dbc8240cc7 improve computation of TOP variable
In some cases, if the script was run with sh or bash (instead of ./)
TOP couldn't be set correctly
2022-01-12 20:17:01 +01:00
ip 80977b524a Improve architecture check
Include 'ro.system.product.cpu.abilist', 'ro.vendor.product.cpu.abilist' and 'ro.odm.product.cpu.abilist' in the search.

Set 'device_architecture' using 'ro.product.cpu.abilist' if it matches 'ro.system.product.cpu.abilist'.

If 'device_architecture' was not set, try to set it from another prop value.
 - If exists, use 'ro.system.product.cpu.abilist'
 - If exists, use 'ro.vendor.product.cpu.abilist'
 - If exists, use 'ro.odm.product.cpu.abilist'
 - Fall back to 'ro.product.cpu.abi' if it still exists.
 - Give up and set it to what ever 'ro.product.cpu.abilist' returns.
2021-11-28 10:21:26 +01:00
mfonville 4a3852cb73 Add platform level 12.0 API number 2021-11-01 15:26:51 +01:00
razorloves d1db9bd9e0 Remove the googlepixelconfig package
Each of the files in this package are device specific so they
shouldn't be getting installed to all pixel devices.
2021-10-26 23:50:26 +02:00
Aaron Kling 498037c353 Add atv overlay for api 30+
Installed with the atv play store
2021-09-14 11:19:27 +02:00
razorloves f6cc9175a3 Update pixel device list
This adds the newest pixels. 4a 5g / 5 / 5a
2021-09-06 11:48:23 +02:00
mfonville ea5190935a Update APKtool to 2.6.0 2021-09-05 11:03:49 +02:00
z3DD3r a6e46ef698 Support /system_ext partition
Added in Android 11:
https://source.android.com/devices/bootloader/partitions#changes-in-android-r
2021-08-22 07:21:42 +02:00
mfonville 7660f1bcbc fix double entry setupwraith 2021-08-10 20:59:11 +02:00
mfonville 10c1e07f67 drop gms minimal level 27, as it does not exist anymore 2021-08-01 20:17:59 +02:00
Ilya Danilkin 61c108863e Fix gearheadstub by moving it to priv-app 2021-07-28 20:00:17 +02:00
Ilya Danilkin 1262e74b07 Add the gearheadstub to A11 as well 2021-07-12 23:04:25 +02:00
Ilya Danilkin 7b503f331e Move gearheadstub to pico 2021-07-12 23:04:25 +02:00
Ilya Danilkin e29daeb19e Rename 'androidautostub' to 'gearheadstub'
This is a hack to avoid script collisions without serious logic rewrite
2021-07-11 23:27:51 +02:00
Ilya Danilkin 25a88bf8ed Add AndroidAutoPrebuiltStub to nano+
This will allow user to install Android Auto
which should work properly
since now it requires to be a system app
2021-07-11 23:27:51 +02:00
Ilya Danilkin 12b7986b3c add the Play Store overlay for R 2021-07-11 23:27:51 +02:00
Ilya Danilkin b7659c2385 Fix YTMusic condition, add QuickAccessWallet for R 2021-07-11 23:27:51 +02:00
Ilya Danilkin d3b737c7e9 Add YouTube Music, replace Play Music for SDK21+ 2021-07-11 23:27:51 +02:00
Ilya Danilkin 3901263dc6 Fix removal again
Signed-off-by: Ilya Danilkin <nezorflame@gmail.com>
2021-07-11 23:27:51 +02:00
Ilya Danilkin 227c33a6c7 Add system_ext to the list of folders for removal
Signed-off-by: Ilya Danilkin <nezorflame@gmail.com>
2021-07-11 23:27:51 +02:00
Ilya Danilkin 18624b09b3 Initial changes
Signed-off-by: Ilya Danilkin <nezorflame@gmail.com>
2021-07-11 23:27:51 +02:00
mfonville 57594aca0d Simplify page alignement check to just check if there is a -p parameter 2021-07-09 09:57:11 +02:00
mfonville 9cd7c6e8a9 Zipalign documentation has changed again 2021-07-09 09:27:49 +02:00
Nicholas Buse f2d67894de CloudPrint is dead. Fixes #918 2021-04-26 10:48:39 -05:00
osm0sis 0f004d21fa installer: mounting script updates and function logic fixes
- fix /system/bin/* execution on recoveries using LD_CONFIG_FILE
- add additional BOOTCLASSPATH entry for /apex mounts
- try to preserve a working /etc/fstab on AOSP Q-based recovery and newer
- fix sloppy/unpredictable `cmd && this || that` statements by being a bit more POSIX to avoid any potential issues when stdout/err are redirected
- do apex mounts before /system bind to always ensure a working underlying shell environment
- improve support for mounting dynamic/logical partitions from /dev/block/mapper
- don't rely on props if possible: determine dynamic/logical partitions from /dev/block/mapper presence, and detect slots more robustly using props and cmdline
- clean up all use of test
2021-02-10 10:56:47 +01:00
mfonville d8c2553b81 Update APKtool to 2.5.0 2020-12-05 20:36:22 +01:00
Ilya Danilkin ef7fbefc96 Fix GMS issue for SDK27 and lower
Signed-off-by: Ilya Danilkin <nezorflame@gmail.com>
2020-11-26 22:32:59 +01:00
Aaron Kling 28115bef9a Remove tvmusic from tvstock
The Play Music service has been shuttered, so remove the package.
2020-11-26 22:30:36 +01:00
Aaron Kling 380b829523 Add castreceiver back to tvstock
This was removed from tvmini, but not added back to tvstock,
resulting in no tv packages building with cast support.
2020-11-26 22:30:36 +01:00
Nicholas Buse 353aeaa72e Fixing newly added ATV LauncherX 2020-10-05 09:41:29 -05:00
Nicholas Buse 8833bc3bfe Adding new ATV LauncherX 2020-10-05 09:38:57 -05:00
Aaron Kling d635de245c Remove Google Webview from tvstock
It is causing issues on Q+ whereas the aosp webview works as
expected.
2020-09-28 13:13:24 +02:00
razorloves e28e12fdf9 Update device names list for googlepixel_compat 2020-09-22 16:14:26 +02:00
merothh ebd7a640e1 installer/addon: Check A/B partitioning with ro.build.ab_update instead
* As osm0sis suggested (https://github.com/opengapps/opengapps/pull/879#issuecomment-687478305)
  some weird A only devices, seem to report slot as _a.

* So check with ro.build.ab_update instead (as its defined for every A/B device)

* $system_as_root in the installer.sh is unused elsewhere, so drop that too.

Reference:
 - https://source.android.com/devices/tech/ota/ab/ab_implement#build-variables
 - https://android.googlesource.com/platform/build/+/532fdf4479acb50cdb480e6fdfe24f0698fcd67b%5E%21/
 - https://android.googlesource.com/platform/build/+/refs/tags/android-7.1.0_r1/tools/buildinfo.sh#26
 - https://android.googlesource.com/platform/build/+/refs/tags/android-10.0.0_r41/tools/buildinfo.sh#28
2020-09-22 16:14:03 +02:00
razorloves 000222c697 Add launcherhack to fix pixellauncher overlay issue
The pixel launcher overlay apk gives exclusive special permissions to
the pixel launcher app for the Recents UI. This causes aosp/stock
launchers to crash. The pixel launcher overlay is only installed
in api28 and newer, so this change adds launcher to the removal list
in api28+ to fix this problem.
2020-09-13 11:28:53 +02:00
Nolen Johnson ff04e0c2af tvmini: Remove CastReciever
* This makes OpenGApps tvmini fit on the smallest most relevant build target - fugu (Nexus Player) - our certs have been revoked anyway, so no protected content, and therefore installing it from the Play Store is fine.
2020-09-10 21:46:45 +02:00
merothh 6ed0ee694b addon: handle mounting of {product,vendor} on A only devices
* On devices with a separate product partition, addon scripts were
  not able to remove AOSP counterpart apps among possibly other
  similar issues as well

* So fix it by mounting product before we get started

* While we're at it, mount vendor too since its mounted in the
  main installer script

* Thanks to @NikhilMenghani for his input
2020-09-05 10:35:25 +02:00
Ilya Danilkin f253671156 Fix Velvet for ARM64 by picking the SDK29-specific version
Signed-off-by: Ilya Danilkin <nezorflame@gmail.com>
2020-08-22 21:31:35 +02:00
mfonville 2cb4923ab0 Fix #827 also detect Debian/Ubuntu Android SDK aapt correctly 2020-08-22 00:25:31 +02:00
osm0sis 646c87fccc installer: simplify ch_con* usage 2020-08-17 22:44:23 +02:00
merothh 55d4ff711b installer: mount /product for non dynamic devices as well
* As we dont mount /product for devices that are not dynamic
  and have a separate partition, on such devices AOSP counterpart
  apps in /product end up not being removed, among possibly other
  similar issues as well.

* So mount it.

  Thanks to @nikhilmenghani for the tip
2020-08-17 22:06:11 +02:00
Ilya Danilkin 3cf71bab7d Remove Chrome and Webview for SDK29 for non-ARM64 archs for now
Signed-off-by: Ilya Danilkin <nezorflame@gmail.com>
2020-08-17 09:09:09 +02:00
razorloves 6b041bf78d installer: Fix ch_con function calls
The ch_con function was renamed to ch_con_system in a previous commit
but all calls were not renamed, so this change fixes that.
Addresses following errors during zip install:
/tmp/installer.sh: line 1454: ch_con: not found
/tmp/installer.sh: line 2958: ch_con: not found
/tmp/installer.sh: line 2961: ch_con: not found
2020-08-16 15:49:33 +02:00
osm0sis 837aa9904d addon.d: also chmod parent directories and fix context on overlays 2020-08-16 15:49:17 +02:00
osm0sis c2a93cfe5e installer: fix MarkupGoogle libs and User Removals with addon.d-v2 2020-08-16 15:49:17 +02:00
Tim Strazzere 6fe042fb12 Remove unused and non-working preodex code paths.
Per discussion in issue #855 and PR #856 - removing
the preodex code paths as they do no function as expected
and will actually cause issues on newer devices.
2020-08-04 22:12:02 +02:00
Tim Strazzere 5c31f65b60 Fix installer template to respect preodex config. 2020-08-04 22:12:02 +02:00
Richard Hansen c12e9171a0 Improve discovery of the $TOP directory
Rather than assume that `$PWD` is also `$TOP`, discover `$TOP` by
`cd`ing to the directory containing the script. This assumes that the
script is not executed via symlink, or, if it is, that the symlink is
in the same directory as the script itself.

Also eliminate the remaining uses of `realpath`.
2020-07-27 09:37:47 +02:00
Ilya Danilkin 6c209510c9 Repack and zipalign APKs only with compressed libs and v1 sig
Signed-off-by: Ilya Danilkin <nezorflame@gmail.com>
2020-07-14 14:36:29 +02:00
Ilya Danilkin 6fffe1b34d Fix comments
Signed-off-by: Ilya Danilkin <nezorflame@gmail.com>
2020-07-14 14:36:29 +02:00