Commit Graph

226 Commits

Author SHA1 Message Date
UtsavisGreat
854eea7030 sanders: disable adaptive low memory killer
Signed-off-by: UtsavisGreat <utsavbalar1231@gmail.com>
Signed-off-by: ronaxdevil <pratabidya.007@gmail.com>
2019-06-29 16:45:57 +02:00
sai4041412
b601c5c4c5 Sanders: Dirty flash fix
This helps after a dirty flash, in order to avoid broken strings on settings app.

original commit RevengeOS-Devices/android_device_xiaomi_tissot-common@430576c

Signed-off-by: ronaxdevil <pratabidya.007@gmail.com>
2019-06-29 16:45:56 +02:00
ronaxdevil
a69330fd5c sanders: update spectrum profile
Signed-off-by: ronaxdevil <pratabidya.007@gmail.com>
2019-06-29 15:49:22 +02:00
Vachounet
8f18d5ef8b sanders: sync some config files with stock
* OPS28.85-17-6-2

Change-Id: I028e209d41bff3dffe05107f249b7578b9d9dd6c

Signed-off-by: ronaxdevil <pratabidya.007@gmail.com>
2019-06-29 15:48:00 +02:00
ronaxdevil
de9c4bf362 sanders: Revert back to lz4 compression algorithm
-For now sanders don't have support for zstd compression algorithm

Signed-off-by: ronaxdevil <pratabidya.007@gmail.com>
2019-06-29 15:47:18 +02:00
andr68rus
d598491ffa sanders: Add spectrum support
Co-authored-by: Anushek Prasal <anushekprasal@gmail.com>
Co-authored-by: ronaxdevil <pratabidya.007@gmail.com>
Signed-off-by: ronaxdevil <pratabidya.007@gmail.com>
2019-06-29 15:47:04 +02:00
UtsavisGreat
301937a186 sanders: init: swapon zRAM on boot_complete
Signed-off-by: utsavbalar1231 <utsavbalar1231@gmail.com>
Signed-off-by: ronaxdevil <pratabidya.007@gmail.com>
2019-06-29 15:46:17 +02:00
utsavbalar1231
e1b9ef8199 sanders: update zRAM flags
* use zstd compression algorithm
* Enable ZRAM deduplication feature that helps in savings of memory by
avoiding the duplication.

Signed-off-by: utsavbalar1231 <utsavbalar1231@gmail.com>
Signed-off-by: ronaxdevil <pratabidya.007@gmail.com>
2019-06-29 15:46:02 +02:00
utsavbalar1231
8eb8b5c536 sanders : add restricted cpuset
this will restrict cpu cores to 0-3

Signed-off-by: utsavbalar1231 <utsavbalar1231@gmail.com>
Signed-off-by: ronaxdevil <pratabidya.007@gmail.com>
2019-06-29 15:45:27 +02:00
ronaxdevil
62c4b5b4ba sanders: : dont use max swappiness on 4gb varient
Signed-off-by: ronaxdevil <pratabidya.007@gmail.com>
2019-06-29 15:45:11 +02:00
Adrian DC
a5055746a4 sanders: init: Resolve vendor HALs for early bootanimation
start

 * Adapt the service from configstore-hal-1-0 service
    to vendor.configstore-hal for AOSP P

 * Resolves surfaceflinger first launch crash
    due to configstore not being running earlier enough

Signed-off-by: Ashwin R C <ashwin2001achu@gmail.com>
Signed-off-by: ronaxdevil <pratabidya.007@gmail.com>
2019-06-29 15:41:28 +02:00
Wei Wang
b61b607514 sanders: Tune zram performance
* Set page-cluster to 0 as the incremental cost of reading 1 page at a
time is negligible for zram

Change-Id: Ia73d08904551dfc8d57268fc4da3f9f34d10e277
Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
Signed-off-by: ronaxdevil <pratabidya.007@gmail.com>
2019-06-29 15:41:03 +02:00
Ashwin R C
b75443ef25 sanders: Set swappiness back to 100
Signed-off-by: Ashwin R C <ashwin2001achu@gmail.com>
Signed-off-by: ronaxdevil <pratabidya.007@gmail.com>
2019-06-29 15:40:58 +02:00
kubersharma001
6f7180db2a sanders: re-adjust dir for new time service blobs from P
Revert "potter: Adjust mkdir of time data files"
This reverts commit d52dd9094aab10b5d6640ebd1cba56a66ba847db.

