LuK1337
097077406f
sdm845-common: Add tri-state-key_daemon to uhid group
...
Change-Id: I8d1dcd91bd560e0abe9488e2ecfcbf548259807e
2019-09-12 19:11:57 +02:00
LuK1337
56b2b205a4
sdm845-common: Let system read and write to FRP block device
...
* No clue why this is needed but ok.
Change-Id: Ib40ab18e42ced8995f57c9d0a8e1a6decdc7f146
2019-09-12 19:11:57 +02:00
LuK1337
f80a7a0968
sdm845-common: Copy Android P VNDK blobs
...
Change-Id: I4f2f48ca4810247b2b951de27b82da0769f7d1b1
2019-09-12 19:11:57 +02:00
LuK1337
7fdcbe8e69
sdm845-common: Don't build brillo_update_payload
...
* brillo_update_payload is a host package therefore
we don't really need it.
Change-Id: I06bd7ea916d2652100cafe454bb2854d3e835cc9
2019-09-12 19:11:57 +02:00
dianlujitao
5f9c062db0
sdm845-common: Remove custom kernel cross compile prefix
...
Change-Id: Icc58f38fa2f66b833c73902d6733f84b77dcb575
2019-09-12 19:11:57 +02:00
Han Wang
bb58c0049f
sdm845-common: Remove LOCAL_MODULE_TAGS := eng usage
...
Change-Id: I6dfb66adf5dcf5ecd650f192935818ff624de2e8
2019-09-12 19:11:57 +02:00
LuK1337
1832a7aa33
sdm845-common: Move PRODUCT_COMPATIBLE_PROPERTY_OVERRIDE to common.mk
...
Change-Id: I2751014af71f222bd43e4bc17fc75d20499ea2f1
2019-09-12 19:11:57 +02:00
Hridya Valsaraju
29e2cde762
sdm845-common: Build bootctrl.sdm845 using Soong
...
This is required to build the recovery variant of the
same to be used by fastbootd.
Bug: 78793464
Test: make
Change-Id: I16eddcb853bda1a9969810f258884ebdbbfc1f5c
2019-09-12 19:11:57 +02:00
LuK1337
8937c5d867
sdm845-common: gpt-utils: Drop unnecessary include
...
* When using generated_kernel_headers including
asm/byteorder.h will cause a warning due to
unused static functions.
Change-Id: I2a74ec92487c13c4645048c96da8cb92b3cbd9f0
2019-09-10 04:20:20 +02:00
LuK1337
8972d3c504
sdm845-common: gpt-utils: Use generated_kernel_headers
...
Change-Id: Id56f1c0603ff13b5d64eb4db33807ac13dcdd619
2019-09-10 04:20:20 +02:00
Logan Chien
edf9d564c1
sdm845-common: gpt-utils: Replace libsparse.so with libz.so
...
This commit replaces sparse_crc32() with crc32() from libz.so because
libsparse.so won't be vendor available.
Bug: 38303202
Test: android builds
Change-Id: Ib318da74b5d55f729cbd40d9a62da53e6316fe7b
2019-09-10 04:20:20 +02:00
Tao Bao
3d44710fb6
sdm845-common: gpt-utils: Address the warnings
...
[ 11% 2/18] target C++: libgptutils <= device/google/crosshatch/gpt-utils/gpt-utils.cpp
In file included from device/google/crosshatch/gpt-utils/gpt-utils.cpp:54:
system/core/libcutils/include_vndk/cutils/log.h:38:2: warning: "Deprecated: don't include cutils/log.h, use either android/log.h or log/log.h" [-W#warnings]
^
device/google/crosshatch/gpt-utils/gpt-utils.cpp:750:17: warning: unused variable 'ufs_dir_stat' [-Wunused-variable]
struct stat ufs_dir_stat;
^
device/google/crosshatch/gpt-utils/gpt-utils.cpp:973:13: warning: unused variable 'r' [-Wunused-variable]
int r, fd;
^
device/google/crosshatch/gpt-utils/gpt-utils.cpp:973:16: warning: unused variable 'fd' [-Wunused-variable]
int r, fd;
^
4 warnings generated.
Test: lunch blueline-userdebug && m -j libgptutils
Change-Id: Idd9174276d8a5b7b77c2ec48c745a78184f65fcf
2019-09-10 04:20:20 +02:00
Hridya Valsaraju
d83ed40ebd
sdm845-common: Build libgptutils with Android.bp
...
This is required to build bootctrl.sdm845 with Android.bp.
Bug: 78793464
Test: make
Change-Id: Iff4f50ad363cc003d60a5380addd79749b547514
2019-09-10 04:20:20 +02:00
Anton Hansson
04056c3770
sdm845-common: Set cpu "runtime variant" to kryo385
...
This makes bionic and various art tools that compile/runs cpu-specific
code choose the kryo385 variant at runtime. It does not affect
build-time compilation.
Bug: 120773446
Test: bionic benchmarks with and without this change
Change-Id: I670c8acd094090135515688c5f057c2cc08a083f
2019-09-10 04:20:19 +02:00
Anton Hansson
e80a5ff054
sdm845-common: Use generic arch variant
...
Follow blueline which has not demonstrated any regressions
after switching to a generic arch variant.
Bug: 120773446
Test: make
Change-Id: I9e23963fcfa5ccaa912f2930a632458c4d2a692d
2019-09-10 04:20:19 +02:00
Artem Serov
4b52b64823
sdm845-common: Switch cpu variant to kryo 385.
...
Also switch to using armv8-2a for 32-bit build.
Related change:
https://android-review.googlesource.com/c/platform/build/soong/+/831260
Test: Pixel 3 builds.
Bug: 119564566
Change-Id: Iede5830093497abe753a34df3bc4913468be39d0
Merged-In: Iede5830093497abe753a34df3bc4913468be39d0
2019-09-10 04:20:18 +02:00
Christian Oder
a53ec793d1
sdm845-common: Update blobs to 9.0.8
...
* taken from OnePlus6-user-9-PKQ1.180716.001-1908012000-release-keys
Change-Id: I9163cfb6b8073fb41c78a38bc483a777f4a37ab9
2019-08-26 14:30:29 +02:00
LuK1337
b7b20467fa
sdm845-common: sepolicy: Add FOD related rules
...
Change-Id: I8fd985bf4eab1747351f9e717cc33fa6d5ab1517
2019-08-24 10:44:09 +02:00
LuK1337
9061ea5381
sdm845-common: Set TARGET_BOARD_PLATFORM and enable QCOM additions
...
Change-Id: Ife1f6bc16a3cc002789e6d96bfeb87bbf42c901c
2019-08-06 17:29:41 +02:00
Luca Stefani
b81c2b7b33
sdm845-common: Import CAF bluetooth overlay
...
Change-Id: If2f8b03515bc5e3c4ed89ef2b1a1a7128bd50015
2019-07-29 21:21:03 +02:00
LuK1337
5e3dd25224
sdm845-common: Allow wfd to use some privileged permissions
...
* OnePlus has these in privapp-permissions-oem.xml
instead of privapp-permissions-qti.xml for some
reason but I don't want to copy their entire OOS
specific file.
Change-Id: I0b1785e9f83d440936397dd9efe4e503bd4cac7a
2019-07-25 19:05:22 +02:00
Bruno Martins
7cf5c4f256
sdm845-common: Doze: Migrate to androidx
...
Change-Id: Ifaa67283a3437549a2304088a0ce377b399da19f
2019-07-09 23:42:44 +02:00
LuK1337
e903d18b6f
sdm845-common: Enable custom audio policy
...
* AOSP one doesn't let us change volume when
listening to surround audio stream.
* Fixes : https://gitlab.com/LineageOS/issues/android/issues/904
Change-Id: Ic3cb04c6a61f3fb58180ef379a73f709087b64cc
2019-07-06 20:35:57 +02:00
LuK1337
ebc1b49e46
sdm845-common: pocketmode: Switch to android.os.FileUtils
...
Change-Id: I8879e0db3822c34ed173652355e4c29f24d5d644
2019-07-04 02:03:00 +02:00
Ethan Chen
c1aefb6361
sdm845-common: Use Soong namespace to avoid device build conflicts
...
Change-Id: Id04f464102264b6f2e8d49b39389c7e346613b39
2019-06-28 14:40:38 +02:00
Christian Oder
ed04289a98
sdm845-common: Update pinned blobs to enchilada OB21
...
* taken from OnePlus/OnePlus6/OnePlus6:9/PKQ1.180716.001/1906102300
Change-Id: Ieaa8489e45955383f0d9378f51359c8b0ef5d113
2019-06-26 21:01:24 +02:00
Christian Oder
f3af61404d
sdm845-common: Unpin libwfdnative and patch it on the fly
...
Change-Id: Ia55cda25820e93f968999b17124e67415ddcb08e
2019-06-26 21:01:13 +02:00
Christian Oder
66caef52ae
sdm845-common: Update ims blobs from daisy
...
* from xiaomi/daisy/daisy_sprout:9/PKQ1.180917.001/V10.0.9.0.PDLMIXM
Change-Id: Ief02c17d3e71e2bbdaa499c1fd8be18c6d0502aa
2019-06-26 21:01:06 +02:00
LuK1337
a871fa7e4f
sdm845-common: Don't advertise vorbis offloading support
...
* Doesn't work at all.
Change-Id: I8cd6341b240c3820dbbdef497e23e785b6ed99dc
2019-06-24 22:05:56 +02:00
LuK1337
d50c6c07ab
sdm845-common: sepolicy: Transition pocketmode app to its own domain
...
Change-Id: Id87176c2430e49851a6c65ab3490ad59ea1764a2
2019-06-19 19:24:59 +02:00
Pranav Vashi
5fc97900ac
sdm845-common: Enable Wi-Fi MAC randomization
...
Change-Id: Ibcabf871f0e35a6f81905392f749478f96b3c47d
2019-06-19 11:33:05 +02:00
LuK1337
31600d1e52
sdm845-common: Write to otg_switch node in our own init script
...
* Not sure why but /vendor/etc/init/hw/init.oem.rc property
listeners aren't getting triggered thus I'm moving it here
as it's not really worth figuring out.
Change-Id: I5b3d17745fbc086fbd560cfc122dada7b4b98272
2019-06-18 03:25:47 +02:00
LuK1337
031d6ba43a
sdm845-common: Switch to common Trust HAL implementation
...
* OnePlus's OTG switch sysfs doesn't act the same as
'deny_new_usb' node breaking OTG entirely in some
situations.
Change-Id: I4f67d5cec5ded72ee835bfed9d34407eba1612d1
2019-06-18 03:25:14 +02:00
LuK1337
702507f7c0
sdm845-common: Fix restoring default LiveDisplay mode
...
* Call DisplayModes::setDisplayMode(modeID, false) in the constructor
* Move sysfs nodes chown/chmod to from 'on boot' to on init' so that
they have proper perms right away.
Change-Id: I51ee19136688f83703e85b76d5219e5a567bbaa3
2019-06-17 14:23:24 +02:00
LuK1337
f0e0e8184e
sdm845-common: Move LiveDisplay HAL default profile path to /data/misc/display
...
* /data/display does not exist and we are unable to allow
writing to /data/system since it's a neverallow. Instead
we are creating /data/misc/display which coredomain is
allowed to write to.
Change-Id: I1198c61177b75fd2ad460aafab5f2d5010b2ca63
2019-06-17 14:23:00 +02:00
LuK1337
4875e13d6a
sdm845-common: sepolicy: Allow LiveDisplay HAL to write to its sysfs tunables
...
Change-Id: If0a80437547ee9e93312d26fbcdd8cbd901978e8
2019-06-17 14:20:51 +02:00
LuK1337
b687e1a04f
sdm845-common: sepolicy: Drop unnecessary HAL rules
...
* coredomain can write to binder device without granting anything.
Change-Id: Ie657d1e79702b557f00376d31f87d33e104eaf3d
2019-06-17 11:09:51 +02:00
LuK1337
92fc5501e5
sdm845-common: Update ssr restart level prop
...
Change-Id: Icaca77128671f1b0180cc3315f062f3f123f8b04
2019-06-15 15:40:37 +02:00
Luca Stefani
07c44c6547
sdm845-common: Switch to NXP NFC stack
...
Change-Id: I56908d6aa0a938ea89b35a41e3f90768bd8ce0ac
2019-05-17 13:08:21 +02:00
Artem Borisov
659430c672
sdm845-common: Add QCOM's WFD implementation
...
* Sadly, out-of-the-box Miracast support was killed in P, so
we need this to keep Wi-Fi display feature working.
* Additionally libwfdnative has been modified to load
libhidlbase.so instead of android.hidl.base@1.0.so using
following command:
sed -i 's/android.hidl.base@1.0.so/libhidlbase.so\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00/' proprietary/lib64/libwfdnative.so proprietary/lib/libwfdnative.so
Change-Id: Id680d918b64c0e3733251db45992ec477b6fbdfb
2019-05-08 15:11:00 +02:00
Vladimir Oltean
164090d2d3
sdm845-common: Sync extractors with templates
...
* This introduces fixup scripts and kang mode and fixes
passing of arguments longer than one word,
such as --section "Hello world".
Change-Id: I42dde659e9bea4f7e1c9a7a3fa8da3243774ca4e
2019-05-08 13:51:04 +02:00
LuK1337
e3b8016ded
sdm845-common: Use ims.apk from daisy
...
Change-Id: I8aa15c2d7a43502376bd425d5b508190497cf0b9
2019-04-10 15:43:55 +02:00
LuK1337
b7d970b745
sdm845-common: sepolicy: Label OTG toggle property as public_vendor_default_prop
...
Change-Id: I435fca6127c01f9fe039b07adc3b3cb5a579b852
2019-03-20 20:24:33 +01:00
LuK1337
8936a7fda0
sdm845-common: sepolicy: Copy over public_vendor_default_prop rules from qcom sepolicy
...
* This addresses many denials introduced by enabling
vendor and system property isolation.
Change-Id: I24e04fc24be32698c7fdae4b28e90e9c20161a77
2019-03-03 22:17:12 +01:00
LuK1337
26cf3e0528
sdm845-common: sepolicy: Let vendor_init set vendor.camera.aux.packagelist
...
Change-Id: Iddfe1b10ae0bb1545db6bf6143d1a805d4025388
2019-03-03 22:16:48 +01:00
Rashed Abdel-Tawab
6e7e88837f
sdm845-common: Enable vendor and system property isolation
...
Change-Id: Ic73cd73c13220b804ec1c0a5fd1bd68470cf9db1
2019-02-11 18:49:44 +01:00
LuK1337
95e71a6898
sdm845-common: sepolicy: Label dsi-display@21 nodes
...
* These are used on fajita.
Change-Id: Id10c93947468df24a0d57beea47a56aa02ed9d93
2019-02-06 16:49:00 +01:00
LuK1337
fc031a1636
sdm845-common: Add debug IMS props to workaround CarrierConfig restrictions
...
We support IMS features on carriers not listed in the CarrierConfig,
so let's use the props to enable it everywhere.
Change-Id: Id3ad71d522a22048f7ad86d89695ad262361632d
2019-02-05 22:19:36 +01:00
Luca Stefani
53fecbf169
sdm845-common: Add and build trust HAL
...
Change-Id: I6ffdcd0cae2afb1b1e872152f7997da704ad74dc
2019-02-04 20:47:31 +01:00
Bruno Martins
4ad2b3e4fa
sdm845-common: Remove no longer needed Android Blueprints
...
* Soong now finds all Android.bp and Blueprints files in the source tree
Change-Id: I2b7b22ecec7efb439d4c20c9d579ed9ceed5b20d
2019-02-04 15:20:53 +01:00