12 Commits

Author SHA1 Message Date
Aayush Gupta
1d4b0265f9 PL2: Update the samsung nfc service suffix in required files
We are now building it from source, update our init service entry as
well as sepolicy label

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Change-Id: I74f1b00f4d12e4238053dc20895e07797553944e
2021-04-24 06:32:05 +00:00
Aayush Gupta
a83049e275 PL2: Use complete inheritance hierarchy for NXP service override
host_init_verifier: device/nokia/PL2/rootdir/etc/init.PL2.target.rc: 17:
Interface 'android.hardware.nfc@1.2::INfc' requires its full inheritance hierarchy to be listed in this init_rc file. Missing interfaces: [android.hardware.nfc@1.0::INfc android.hardware.nfc@1.1::INfc]
host_init_verifier: Failed to parse init script 'device/nokia/PL2/rootdir/etc/init.PL2.target.rc' with 1 errors

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Change-Id: Ia633f9f3de7e212ca25347fa09c4ccda004cd943
2020-10-17 14:44:01 -04:00
Aayush Gupta
80729ce002 PL2: Set persist.radio.multisim.config as per available simslot
- PL2 has a model TA-1050 which has a single simslot

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Change-Id: I258b7f686c2cf431c2e9c265dcd39e2f2e582cb7
2020-10-09 04:35:53 +00:00
Aayush Gupta
e4e78b129a PL2: Force restorecon on /data/system/users on boot complete
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Change-Id: I84e8f8fc8765e5067b269493de3efd11215d8f5c
2020-10-06 13:51:11 -04:00
Aayush Gupta
6e93c67be6 PL2: Drop non-required services & conditions from rc
These properties are not even being set, thus these services will be
never ran, but everything still works fine. Thus, kick them out.

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Change-Id: I7832c038dbc7c61cb14691097911761da482d3d8
2020-10-05 08:00:13 +00:00
Aayush Gupta
2d9b5f9e70 PL2: Switch to vendor.prop for setting properties
Stock was having these properties in init in order to set them as per
devices. However, this tree is standalone, so there shouldn't be any
issue in moving them to a seperate prop

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Change-Id: I1d1e55dc2fdb022909210839c72a2fa57a46e72e
2020-10-05 05:12:50 +00:00
Aayush Gupta
ba372c4c1d PL2: Build & conditionally enable AOSP NFC service
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Change-Id: I511394c8ad30b71abf4dd963aed9951270eb8d17
2020-10-04 04:14:11 +00:00
Aayush Gupta
e7363c2bc8 PL2: Conditionally enable Samsung's NFC service
There are different models with different chips, don't force
wrong service on wrong model.

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Change-Id: If1760991eda8471118e6b718a693f8a77f15e329
2020-10-03 17:10:35 +00:00
Marijn Suijten
b3d370c89a PL2: Update storage path to /data/vendor/nfc
The stock configuration oddly sets this reside on /data/nfc which is not
writable by modern policy. Instead, all vendor runtime data should go
into /data/vendor.

Signed-off-by: Marijn Suijten <marijns95@gmail.com>
Change-Id: I60a94a39239268046016fcf8be4a613ef4ae6541
2020-10-02 09:59:33 +00:00
Siddharth Pranjale
df0f5ca432 PL2: Prep gesture node in common tree
DRG also needs this, simpler to have it in common tree instead

Change-Id: Ic0734b9acfdd1a4cba156c5372d69c04b182f2e3
2020-09-10 10:47:10 +05:30
Nolen Johnson
f2510e6ef0 PL2: Cleanup device-specific init script
Change-Id: I08ea487900468fb3b2d13ff695ad70000de84099
2020-07-06 16:21:02 -04:00
Aayush Gupta
d61398269f PL2: Import PL2 specific .rc file
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Change-Id: I86b6211d0548748edd2d917dfe8b2aa75bce2ad5
2020-06-29 07:28:08 +00:00