Commit Graph

3496 Commits

Author SHA1 Message Date
shagbag913
e754d88c2a aosp_audio: copy our own old AOSP alarm variants
* "Old" appended to metadata title to prevent duplicate alarm sound
   names in picker

Change-Id: I695a3760b8ae13c5cf959104dfb8b2336c6b0125
2020-03-12 19:22:26 +01:00
Han Wang
ae82c34dd5 extract_utils: Fix up 4a2b65fb60
Change-Id: I9e5ea799812ca932de95ec6cbdedb604cbde5736
2020-03-10 09:41:34 +02:00
XiNGRZ
4a2b65fb60 extract_utils: Fix bad substitution for zsh
Change-Id: I5f4fabc62b1ac3da159b36c3ae6080e145948530
2020-03-10 07:49:55 +01:00
Arne Coucheron
c83b8dae35 Build Email
AOSP removed building it in r31.

Change-Id: I32a459b7bae52cea56a7e08e2c2cacbb8fbf8506
2020-03-09 00:08:32 +01:00
Alessandro Astone
cdf9ae8532 lineage: modernize functions
[installrecovery]
 * Don't try to mount system

[installboot]
 * Kill kernel module pushing
 * Now we don't need to mount system anymore ^.^

[eat]
 * No need to use /cache/recovery/command when we have
   adb reboot sideload-auto-reboot
 * Make use of our custom adb wait-for-online

[_adb_connected]
 * Could be removed entirely, but for now make it use
   adb wait-for-online

Change-Id: Ife25e63c63c784670c7d330f8a69de01326de1a0
2020-03-05 12:18:40 +01:00
Nolen Johnson
1474aeb3c3 lineage: configs: Flatten APEX(s) on official builds
* APEX is useless to average Lineage user, as we aren't
  licensed to ship the GMS APEX's, nor would we want to,
  as we want to keep compatibility with non-GMS use-cases.

* Additionally, APEX's should each be signed with their
  own unique key, and number of them can vary per-device,
  which makes signing them in a standard way on infrastructure
  quite complex.

* Though this flag is default, we need to disable it
  explicitly to make sure any maintainers who set up the
  configurations for APEX images won't change needs of
  infrastructure. This will allow people who want to build
  locally to use full APEX(s).

Change-Id: I7f2eb52593eeca1b3761a7a163ce9079995870c6
2020-03-05 07:45:48 +01:00
z3DD3r
284ec83fee backuptool: Fix backup/restore functionality
Backup/restore functionality was broken in the
Ia1f4ae95c9e4dae4df844853e81c264bc838f177 change
because of incorrect check of the function's result.

check_prereq() function refactored to return 0 if
backuping/restoration is possible. Any work should be
performed only if check_prereq() succeeds.

Change-Id: Ic977dba675df58a228ef4b882b25beb66cc9d2c6
2020-03-04 20:32:58 +03:00
z3DD3r
fa8a442ba2 backuptool: Properly unmount system partition
For non AB devices system partition should be unmounted
if check_prereq function fails.

This patch also refactors backuptool a bit for AB devices
in order to look same as backuptool for non AB devices.

Change-Id: Ia1f4ae95c9e4dae4df844853e81c264bc838f177
2020-03-04 12:42:10 +03:00
Wang Han
e43d699cfe backuptool: Remove backup blacklist/whitelist
Change-Id: Ia89e6fa4c31377a429e0dfa912d0b61393696009
2020-03-03 16:12:08 +01:00
Andreas Schneider
b532825214 dtbo: Sort the files we found
Change-Id: Iece383362d00d600c5861914b9f2600020229d80
2020-02-27 16:13:50 +01:00
Tom Powell
f8adf067fd roomservice: support new manifest formats.
.repo/manifest.xml is no longer a symlink becuase apparently windows
developers need to use repo and windows needs admin for symlinks.

https: //gerrit.googlesource.com/git-repo/+/a269b1cb9dc21dfd598bfea3766206b606ad4589
Change-Id: I88ea0295133959136d7214f13a76b66d89dc88d4
2020-02-25 20:48:12 -08:00
Kshitij Gupta
3795628673 tasks: dtbo: Add support for custom dtbo generation rules
Change-Id: I27fdade5eb177a06795fee7cc19066ec161642d9
2020-02-22 07:55:25 +01:00
Marc Bourgoin
835b434363 apn: Update Canadian carriers
*From https://android.googlesource.com/device/google/wahoo/+/android-8.1.0_r29/apns-full-conf.xml
 *Mobilicity removed. Defunct since 2016.
 *Wind -> Freedom Mobile

