Commit Graph

125 Commits

Author SHA1 Message Date
Raghu Varma
ef7c6436d4 sdm660-common: Import common {system,vendor} properties
* Based on stock, stripped some unrelevant cruft and logging.

Co-authored-by: Nolen Johnson <johnsonnolen@gmail.com>
Co-authored-by: Aayush Gupta <aayushgupta219@gmail.com>
Co-authored-by: Raghu Varma <raghuvarma331@gmail.com>
Change-Id: Ie78e456a5a81fb2736d0548edcfc84dc4bfb0aa8
2020-06-29 07:03:59 +00:00
Raghu Varma
e0eaed6303 sdm660-common: Import HIDL manifests
* Pulled from Nokia/Plate2_00WW/PL2_sprout:10/QKQ1.190828.002/00WW_4_150:user/release-keys
  and edited down as necessary.

Signed-off-by: Nolen Johnson <johnsonnolen@gmail.com>
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Change-Id: Ia0597d4b7c4213adc59bbd790d3ad0f3220fc7c8
2020-06-29 07:03:59 +00:00
Raghu Varma
6541dc9aa2 sdm660-common: Explicitely build boot HALs
Signed-off-by: Nolen Johnson <johnsonnolen@gmail.com>
Change-Id: I30a9b5ceccdd4b65a5a744c2f46a0445c8ee752c
2020-06-29 07:03:59 +00:00
Raghu Varma
9a7a26969f sdm660-common: Explicitely build bootctrl module
Signed-off-by: Nolen Johnson <johnsonnolen@gmail.com>
Change-Id: I9153bab76e98623ec0351b18f218de50488594fa
2020-06-29 07:03:59 +00:00
Thierry Strudel
0c388c9629 sdm660-common: gpt-utils: PTN_SWAP_LIST add the missing new partitions
* abl, dtbo, vbmeta, etc. were not part of the list updated by bootctl HAL.

* This will fix the issue but bootctl HAL should be rewritten to not
  detect A/B partition candidate at runtime.

Signed-off-by: Nolen Johnson <johnsonnolen@gmail.com>
Signed-off-by: Thierry Strudel <tstrudel@google.com>

Bug: 37501587
Change-Id: I64140d9fce8d142e16a12c9778f1b10394f9dc76
2020-06-29 07:03:59 +00:00
Demon Singur
cc512d6a1d sdm660-common: Build separate system and vendor hidl libs
Change-Id: If8e2211e643bdb0ff67fb248e7fe33b78077a06e
2020-06-29 07:03:59 +00:00
Shibin George
f235f53db7 sdm660-common: Create a symlink to the msadp partition in vendor/etc
The msadp partition contents can now be loaded via request_firmware.
Without this change the msadp image was not picked up during modem
loading

Change-Id: I4d99b56e0e151169b44839c299156878474857cd
2020-06-29 07:03:59 +00:00
Dan Pasanen
6cb262ae38 sdm660-common: symlink ims libs for the ims app
Change-Id: Icad37447b3d0a70e17de74310629966780462432
2020-06-29 07:03:59 +00:00
Ethan Chen
1c3cde0516 sdm660-common: Move EGL link creation to real make target
* Don't use makefile parsing to generate symlinks, this is bad practice
  because it slows down the makefile parsing process.

Change-Id: Iced972a02073e0c327e02a359870aeec299af0bd
2020-06-29 07:03:59 +00:00
Bruno Martins
05c302b6e5 sdm660-common: Create symlinks for WLAN
Change-Id: Ib2b3541cee80e178ceed0de6e71739ae885d0faf
2020-06-29 07:03:59 +00:00
Bruno Martins
27897f2d74 sdm660-common: Create RFS symlinks
Change-Id: Ica1d4a9893f526ab98c5ef07e18d51dbf74c8e93
2020-06-29 07:03:59 +00:00
Ameya Thakur
c28f73fff8 sdm660-common: Generate non-hlos image mount points for A/B builds
On builds where A/B support is enabled the system image acts as the
rootfs. In this case we can no longer create the non-hlos image mount
points at run time as we used to. We now create them as part of the
build itself.

Change-Id: I30d98f7c50fca3ce7117b9b8d87150655bb5b440
2020-06-29 07:03:59 +00:00
Nolen Johnson
e9ada57e91 Revert "sdm660-common: Configure AVB"
* We don't have AVB, we have verity.

This reverts commit c8950684ec.

