* temporary fix for wake-up issue on GDX sensor
* disabled vendor.fps_hal after finishing boot(still usable since it was started already on boot-up, fingerprint option still available on Settings > Security > Figerprint)
* also guarded it for GDX sensor only so it won't stop for devices with FPC sensor
Signed-off-by: wHo-EM-i <ehteshammalik18998@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
Sleep modes are then turned on once boot is completed
or during off-mode charger mode.
Signed-off-by: ImPrashantt <prashant33968@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
* Some banking apps read the file /proc/net/unix to
find out whether things like Magisk are installed/running.
To prevent that, chmod it 440.
This file isn't needed by any other process when boot is finished.
I've tested this and banking apps that did not work before
and recognized Magisk being installed now don't recognize
that and work just fine.
Signed-off-by: anandhan07 <anandhasayanan007jb@gmail.com>
Signed-off-by: rk134 <rahul.kantrapally@gmail.com>
Signed-off-by: Rahul K <rahul-k@bigdi.cc>
Signed-off-by: rk134 <rahul-k@bigdi.cc>
Signed-off-by: OmarAlCoptan <omarcoptan9@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
* Set it on init instead of after boot
* Add camera-daemon schedtune
* Fix some derp
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
This reverts commit 1229fc5a8473c7ea99e90c4ff0a6f6d3a05a8b14.
* Nuked the schedtune.prefer_high_cap in kernel so it is not useful anymore
* Partially reverts only as some are still useful
Signed-off-by: pix106 <sbordenave@gmail.com>
Provide permissions for msm_adsp_sleepmon dev
Change-Id: I8c2cd12ba4e0e06b2ffc46dbaff9423f9175fdb6
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
The mem_buf VM files under /dev/mem_buf_vm/ are only ever opened with
O_RDONLY permissions. Additionally, processes not in the 'system'
group need to be able to open the mem_buf VM files. Correspondingly,
make the permissions for all of these VM files 444.
Change-Id: Icfb2249c964ccc914db1c904274d9ff40d0f1535
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
This change adds the devcoredump sysfs nodes to the ueventd rc
which is used for ramdump collection of remoteprocs.
Change-Id: I7112a1196f343d4398245147d7bcf6650ed34707
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
We currently set all heaps to have RWX permissions of 644. However,
libdmabufheap only opens the heap files as O_RDONLY. Reduce the
permissions to 444 accordingly.
Additionally, stop overriding the default permissions given to the
system, system-uncached and system-secure heaps (which all have RWX
perrmissions of 444).
Change-Id: Icc6159acc494ab169a6d04fd86732c1b126e7b15
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
- to comply with device tree entry
Change-Id: I7fd62a60992352cae2d9fa63a6e2fca223e7848f
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
The char devices under /dev/mem_buf_vm each represent a
Virtual Machine to which HLOS can transfer or share memory
using an ioctl.
Change-Id: If3546148204e3b1c389975d3ec9aabd265b03012
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
Add permissions for peripheral manager to be able to access remoteproc
nodes in order to boot modem.
Change-Id: I04ab76ef8e17c4b68c2662de57e26499201b8b3d
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
Give access to /dev/dma_heap, with the same permissions given to
/dev/ion.
Change-Id: I4516f8771a65ee799b0ad033c37368970221325c
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
* Prebuilt libcameraservice sets this prop to 1 if the running camera
app is MIUI/ANX camera, and 0 otherwise
* This is needed to unlock all functions of MIUI/ANX camera in
the camera HAL, such as pro mode controls, beauty modes, portrait
depth slider and much more, and mainly fixes excess noise in
camera shots taken with our ultrawide lens
* We won't keep the prop enabled by default because as long as its
enabled, gcam/mods crash immediately on launch and we don't want
that. So let's retain the stock behaviour instead.
[clarencelol]: * avc: denied { set } for property=sys.camera.miui.apk pid=1008 uid=1047 gid=1005 scontext=u:object_r:system_prop:s0 tclass=property_service permissive=0
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
* Write to node to turn on LED in offline charging mode
Change-Id: Iee02ac9af0438b5bc4dcf08dfe19e10226d7090e
Signed-off-by: pix106 <sbordenave@gmail.com>
[clarencelol: It improves scrolling janks in my testing]
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
With the kernel patch to separate placement hinting part of
boost signal on placement into a prefer_high_cap hint knob,
TA will lose the boost placement hint.
This CL adds placement hinting back to TA when INTERACTION
is on.
Bug: 144451857
Test: Boot & run jank test.
Change-Id: I3dcb39804d5bbaff344fbdaf64548335a1fdf1ea
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
Since power_off_alarm is vendor module, so rename it to
vendor.power_off_alarm
Change-Id: Ib4bf6574117cd6b0a381d96de2abf4907a54785d
CRs-Fixed: 2858409
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
* As per the init.qcom.rc service defination has vendor prefix
* This Fixes:
I init : Command 'start rmt_storage' action=boot (/vendor/etc/init/hw/init.target.rc:161) took 0ms and failed: service rmt_storage not found
Change-Id: I271adb887b9420d631e67eb4e7f436f0cd931f32
Signed-off-by: pix106 <sbordenave@gmail.com>
writepid command usage to join a cgroup has been deprecated in favor
of a more flexible approach using task_profiles. This way cgroup path
is not hardcoded and cgroup changes can be easily made. Replace
writepid with task_profiles command to migrate between cgroups.
Bug: 191283136
Test: build and boot
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: If0a64b9f335ad13f65522361b125cab951002a2c
Signed-off-by: pix106 <sbordenave@gmail.com>