Change-Id: I3d8501a82441adbb9cdc385c990bef997dba6f97
2020-02-21 02:44:48 +02:00
Bruno Martins
8560cdd635 config: Add Trebuchet to PRODUCT_DEXPREOPT_SPEED_APPS
Change-Id: I437cc1af399c82e38128d9a183d49bc86c891915
2020-02-14 18:21:14 +01:00
razorloves
7c9c674bc1 config: Dexpreopt speed compile SystemUI instead of SystemUIGoogle
Change-Id: I3331f8e65898f8696953b2602b9ad963f7e4313d
2020-02-14 18:21:14 +01:00
Wei Wang
058e5fd23b config: Add SysUI to PRODUCT_DEXPREOPT_SPEED_APPS
Test: Build
Change-Id: I088938462b389e1ebe783997f773dc5946345666
2020-02-14 18:21:14 +01:00
Davide Garberi
18745cffe8 prebuilt: backuptool: Drop addond version check on A-only
* This check was supposed to check whether the script
   addon.d version was lower than backuptool's

 * Given that the backuptool addon.d version is 1, this
   isn't going to happen ever making this check completely
   unuseful

Change-Id: I2464749b52bf4e8825e0b4ef42500ee7d3bbfa61
2020-02-09 11:33:21 +01:00
Davide Garberi
497a6aef36 backuptool: Execute check_blacklist from the current directory
* For some odd reasons executing `cd /system/addon.d` makes the system
   hang and unmount error:
     umount: /system_root: Device or resource busy
 * Don't change directory to not allow the system partition hang

Change-Id: I3d30bdc59c2f05d16823e99046c1dce2e1e6eb73
2020-02-03 14:47:59 +01:00
Davide Garberi
6b83f943ad backuptool: Run check_{black, white}list with proper system path
* If any of these two function gets run on a recovery mounting system
   to /system, /system/addon.d won't exist while /system/system/addon.d will.
 * Run the functions with $S as argument to make this work correctly

