aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Kernel: use unified kenrel configurationhistory/before-10-02-2020-rebaseDenis 'GNUtoo' Carikli2019-11-061-1/+9
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* Add SwiftShaderJoonas Kylmälä2019-09-181-0/+2
| | | | Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
* Add hwcomposer.ranchuJoonas Kylmälä2019-09-183-0/+431
| | | | | | This is used for testing SwiftShader Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
* Add backlight control supportJoonas Kylmälä2019-09-035-0/+14
| | | | Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
* Set CONFIG_AVOID_GFX_ACCEL to true via system propertyRicardo 'Grim' Cabrita2019-07-251-0/+1
| | | | | | | | | | | This property decrease memory footprint by avoiding the usage of accelerated graphics in certain places. No noticeable difference in performance was observed when using this. We are keeping it either way, in hopes that extra available memory will be beneficial for some software rendering optimizations. Signed-off-by: Ricardo 'Grim' Cabrita <grimkriegor@krutt.org>
* Disable boot animationDavid Ludovino2019-07-181-0/+1
| | | | | | | | | The boot animation takes a really long time due to the slow graphics rendering. This slows down testing. I am disabling it for the time being, until (a) graphics become faster or (b) it gets replaced for the simpler Replicant boot animation. Signed-off-by: David Ludovino <dllud@riseup.net>
* Revert "Disable HW planes"David Ludovino2019-07-181-2/+1
| | | | | | | | | | This reverts commit 7f0ec11f6f6614679a9ad78c62c30ae6931cb0d7. kernel/replicant/linux was patched to disable devfreq (commit 90ceab148872e9515522c5150df16722822cf9d5). We can now use HW planes without glitches. Signed-off-by: David Ludovino <dllud@riseup.net>
* Assign gbm_gralloc to the first DRM render nodeGrim Kriegor2019-07-161-1/+1
| | | | Signed-off-by: Grim Kriegor <grimkriegor@krutt.org>
* Revert "Use VGEM for rendering graphics"Grim Kriegor2019-07-162-4/+2
| | | | | | This reverts commit c97cb6697a8b6d8bd5ba98d0b04cd7f4893b6de5. Signed-off-by: Grim Kriegor <grimkriegor@krutt.org>
* Use VGEM for rendering graphicsJoonas Kylmälä2019-07-152-2/+4
| | | | Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
* Disable HW planesJoonas Kylmälä2019-07-151-1/+2
| | | | | | Using HW planes causes graphics corruption. Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
* Fix waiting for android.hardware.audio@4.0Denis 'GNUtoo' Carikli2019-07-071-0/+1
| | | | | | | | | | | | | Without that fix we have: I ServiceManager: Waiting for service 'media.audio_flinger' on '/dev/binder'... W ServiceManagement: Waited one second for android.hardware.audio@4.0::IDevicesFactory/default. Waiting another... Adding android.hardware.audio@2.0-service to the list results in hardware/interfaces/audio/common/all-versions/default/service/Android.mk shipping android.hardware.audio@2.0-service.rc which results in the audio service being started. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* HACK: Prevent the device to go in suspendDenis 'GNUtoo' Carikli2019-07-013-0/+18
| | | | | | | | | | | | | | | This is because it's anoying to have the device power off when we're using it though adb. This is for early developement only as it is configurable in the settings->developer menu and it's default value is here: framework/base/packages/SettingsProvider/res/values/defaults.xml It is not desirable to keep that hack in the long run as it makes the device consume power power, which results in a shorter battery life in hours. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* Add support for flashing through heimdallDenis 'GNUtoo' Carikli2019-07-013-0/+11
| | | | | | | | | | | | | | | | | | | | The images built are smaller than the partition sizes. This enables to flash them faster and reduce the probability of failing the flashing. The downside is that, for the data partition, the space available is not enough to complete boot: # df -h Filesystem Size Used Avail Use% Mounted on [...] /dev/block/mmcblk2p16 6.4M 6.1M 308K 96% /data The resizing is not done automatically because it's supposed to happpen during the installation of the zip file. This makes sures that the data partition is resized during boot. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* HACK: Add dummy audioDenis 'GNUtoo' Carikli2019-07-0110-10/+2733
| | | | | | | | | | | | | | | | | | | | | | | | At boot, it complained that it could not get passthrough implementation for the following: - android.hardware.audio@4.0::IDevicesFactory/default. - android.hardware.audio.effect@4.0::IEffectsFactory/default. - android.hardware.bluetooth.a2dp@1.0::IBluetoothAudioOffload/default. - android.hardware.soundtrigger@2.1::ISoundTriggerHw/default. With that makes android.hardware.audio start and makes the boot goes furthurer: # lshal All binderized services (registered services through hwservicemanager) R Interface Thread Use Server Clients [...] Y android.hardware.audio.effect@4.0::IEffectsFactory/default 0/4 202 210 175 Y android.hardware.audio@4.0::IDevicesFactory/default 0/4 202 210 175 The null linux audio driver was also compiled in to make sure that the device is not broken due to bad audio policies, and before that no sound card were present on the target device. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* BoardConfig.mk: Add TARGET_SCREEN_* configurationDenis 'GNUtoo' Carikli2019-06-131-0/+3
| | | | | | | | | Without that we have the following during the build: [1027/1036] including vendor/lineage/bootanimation/Android.mk ... vendor/lineage/bootanimation/Android.mk:19: warning: TARGET_SCREEN_WIDTH is not set, using default value: 1080 vendor/lineage/bootanimation/Android.mk:23: warning: TARGET_SCREEN_HEIGHT is not set, using default value: 1920 Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* init.smdk4x12.rc: Add mandatory vold.post_fs_data_doneDenis 'GNUtoo' Carikli2019-06-131-0/+3
| | | | | | | | | | | | | | The device's init.rc has the following comment: # If there is no post-fs-data action in the init.<device>.rc file, you # must uncomment this line, otherwise encrypted filesystems # won't work. # Set indication (checked by vold) that we have finished this action #setprop vold.post_fs_data_done 1 So it's better to do it in init.smdk4x12.rc instead of having to override init.rc. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* HACK: Import gatekeeper from goldfishDenis 'GNUtoo' Carikli2019-06-136-0/+549
| | | | | | | | | | | | | | | | | | | | | | | | | | Instead, there might be a way to make the default GateKeeper implementation fall back on its internal software implementation on which the goldfish implementation is based as it has the following code: hw_device = IGatekeeper::getService(); if (hw_device == nullptr) { ALOGW("falling back to software GateKeeper"); soft_device.reset(new SoftGateKeeperDevice()); } The implementation has been imported from the lineage-16.0 branch of the https://github.com/LineageOS/android_device_generic_goldfish repository at the following commit: b05b939 Snap for 5130385 from eabd93d25de5a95d6544822d62af6744176fd5e6 to pi-qpr2-release Only the module name and device name have been changed by: * using sed 's#goldfish#i9305#g' -i gatekeeper/* * using sed 's#gatekeeper.ranchu#gatekeeper.default.so#g' -i gatekeeper/Android.mk * correcting gatekeeper module name * changing gatekeeper_module.name and LOG_TAG from goldfish to I9305 Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* HACK: Check in working ADB configurationDenis 'GNUtoo' Carikli2019-06-122-0/+19
| | | | | | | | | | This goes in pair with the kernel configuration. Most of the setup is done in the kernel through CONFIG_USB_FUNCTIONFS=y The CONFIG_USB_FUNCTIONFS=y configuration should instead be replaced by proper userspace setup. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* Add root on serial console for -eng buildsDenis 'GNUtoo' Carikli2019-06-122-0/+15
| | | | | | | | | | | | | | The stock init.rc was modified with the following change: service console /system/bin/sh - user shell + user root - seclabel u:r:shell:s0 + seclabel u:r:su:s0 There is more informations on init.rc syntax here: https://android.googlesource.com/platform/system/core/+/master/init/README.md Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* Use the lineage build systemDenis 'GNUtoo' Carikli2019-06-124-6/+7
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* Move to System-as-rootDenis 'GNUtoo' Carikli2019-06-123-3/+13
| | | | | | | | | | | | | | | | | | | | | | This is required as part of the project Trebble and it also has several technical advantages over the older solutions like the ability to use bigger kernel images. See the following documentation for more details on system as root: https://source.android.com/devices/bootloader/system-as-root The cache partition is also not used anymore: # ls -ld /cache lrw-r--r-- 1 root root 11 2008-12-31 23:00 /cache -> /data/cache There is more information on that here: https://source.android.com/devices/tech/ota/ab/ab_faqs As for the EFS removal: since / is now read-only it's not possible anymore to create an /efs directory from the init.smdk4x12.rc, so we remove it for now. Ideally we'd need to find a way, from this device repository, to tell build/make to create that directory. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* Build the kenrelDenis 'GNUtoo' Carikli2019-06-122-1/+5
| | | | | | | See vendor/lineage/build/tasks/kernel.mk for the properties documentation. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* Move this repository to device/samsung/i9305Denis 'GNUtoo' Carikli2019-06-124-7/+7
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* Initial commitJoonas Kylmälä2019-06-1212-0/+672
Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>