Custom ROM frequently questions: Difference between revisions

From Bgzashtita Official wiki
Jump to navigation Jump to search
adding how to restore with dd
nothing new
Line 76: Line 76:
Examples:
Examples:
Backup data partition:
Backup data partition:
dd if=/dev/block/mmcblk0p26 of=/sdcard/data.img
dd if=/dev/block/mmcblk0p26 of=/sdcard/data.img


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


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

Revision as of 00:23, 14 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).