Change-Id: I5d2e4a0849223b07bf060ec3c75c32f76710f672
Signed-off-by: Ashwin R C <ashwin2001achu@gmail.com>
Signed-off-by: ronaxdevil <pratabidya.007@gmail.com>
2019-06-29 15:40:32 +02:00
Jack Pham
b87abf2f63 sanders: ueventd.qcom.rc: Change ownership of USB role switch nodes
Change ownership of /sys/class/dual_role_usb entries to
system/system to allow USB HAL to access them.

Change-Id: Ie6d968180d55647813904970370dbb74012326b0
Signed-off-by: Ashwin R C <ashwin2001achu@gmail.com>
Signed-off-by: ronaxdevil <pratabidya.007@gmail.com>
2019-06-29 15:40:28 +02:00
Karthik Gopalan
7598b30633 sanders: Swap disk creation
Create swap disks

CRs-Fixed: 2264866

Change-Id: Id57a4e8d413c7dafb49d073980f10010003f616e
Signed-off-by: Ashwin R C <ashwin2001achu@gmail.com>
Signed-off-by: ronaxdevil <pratabidya.007@gmail.com>
2019-06-29 15:39:59 +02:00
Jadilson Guedes
84ba8e7a7b sanders: Rename the QC introduced props to have vendor tag added to use tree
* fix FmRadio

*131be18e30

Signed-off-by: ronaxdevil <pratabidya.007@gmail.com>
2019-06-29 15:36:23 +02:00
Jadilson Guedes
825b529d5b sanders: fix for FMRadio app
* add perms for FMRadio app
* add back FM support

Co-authored-by: Vachounet <vachounet@live.fr>
Signed-off-by: ronaxdevil <pratabidya.007@gmail.com>
2019-06-29 15:35:22 +02:00
Alisson Lauffer
dc12e40c48 sanders: Enable DTV module when device boots up
Signed-off-by: ronaxdevil <pratabidya.007@gmail.com>
2019-06-29 15:35:11 +02:00
Madhanraj Chelladurai
3e425a47b9 sanders: ueventd: add permission for gps component to read pps device
GPS components make use of DR_SYNC pulse generated by GNSS
hardware, which was received through pps device, hence
require permission for reading this device

Change-Id: I00bd3b8aa88059fb94338b6ba1d107d77c06a5e0
CRs-Fixed: 2299356
2018-12-22 01:41:00 -02:00
Madhanraj Chelladurai
cad3943832 sanders: ueventd: init: add permission entries for location component
Add permissions for location components in init.qcom.rc and
ueventd.qcom.rc

Change-Id: I07f3b57470336165393a68144faccf26cdbca98c
CRs-Fixed: 2299356
2018-12-22 01:35:19 -02:00
therootlord
eff2a4c1b0 sanders: rootdir: ueventd: partial update from LA.UM.7.6.r1-03700-89xx.0 2018-12-22 00:51:53 -02:00
Abir Ghosh
e3a7e1a07b sanders: Do not create fingerprint directories in init
Add changes to not create fingerprint directories in
init.qcom.rc. It will be done in fingerprint module
init script.

Change-Id: If199cf875bb4201fcda923b0e8162b06d8d93d1a
2018-12-21 23:45:08 -02:00
therootlord
02a6608049 sanders: rootdir: mmi: update from stock OPSS28.65-36-3 2018-12-21 23:40:52 -02:00
therootlord
e2a28ddc9c sanders: rootdir: update iop dir path and permissions 2018-12-16 16:32:48 -02:00
therootlord
ade1c2e82b sanders: update ACDB props and init.qcom.rc 2018-12-16 16:22:50 -02:00
therootlord
00a0ab7485 sanders: update eas configs 2018-12-09 22:31:04 -02:00
therootlord
094d6fd2b4 sanders: update perf configs from LA.UM.7.6.2.r1-04200-89xx.0
* init.qcom.rc: set vendor.post_boot.parsed prop, required for perf

