Custom ROM frequently questions

From Bgzashtita Official wiki
Jump to navigation Jump to search

Hi I need donations to pay and help my mother gain money: Much people's are asking how to solve this, and it take times to respond donate on Paypal: petur@bgzashtita.es


How to clone clang versión. For this first can try proton clang:

cd android/prebuilts/clang/hosts/linux-x86/

And then git clone --depth=1 https://github.com/kdrag0n/proton-clang


When it is cloned. You need go to your android directory

cd android/device/yourvendor/model/ And there edit Boardconfig.mk

# kernel
TARGET_KERNEL_CLANG_PATH := $(shell pwd)/prebuilts/clang/host/linux-x86/proton-clang

Save board config.mk and then try compile





error: device/generic/opengl-transport/host/libs/virglrenderer/Android.bp:156:1: "libvirglrenderer_cuttlefish" depends on undefined module "cuttlefish_host_only"

Solution: add this in local manifests file

<remove-project name="device/generic/opengl-transport" />

Source: telegram custom ROM build



How, where download latest version 1.Abril.2023 latest clang version 17:

1. If you want every time you run repo sync, then need create directory and there make local.yml

mkdir android/.repo/local_manifests
nano android/.repo/local_manifests/local.xml


<remote name="bgzashtita-clang"
                fetch="https://bgzashtita.es/git/android%22
                revision="17" />"
 <project path="prebuilts/clang/host/linux-x86/weebx-clang" name="android_prebuilts_clang_host_linux-x86_weebx_clang" remote="bgzashtita-clang" />


2. CD android/prebuilts/clang/host/linux-x86/

git clone https://bgzashtita.es/git/android/android_prebuilts_clang_host_linux-x86_weebx_clang.git

then follow " how to change clang version first question in this questions



magisk existing module

https://www.pling.com/p/1794976/


Hello,

Is is possible to use dd command available under busybox when in recovery mode to backup partitions?

Examples: Backup data partition:

dd if=/dev/block/mmcblk0p26 of=/sdcard/data.img

Restore data partition:

dd if=/sdcard/data.img of=/dev/block/mmcblk0p26

If yes, then what the needed mount commands to make the above work.

The reason is that I have a problem with nandroid restore: http://forum.xda-developers.com/showpost.php?p=14714800&postcount=319

Note: similar command apparently works for flashing recovery image (which is partition /dev/block/mmcblk0p21).




core: Makefile: shut the fuck up

  • silence wedge, I just wanna copy a prebuilt apk

Silences annoying shit like build/make/core/Makefile:49: warning: Prebuilt apk found in PRODUCT_COPY_FILES: vendor/xperia/proprietary/system/priv-app/Contacts/Contacts.apk:system/priv-app/Contacts/Contacts.apk, use BUILD_PREBUILT instead!


core/Makefile @@ -14,9 +14,6 @@ LOCAL_PATH := $(BUILD_SYSTEM)

  1. $(1): the src:dest pair
  2. $(2): the dest

define check-product-copy-files

DELETE $(if $(filter-out $(TARGET_COPY_OUT_SYSTEM_OTHER)/%,$(2)), \
DELETE  $(if $(filter %.apk, $(2)),$(warning \
DELETE     Prebuilt apk found in PRODUCT_COPY_FILES: $(1), use BUILD_PREBUILT instead!))) \

$(if $(filter true,$(BUILD_BROKEN_VINTF_PRODUCT_COPY_FILES)),, \

 $(if $(filter $(TARGET_COPY_OUT_SYSTEM)/etc/vintf/% \
               $(TARGET_COPY_OUT_SYSTEM)/manifest.xml \



sm8350-common: Build android.hardware.graphics.allocator@3.0-service. I hwservicemanager: getTransport: Cannot find entry android.hardware.graphics.allocator@3.0::IAllocator/default in either framework or device. VINTF manifest. E LegacySupport: Could not get passthrough implementation for android.hardware.graphics.allocator@3.0::IAllocator/default

   android.hardware.graphics.allocator@3.0-service \

gta4xl-common: rev graphics.composer to 2.4 Move sunfish to composer 2.4 interface for the R api additions.

Bug: 148836379 Test: 1. $adb shell lshal | grep 'composer'

   android.hardware.graphics.composer@2.4::IComposer/default

2. $adb shell lshal --init-vintf <hal format="hidl">

  <name>android.hardware.graphics.composer</name>
  <transport>hwbinder</transport>
  <fqname>@2.4::IComposer/default</fqname>

</hal>

3. adb shell ps | grep 'composer' system ... android.hardware.graphics.composer@2.4-service-sm8150

4. vts-tf > run vts -m VtsHalGraphicsComposerV2_4Target 5. Check FOSS work

https://github.com/crdroidandroid/android_device_samsung_gta4xl-common/commit/b02aa781897065ae393f8b1c274e942d44a4c1ea


device/realme/RMX1971/sepolicy/vendor/hal_neuralnetworks_default.te:2:ERROR 'unknown type vendor_h al_neuralnetworks_default' at token ';' on line 130866:

nano device/realme/RMX1971/sepolicy/vendor/hal_neuralnetworks_default.te
type vendor_hal_neuralnetworks_default, domain;

Thank to @dib_pradhan from custom ROM telegram