Change-Id: I7cd61754d3f909a5aa89e62cfe44225a349c6d30
2020-06-29 03:40:24 +02:00
Anton Hansson
d104d60b1d sdm660-common: Remove obsolete dex settings
This block is completely redundant because..
- WITH_DEXPREOPT := true is the default
- WITH_DEXPREOPT_PIC is never read
- DEX_PREOPT_DEFAULT := nostripping has no effect when the
  BOARD_USES_SYSTEM_OTHER_ODEX flag is set to true

Test: make
Change-Id: I618a1e395ca1a14555cd50eef1a4f1aa079b553d
2020-04-24 04:44:21 +00:00
dianlujitao
c11119002f Revert "sdm660-common: Create system copy of ims-ext-common and add to classpath"
No longer needed with Q ims.apk

This reverts commit 53924e2e5c514aaa06f2dd847b569c77b9bcca89.

Change-Id: I4e2429e78204ed5a65cc1a2659f0065b78e30865
2020-04-24 04:44:14 +00:00
Ethan Chen
a99a49f74d sdm660-common: Remove dead RCS packages
Change-Id: Ie2c03fa11cb08c7ab900d7b666981d592aba19c7
2020-04-24 04:44:06 +00:00
maxwen
a4d32a9105 sdm660-common: Hide sRGB toggle in developer options
* This is only available on Nexus/Pixel devices. Already implemented
   in LiveDisplay for devices that have the proper profile in the
   QDCM calibration file or provide the commands via sysfs node.

Change-Id: I1dbeafdef930bcfeb2b950b3adce293307abff85
2020-02-15 04:02:04 +00:00
Danny Baumann
34b32bca5f sdm660-common: Enable call recording
Change-Id: I1b4478b330b13cf5d0fe1ed0d40f43e4b3825f33
2020-02-09 08:36:44 +00:00
theimpulson
02b61b1ed7 sdm660-common: Compile kernel with clang 9.0.3
* Depends upon: https://review.lineageos.org/c/LineageOS/android_kernel_nokia_sdm660/+/268529