* perfboostsconfig.xml edits:

* Reduced minimum launch boost freq
* Remove SCHED_SPILL_NR_RUN and SCHED_RESTRICT_CLUSTER_SPILL opcodes
2018-12-09 22:17:52 -02:00
Erfan Abdi
2f35f4fbb1 sanders: Update to match new qcom sepolicy
Change-Id: If6e58161489790ea7736dc1ec1fe11f2e2841b6c
Signed-off-by: Erfan Abdi <erfangplus@gmail.com>
Signed-off-by: therootlord <igor_cestari@hotmail.com>
2018-11-15 20:02:29 -02:00
Shaikh Shadul
8f68d0a5dd sanders: change sensors registry file owner and group
Sensors registry file ownership is retained even after OTA
upgrade and that file is only accessible by daemon belongs to
same ownership permissions.

Change-Id: I3543733232aeab04d14fb9d69f635c1e6c6df1e2
2018-11-09 14:58:17 -02:00
therootlord
51e777cc1d sanders: update for the new mount points
* Also bind mount /mnt/vendor/persist to /persist for backward compatibility
2018-11-08 15:31:27 -02:00
Vinay Verma
2fbbc52c5a sanders: Moving persist mount point to /mnt/vendor/persist
Move persist entry to fstab and mount at /mnt/vendor/persist

Apply required user, group and permissions once persist
folder is created through __mount and parititon is mounted.

Run restorecon on /mnt/vendor/persist.

Change-Id: I7f54b478de898491e32560d5a37657ac370bf893
2018-11-07 23:07:12 -02:00
Vinay Verma
8723ed746a sanders: Mount dsp and firmware in vendor
Change fstab to mount dsp and firmware to /vendor/dsp and
/vendor/firmware_mnt.

Add classpath for firmware loading /vendor/firmware_mnt/image in
kernel command line.

Change-Id: I04bd18336a1259a1379b3a27b150bb8051283275
2018-11-07 19:08:52 -02:00
therootlord
53fb0b2053 sanders: reorganize fstab.qcom 2018-11-07 18:28:47 -02:00
erfanoabdi
5db228eca7 sanders: Convert libinit to init scripts
* Also set ro.product.manufacturer to motorola for camera HAL in GSIs.

Change-Id: I2c78e4837cdbd8e7f18e3c1a086978bd289a60a6
2018-10-10 00:07:43 -03:00
Jeff Sharkey
9de6940992 sanders: Reserve 128MB for critical system components.
We recently created a new GID that can be granted to critical system
processes, so that the system is usable enough for the user to free
up disk space used by abusive apps.

128MB ought to be enough for anybody.

Test: builds, boots
Bug: 62024591
Change-Id: I412ed9b0a885668ebe4c6c677a3bd0cd7f44080b
Signed-off-by: Alberto97 <albertop2197@gmail.com>
2018-09-26 13:46:53 -03:00
therootlord
070727ce81 sanders: rootdir: add sensors init script from LA.UM.7.6.2.r1-03200-89xx.0 2018-09-25 14:03:31 -03:00
Shaikh Shadul
361be56624 sanders: change ownership and permissions of sensors device node
Change the user and group ownership and permissions of sensors
device node.

Change-Id: I251af01d4f0204c784667fe92b3998c197f75d8e
Signed-off-by: Erfan Abdi <erfangplus@gmail.com>
2018-09-24 23:28:21 -03:00
rahulsnair
9533952f17 sanders: remove fstab context
Change-Id: I48c14bca953cc85ad838eb3de3709400eb599322
2018-09-23 21:13:21 -03:00
therootlord
ed0dd32ab5 sanders: update fingerprint configs to match vendor changes
* Remove custom fp hal/service

* Build android.hardware.biometrics.fingerprint@2.1

* Update init related configs and props
2018-09-23 21:13:21 -03:00
Harikrishnan Hariharan
3437531910 sanders: Start loc_launcher as gps user
Start loc_launcher as gps user and set uid/gid of loc_launcher
to gps and enable SETUID and SETGID caps for loc_launcher, so
that we can start loc_launcher as gps user instead of root and
still have capabilities for SETUID and SETGID. Also remove not
required permissions groups for loc_launcher.

