Custom ROM frequently questions: Difference between revisions

From Bgzashtita Official wiki
Jump to navigation Jump to search
No edit summary
how to install missing manifest
Line 114: Line 114:
                 $(TARGET_COPY_OUT_SYSTEM)/manifest.xml \
                 $(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 \


-------------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------------

Revision as of 00:46, 27 April 2023

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 \