Change-Id: I02e7b91429a9e74d28bdb77e56955dad97ca75ac
2020-02-03 14:47:59 +01:00
Davide Garberi
23d677b5de backuptool: Fix addon.d version check for A-only
* The path /postinstall exists only for A/B, causing:
   grep: /postinstall/tmp/addon.d/*sh: No such file or directory

Change-Id: Ia07b3029e949c3e08302457cd08798a4dde00ef6
2020-02-03 14:47:59 +01:00
LuK1337
4827e3ba36 default-permissions: Don't grant custom permission by default
* We can survive without granting this permission
  out of box, also fixes Exchange-less boot up
  exception.

D AndroidRuntime: Shutting down VM
E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: main
E AndroidRuntime: java.lang.IllegalArgumentException: Unknown permission: com.android.email.permission.READ_ATTACHMENT
E AndroidRuntime: 	at com.android.server.pm.permission.PermissionManagerService.grantRuntimePermission(PermissionManagerService.java:2103)
E AndroidRuntime: 	at com.android.server.pm.permission.PermissionManagerService.access$900(PermissionManagerService.java:121)
E AndroidRuntime: 	at com.android.server.pm.permission.PermissionManagerService$PermissionManagerServiceInternalImpl.grantRuntimePermission(PermissionManagerService.java:3032)
E AndroidRuntime: 	at com.android.server.pm.PackageManagerService.grantRuntimePermission(PackageManagerService.java:5800)
E AndroidRuntime: 	at android.app.ApplicationPackageManager.grantRuntimePermission(ApplicationPackageManager.java:684)
E AndroidRuntime: 	at com.android.server.pm.permission.DefaultPermissionGrantPolicy.grantRuntimePermissions(DefaultPermissionGrantPolicy.java:1217)
E AndroidRuntime: 	at com.android.server.pm.permission.DefaultPermissionGrantPolicy.grantDefaultPermissionExceptions(DefaultPermissionGrantPolicy.java:1381)
E AndroidRuntime: 	at com.android.server.pm.permission.DefaultPermissionGrantPolicy.grantDefaultPermissions(DefaultPermissionGrantPolicy.java:297)
E AndroidRuntime: 	at com.android.server.pm.PackageManagerService.systemReady(PackageManagerService.java:21731)
E AndroidRuntime: 	at com.android.server.SystemServer.startOtherServices(SystemServer.java:2037)
E AndroidRuntime: 	at com.android.server.SystemServer.run(SystemServer.java:529)
E AndroidRuntime: 	at com.android.server.SystemServer.main(SystemServer.java:356)
E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:908)

Change-Id: If2caad2b004820b10b7095a4bb4307d0f065c723
2020-02-02 23:31:04 +01:00
Arne Coucheron
95b8fa97ba default-permissions: Grant default permissions to com.android.exchange
Change-Id: I9dfcecde0e662b9e481696b661e16ac7e131a75c
2020-01-27 19:49:27 +01:00
Davide Garberi
e40c31887d prebuilt: backuptool: Implement dynamic system mount for A-only
* Dynamically mount system to the path chosen by the recovery through backuptool
* This can be helpful because of the fragmentation that will happen with system mount in recovery after Q

Change-Id: I2d1e775efcf87e33319bc7790d1e54bca72116d3
2020-01-10 19:15:42 +01:00
Luca Stefani
ed9b10f172 Remove apicheck.mk
* It's currently broken
* Should be converted to soong/metalava

Change-Id: I45f91d20cf797f89e5b1e4730cdafde44128e9a4
2020-01-10 17:13:41 +01:00
dianlujitao
33ee59662f extract_utils: Drop string after semicolon when parsing destination
This fixes parsing when arguments contain colons, a typical usecase
would be:
-vendor/app/TimeService/TimeService.apk;:timeservice_app_cert

Change-Id: I7500ae09632632ddc10734d9b1df267e28286b67
2020-01-10 15:19:47 +01:00
Anirudh Gupta
9809469844 overlay: Define default Wellbeing Package
Change-Id: I7fcd851b5c89e9deda2979b206ff784f8b56b346
2020-01-09 15:43:41 +01:00
Nolen Johnson
f50d9bc3fa lineage: Deprecate AddonSU
* We are no longer providing our own root access solution
  as of 17.0, as PermissionHub has largely replaced the
  functionallity of Privacy Guard, which this feature
  was housed in.

* We do still have a baked in ADB root solution that can
  be enabled in developer settings (see topic:ten-adbroot
  on Gerrit).

* This DOES NOT mean we will be providing support for other
  root solutions.

Change-Id: Iecf92e3c8f91304ed998e0260d09a8048dc44d82
2020-01-03 16:17:22 +01:00
Bruno Martins
8f3d941706 addond: Remove versioning
It doesn't make sense to keep updating this file on
every new version.

Change-Id: I865764eda559407d29364d686603b4ad80a6b445
2020-01-03 15:55:43 +02:00
Michael Bestas
42020e23f5 Lineage 17.1
Change-Id: Iaf3b75e49677b616a19431da8087c338ee7eb8da
2020-01-03 02:03:00 +02:00
Roman Birg
d51094ce3b vendor: make dopush recognize files on more partitions
Change-Id: Ied1a243730df1d683fd237f8ea7bd9b1742db105
Signed-off-by: Roman Birg <romanbirg@gmail.com>
2019-12-19 20:45:26 +01:00
Sam Mortimer
c386595e0c vendor/lineage: Fix dopush
* $OUT is now absolute so strip $ANDROID_BUILD_TOP before
  looking for targets to adb push.

Change-Id: If00e58a98484b7b6b2ee6e4ecd00fc3031e1f47b
2019-12-19 20:41:18 +01:00
Volodymyr Zhdanov
27180809c5 build: set build fingerprint for all devices
* there's no per device way to add props to /system/build.prop
* adding it here is the only way so far

Change-Id: Iafc286d9e479677540a4ec617db76715c018ae8e
2019-12-18 20:49:06 +01:00
Michael Bestas
8c49ba97f1 soong: Add AUDIO_FEATURE_ENABLED_EXTENDED_COMPRESS_FORMAT
Change-Id: Iac6366d714ab3634def648e6a8c0c30d684a9383
2019-12-09 23:58:27 +01:00
Han Wang
95c4105280 config: Remove unnecessary persist.sys.dun.override
Change-Id: I2f82e283a66992fe9e108d399eb7e9d135b54387
2019-12-08 16:08:59 +01:00
Tim Schumacher
cc6f30cf6b Allow building emulator as an sdk-addon
This can be imported into Android Studio more easily, eventually even
as a repository of LineageOS emulator images.

(Build with `m sdk_addon`, it will end up in out/host/linux-x86/sdk_addon)

Change-Id: Ia78524dd729b0f2ccc96f5a6eb2503cdc8b4d253
2019-12-06 23:51:10 +01:00
Han Wang
ee283b0857 prebuilt: Remove lineage-governor.rc
* This seems to be a leftover of CM days.

Change-Id: Iff75e120e4a71e64fa45ab3734ab63151ce21cb1
2019-12-01 12:59:18 +01:00
Han Wang
2838e8ae3b config: Mark more gralloc bits as valid
* Mimic the behavior of https://source.codeaurora.org/quic/la/platform/frameworks/native/commit/?h=LA.UM.8.6.r1-01900-89xx.0&id=002db77e0d84893d498f5a9544ec7941158c71e8.

Change-Id: Id87564acde3d05f10a266c580f6931d444c91b9e
2019-12-01 12:59:12 +01:00
Martincz Gao
dd3a0f56d3 overlay: Use ntp.ntsc.ac.cn NTP server for Chinese users
Old one no longer works.

Change-Id: If04d87ded94ceb08c7265569503bd51e7c06c542
2019-11-26 05:13:56 +01:00
Jan Altensen
561f974b1e soong_config: add TARGET_NEEDS_NETD_DIRECT_CONNECT_RULE
Change-Id: I96dd2f7dd629a06de288332e1d00be827029e89c
2019-11-24 19:02:48 -05:00
razorloves
0fd9727468 overlay: Update webview providers
Starting with Q, Chrome is no longer a webview provider.
The role was switched over to google's webview app.

Change-Id: I59251578820a9af0b8ad8e51eb429156e7b7a3eb
2019-11-25 00:49:11 +01:00
Danny Baumann
e5df0f0c7e Add Settings overlay for theme picker.
Makes theme picker appear under display settings.

Change-Id: Ibd02eacf1c199979123e54054715b72d91af3851
2019-11-22 17:18:47 +01:00
Bruno Martins
a8f45e9914 Revert "lineage: add BUILD_RRO_SYSTEM_PACKAGE target"
AOSP pushes RROs to system by default now,
therefore our custom target is not needed anymore.

This reverts commit 546c9a1ec5.

Change-Id: I46753a3b60a89f0198058fbc6d07d3db8a6699b5
2019-11-22 17:18:47 +01:00
Bruno Martins
315e2450f3 Revert "vendor: add style api"
Styles API was nuked from the SDK.

This reverts commit 6cf7640e96.

Change-Id: I99405c493b57045c5c7c6331ab64fad49d160840
2019-11-22 17:18:47 +01:00
Demon000
9a30c84e7b ThemePicker: Do not override default values
No need to change them.

Change-Id: I3040ebb6316db7498e5170531d8df904f54e5233
2019-11-22 17:18:47 +01:00
Bruno Martins
ff7657bc0b Revert "privapp-permissions: Whitelist CHANGE_OVERLAY_PACKAGES permission"
Permission no longer required because Styles handling was
removed from LineageParts. ThemePicker is our best friend now.

This reverts commit a7b0cf7ec3.

Change-Id: I003cd2281de9f7edbd81a15e0c1b1258e537ccb3
2019-11-22 17:18:47 +01:00
Demon000
493bcc95f4 ThemePicker: show our apps in icon previews
Change-Id: Iea298d08621bbf10e06a560bf144095e84765774
2019-11-22 17:18:47 +01:00
Luca Stefani
31264cddfe Build Lineage Themes stub package
Change-Id: Ia481611d50a805235d132deeb8cee434d5743752
2019-11-22 17:18:47 +01:00
Luca Stefani
c34e5f5a2e Add overlay to specify our custom theme provider
Change-Id: Ie24eda594f9aee3cb0aae8162bbef53aa65b7354
2019-11-22 17:18:47 +01:00
Luca Stefani
406b4dc897 Build ThemePicker
Change-Id: I6c2acaa6b33ad8937e481d2e9675a5b1eecd23cc
2019-11-22 17:18:47 +01:00
Simon Shields
d5e35c9dda repopick: fix --check-picked on Python 3
This is very subtly broken: we look for the string 'Change-Id:'
in an array of byte strings. Fix this by decoding the git output
to utf-8 strings.

Change-Id: I708ad0adacb61c89bfba0fd88eeb2e37648317af
2019-11-22 16:48:05 +01:00