Change-Id: Ie9f1506874b3c3148f9170c8d5db9afd1e70025c
CRs-Fixed: 2192881
2018-09-23 21:13:06 -03:00
Wang Han
7672efc8da sanders: ueventd: Don't modify permissions of /dev/hw_random
This addresses an underlying problem since /dev/hw_random is used. The
issue is that EntropyMixer, which runs in system_server, needs to read
from /dev/hw_random, but thanks to our qualcomm ueventd, EntropyMixer
can never accress this node, resulting in warnings like this:

W EntropyMixer: Failed to add HW RNG output to entropy pool
W EntropyMixer: java.io.FileNotFoundException: /dev/hw_random (Permission denied)

AOSP ueventd handles this well, so just remove this line to get things
back to stage. This issue was never exposed because Google derps the
logging here, which is already fixed on Pie.

c78a463e87

Change-Id: I42c9aaa8f57306536e51c0a17febad57a5a77581
2018-09-23 21:06:04 -03:00
therootlord
0a41b9dc1a sanders: gps: update to LA.UM.7.6.r1-02000-89xx.0 tag 2018-09-23 21:06:04 -03:00
Han Wang
247d9b0e98 sanders: Remove creation of /data/misc/wifi and
/data/misc/dhcp

* The creation of /data/misc/wifi and /data/misc/dhcp was moved long ago
  to the core init.rc script. Moreover, /data/misc/wifi is deprecated
  since wpa_supplicant now relies on /data/vendor/wifi.

Change-Id: Ic0a33af44ffe163d3dd06cebdc1e192dc9bcb11f
2018-09-23 21:06:04 -03:00
Jeff Vander Stoep
b60b481227 sanders: wpa_supplicant: Deprecate entropy.bin
Wpa_supplicant's random pool is not necessary on Android. Randomness
is already provided by the entropymixer service which ensures
sufficient entropy is maintained across reboots. Commit b410eb1913
'Initialize /dev/urandom earlier in boot' seeds /dev/urandom with
that entropy before either wpa_supplicant or hostapd are run.

Bug: 34980020
Test: Use wifi and wifi tethering on 8996 targets
Change-Id: Ib5caf362bc939911b357db186a274957d3fbf186
2018-09-23 21:06:04 -03:00
therootlord
ffee6c1572 sanders: update sensors props and service name 2018-09-23 21:06:04 -03:00
Tom Cherry
8bad0865ea Move mkdir /data/nfc/... to rootdir init.rc
These are directories used by the system so they should be created by
the system.

Test: treehugger
Change-Id: I4c2d381423e002705f4de09d34a63a49ec473688

Signed-off-by: Alberto97 <albertop2197@gmail.com>
2018-09-23 20:27:23 -03:00
Jaekyun Seok
d5d0276021 Add 'vendor.' prefix to a vendor HAL service name
To prevent property name collisions between properties of system and
vendor, 'vendor.' prefix must be added to a vendor HAL service name.
You can see the details in http://go/treble-sysprop-compatibility.

Test: succeeded building and tested on a sailfish device.
Bug: 36796459
Change-Id: I48e6ee0ae3fe401e39efb273256d991fac676357
Signed-off-by: Alberto97 <albertop2197@gmail.com>
2018-09-23 20:27:23 -03:00
Jerry Zhang
aba46b72f2 sanders: Set sys.usb.ffs.aio_compat
The kernel does not support aio with ffs.
Set the property so adb/mtp know to use the compatible
functions, and the same while in recovery.

Bug: 37916658
Test: Use adb / use adb in recovery
Change-Id: Id35a05fcb9952dcf7239bd15a61cc620537419bc
2018-09-20 22:19:01 -03:00
Roshan Pius
736519d8c9 sanders: Don't start supplicant with interfaces
Framework will now add interface to supplicant (via HIDL) when it
needs to control an interface, so don't specify them in the startup
params.

Bug: 69426063
Test: Device boots up and able to connect to wifi.
Change-Id: I817d28093f8b982e3806c212babd888c0f5eb7c0
2018-09-20 22:15:50 -03:00