aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Disable sparse imagesHEADreplicant-11-nlnet-eu-grant-825310-replicant-updatereplicant-11Denis 'GNUtoo' Carikli2021-09-161-0/+3
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* BoardConfig: reorder alphabeticallyDenis 'GNUtoo' Carikli2021-09-161-14/+27
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* Rename files from smdk4x12 to odroidu3Denis 'GNUtoo' Carikli2021-09-164-3/+6
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* Rename to odroidu3Denis 'GNUtoo' Carikli2021-09-144-8/+8
| | | | | | | | | | | | | | Without that fix we have: $ source build/envsetup.sh $ lunch 17:31:48 Build sandboxing disabled due to nsjail error. In file included from build/make/core/config.mk:291: In file included from build/make/core/envsetup.mk:266: device/hardkernel/odroid-u3/AndroidProducts.mk:20: error: device/hardkernel/odroid-u3: replicant_odroid-u3-userdebug: Invalid variant: u3. 17:31:48 dumpvars failed with: exit status 1 Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* Use generic screen resolutionDenis 'GNUtoo' Carikli2021-09-141-2/+2
| | | | | | 1024x768 is pretty common across HDMI displays. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* Fix BOARD_DTB_IMAGE_NAMEDenis 'GNUtoo' Carikli2021-09-142-3/+3
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* Rename to ODROID-U3Denis 'GNUtoo' Carikli2021-09-144-13/+13
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* README.md: Add recoveryDenis 'GNUtoo' Carikli2021-09-141-1/+1
| | | | | | | | | | | | We do need to flash the recovery to enable people to format the userdata partition. In addition we can't flash the userdata as-is as the hack to automatically reisize it at the first boot doesn't work anymore because for some reasons selinux seems to be enforced for init services even when it's in permissive mode globally. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* README.md: Fix targetDenis 'GNUtoo' Carikli2021-09-141-1/+1
| | | | | | | We now use userdebug for quite some time, and we also use it by default in vendor/replicant/build.sh Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* Move adding android.software.app_widgets.xml to common repoDenis 'GNUtoo' Carikli2021-09-141-1/+0
| | | | | | | | | The device_samsung_i9300 also copies the exact same android.software.app_widgets.xml in the exact same place, so it's best to move that in device_samsung_midas_common. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* Move android.hardware.wifi.xml to common repoDenis 'GNUtoo' Carikli2021-09-071-1/+0
| | | | | | | | The device_samsung_i9300 also ships the exact same android.hardware.wifi.xml file, so it's best to move that in device_samsung_midas_common. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* device.mk: use LOCAL_PATH whenever possibleDenis 'GNUtoo' Carikli2021-09-071-2/+2
| | | | | | | This shorten the lines and makes this repository more position independent. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* Move codecs to to common repoDenis 'GNUtoo' Carikli2021-09-071-1/+0
| | | | | | | | The device_samsung_i9300 also ships the exact same media_codecs.xml file, so it's best to move that in device_samsung_midas_common. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* Remove unused media_codecs.xmlDenis 'GNUtoo' Carikli2021-09-071-23/+0
| | | | | | | The media_codecs.xml is already opied from frameworks/av/media/libstagefright/data/media_codecs_sw.xml Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* move init.smdk4x12.rc to common repoShilin Victor2021-09-071-41/+1
| | | | | | | | | | | Beside the modem specific part, all the content of the init.smdk4x12.rc is shared with the init.smdk4x12.rc from the device_samsung_i9305 repository. Change-Id: Iade835ea98cbf881f41f412405376fe9e361d7dc GNUtoo: rebased to take into account the modem changes, updated commit message Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* Rename lineage_i9305-eng to replicant_i9305-engDenis 'GNUtoo' Carikli2021-05-043-4/+4
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* Fix PRODUCT_MODELDenis 'GNUtoo' Carikli2021-05-041-1/+1
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* use midas audio primary moduleDenis 'GNUtoo' Carikli2020-11-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The default audio HAL is a stub that doesn't do any access to the hardware. The code of the audio.primary.default default implementation is in hardware/libhardware/modules/audio and in audio_hw.c we have: static ssize_t out_write(struct audio_stream_out *stream, const void* buffer, size_t bytes) { ALOGV("out_write: bytes: %zu", bytes); /* XXX: fake timing for audio output */ struct stub_stream_out *out = (struct stub_stream_out *)stream; struct timespec t = { .tv_sec = 0, .tv_nsec = 0 }; clock_gettime(CLOCK_MONOTONIC, &t); const int64_t now = (t.tv_sec * 1000000000LL + t.tv_nsec) / 1000; const int64_t elapsed_time_since_last_write = now - out->last_write_time_us; int64_t sleep_time = bytes * 1000000LL / audio_stream_out_frame_size(stream) / out_get_sample_rate(&stream->common) - elapsed_time_since_last_write; if (sleep_time > 0) { usleep(sleep_time); } else { // we don't sleep when we exit standby (this is typical for a real alsa buffer). sleep_time = 0; } out->last_write_time_us = now + sleep_time; // last_write_time_us is an approximation of when the (simulated) alsa // buffer is believed completely full. The usleep above waits for more space // in the buffer, but by the end of the sleep the buffer is considered // topped-off. // // On the subsequent out_write(), we measure the elapsed time spent in // the mixer. This is subtracted from the sleep estimate based on frames, // thereby accounting for drain in the alsa buffer during mixing. // This is a crude approximation; we don't handle underruns precisely. return bytes; } This function is supposed to send the audio frames to the the audio driver, but instead it doesn't send it anywhere. So we can safely deduce that this implementation is a dummy one that implements the API just to make the higher level of the stack happy. Because of that the Dragonboard audio library which is known to work in Android 11, has been imported in device_samsung_midas_common for now. In order to use it, we need to change ro.hardware.audio.primary as it is used by the higher level stack to find what HAL library to load for the primary audio module. While the Dragonboard audio library doesn't handle audio routing, it is possible to either modify it to do that or use another library like libaudioroute, and the associated mixer_paths.xml configuration file to do it. Thanks to Joonas Kylmälä who identified that the Dragonboard audio library worked out of the box on Android 11 for the Galaxy SIII 4G (GT-I9305). Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* Fix recovery typoDenis 'GNUtoo' Carikli2020-11-241-1/+1
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* Build the kernelDenis 'GNUtoo' Carikli2020-11-241-0/+3
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* Use default audio HALJoonas Kylmälä2020-11-221-1/+1
| | | | Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
* Build recovery imageJoonas Kylmälä2020-11-211-0/+2
| | | | Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
* Make device repo work with Replicant 11Joonas Kylmälä2020-11-162-4/+0
| | | | Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
* Correct graphics settingsreplicant-10Joonas Kylmälä2020-07-222-4/+1
| | | | | | | | | | | | | The hardware seems to support vsync, at least no erros come without this setting. Overlay planes also work, the issue with graphics corruption was previously because we allocated graphics buffers for SCANOUT (buffers to be shown on display) on the GPU render node which seems to allocate the memory non-contiguously with MMU. The exynos display controller seems to require contiguous memory. When gralloc.gbm.device is card0 and kmsro driver is enabled then it handles the allocation between card and render nodes correctly. Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
* Remove unnecessary include to product_launched_with_p.mkJoonas Kylmälä2020-07-221-1/+0
| | | | Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
* Enable software based media decodingJoonas Kylmälä2020-07-072-4/+2
| | | | Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
* Add remaining packages that are required for usual mobile phone usageJoonas Kylmälä2020-07-021-3/+4
| | | | Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
* Move common configurations from i9305 to midas-commonJoonas Kylmälä2020-06-295-139/+0
| | | | Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
* Remove duplicated mounting of configfsJoonas Kylmälä2020-06-291-5/+0
| | | | | | The common init.rc already does this. Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
* Disable HW overlay planesJoonas Kylmälä2020-06-261-1/+1
| | | | | | It causes graphics corruption with Lima Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
* Replace vendorsetup.sh by COMMON_LUNCH_CHOICESTobias Tefke2020-06-262-17/+3
| | | | | | | | | | | | | Using vendorsetup generated the following warning message: device/samsung/i9305/vendorsetup.sh:17: add_lunch_combo is obsolete. Use COMMON_LUNCH_CHOICES in your AndroidProducts.mk instead. So we use COMMON_LUNCH_CHOICES in your AndroidProducts.mk instead in order to silence this warning. Signed-off-by: Tobias Tefke <t.tefke@stud.fh-sm.de> GNUtoo@cyberdimension.org: fixed a tiny bit the comimt message Acked-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* Use GPU render node for graphicsJoonas Kylmälä2020-04-131-1/+1
| | | | Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
* Allow access to GPU render nodeJoonas Kylmälä2020-04-131-0/+1
| | | | Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
* Use lights HAL settings from midas-commonJoonas Kylmälä2020-04-121-6/+0
| | | | Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
* Use Mesa3d and drm_hwcomposer for graphicsJoonas Kylmälä2020-04-121-2/+2
| | | | Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
* Use manifest.xml from midas-commonJoonas Kylmälä2020-04-102-136/+0
| | | | Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
* Include midas.mk to add memtrack module to the buildJoonas Kylmälä2020-04-102-0/+11
| | | | Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
* Use midas-common repo for shared settingsJoonas Kylmälä2020-04-1013-3657/+1
| | | | Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
* Use SwiftShader for graphicsJoonas Kylmälä2020-04-082-4/+2
| | | | Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
* Remove memtrack since it blocks bootingJoonas Kylmälä2020-04-082-11/+0
| | | | Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
* Use stub audio settingsJoonas Kylmälä2020-04-082-6/+7
| | | | | | | We have no audio implemented yet so let's use the audio settings for devices that have no audio devices. Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
* Fix brand/manufacturerDenis 'GNUtoo' Carikli2020-02-101-2/+2
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* README: Add the hack to make adb workDenis 'GNUtoo' Carikli2020-02-101-1/+1
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* README: The kernel is now built automaticallyDenis 'GNUtoo' Carikli2020-02-101-8/+0
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* README: Fix device nameDenis 'GNUtoo' Carikli2020-02-101-1/+1
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* Add memtrack supportDenis 'GNUtoo' Carikli2020-02-102-0/+11
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* Kernel: use unified kenrel configurationDenis 'GNUtoo' Carikli2020-02-101-1/+9
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* Add SwiftShaderJoonas Kylmälä2020-02-101-0/+2
| | | | Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
* Add hwcomposer.ranchuJoonas Kylmälä2020-02-103-0/+431
| | | | | | This is used for testing SwiftShader Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
* Add backlight control supportJoonas Kylmälä2020-02-105-0/+14
| | | | Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>