[General Questions and Answers] tmvkrpxl0:
there is no twrp that working properly for A605K... so i decided to make it myself (but i'm noob at linux that's the first problem) so i downloaded https://github.com/omnirom/android/tree/android-8.0 and i found it that there is no device tree for A605K so i decided to make that too, so i tried followed this thread: https://xdaforums.com/android/software-hacking/how-to-create-device-tree-android-rom-t3498355 but there is no mkvendor.sh in ./build/tools/device(device folder doesn't even exist in tools folder) so i downloaded it manualy from internet(and put in /usr/bin) and i typed 'source mkvendor.sh samsung a6pltektt /home/ubuntu/바탕화면/img/boot.img (my device has patched boot img, so i extracted it from A605K firmware file)

then:

Arguments: samsung a6pltektt 바탕화면/img/boot.img

Output will be in //device/samsung/a6pltektt

13161 blocks

cat: /home/ubuntu/prebuilts/ndk/r13/sources/cxx-stl/llvm-libc++/test/std/experimental/string.view/string.view.template: 디렉터리입니다

cat: /home/ubuntu/external/icu/icu4j/eclipse-build/features.template: 디렉터리입니다

cat: /home/ubuntu/external/icu/icu4j/eclipse-build/plugins.template: 디렉터리입니다

cat: /home/ubuntu/external/clang/test/CXX/temp/temp.arg/temp.arg.template: 디렉터리입니다

cat: /home/ubuntu/external/libcxx/test/std/experimental/string.view/string.view.template: 디렉터리입니다

cat: /home/ubuntu/external/libcxx/test/std/strings/string.view/string.view.template: 디렉터리입니다

mv: '//device/samsung/a6pltektt/device.mk'를 설명할 수 없음: 그런 파일이나 디렉터리가 없습니다

Creating initial git repository.

//device/samsung/a6pltektt ~

/device/samsung/a6pltektt/.git/ 안의 빈 깃 저장소를 다시 초기화했습니다

[master (최상위-커밋) ecece5a] mkvendor.sh: Initial commit of a6pltektt

27 files changed, 536 insertions(+)

create mode 100644 ACTIVITY.java

create mode 100644 AndroidManifest

create mode 100644 Common.pl

create mode 100644 DriverRS.java

create mode 100644 DriverView.java

create mode 100644 activity

create mode 100644 asan.options.off

create mode 100644 build

create mode 100644 build-local.properties

create mode 100644 build_gradle

create mode 100644 features

create mode 100644 java_file

create mode 100644 kernel

create mode 100644 launcher_intent_filter

create mode 100644 layout

create mode 100644 plugins

create mode 100644 preference_intent_filter

create mode 100644 prefs

create mode 100644 revision

create mode 100644 string

create mode 100644 string.view

create mode 100644 strings

create mode 100644 temp.arg

create mode 100644 test_instrumentation

create mode 100644 test_uses-library

create mode 100644 uibuild

create mode 100644 uses-sdk

~

Done!

Use the following command to set up your build environment:

lunch cm_a6pltektt-eng

And use the follwowing command to build a recovery:

. build/tools/device/makerecoveries.sh cm_a6pltektt-eng

(i think i made a mistake so source is in /home/ubuntu i wan't to move sources in source folder)

of course lunch cm_a6pltektt-eng and . build/tools/device/makerecoveries.sh cm_a6pltektt-eng won't work (i did that after i type this:sudo bash)

and i searched a bit, so i typed make (and make -j4 otatools but it was same result) and it looked working for a while, but this error appears:

============================================

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=8.0.0

TARGET_PRODUCT=aosp_arm

TARGET_BUILD_VARIANT=eng

TARGET_BUILD_TYPE=release

TARGET_ARCH=arm

TARGET_ARCH_VARIANT=armv7-a

TARGET_CPU_VARIANT=generic

HOST_ARCH=x86_64

HOST_2ND_ARCH=x86

HOST_OS=linux

HOST_OS_EXTRA=Linux-4.15.0-36-generic-x86_64-with-Ubuntu-18.04-bionic

HOST_CROSS_OS=windows

HOST_CROSS_ARCH=x86

HOST_CROSS_2ND_ARCH=x86_64

HOST_BUILD_TYPE=release

BUILD_ID=OPR5.170623.011

OUT_DIR=/home/ubuntu/out

============================================

ninja: no work to do.

ninja: no work to do.

/home/ubuntu/out/build-aosp_arm.ninja is missing, regenerating...

[3/238] including ./bootable/recovery/Android.mk ...

/bin/bash: 줄 0: test: -ge: unary operator expected

bootable/recovery/gui/Android.mk:168: warning:

****************************************************************************

Could not find ui.xml for TW_THEME:

Set TARGET_SCREEN_WIDTH and TARGET_SCREEN_HEIGHT to automatically select

an appropriate theme, or set TW_THEME to one of the following:

landscape_hdpi landscape_mdpi portrait_hdpi portrait_mdpi watch_mdpi

****************************************************************************

bootable/recovery/gui/Android.mk:169: error: Theme selection failed; exiting.

02:55:20 ckati failed with: exit status 1

build/core/main.mk:21: recipe for target 'run_soong_ui' failed

make: *** [run_soong_ui] Error 1

when i downloading sources, this error appeared on few files: "remote: the remote end hung up unexpectedly." major files has downloaded properly. and i already type this: "git config http.postBuffer 104857600" and re-download entire sources, but same error

how can i fix those problems? i have already used envsetup.sh and retried