Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Security Patches :D #7

Open
wants to merge 127 commits into
base: eleven
Choose a base branch
from
Open

Conversation

Meghthedev
Copy link

No description provided.

PIPIPIG233666 and others added 30 commits December 26, 2020 19:16
To opt-in for QTI BT addons, enable TARGET_USE_QTI_BT_STACK in BoardConfig.mk

Reference: [https://github.com/LineageOS/android_vendor_qcom_opensource_bluetooth-commonsys-intf/blob/lineage-18.0/bt-system-opensource-product.mk]

Change-Id: I6bf3e1dda6fe5dc66f6fafdb32a1daecb9616c84
* This fixes VoLTE on the Pixel 4 series, Moto Z2 Force, and
  numerous others - this seems globally required at this point.

* Reference:
  https://www.t-mobile.com/support/devices/android/google-pixel-4/network-apn-and-volte-google-pixel-4

Change-Id: Icd89fbe07f084eb57e74e7ac380c6cffea29c953
The mk files in vendor/qcom/opensource/dataservices were
converted to bp, so this is needed to avoid duplicate module
build errors on devices that use a different dataservices lib.

Change-Id: Ic5c1ad77342c045253cfd093c76706862ed6fd0e
Change-Id: Iaa99a7d89bb516a788180c3be24fa514c6a7b907
Change-Id: I13489b54298ebc2410c38ca9e16aa7121a28f997
Change-Id: Ib5e3dc3741c6784cb47bd0f66150df8a499aaf92
 * Test: Press the 'Messaging' button from 'Contacts'
 * Detailed in frameworks/base/data/sounds/README.txt

Change-Id: Ia83852f5d92279e9c3ba83f81b2fed3a9a70e0e9
Change-Id: I7224c10295c4123222d81b92f7829502e3cc2d61
Pixels tree have moved AB_OTA_PARTITIONS to BoardConfig.mk,
which is unavailable when parsing config/common.mk
In order to still copy AB backuptool scripts for them, check for
AB_OTA_POSTINSTALL_CONFIG too which still lives in device.mk

Change-Id: I871e2595bc4f083db6491de0d9574bae2794e654
 * It was removed in 2019, but somehow commit 8926990
   brought it back again.

Change-Id: I973c03f7eed87c46973b42fd7bda04ed1ad27935
Change-Id: I1faf83e21af5db1b29b98af72a4f74666c05f775
FscryptSetDirectoryPolicy no longer tries to infer the action from the
filename. Well mostly; it still assumes top-level directories in /data
should be encrypted unless the mkdir arguments say otherwise, but
it warns.

Bug: 26641735
Test: boot, check log messages
Change-Id: Id6d2cea7fb856f17323897d85cf6190c981b443c
Signed-off-by: TheMalachite <[email protected]>
Change-Id: Ia9f602a1d6f109554c6462eaa02214c43b9295dd
This adds visual voicemail configs extracted from Google Dialer version
58.0.346367036-pixel2020 (6702549) to make VVM work with AOSP Dialer on
most carriers.

Change-Id: Idfe79a8d624028427f597351631b66cb68550783
Change-Id: I96c6f690d49e5c7c67caff9da357dfad2f79999e
Change-Id: I668e0f24486197d762981bef4c9f2437c4fa9c14
For scripts declaring ADDOND_VERSION=3 automatically mount
vendor, product, system_ext and others (when they're dedicated partitions).

Also expose the get_output_path() function to get the path to where
a file is mounted in case it lives in a dedicated partition.

ab exapmles:
get_output_path "system/product/priv-app/MyApp.apk"  = "/postinstall/product/priv-app/MyApk.apk"
get_output_path "system/app/MySystemApp.apk"         = "/postinstall/system/app/MySystemApp.apk"

a-only examples:
get_output_path "/mnt/system/system/product/priv-app/MyApp.apk" = "/mnt/system/system/product/priv-app/MyApp.apk"

******************************************************************
Instead of cycling all scripts for each stage, run
pre-backup -> backup -> post-backup in quick succession
(and likewise for restore), to ensure backwards compatibility
with scripts that wrongly assumed their environment not to
change between steps.
This is needed because we want to undo any mounting done for V3
scripts when executing V2 scripts. If a V2 script did mounting in
pre-restore and expected things to still be mounted in restore,
we would break their (yes incorrect) assumption.

Change-Id: I73fbad6f45824fed99e4482128769435348588f5
Mini documentation:
List the names of boot modules in BOOT_KERNEL_MODULES to add them
to vendor_boot.

All modules still end up in their primary location (normally
vendor/lib/modules). Boot modules will be kept here as duplicates.

The list of boot modules is then depmod'ed and copied to the
vendor ramdisk.

The file modules.load is created from
BOARD_$(IMAGE)_KERNEL_MODULES_LOAD as the ordered list of modules
to be loaded form that location, either parsed by a modprobe script
or by init itself (only boot modules)
When using vendor_boot modules, vendor/lib/modules/modules.load
should list all modules but boot modules.

Also don't clear the output directory, because one might want to
push a modules.blocklist there.

Change-Id: I89a4aad42a6585a572812f1d7e89f5d78931e1e6
* The plan was to support odm & oem too, but it turned out
  unnecessarily complicated due to their symlink setup,
  while being most likely unused.
  The partitions were removed from the list of supported ones
  in a-only backuptool, but were forgotten in ab backuptool.

Change-Id: I58a01cdc3f5c4239048b204f3313f4bf697dd60a
Change-Id: I2c67fe632d415353273839493a86cdd75bd93b23
* This is needed for VNDK27, and other older,
  hackier Treble implementations.

* We can't include `legacy_gsi_release.mk` as it's included
  in the `aosp_${ARCH}_ab` targets themselves, unlike the standard
  `aosp_${ARCH}` targets which guard `gsi_release.mk`'s inclusion
   with `aosp_${ARCH}` product guards.

Change-Id: I16c5983c18110b24eef84e382e0ae6852efb03c3
* This resolves some build warnings on these targets, as it's
  being declared elsewhere.

Change-Id: If142b7435d8f4b81f8477516545bb54462518487
* Makes defaults available to other places than just bootanimation

Change-Id: I6865bdd08e7f3d9370ce8578691f52204d57fde7
* Renamed Macedonia to North Macedonia.
* Renamed GB to United Kingdom.

Change-Id: Ibe0968b3679834f86854a86a1104cbde4c1fffaa
* Also: add a lot of additional info for many of the numbers based on
  the comments from the commit prior to this

Change-Id: I937637c8f002d193ed6b23ac60c1f350d7d2eec7
Change-Id: I083bd5834f5dd69bdbb5955e9f0e1f8dba760fe5
Change-Id: I6f974a40b4f3f4a0a1f3a4b46bf8e0cfeb81c4ec
There are addon.d scripts that rely on the value of ADDOND_VERSION
to determine if they're being called from a-only vs a/b backuptool.

If they declare ADDOND_VERSION=3, they shall stop doing that;
otherwise offer them the same environment, that is unset ADDOND_VERSION
for a-only backuptool.

Change-Id: I1be21eda2e6ec9837b3080bb5e7fbe5241318eaa
Change-Id: I699fc9b247b84520d21c0619014cb93436425e21
BadDaemon and others added 22 commits December 7, 2021 18:02
* Since it's unclear what the numbers are, make it easier to add a new
  apn by specifying the possible values in a comment at the top
* Also add missing copyright (verified, first LineageOS commit was
  indeed 2016)

Change-Id: Icaf292fd79a903bcf9ef5a3813f6288cffc468ad
GMS now uses OtaSuggestionSummaryProvider to push update notifications,
both in the status bar and as a dialog pop-up. Disable it.

Change-Id: I51c039a1dbbb781e5ffabdd313d062feda308b89
(This is consistent with Google's APNs config.)
These changes have been thoroughly tested on the Telus mobile network.

More Info...
Telus (from Western Canada) doesn't yet fully support IPV6.  As a
result, Telus customers trying to run LineageOS won't have mobile data.
Telus users (including myself) have been running into this
problem for years.  For example...
https://www.reddit.com/r/LineageOS/comments/hyg5hw/change_apn_settings/

Change-Id: I5085c9463e26da7101106525550f1efef2474c5b
Change-Id: I4c27c4089c548eca528c70d13bb7cb8d87373b54
 * This makes setting child account work.

Change-Id: I9ae352c604426db75c078d7a5b82324be780b846
* In order to automatically restart the system when pushing SystemUI, the
  path must actually be correct
* Since android 10 it's in system/*product*/priv-app and 11 will move
  it again, so just match it anywhere
* Make framework also location independent

Change-Id: I4a9eb1edbbb21ab8abe17815c606921f7a538b7f
Change-Id: Ia76d14e10571dd6f3ac9f4adf288effae851ffe3
Change-Id: I898eb50fadb6bde5beebf46f443c5de7e6acc907
Change-Id: I1466b76fc4a4f32dc5bde944c6bf7fa937e990f0
msm8953 has updated HAL projects. Make use of them.

This can be made use of by setting `TARGET_ENFORCE_QSSI`
to true.

Change-Id: Ib7ababd52470913c915f1da3d6b726eff2f38410
Intended to be conditionally included in tegra device trees

This will be used to indicate which tegra specific modifications
are available. Firstly is the baseline framework modifications
for nvcpl and profiles

Change-Id: Ibae95de3ee47a4a1cefbcd4035ef48dbc246d266
Change-Id: Icc79f1f349de2bc4b213dd241ea59d69ca13a39b
Change-Id: Ie3ac018c0ff915832bdcfc9e47467879b3694c13
Mobile builds on devices with no touch panel are also getting these
settings applied, which is not intended.

Change-Id: I0e0e1635ec21f0fbddcaef311b443b80f2da2b86
minui supports only <= 8-bit PNGs.

On my machine battery_fail was being encoded
using 24-bits and charger was freaking out :(

Change-Id: I2f63548ba102f49485c43268389f1cdd5e50802d
Signed-off-by: Luca Stefani <[email protected]>
(cherry picked from commit 3c1a396)
Extracted file /tmp/install/bin/backuptool.functions
Extracted file /tmp/install/bin/backuptool.sh
Extracted 2 file(s)
about to run program [/tmp/install/bin/backuptool.sh] with 5 args
[libfs_mgr]Unmapped logical partition system
DM_DEV_REMOVE failed for [vendor]: Device or resource busy
Cannot unmap vendor before removing group qti_dynamic_partitions.
script aborted: assert failed: update_dynamic_partitions(package_extract_file(dynamic_partitions_op_list))
assert failed: update_dynamic_partitions(package_extract_file(dynamic_partitions_op_list))error: 25
Updater process ended with ERROR: 1
Failed to mount '/system_root' (No such file or directory)
I:Actual block device: '/dev/block/dm-0', current file system: 'ext4'

We can clearly see that after version 3 script is executed with
its specific functions. It cannot or don't unmount partitions for
successful OTA upgrade. Resulting broken installation, this also
affects ROM inbuilt OTA updater app.

Signed-off-by: TheHitMan7 <[email protected]>
Change-Id: Ic2d4e7809e8abd402c2a49188c73c83ea3b4e8df
- AMC is now One
- https://paste.pics/M2V1D

Change-Id: I34a142c8b472a94b138c0a0f320abacd45e94f30
- Vibo and AURORA are merged to T Star.

- Since the site no very detailed
  https://www.tstartel.com/CWS/phoneResult.php?vId=SAM&pId=66614&sd=&ppId=66614 ,
  I got from Xiaomi stock ROM https://imgur.com/a/Fo1Oj6j .

- Seperate Internet and MMS due to some stock ROM came with seperated APN.

Change-Id: I8138396e58c9a48e2d13ecc2ef8730e9f8eb98db
Change-Id: Idfe6330ff82b9e4c0d11cb0320defa7bf44121f5
Include translations for languages not available in AOSP.

This used to be split to each repository but it required forking AOSP
repositories just to add translations. Including them via overlay
avoids forking and makes the translations more portable, they can even
be used on pure AOSP builds.

Make them built in to avoid RRO issues.

Change-Id: Icc4c7b3a583c3d8a139a4a9a856dfca57952e131
With reference to which looked accurate:
https://android-review.googlesource.com/c/device/sample/+/2096350

Change-Id: I2ebc1ee299d0caff0bdbd99f5a4cc07e19dc6214
Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/4991
Change-Id: I7722ac86d9d3f02f393b2c120341db5a2b648ff5
(cherry picked from commit 7551e9ecddec2ce197b7ae48ac4767a55288f32f)
@techyminati
Copy link
Member

@Meghthedev @alibei please review

Meghthedev and others added 5 commits October 10, 2023 03:53
…igned by @kerichdev * (C) 2022-23 kerichdev & CipherOS

Change-Id: I6e8a5ff3c7e56565e7a3460d142aa181b129eb30
Signed-off-by: techyminati <[email protected]>
* Either as prebuilts, or with separate defconfigs

Change-Id: Iad877a5fbef095e3e5d792aebb240c230a829552
* Make it consistent with the rest of the targets

Signed-off-by: Jarl-Penguin <[email protected]>
Change-Id: I869d3d8570b4deb2f1e019efa975526a528ca3e7
* builders can set flag as false if they want vanilla variant, lets build gapps variant by default.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.