aboutsummaryrefslogtreecommitdiffstats
path: root/device.mk
Commit message (Collapse)AuthorAgeFilesLines
* 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-011-0/+6
| | | | | | | | | | | | | | | 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-011-0/+3
| | | | | | | | | | | | | | | | | | | | 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-011-6/+24
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* HACK: Import gatekeeper from goldfishDenis 'GNUtoo' Carikli2019-06-131-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | 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-121-0/+5
| | | | | | | | | | 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-121-0/+6
| | | | | | | | | | | | | | 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>
* Build the kenrelDenis 'GNUtoo' Carikli2019-06-121-1/+0
| | | | | | | 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-121-3/+3
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* Initial commitJoonas Kylmälä2019-06-121-0/+105
Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>