Change-Id: I65aed3491c30a81ab75521d0848b2603f41c73e0
Signed-off-by: theimpulson <aayushgupta219@gmail.com>
2020-02-08 19:05:43 +00:00
theimpulson
2f46000da5 sdm660-common: Allow NFC to interact with binder
02-02 10:54:29.959  1493  3448 I ActivityTaskManager: START u0 {act=android.intent.action.SEND typ=image/* flg=0xb080001 cmp=com.android.nfc/.BeamShareActivity clip={image/* U:content://media/external/images/media/3873} (has extras)} from uid 10123
02-02 10:54:30.012  3393  3393 W com.android.nfc: type=1400 audit(0.0:599): avc: denied { call } for scontext=u:r:nfc:s0 tcontext=u:r:gpuservice:s0 tclass=binder permissive=0

02-02 10:54:30.063 14518 18224 W ExifInterface: Invalid image: ExifInterface got an unsupported image format file(ExifInterface supports JPEG and some RAW image formats only) or a corrupted JPEG file to ExifInterface.
02-02 10:54:30.080  3393  3393 E NFC     : invokeBeamInternal()
02-02 10:54:30.122  3393  3393 W BeamShareActivity: Receiver not registered: com.android.nfc.BeamShareActivity$4@494e5c6

Change-Id: Ib21db148844f06967df5210b9cd1c5ea9a6bde77
Signed-off-by: theimpulson <aayushgupta219@gmail.com>
2020-02-06 17:06:42 +00:00
theimpulson
a205c9ddd3 sdm660-common: Drop our vendorimage hacks
Change-Id: Ifaf71491b08efe0594bef260dc5f9191af643c1b
Signed-off-by: theimpulson <aayushgupta219@gmail.com>
2020-01-30 15:57:55 +00:00
Anton Hansson
b3bdc6b3dc sdm660-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
2020-01-20 09:08:29 +00:00
Nolen Johnson
ae68a85d85 sdm660-common: Use TARGET_COPY_OUT_SYSTEM
Change-Id: I9a6976d017ce48c2773ad9a749ea93d6e1a79b9b
2019-12-27 03:10:21 +01:00
Bruno Martins
d5a32411ec sdm660-common: Kill framework compatibility matrix with fire
This thing is not mandatory at all and only demands extra work by having
to keep it up-to-date whenever new interfaces are added to the device manifest
or simply uprev'ed.

Change-Id: I7c5485f201efde86ff1b277951e7faebf8b80437
2019-12-25 12:46:46 +00:00
Bruno Martins
f4f88ced4f sdm660-common: Add unpinning support to update-sha1sums.py script
Change-Id: I9035b449cea6d78927a459dc247075b3d4512e46
2019-12-25 12:11:17 +00:00
LuK1337
faafe8379e sdm660-common: Handle moved blobs in update-sha1sums.py script
Change-Id: Iccab8c8620c7ff680768aac2d9cbf5b5067af8d7
2019-12-25 12:11:17 +00:00
LuK1337
47a85676f8 sdm660-common: Add script to update sha1sums of kanged blobs
Change-Id: Id2e8cfb8d3b6f65f69c91a89bacd615fdcc45753
2019-12-25 12:11:17 +00:00
Hridya Valsaraju
600128e4dd sdm660-common: Build bootctrl.sdm660 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-12-22 08:26:15 +00:00
LuK1337
485ab717e7 sdm660-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-12-22 05:22:45 +00:00
LuK1337
a121b484e5 sdm660-common: gpt-utils: Use generated_kernel_headers
Change-Id: Id56f1c0603ff13b5d64eb4db33807ac13dcdd619
2019-12-22 05:22:45 +00:00
theimpulson
c777c9622a sdm660-common: Merge branch 'aosp-new/master' of https://source.codeaurora.org/quic/la/platform/hardware/qcom/msm8998 into HEAD
Change-Id: I11e0897f8cf67bee7a620baeec9450df27b5c409
Signed-off-by: theimpulson <aayushgupta219@gmail.com>
2019-12-22 05:22:45 +00:00
theimpulson
1184be0716 sdm660-common: Remove duplicate soong_namespace
Change-Id: I28ba46cc58507a8caa37c207427c02abe7118878
2019-12-22 05:22:45 +00:00
theimpulson
45ccb3c4d6 sdm660-common: Build lineage's device system sepolicy for QCOM devices
Change-Id: I846cc73d07412950d26c06038391ade5df65fe07
2019-11-16 07:04:46 +00:00
theimpulson
2709cc4fa3 Revert "sdm660-common: Increase status_bar_padding for no rounded corners"
This reverts commit def5645600.

* It's addressed by I85b51c9c6e74789bef9f7c30443fa019c093f20f.

Change-Id: I4a01d149d4488decb66fbccda3ba4d87199d5947
2019-11-15 00:16:35 +01:00
LuK1337
e6af654938 sdm660-common: Update MAC randomization overlay location
Change-Id: Ib33d6f965019b5fbbaac9f0ee931f89addfc704d
2019-11-15 00:16:00 +01:00
Nick Kralevich
84e9766a10 sdm660-common: sepolicy: Allow MMC_IOC_CMD
system/sepolicy commit 4c8eaba75ac980805e0ab844afff5c062359d7ad ("start
enforcing ioctl restrictions on blk_file",
https://android-review.googlesource.com/c/platform/system/sepolicy/+/793958)
required that all SELinux domains be explicit about the ioctls they are
using on block devices. Update the tee.te policy to be explicit about
its use of the MMC_IOC_CMD ioctl.

Fixes a bug with fingerprint functionality.

Addresses the following denial:

qseecomd: type=1400 audit(0.0:183): avc: denied { ioctl } for path="/dev/block/mmcblk0rpmb" dev="tmpfs" ino=22157 ioctlcmd=0xb300 scontext=u:r:tee:s0 tcontext=u:object_r:rpmb_device:s0 tclass=blk_file permissive=0

STEPS TO REPRODUCE:
1.flash to the os version Bonito/Sargo_QP1A.190123.001
2.completed the SUW
3. use command adb root > adb shell setenforce 0
4.go to setting->security
5.set pixel imprint(fingerprint)+pin, functions can work without setting AP crash
6. Devices can unlock screen with pin code and fingerprint

Change-Id: I6620a5bd9e07f40655fb92f5079d481373deb04f
Fixes: 122999825
Test: Compiles. I am unable to test further without a testing device.
2019-10-24 20:11:55 +02:00
Adam Shih
755d70748e sdm660-common: Rules required to boot to home under enforcing mode
Allowing keymaster to access what it needs

Bug: 112178333
Test: push relevant modules to device and reboot under enforcing mode
Change-Id: Ia861743f035437becd21aa5af7cfe6751849a8ee
2019-10-24 20:11:42 +02:00
theimpulson
24f9350533 sdm660-common: sepolicy: Label subsys3 as sysfs
04-08 07:34:18.909  1702  1702 I ims_rtp_daemon: type=1400 audit(0.0:148): avc: denied { open } for path="/sys/devices/soc/4080000.qcom,mss/subsys3/name" dev="sysfs" ino=40654 scontext=u:r:hal_imsrtp:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1

10-21 11:24:04.919   757   757 I Loc_hal : type=1400 audit(0.0:168): avc: denied { open } for path="/sys/devices/soc/4080000.qcom,mss/subsys3/name" dev="sysfs" ino=40654 scontext=u:r:hal_gnss_qti:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1

04-08 07:34:15.529  1013  1013 I cnss-daemon: type=1400 audit(0.0:134): avc: denied { open } for path="/sys/devices/soc/4080000.qcom,mss/subsys3/name" dev="sysfs" ino=40654 scontext=u:r:wcnss_service:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1

04-08 07:34:15.369  1252  1252 I port-bridge: type=1400 audit(0.0:128): avc: denied { open } for path="/sys/devices/soc/4080000.qcom,mss/subsys3/name" dev="sysfs" ino=40654 scontext=u:r:port-bridge:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1

04-08 07:34:15.449  1246  1246 I netmgrd : type=1400 audit(0.0:130): avc: denied { open } for path="/sys/devices/soc/4080000.qcom,mss/subsys3/name" dev="sysfs" ino=40654 scontext=u:r:netmgrd:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1

Change-Id: I215c681850d096493de3a52d7d3c306ace3d5113
2019-10-24 20:10:56 +02:00
theimpulson
aa562fd89d sdm660-common: Allow read perms to vold and tee
Change-Id: Idd91a243ee44803b301e7d215360160a15e46c08
2019-10-24 08:30:20 +00:00
theimpulson
1410354f22 sdm660-common: sepolicy: Allow system apps to set cnd_vendor_prop
Change-Id: I4623bd72c93231fd73a8f44d9abd8305d51252ab
2019-10-24 08:30:20 +00:00
theimpulson
3f0886063d sdm660-common: sepolicy: Label backlight as sysfs_leds
10-21 00:46:24.555  1066  1066 I fingerprint@2.1: type=1400 audit(0.0:315): avc: denied { open } for path="/sys/devices/soc/c900000.qcom,mdss_mdp/c900000.qcom,mdss_mdp:qcom,mdss_fb_primary/leds/lcd-backlight/brightness" dev="sysfs" ino=28194 scontext=u:r:hal_fingerprint_default:s0 tcontext=u:object_r:sysfs_graphics:s0 tclass=file permissive=1

Change-Id: Ife4649db3a230195015d35b2d8134550347c6e98
2019-10-24 08:30:20 +00:00
Nolen Johnson
c2a9725360 Revert "sdm660-common: Build lineage's device sepolicy"
This reverts commit 8c195c3424.

Reason for revert: This is done globally.

Change-Id: Ic3dd5481066a2094657ce53ffd00b52ac4b0f601
2019-10-21 08:10:44 +02:00
theimpulson
43e0201708 sdm660-common: Move vendor platform signature overlay to lineage-sdk
*That's where it resides in LineageOS
*Ref: be65612e2a

Change-Id: I1bf1c21a96b6cbfde82d2241d6476f92e5336d9e
2019-10-19 16:42:44 +00:00
theimpulson
c8a52404d8 sdm660-common: Build system variant of livedisplay
Change-Id: I915e0717213482a7a73d541b51d54d9e8997875c
2019-10-19 16:42:44 +00:00
Joey
28165a17f1 sdm660-common: Build Trust HAL
Change-Id: I92706987f8d3094cdfb82e71e5331b7efe69e5df
2019-10-19 16:42:30 +00:00
theimpulson
8c195c3424 sdm660-common: Build lineage's device sepolicy
Change-Id: I3c26e9dc55d09b8f16e92c3d5d9cbb4acbab9928
2019-10-19 04:28:52 +00:00
Ethan Chen
8ac895e2a1 sdm660-common: Use Soong namespace to avoid device build conflicts
Change-Id: Id04f464102264b6f2e8d49b39389c7e346613b39
2019-10-16 21:05:36 +02:00
Luca Stefani
3838218574 sdm660-common: Compile kernel with clang 7.0.2
* 9.0.3 creates deadlocks

Change-Id: I4da2b760c57c993d7a64c747ff46ced05c87d78e
Signed-off-by: Sakil_Mondal <mondalsakil@gmail.com>
2019-10-16 14:54:11 -04:00
Nolen Johnson
f5bb897757 sdm660-common: Drop dpm blobs
Change-Id: Id5672bdd8d64b8b34e2fb7b08195d0723a5ad4bf
2019-10-16 14:54:11 -04:00
Brad Ebinger
ba61e251d9 sdm660-common: Enable FEATURE_TELEPHONY_IMS for this device
Change-Id: Ibdd8cfad8fa26b147d1c318eb43e4bf181ae4037
2019-10-16 14:54:11 -04:00