am57xevm: Decrease userdata image size
This patch decreases userdata image size due to partition size
changes in u-boot[1].
from project https://android.googlesource.com/platform/external/u-boot
commit: 528920f94ef22f9e5cf183cc193246e01280c65e
Signed-off-by: Mykhailo Sopiha <mykhailo.sopiha@linaro.org>
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
This patch decreases userdata image size due to partition size
changes in u-boot[1].
from project https://android.googlesource.com/platform/external/u-boot
commit: 528920f94ef22f9e5cf183cc193246e01280c65e
Signed-off-by: Mykhailo Sopiha <mykhailo.sopiha@linaro.org>
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
am57xevm: add default density as build option
Signed-off-by: Mykhailo Sopiha <mykhailo.sopiha@linaro.org>
Signed-off-by: Mykhailo Sopiha <mykhailo.sopiha@linaro.org>
sepolicy: Allow ueventd to request modules
Allow ueventd to request the kernel to load modules
Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
Acked-by: Praneeth Bajjuri <praneeth@ti.com>
Allow ueventd to request the kernel to load modules
Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
Acked-by: Praneeth Bajjuri <praneeth@ti.com>
Revert "Revert "Remove unneeded explicit module loading""
This reverts commit 1f229f1307e374b2d7e2a6041b5ffdf4441ff305.
Now that we have proper sepolicy rule in place and touchscreen works fine,
let's enable dynamic kernel module loading again (instead of loading the
modules on init).
Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
This reverts commit 1f229f1307e374b2d7e2a6041b5ffdf4441ff305.
Now that we have proper sepolicy rule in place and touchscreen works fine,
let's enable dynamic kernel module loading again (instead of loading the
modules on init).
Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
am57xevm: sepolicy: Allow ueventd to insert modules
Allow ueventd daemon to load modules in response to modalias events.
This patch makes dynamic kernel module loading work in 'enforcing' mode.
Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
Allow ueventd daemon to load modules in response to modalias events.
This patch makes dynamic kernel module loading work in 'enforcing' mode.
Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
am57xevm: add kernel modules for pruss Ethernet
Signed-off-by: Hongmei Gou <a0271529@ti.com>
Signed-off-by: Hongmei Gou <a0271529@ti.com>
am57xevm: Disable wificond
Disable a routine way to boot up of the wificond service.
Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
Disable a routine way to boot up of the wificond service.
Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
am57xevm: sepolicy: Allow system_server to update timerslack_ns
Allow system_server to update timerslack_ns for hal_audio_default.
The path based on commit [1] and ensures an eliminations of SELinux
warning during audio/video playback:
avc: denied { write } for pid=321 comm="Binder:321_6"
name="timerslack_ns" dev="proc" ino=21459 scontext=u:r:system_server:s0
tcontext=u:r:hal_audio_default:s0 tclass=file permissive=0
[1] https://android-review.googlesource.com/c/platform/system/sepolicy/+/647420
Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
Allow system_server to update timerslack_ns for hal_audio_default.
The path based on commit [1] and ensures an eliminations of SELinux
warning during audio/video playback:
avc: denied { write } for pid=321 comm="Binder:321_6"
name="timerslack_ns" dev="proc" ino=21459 scontext=u:r:system_server:s0
tcontext=u:r:hal_audio_default:s0 tclass=file permissive=0
[1] https://android-review.googlesource.com/c/platform/system/sepolicy/+/647420
Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
am57xevm: sepolicy: Mark sp-hal files
Mark /system/lib/vndk-sp/hw path as 'sp-hal' namespace.
This patch fixes SELinux messages like:
avc: denied { open } for pid=222 comm="HwBinder:222_5"
path="/system/lib/vndk-sp/hw" dev="mmcblk1p10" ino=799
scontext=u:r:mediacodec:s0 tcontext=u:object_r:system_file:s0 tclass=dir
permissive=1
Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
Acked-by: Mykhailo Sopiha <mykhailo.sopiha@linaro.org>
Mark /system/lib/vndk-sp/hw path as 'sp-hal' namespace.
This patch fixes SELinux messages like:
avc: denied { open } for pid=222 comm="HwBinder:222_5"
path="/system/lib/vndk-sp/hw" dev="mmcblk1p10" ino=799
scontext=u:r:mediacodec:s0 tcontext=u:object_r:system_file:s0 tclass=dir
permissive=1
Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
Acked-by: Mykhailo Sopiha <mykhailo.sopiha@linaro.org>
am57xevm: sepolicy: Associate proc_net filesystem
Associate the proc_net filesystem with the proc filesystem.
This patch fixes the follow SELinux message:
avc: denied { associate } for pid=141 comm="Binder:141_2"
name="globalAlert" scontext=u:object_r:proc_net:s0
tcontext=u:object_r:proc:s0 tclass=filesystem permissive=1
Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
Associate the proc_net filesystem with the proc filesystem.
This patch fixes the follow SELinux message:
avc: denied { associate } for pid=141 comm="Binder:141_2"
name="globalAlert" scontext=u:object_r:proc_net:s0
tcontext=u:object_r:proc:s0 tclass=filesystem permissive=1
Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
am57xevm: sepolicy: Allow access for memtrack
Allow access for memtrack to sync device file.
This patch fixes the follow SELinux message:
avc: denied { map } for pid=169 comm="android.hardwar"
path="/dev/pvrsrvkm" dev="tmpfs" ino=9924
scontext=u:r:hal_memtrack_default:s0 tcontext=u:object_r:gpu_device:s0
tclass=chr_file permissive=1
Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
Allow access for memtrack to sync device file.
This patch fixes the follow SELinux message:
avc: denied { map } for pid=169 comm="android.hardwar"
path="/dev/pvrsrvkm" dev="tmpfs" ino=9924
scontext=u:r:hal_memtrack_default:s0 tcontext=u:object_r:gpu_device:s0
tclass=chr_file permissive=1
Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
am57xevm: sepolicy: Allow to load .idc file
Allow system_server to load input device configurations.
This patch fixes the follow SELinux message:
avc: denied { map } for pid=326 comm="InputReader"
path="/vendor/usr/idc/pixcir_tangoc.idc" dev="mmcblk1p11" ino=14
scontext=u:r:system_server:s0 tcontext=u:object_r:vendor_file:s0
tclass=file permissive=1
Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
Allow system_server to load input device configurations.
This patch fixes the follow SELinux message:
avc: denied { map } for pid=326 comm="InputReader"
path="/vendor/usr/idc/pixcir_tangoc.idc" dev="mmcblk1p11" ino=14
scontext=u:r:system_server:s0 tcontext=u:object_r:vendor_file:s0
tclass=file permissive=1
Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
Remove ION related projects
These are not avaliable anymore, drop them.
Signed-off-by: Andrew F. Davis <afd@ti.com>
These are not avaliable anymore, drop them.
Signed-off-by: Andrew F. Davis <afd@ti.com>
Delete recovery rc file
This file is empty and not needed anymore.
Signed-off-by: Andrew F. Davis <afd@ti.com>
This file is empty and not needed anymore.
Signed-off-by: Andrew F. Davis <afd@ti.com>
am57xevm: Remove WiFi feature
This patch removes all wifi configuration parameters.
Fixes monkeytest wifi-related nullpointer dereferences.
Signed-off-by: Mykhailo Sopiha <mykhailo.sopiha@linaro.org>
This patch removes all wifi configuration parameters.
Fixes monkeytest wifi-related nullpointer dereferences.
Signed-off-by: Mykhailo Sopiha <mykhailo.sopiha@linaro.org>
Revert "Remove unneeded explicit module loading"
This reverts commit 4a0699e373861e9f8967eb4e42256e54b84bc64d.
System error with a report "Internal problem with your device".
This could be due to missing treble /sepolicy fixes on o-mr1 too.
kernel module (touchscreen) needs to be initialized late on o-mr1.
So reverting for now, Re enable the feature when all the needed fixes
for udev dynamic module loading are identified.
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
This reverts commit 4a0699e373861e9f8967eb4e42256e54b84bc64d.
System error with a report "Internal problem with your device".
This could be due to missing treble /sepolicy fixes on o-mr1 too.
kernel module (touchscreen) needs to be initialized late on o-mr1.
So reverting for now, Re enable the feature when all the needed fixes
for udev dynamic module loading are identified.
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
am57xevm: sepolicy: Mark vendor libs as SPHAL
This patch allows selinux enforced board to boot up. For this some
vendor libs are marked as Same-Process HAL.
Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
This patch allows selinux enforced board to boot up. For this some
vendor libs are marked as Same-Process HAL.
Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
am57xevm: sepolicy: Allow CAS to use vndbinder
android.hardware.cas@1.0-service communicates to other vendor
components via /dev/vndbinder.
(/hardware/interfaces/cas/1.0/default/service.cpp):
android::ProcessState::initWithDriver("/dev/vndbinder");
At bootup SELinux shows message:
avc: denied { open } for pid=165 comm="android.hardwar"
path="/dev/vndbinder" dev="tmpfs" ino=5362
scontext=u:r:hal_cas_default:s0 tcontext=u:object_r:vndbinder_device:s0
tclass=chr_file permissive=1
Was added the rule that allows the vndbinder to be used by the
conditional access system.
android.hardware.cas@1.0-service communicates to other vendor
components via /dev/vndbinder.
(/hardware/interfaces/cas/1.0/default/service.cpp):
android::ProcessState::initWithDriver("/dev/vndbinder");
At bootup SELinux shows message:
avc: denied { open } for pid=165 comm="android.hardwar"
path="/dev/vndbinder" dev="tmpfs" ino=5362
scontext=u:r:hal_cas_default:s0 tcontext=u:object_r:vndbinder_device:s0
tclass=chr_file permissive=1
Was added the rule that allows the vndbinder to be used by the
conditional access system.
am57xevm: sepolicy: Allow hwcomposer to use uevent
The hwcomposer module uses the kernel messages interface
(NETLINK_KOBJECT_UEVENT) (hardware/ti/dra7xx/hwcomposer/hwc.cc):
uevent_init();
...
Was added the sepolicy that allows operations with the uevent socket.
Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
The hwcomposer module uses the kernel messages interface
(NETLINK_KOBJECT_UEVENT) (hardware/ti/dra7xx/hwcomposer/hwc.cc):
uevent_init();
...
Was added the sepolicy that allows operations with the uevent socket.
Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
am57xevm: sepolicy: Allow graphics composer to use vndbinder
android.hardware.graphics.composer@2.1-service communicates to other
vendor components via /dev/vndbinder.
(/hardware/interfaces/graphics/composer/2.1/default/service.cpp):
android::ProcessState::initWithDriver("/dev/vndbinder");
At bootup SELinux shows message:
avc: denied { open } for pid=169 comm="android.hardwar"
path="/dev/vndbinder" dev="tmpfs" ino=5362 ioctlcmd=0x6209
scontext=u:r:hal_graphics_composer_default:s0
tcontext=u:object_r:vndbinder_device:s0 tclass=chr_file permissive=1
Was added the rule that allows the vndbinder to be used by
graphics.composer@1.0-service.
Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
android.hardware.graphics.composer@2.1-service communicates to other
vendor components via /dev/vndbinder.
(/hardware/interfaces/graphics/composer/2.1/default/service.cpp):
android::ProcessState::initWithDriver("/dev/vndbinder");
At bootup SELinux shows message:
avc: denied { open } for pid=169 comm="android.hardwar"
path="/dev/vndbinder" dev="tmpfs" ino=5362 ioctlcmd=0x6209
scontext=u:r:hal_graphics_composer_default:s0
tcontext=u:object_r:vndbinder_device:s0 tclass=chr_file permissive=1
Was added the rule that allows the vndbinder to be used by
graphics.composer@1.0-service.
Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
am57xevm: sepolicy: Allow access netd to /proc/net
'netd' daemon require access to /proc/net items, for example [1]:
asprintf(&fname, "/proc/net/xt_quota/%s", quotaName);
fp = fopen(fname, "we");
Were added the rules for manipulations with /proc/net filesystem.
[1] system/netd/server/BandwidthController.cpp
Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
'netd' daemon require access to /proc/net items, for example [1]:
asprintf(&fname, "/proc/net/xt_quota/%s", quotaName);
fp = fopen(fname, "we");
Were added the rules for manipulations with /proc/net filesystem.
[1] system/netd/server/BandwidthController.cpp
Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
am57xevm: sepolicy: Access for init to /proc /sys
Generic init.rc contains the commands for write operations to /proc and
/sys, for example:
write /proc/sys/kernel/sysrq 0
write /sys/class/leds/vibrator/trigger "transient"
but generic sepolicies don't contain accorded rules.
Were added the permissions for access to /proc and /sys.
Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
Generic init.rc contains the commands for write operations to /proc and
/sys, for example:
write /proc/sys/kernel/sysrq 0
write /sys/class/leds/vibrator/trigger "transient"
but generic sepolicies don't contain accorded rules.
Were added the permissions for access to /proc and /sys.
Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
am57xevm: sepolicy: Add cgroup permissions for init
Generic init.rc contains the commands for creating cgroup nodes, for
example:
mkdir /dev/memcg 0700 root system
mount cgroup none /dev/memcg memory
but generic sepolicies don't contain accorded rules.
Also generic zygote .rc files contain commands for PID writing to
process list in cgroup nodes. These commands can require the creating
permission.
Were added the creating permissions for 'init' and 'zygote' processes.
Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
Generic init.rc contains the commands for creating cgroup nodes, for
example:
mkdir /dev/memcg 0700 root system
mount cgroup none /dev/memcg memory
but generic sepolicies don't contain accorded rules.
Also generic zygote .rc files contain commands for PID writing to
process list in cgroup nodes. These commands can require the creating
permission.
Were added the creating permissions for 'init' and 'zygote' processes.
Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
am57xevm: sepolicy: Fix vndservicemanager warning
SELinux was generating warnings about vndservicemanager attempts to
gain access to events tags storage (/dev/event-log-tags) for map
action. That used to happen once during a boot process in consequence
of initialisation selinux handler in module
frameworks/native/cmds/servicemanager/service_manager.c:
sehandle = selinux_android_vendor_service_context_handle();
In context of this initialisation the selinux_log function is performed
that causes a call to /dev/event-log-tags. Unwinding of followed calls
leads to __write_to_log_daemon function in module
system/core/liblog/logger_write.c This function contains the code which
interacts with EventTagMap data. As a result this code performs in
vndservicemanager context.
Sepolicy dontaudit for vndservicemanager for map action is generated.
Change-Id: I21cc555a44731b9734d09eff63eda447de2df366
Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
SELinux was generating warnings about vndservicemanager attempts to
gain access to events tags storage (/dev/event-log-tags) for map
action. That used to happen once during a boot process in consequence
of initialisation selinux handler in module
frameworks/native/cmds/servicemanager/service_manager.c:
sehandle = selinux_android_vendor_service_context_handle();
In context of this initialisation the selinux_log function is performed
that causes a call to /dev/event-log-tags. Unwinding of followed calls
leads to __write_to_log_daemon function in module
system/core/liblog/logger_write.c This function contains the code which
interacts with EventTagMap data. As a result this code performs in
vndservicemanager context.
Sepolicy dontaudit for vndservicemanager for map action is generated.
Change-Id: I21cc555a44731b9734d09eff63eda447de2df366
Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
am57xevm: sepolicy: Access for init to /proc/cpu/alignment
init.rc contains a write instruction for managing the alignment:
write /proc/cpu/alignment 4
As a result SELinux generates warning:
avc: denied { write } for pid=1 comm="init" name="alignment" dev="proc"
ino=4026532139 scontext=u:r:init:s0 tcontext=u:object_r:proc:s0
tclass=file permissive=1
avc: denied { open } for pid=1 comm="init" path="/proc/cpu/alignment"
dev="proc" ino=4026532139 scontext=u:r:init:s0
tcontext=u:object_r:proc:s0 tclass=file permissive=1
The generated policy allows write access for 'init' to
/proc/cpu/alignment
Change-Id: I0b94aa79d94722393f2ed9d5f5e158c13f657dd4
Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
init.rc contains a write instruction for managing the alignment:
write /proc/cpu/alignment 4
As a result SELinux generates warning:
avc: denied { write } for pid=1 comm="init" name="alignment" dev="proc"
ino=4026532139 scontext=u:r:init:s0 tcontext=u:object_r:proc:s0
tclass=file permissive=1
avc: denied { open } for pid=1 comm="init" path="/proc/cpu/alignment"
dev="proc" ino=4026532139 scontext=u:r:init:s0
tcontext=u:object_r:proc:s0 tclass=file permissive=1
The generated policy allows write access for 'init' to
/proc/cpu/alignment
Change-Id: I0b94aa79d94722393f2ed9d5f5e158c13f657dd4
Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
am57xevm: sepolicy: Fix hal_drm_default warning
android.hardware.drm@1.0-service communicates to other vendor
components via /dev/vndbinder.
(hardware\interfaces\drm\1.0\default\service.cpp):
android::ProcessState::initWithDriver("/dev/vndbinder");
At bootup SELinux shows message:
avc: denied { read } for comm="android.hardwar" name="vndbinder"
dev="tmpfs" ino=5320 scontext=u:r:hal_drm_default:s0
tcontext=u:object_r:vndbinder_device:s0 tclass=chr_file permissive=0
Was added rule that allows the vndbinder to be used by drm@1.0-service.
Change-Id: I81974cd4d4bfdf482bddd11bad5aaf6d9ba6435c
Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
android.hardware.drm@1.0-service communicates to other vendor
components via /dev/vndbinder.
(hardware\interfaces\drm\1.0\default\service.cpp):
android::ProcessState::initWithDriver("/dev/vndbinder");
At bootup SELinux shows message:
avc: denied { read } for comm="android.hardwar" name="vndbinder"
dev="tmpfs" ino=5320 scontext=u:r:hal_drm_default:s0
tcontext=u:object_r:vndbinder_device:s0 tclass=chr_file permissive=0
Was added rule that allows the vndbinder to be used by drm@1.0-service.
Change-Id: I81974cd4d4bfdf482bddd11bad5aaf6d9ba6435c
Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
am57xevm: sepolicy: Access for healthd to wake_alarm
Add rule for 'healthd' daemon for access to wake_alarm.
Change-Id: I4258e66503693f2d7500f1f86e7360c08a607b66
Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
Add rule for 'healthd' daemon for access to wake_alarm.
Change-Id: I4258e66503693f2d7500f1f86e7360c08a607b66
Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
am57xevm: sepolicy: Disable audit for dac_read_search
This commit disable audit for dac_read_search for the next domains:
- init
- vold
- zygote
- installd
- lmkd
These processes already has 'dac_override' capability with greater
permissions. Also the presence of both capabilities in kernel 4.14+
causes warnings with dac_read_search denials, but access is allowed
anyway.
Change-Id: Ifb35fc83267201a51a0f1565ec98132d2e439728
Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
This commit disable audit for dac_read_search for the next domains:
- init
- vold
- zygote
- installd
- lmkd
These processes already has 'dac_override' capability with greater
permissions. Also the presence of both capabilities in kernel 4.14+
causes warnings with dac_read_search denials, but access is allowed
anyway.
Change-Id: Ifb35fc83267201a51a0f1565ec98132d2e439728
Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
am57xevm: turned on legacy PRODUCT_COMPATIBILITY_MATRIX_LEVEL
This patch switches default framework compatibility
matrix to legacy. It is done to turn off the gatekeeper
as a mandatory hal when treble is on.
Signed-off-by: Mykhailo Sopiha <mykhailo.sopiha@linaro.org>
Acked-by: Praneeth Bajjuri <praneeth@ti.com>
This patch switches default framework compatibility
matrix to legacy. It is done to turn off the gatekeeper
as a mandatory hal when treble is on.
Signed-off-by: Mykhailo Sopiha <mykhailo.sopiha@linaro.org>
Acked-by: Praneeth Bajjuri <praneeth@ti.com>
am57xevm: Enable FULL_TREBLE
This patch sets ro.treble.enabled option to true, configures build and allows
board to boot to UI. for thi thing above need were done:
- Enabled FULL_TREBLE and vndk support in device.mk
- Enforced VINFT manifest as part of treble requirements
- Added compatibility matrix to match device manifest and pass prebuild checks
- Added missing services for compatibility matrix
- Changed raw copying of device manifest with core build variable
- Extended device manifest with missing hals
Change-Id: Id08af9a66d95bdf8496ce793eeef6060c519802c
Signed-off-by: Mykhailo Sopiha <mykhailo.sopiha@linaro.org>
Acked-by: Praneeth Bajjuri <praneeth@ti.com>
This patch sets ro.treble.enabled option to true, configures build and allows
board to boot to UI. for thi thing above need were done:
- Enabled FULL_TREBLE and vndk support in device.mk
- Enforced VINFT manifest as part of treble requirements
- Added compatibility matrix to match device manifest and pass prebuild checks
- Added missing services for compatibility matrix
- Changed raw copying of device manifest with core build variable
- Extended device manifest with missing hals
Change-Id: Id08af9a66d95bdf8496ce793eeef6060c519802c
Signed-off-by: Mykhailo Sopiha <mykhailo.sopiha@linaro.org>
Acked-by: Praneeth Bajjuri <praneeth@ti.com>
Remove unneeded explicit module loading
Signed-off-by: Andrew F. Davis <afd@ti.com>
Acked-by: Praneeth Bajjuri <praneeth@ti.com>
Signed-off-by: Andrew F. Davis <afd@ti.com>
Acked-by: Praneeth Bajjuri <praneeth@ti.com>
am57xevm: Boardconfig: Enable TARGET_USES_64_BIT_BINDER
Kernel disabled support of legacy lvl7
(both on 32 and 64 bit boards) hwbinder API due to aosp updates.
That is why hwbinder API lvl 8 only is used for both
32 and 64 bit platforms since that update.
need to enable TARGET_USES_64_BIT_BINDER to fix binder protocol
mismatch and opening errors.
Signed-off-by: Mykhailo Sopiha <mykhailo.sopiha@linaro.org>
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
Kernel disabled support of legacy lvl7
(both on 32 and 64 bit boards) hwbinder API due to aosp updates.
That is why hwbinder API lvl 8 only is used for both
32 and 64 bit platforms since that update.
need to enable TARGET_USES_64_BIT_BINDER to fix binder protocol
mismatch and opening errors.
Signed-off-by: Mykhailo Sopiha <mykhailo.sopiha@linaro.org>
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
am57xevm: Remove vpetest from product packages
Removing vpetest from list of product packages for installation.
Change-Id: I83ffa53afd914a759cc211a543374b81cd1cd1cb
Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
Acked-by: Andrew F. Davis <afd@ti.com>
[praneeth@ti.com: minor edit: whitespace error]
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
Removing vpetest from list of product packages for installation.
Change-Id: I83ffa53afd914a759cc211a543374b81cd1cd1cb
Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
Acked-by: Andrew F. Davis <afd@ti.com>
[praneeth@ti.com: minor edit: whitespace error]
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
am57xevm: heap size expanding to fix OOM errors
While CTS execution maximum available heap was reached.
This commit expands max heap by changing dalvik-heap.mk
This fixes OOM errors during CTS full test plan execution.
Change-Id: I9aaf9327081eb6a3fad870517b9d657deab2b201
Signed-off-by: Mykhailo Sopiha <mykhailo.sopiha@linaro.org>
While CTS execution maximum available heap was reached.
This commit expands max heap by changing dalvik-heap.mk
This fixes OOM errors during CTS full test plan execution.
Change-Id: I9aaf9327081eb6a3fad870517b9d657deab2b201
Signed-off-by: Mykhailo Sopiha <mykhailo.sopiha@linaro.org>
fastboot.sh: update scripts to flash fit image
Signed-off-by: Hongmei Gou <a0271529@ti.com>
Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org>
Signed-off-by: Hongmei Gou <a0271529@ti.com>
Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org>
Revert "am57xevm: Update SELinux policies"
This reverts commit c9981037c95dfcfaeedc2b20445545291754bef0.
This causes build failure on android master and further needs
investigation
libsepol.report_failure: neverallow on system/sepolicy/public/domain.te violated by
allow zygote cgroup:file { create };
init cgroup:file { create };
init proc:dir { write add_name };
init sysfs:dir { add_name };
zygote zygote:capability { dac_read_search };
installd installd:capability { dac_read_search };
init init:capability { dac_read_search };
vold vold:capability { dac_read_search };
surfaceflinger surfaceflinger:capability { dac_override };
libsepol.check_assertions: 9 neverallow failures occurred
Error while expanding policy
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
This reverts commit c9981037c95dfcfaeedc2b20445545291754bef0.
This causes build failure on android master and further needs
investigation
libsepol.report_failure: neverallow on system/sepolicy/public/domain.te violated by
allow zygote cgroup:file { create };
init cgroup:file { create };
init proc:dir { write add_name };
init sysfs:dir { add_name };
zygote zygote:capability { dac_read_search };
installd installd:capability { dac_read_search };
init init:capability { dac_read_search };
vold vold:capability { dac_read_search };
surfaceflinger surfaceflinger:capability { dac_override };
libsepol.check_assertions: 9 neverallow failures occurred
Error while expanding policy
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
am57xevm: device.mk: add vndk_package and libunwind
add vndk_package and libunwind as this is needed for
aosp master build
Change-Id: I027877d3401ae1bcca97d1397fd3894d17a00fdb
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
[praneeth@ti.com: cherry-pick to ti android baseline]
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
add vndk_package and libunwind as this is needed for
aosp master build
Change-Id: I027877d3401ae1bcca97d1397fd3894d17a00fdb
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
[praneeth@ti.com: cherry-pick to ti android baseline]
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
Switch from device/ti/proprietary-open to vendor/ti for binaries
This is more in line with other vendors who use clickwrap archives
to store binaries that extract into vendor/ based directories.
Signed-off-by: Andrew F. Davis <afd@ti.com>
This is more in line with other vendors who use clickwrap archives
to store binaries that extract into vendor/ based directories.
Signed-off-by: Andrew F. Davis <afd@ti.com>
Remove incorrect WiFi definitions
None of the supported platforms, AM572x EVM, AM57xx IDK, nor BeagleBoard
X15 have on-board WiFi. Remove these definitions that incorrectly declare
we have a WL12xx module.
Signed-off-by: Andrew F. Davis <afd@ti.com>
None of the supported platforms, AM572x EVM, AM57xx IDK, nor BeagleBoard
X15 have on-board WiFi. Remove these definitions that incorrectly declare
we have a WL12xx module.
Signed-off-by: Andrew F. Davis <afd@ti.com>
Remove layout configuration overlays for Launcher2
We do not use Launcher2 anymore, remove these unused
configuration overlays.
Signed-off-by: Andrew F. Davis <afd@ti.com>
We do not use Launcher2 anymore, remove these unused
configuration overlays.
Signed-off-by: Andrew F. Davis <afd@ti.com>
am57xevm: remove pru eth and icss support
remove pru eth and icss support inherited during previous android
version.
This should be added back ,when all of the applicable changes are ready.
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
remove pru eth and icss support inherited during previous android
version.
This should be added back ,when all of the applicable changes are ready.
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
am57xevm: device.mk: remove IPU2 build
remove IPU2 M4 FW packaging and build from am57xevm android
sdk
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
remove IPU2 M4 FW packaging and build from am57xevm android
sdk
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
am57xevm: touchscreen: remove LDC 3001 touch support
remove LDC 3001 touch controller support as this is not present on
am57xevm platform variants.
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
remove LDC 3001 touch controller support as this is not present on
am57xevm platform variants.
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
am57xevm: sepolicy: remove APPE selinux policy
cleanup:
remove unapplicable selinux policy for APPE service(doesnt exist anymore).
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
cleanup:
remove unapplicable selinux policy for APPE service(doesnt exist anymore).
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
am57xevm: init: remove 2d Blitter module
remove 2D Blitter GC320 module initialization from init
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
remove 2D Blitter GC320 module initialization from init
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
am57xevm: remove cmem service
remove cmem service and assocated service and selinux policy,
as this is not applicable for targeted am57xevm
android sdk.
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
remove cmem service and assocated service and selinux policy,
as this is not applicable for targeted am57xevm
android sdk.
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
am57xevm: sepolicy: allow init to hold wake lock
On am57xevm we hold a dummy wake lock via init*.rc.
Add sepolicy rule to cover this.
Change-Id: Ibc7117daede874edd7b9e959fdfacd7815a21842
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
[praneeth@ti.com: cherry-pick to device/ti/am57xevm and minor
commitmsg update]
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
On am57xevm we hold a dummy wake lock via init*.rc.
Add sepolicy rule to cover this.
Change-Id: Ibc7117daede874edd7b9e959fdfacd7815a21842
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
[praneeth@ti.com: cherry-pick to device/ti/am57xevm and minor
commitmsg update]
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
am57xevm: Remove unsupported CODEC definitions
The "DUCATI" video accelerators are not currently supported. Remove
their definition here.
Signed-off-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
The "DUCATI" video accelerators are not currently supported. Remove
their definition here.
Signed-off-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
am57xevm: Update SELinux policies
Update SELinux policies for Android boot process.
Android can boot to UI in enforced mode. Further
Android working logs should be captured and checked
for SE warnings. Policies should be updated due to
new warnings appeared in logs.
Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
Update SELinux policies for Android boot process.
Android can boot to UI in enforced mode. Further
Android working logs should be captured and checked
for SE warnings. Policies should be updated due to
new warnings appeared in logs.
Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
am57xevm: turn off all BT from config
Turn off all BT components from device config.
Signed-off-by: Mykhailo Sopiha <mykhailo.sopiha@linaro.org>
Turn off all BT components from device config.
Signed-off-by: Mykhailo Sopiha <mykhailo.sopiha@linaro.org>
am57xevm: set right permission on sw_sync
set right permission for sw_sync so that temp fix
"HACK: Run SurfaceFlinger as root to allow access to software sync file"
in frameworks/native can be removed
Change-Id: I9ab47757e8cb3d28f3d34b2eef26a11766a3c5ee
Signed-off-by: vishal <vishal.bhoj@linaro.org>
[praneeth@ti.com: updated commitmsg and change permission from 777 to 0660]
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
set right permission for sw_sync so that temp fix
"HACK: Run SurfaceFlinger as root to allow access to software sync file"
in frameworks/native can be removed
Change-Id: I9ab47757e8cb3d28f3d34b2eef26a11766a3c5ee
Signed-off-by: vishal <vishal.bhoj@linaro.org>
[praneeth@ti.com: updated commitmsg and change permission from 777 to 0660]
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
am57xevm: bluetooth tethering disabled
Manual activation of bluetooth tehering leads to java exceptions
because there is no bluetooth devices. Disable bt tethering
in configuration file.
Signed-off-by: Mykhailo Sopiha <mykhailo.sopiha@linaro.org>
Manual activation of bluetooth tehering leads to java exceptions
because there is no bluetooth devices. Disable bt tethering
in configuration file.
Signed-off-by: Mykhailo Sopiha <mykhailo.sopiha@linaro.org>
Do not hardcode display DPI use value provided by HWC
The current HWC implementation can read and report display DPI, use
this value over hardcoding the value.
Signed-off-by: Andrew F. Davis <afd@ti.com>
The current HWC implementation can read and report display DPI, use
this value over hardcoding the value.
Signed-off-by: Andrew F. Davis <afd@ti.com>
am57xevm: fix android boot without input devices
Android booting was interrupted if no input devices connected to board.
Failure happened because InputManagerService failed on EventHub object
creation - inotify_add_watch could not find /dev/input. Fix adds
/dev/input dir creation with propriate access mask to init.rc file.
Signed-off-by: Mykhailo Sopiha <mykhailo.sopiha@linaro.org>
Android booting was interrupted if no input devices connected to board.
Failure happened because InputManagerService failed on EventHub object
creation - inotify_add_watch could not find /dev/input. Fix adds
/dev/input dir creation with propriate access mask to init.rc file.
Signed-off-by: Mykhailo Sopiha <mykhailo.sopiha@linaro.org>
am57xevm: Check if mkimage is installed
When building boot_fit.img, mkimage tool must be installed in order to
generate FIT image (it's an external dependency). If it's not installed,
Android build will fail with uncertain message. Warn user if mkimage
tool is missing. While at it, refactor the code a little bit.
Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
When building boot_fit.img, mkimage tool must be installed in order to
generate FIT image (it's an external dependency). If it's not installed,
Android build will fail with uncertain message. Warn user if mkimage
tool is missing. While at it, refactor the code a little bit.
Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
fit: Include am571, am572 IDK DTB in boot fit image
Include AM571x and AM572xIDK DTB for IDK platforms in
android boot_fit image
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
Include AM571x and AM572xIDK DTB for IDK platforms in
android boot_fit image
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
am57xevm: input: late init touchscreen driver
due to early initialization of touchscreen driver module, the following
error is seen at boot up on some of the AM57x based platforms.
which inturn is causing android system server to not respond and
shows a warning popup after boot is completed.
("System no responding, Wait or close the service")
Reason, when touchscreen driver is initialized before android system
is ready, We see the following warning
"W InputAttributes: No editor info for this field. Bug?"
Whereas in working scenario we see
"I InputAttributes: InputType.TYPE_NULL is specified"
This fix is to initialize further later in the android boot flow.
Suggested-by: Vishal Mahaveer <vishalm@ti.com>
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
due to early initialization of touchscreen driver module, the following
error is seen at boot up on some of the AM57x based platforms.
which inturn is causing android system server to not respond and
shows a warning popup after boot is completed.
("System no responding, Wait or close the service")
Reason, when touchscreen driver is initialized before android system
is ready, We see the following warning
"W InputAttributes: No editor info for this field. Bug?"
Whereas in working scenario we see
"I InputAttributes: InputType.TYPE_NULL is specified"
This fix is to initialize further later in the android boot flow.
Suggested-by: Vishal Mahaveer <vishalm@ti.com>
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
am57xevm: Include touchscreen modules for the supported boards
Include IDK edt-ft5x06 touch module.
edt-ft5x06 is the supported touch controller with OSD101T2587-53TS
While at it , minor cleanup in removing the GPEVM touchdriver
pixcir_i2c_ts commented section.
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
Include IDK edt-ft5x06 touch module.
edt-ft5x06 is the supported touch controller with OSD101T2587-53TS
While at it , minor cleanup in removing the GPEVM touchdriver
pixcir_i2c_ts commented section.
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
am57xevm: remove voice capable configuration
'commit 063d78dc65a9 ("am57xevm: Remove car configuration")'
added the voice capable configuration back to overlay config.xml.
This invokes VoiceInteractionManagerService back. Since our device
is data-only we see SystemServer failing
Error" SystemServer: BOOT FAILURE making Network Policy Service ready"
This fix is to go back the initial setting config_voice_capable to
false
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
'commit 063d78dc65a9 ("am57xevm: Remove car configuration")'
added the voice capable configuration back to overlay config.xml.
This invokes VoiceInteractionManagerService back. Since our device
is data-only we see SystemServer failing
Error" SystemServer: BOOT FAILURE making Network Policy Service ready"
This fix is to go back the initial setting config_voice_capable to
false
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
Revert "Use framework default tablet_core_hardware.xml"
This reverts commit 6d68165c518f6b7d251655f59ba105d4a8ed2055.
We still need the custom version of tablet_core_hardware.xml than
using the default android file.
Some of the services are not yet enabled for am57xevm device
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
This reverts commit 6d68165c518f6b7d251655f59ba105d4a8ed2055.
We still need the custom version of tablet_core_hardware.xml than
using the default android file.
Some of the services are not yet enabled for am57xevm device
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
am57xx: Rebuild FIT image when .its is changed
Add .its file to FIT image rule dependency list, so that boot_fit.img
file will be rebuilt when am57xx-evm.its file is changed.
Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Acked-by: Andrew F. Davis <afd@ti.com>
Add .its file to FIT image rule dependency list, so that boot_fit.img
file will be rebuilt when am57xx-evm.its file is changed.
Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Acked-by: Andrew F. Davis <afd@ti.com>
Append to BOARD_{VENDOR, RECOVERY}_KERNEL_MODULES instead of overwriting
Other modules may have been defined elsewhere, append new ones.
Signed-off-by: Andrew F. Davis <afd@ti.com>
Other modules may have been defined elsewhere, append new ones.
Signed-off-by: Andrew F. Davis <afd@ti.com>
Use tabs/spaces consistently and end lists with backslash
Use tabs/spaces consistently and end lists with backslash
Signed-off-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
Use tabs/spaces consistently and end lists with backslash
Signed-off-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
am57xevm: fastboot.sh: remove cpu detect logic
cpu detect logic is not required anymore. Since we are including
boot_fit image which includes all combination of supported dtb and overlay
files.
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
cpu detect logic is not required anymore. Since we are including
boot_fit image which includes all combination of supported dtb and overlay
files.
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
am574x-idk: Include IDK DTB in boot fit image
Include DTB for IDK platforms in android boot_fit image
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
Include DTB for IDK platforms in android boot_fit image
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
am57xevm: fastboot.sh: update script to flash fit image
update flashing script to pick the boot fit image
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
update flashing script to pick the boot fit image
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
am57xevm: Build FIT image
In addition to already generated regular boot.img, build also FIT image
containing:
- zImage
- ramdisk
- dtb files
- dtbo files
- boards configurations info
Resulting image will be named boot_fit.img and will be placed to
$(PRODUCT_OUT) dir.
One can disable the generation of FIT boot image by disabling TARGET_BOOTIMAGE_FIT option in BoardConfig.mk file.
Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
In addition to already generated regular boot.img, build also FIT image
containing:
- zImage
- ramdisk
- dtb files
- dtbo files
- boards configurations info
Resulting image will be named boot_fit.img and will be placed to
$(PRODUCT_OUT) dir.
One can disable the generation of FIT boot image by disabling TARGET_BOOTIMAGE_FIT option in BoardConfig.mk file.
Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
am57xevm: fit: include ramdisk for supported configs
android fit image consists of ramdisk.img along with
zImage, dtb and dtbo
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
android fit image consists of ramdisk.img along with
zImage, dtb and dtbo
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
am57xevm: Add Initial FIT source file
Add .its file (Image Tree source) from TI kernel [1].
This .its file will be used further to generate
Android boot FIT image (boot_fit.img).
It will also contain configuration info, needed to decided which
combination of dtb/dtbo files to use for each particular board.
The only change w.r.t. kernel file is zImage path
(changed to be looked for in current directory).
[1] http://git.ti.com/cgit/cgit.cgi/ti-linux-kernel/ti-linux-kernel.git/tree/arch/arm/boot/dts/ti/am57xx-evm.its?h=ti-linux-4.14.y
Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
[minor update in commitmsg]
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
Add .its file (Image Tree source) from TI kernel [1].
This .its file will be used further to generate
Android boot FIT image (boot_fit.img).
It will also contain configuration info, needed to decided which
combination of dtb/dtbo files to use for each particular board.
The only change w.r.t. kernel file is zImage path
(changed to be looked for in current directory).
[1] http://git.ti.com/cgit/cgit.cgi/ti-linux-kernel/ti-linux-kernel.git/tree/arch/arm/boot/dts/ti/am57xx-evm.its?h=ti-linux-4.14.y
Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
[minor update in commitmsg]
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
Include board specific makefile definitions first
This will prevent certain properties from being overwritten
as with Android priority is given to the first instance.
Signed-off-by: Andrew F. Davis <afd@ti.com>
This will prevent certain properties from being overwritten
as with Android priority is given to the first instance.
Signed-off-by: Andrew F. Davis <afd@ti.com>
Remove unused BOARD_GPU_DRIVERS property
This is no longer used and causes a warning when defined.
Signed-off-by: Andrew F. Davis <afd@ti.com>
This is no longer used and causes a warning when defined.
Signed-off-by: Andrew F. Davis <afd@ti.com>
Add USB file copy directive to the correct variable
Files to copy should go into PRODUCT_COPY_FILES.
Signed-off-by: Andrew F. Davis <afd@ti.com>
Files to copy should go into PRODUCT_COPY_FILES.
Signed-off-by: Andrew F. Davis <afd@ti.com>
Move Auto related definitions to Auto specific makefile
Signed-off-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Andrew F. Davis <afd@ti.com>
Remove com.android.future.usb.accessory as it is already provided
Already included with core_minimal.mk which is in our include chain.
Signed-off-by: Andrew F. Davis <afd@ti.com>
Already included with core_minimal.mk which is in our include chain.
Signed-off-by: Andrew F. Davis <afd@ti.com>
Revert "workaround: configure adb as default."
This reverts commit dda6d31bf1a2feb140fce46f6d89263a929e60ce.
Workaround is not needed anymore as boot to ui with android is
ready now.
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
This reverts commit dda6d31bf1a2feb140fce46f6d89263a929e60ce.
Workaround is not needed anymore as boot to ui with android is
ready now.
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
am57xevm: add drm service and hidl interfaces
Add the default drm hidl service and implementation.
Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
Add the default drm hidl service and implementation.
Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
am57xevm: hold a dummy wake_lock
The dummy wake_lock was previously removed since we configured
the device to not turn off screen. But there are some CTS test
cases where it is possible for screen to be turned off.
Hold a dummy wake_lock to prevent suspend in such scenarios.
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
[picked from omapzoom/jacinto6evm]
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
The dummy wake_lock was previously removed since we configured
the device to not turn off screen. But there are some CTS test
cases where it is possible for screen to be turned off.
Hold a dummy wake_lock to prevent suspend in such scenarios.
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
[picked from omapzoom/jacinto6evm]
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
am57xevm: remove freeform window feature
Removing this permission from device, this was never
tested.
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
[picked from omapzoom/jacinto6evm]
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
Removing this permission from device, this was never
tested.
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
[picked from omapzoom/jacinto6evm]
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
am57xevm: fstab: add quota flag to userdata
Add ext4 file system's quota feature flag for enabling
faster storage statistics and enforcing restrictions on
usage of storage by apps.
https://source.android.com/devices/storage/faster-stats
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
[picked from omapzoom/jacinto6evm]
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
Add ext4 file system's quota feature flag for enabling
faster storage statistics and enforcing restrictions on
usage of storage by apps.
https://source.android.com/devices/storage/faster-stats
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
[picked from omapzoom/jacinto6evm]
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
am57xevm: sepolicy: label misc partition
Add label for misc partition, this partition was
recently added back.
Change-Id: I2327aa20d3b005d9d211f496cddff354b419593f
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
Add label for misc partition, this partition was
recently added back.
Change-Id: I2327aa20d3b005d9d211f496cddff354b419593f
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
am57xevm: fstab: add misc partition
Fix 96092fb (jacinto6evm: fstab: remove unused partition)
"misc" partition is needed for operations like
factory reset. Adding it back.
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
[picked from omapzoom/jacinto6evm]
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
Fix 96092fb (jacinto6evm: fstab: remove unused partition)
"misc" partition is needed for operations like
factory reset. Adding it back.
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
[picked from omapzoom/jacinto6evm]
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
am57xevm: copy default audio_effects.conf to target
Copy default audio_effects.conf file to target.
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
[picked from omapzoom/jacinto6evm]
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
Copy default audio_effects.conf file to target.
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
[picked from omapzoom/jacinto6evm]
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
am57xevm: manifest: add audio effect service
Add audio effects service to device manifest
Change-Id: I9a1d01b54b099eaee555d125a3611f702ac36894
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
Add audio effects service to device manifest
Change-Id: I9a1d01b54b099eaee555d125a3611f702ac36894
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
am57xevm: update media_codecs_performance.xml for Android O
Update media_codecs_performance.xml based on numbers generated
for Android O, using updated cts-media script for generating
the xml file.
Change-Id: I8f1db2bc20319d6fd4a56e5dcb0de9f28441265f
Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
Update media_codecs_performance.xml based on numbers generated
for Android O, using updated cts-media script for generating
the xml file.
Change-Id: I8f1db2bc20319d6fd4a56e5dcb0de9f28441265f
Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
am57xevm: manifest: Include OMX HIDL Service
Add the OMX 1.0 HIDL service for the IOmx and IOmxStore interfaces.
Change-Id: I6e4da2c13336198f0801b1e6ffa2ad795266e364
Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
Add the OMX 1.0 HIDL service for the IOmx and IOmxStore interfaces.
Change-Id: I6e4da2c13336198f0801b1e6ffa2ad795266e364
Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
am57xevm: audio: Support for mandatory channels and sampling rates
Add support for mandatory channel counts (mono and stereo) and sampling rates
(8kHz, 11.025kHz, 16kHz, 22.05kHz, 32kHz and 44.1kHz).
The hardware natively supports 11.025 and 22.05kHz, but the rate of the
playback and capture streams must be symmetric (they share the same FSYNC).
Resampling is also being used for those two sampling rates in order to avoid
cases where one stream direction drags the sample rate to a suboptimal value
for the other stream direction. For example, recording audio at 11.025kHz and
then trying to play 44.1kHz audio.
Mono is supported by duplicated the audio data to the right channel in the
stereo PCM device.
Change-Id: I1041ff5b737f63569a6e0e054eaea2d20a44b475
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
Add support for mandatory channel counts (mono and stereo) and sampling rates
(8kHz, 11.025kHz, 16kHz, 22.05kHz, 32kHz and 44.1kHz).
The hardware natively supports 11.025 and 22.05kHz, but the rate of the
playback and capture streams must be symmetric (they share the same FSYNC).
Resampling is also being used for those two sampling rates in order to avoid
cases where one stream direction drags the sample rate to a suboptimal value
for the other stream direction. For example, recording audio at 11.025kHz and
then trying to play 44.1kHz audio.
Mono is supported by duplicated the audio data to the right channel in the
stereo PCM device.
Change-Id: I1041ff5b737f63569a6e0e054eaea2d20a44b475
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
am57xevm: audio: Remove JAMR3 mixer controls of unused codecs
Remove mixer controls of the JAMR3 sound card which correspond to tlv320aic3106
codec instances B and C which are not enabled by default in the EVM's device
tree.
Change-Id: Ia643f7fd146d1e09f0947dfd76415bdb60a227af
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
Remove mixer controls of the JAMR3 sound card which correspond to tlv320aic3106
codec instances B and C which are not enabled by default in the EVM's device
tree.
Change-Id: Ia643f7fd146d1e09f0947dfd76415bdb60a227af
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
am57xevm: audio: Fix VTS errors on audio HALs
Fix different errors in the VTS test including:
- Incorrect return codes for stub functions
- Aborts when querying presentation position in an inactive stream
Change-Id: Iec57f32f83965e9064039c276fe2833078094dc2
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
Fix different errors in the VTS test including:
- Incorrect return codes for stub functions
- Aborts when querying presentation position in an inactive stream
Change-Id: Iec57f32f83965e9064039c276fe2833078094dc2
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
am57xevm: audio: Fix VTS errors on audio policy configuration
Fix the following VTS errors:
- Added missing 'globalConfiguration' element
- Removed invalid 'description' attribute
Change-Id: Id531a4f6329586e399ac440c9d3b1db45fab5ce0
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
Fix the following VTS errors:
- Added missing 'globalConfiguration' element
- Removed invalid 'description' attribute
Change-Id: Id531a4f6329586e399ac440c9d3b1db45fab5ce0
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
am57xevm: disable Oreo task snapshot feature
Set the property to disable task snapshot. Enabling Task Snapshot
is holding onto background app graphic buffers putting stress on
memory. Disable this to relieve memory pressure.
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
[picked from omapzoom/jacinto6evm]
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
Set the property to disable task snapshot. Enabling Task Snapshot
is holding onto background app graphic buffers putting stress on
memory. Disable this to relieve memory pressure.
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
[picked from omapzoom/jacinto6evm]
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
am57xevm: audio: add header libraries
Add libhardware_headers to the dependency list since
global include paths are not provided by default when
building with BOARD_VNDK_VERSION
Change-Id: I68ae6e1f7a9d3b5604d96769038d53241cac410c
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
Add libhardware_headers to the dependency list since
global include paths are not provided by default when
building with BOARD_VNDK_VERSION
Change-Id: I68ae6e1f7a9d3b5604d96769038d53241cac410c
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
audio: update makefiles with proper vendor flags
Use LOCAL_VENDOR_MODULE lines instead of explicitly specifying
LOCAL_MODULE_PATH for vendor modules.
Change-Id: Ic961758f24b2acccfed71197a0344b3b58566594
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
Use LOCAL_VENDOR_MODULE lines instead of explicitly specifying
LOCAL_MODULE_PATH for vendor modules.
Change-Id: Ic961758f24b2acccfed71197a0344b3b58566594
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
Use framework default tablet_core_hardware.xml
Remove our custom version of this file and use the one
shipped with Android.
Signed-off-by: Andrew F. Davis <afd@ti.com>
Remove our custom version of this file and use the one
shipped with Android.
Signed-off-by: Andrew F. Davis <afd@ti.com>
Remove deprecated egl.cfg
This file is no longer checked by Android. Remove this file.
Signed-off-by: Andrew F. Davis <afd@ti.com>
This file is no longer checked by Android. Remove this file.
Signed-off-by: Andrew F. Davis <afd@ti.com>
Remove uncalibrated VSYNC offsets
These offsets are not calculated for this board. Remove these
until we find the right values for this board.
Signed-off-by: Andrew F. Davis <afd@ti.com>
These offsets are not calculated for this board. Remove these
until we find the right values for this board.
Signed-off-by: Andrew F. Davis <afd@ti.com>
Remove unused definitions in BoardConfig.mk
Cleanup BoardConfig.mk and re-order some defines.
Signed-off-by: Andrew F. Davis <afd@ti.com>
Cleanup BoardConfig.mk and re-order some defines.
Signed-off-by: Andrew F. Davis <afd@ti.com>
Use pvrsrvctl instead of pvrsrvinit
Initialization functions are now supported in pvrsrvctl, use this tool
only and drop pvrsrvinit.
Signed-off-by: Andrew F. Davis <afd@ti.com>
Initialization functions are now supported in pvrsrvctl, use this tool
only and drop pvrsrvinit.
Signed-off-by: Andrew F. Davis <afd@ti.com>
Remove unneeded documentation from product files
Some files contain help info copied over from the parent files,
these lines can be removed in production files.
Signed-off-by: Andrew F. Davis <afd@ti.com>
Some files contain help info copied over from the parent files,
these lines can be removed in production files.
Signed-off-by: Andrew F. Davis <afd@ti.com>
Add Auto specific AM57xx EVM variant
Create auto configuration and move auto specific properties
into that. Rename existing configuration to am57xevm_full.mk
as the more specific name should be first to sort additional
product variants.
Signed-off-by: Andrew F. Davis <afd@ti.com>
Create auto configuration and move auto specific properties
into that. Rename existing configuration to am57xevm_full.mk
as the more specific name should be first to sort additional
product variants.
Signed-off-by: Andrew F. Davis <afd@ti.com>
Reorganize device.mk into sections based on functionality
Group statements to ease finding related statements and to make future
changes easier to understand.
Signed-off-by: Andrew F. Davis <afd@ti.com>
Group statements to ease finding related statements and to make future
changes easier to understand.
Signed-off-by: Andrew F. Davis <afd@ti.com>