Giter Site home page Giter Site logo

platform_manifest_twrp_aosp's Introduction

Submitting Patches

Our project is open source, and patches are always welcome! You can send patches by using:

Pull request, right here on git.

Contact us at https://rebrand.ly/teamwin-recovery-zulip-community

Maintaining Authorship

Maintaining authorship is a very important aspect of working with Open Source code. If you wish to submit a patch/fix from anywhere else (another ROM, project, etc.), it is imperative that you maintain the ownership of the person whose work you are seeking to include. Doing so will ensure that credit is given where it is deserved, and the principles of open source are upheld. Your contribution to the project will still be recognized as you will forever be listed as the committer.

If you manually cherry pick a patch/fix then you will need to add the original author prior to pushing to our gerrit. This is a very easy task to perform, and is usually done after you commit a patch/fix locally. This is accomplished after you type in git commit -a , type in the commit message and save. You would then do the following:

git commit --amend --author "Author <[email protected]>"

So it should look like this once you get all of the author's information:

git commit --amend --author "Spencer McGillicuddy <[email protected]>"

Alternatively, adding as part of the original git commit message is preferred and done like the following:

git commit --author="Author <[email protected]>" -m "[commit message]"

This saves time, and when part of your normal routine, prevents the infamous "ermahgerd I forgot to add authorship - let me fix it because I was found out!" message.

Getting Started

To get started with AOSP sources to build TWRP, you'll need to get familiar with Git and Repo.

To initialize your local repository using the AOSP trees to build TWRP, use a command like this:

repo init -u https://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp.git -b twrp-12.1

To initialize a shallow clone, which will save even more space, use a command like this:

repo init --depth=1 -u https://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp.git -b twrp-12.1

Then to sync up:

repo sync

Then to setup the build:

 cd <source-dir>; export ALLOW_MISSING_DEPENDENCIES=true; . build/envsetup.sh; lunch twrp_<device>-eng

The build target is dependent on the device, and should reflect the location of stock recovery on the device. Issue the build command that applies to your device:

  • Recovery partition: mka recoveryimage
  • Boot image ramdisk: mka bootimage
  • Vendor_boot image ramdisk: mka vendorbootimage

Special Notes for this branch

  • Device makefile in the device tree and dependencies file should use the "twrp" prefix.
  • FDE decryption is not presently supported in this branch.

platform_manifest_twrp_aosp's People

Contributors

bdcgoogle avatar bsimonnet avatar captainthrowback avatar cco3 avatar cferris1000 avatar colincross avatar danalbert avatar danw avatar delphij avatar deymo avatar enh-google avatar freeinfra avatar gauravsh-google avatar ghartman17022 avatar iam avatar kruton avatar lhchavez avatar liutikas avatar miaowang14 avatar mkayyash avatar mnissler avatar nfuller avatar nickkral avatar paulduffin avatar pirama-arumuga-nainar avatar stephenhines avatar tornewuff avatar vapier avatar wileyatgoogle avatar zqiu-nest avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

platform_manifest_twrp_aosp's Issues

fatal: couldn't find remote ref refs/heads/twrp-10

dolphinp1-twrp> repo init -u https://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp.git -b twrp-10
Downloading Repo source from https://gerrit.googlesource.com/git-repo
repo: Updating release signing keys to keyset ver 2.3

manifests:
fatal: couldn't find remote ref refs/heads/twrp-10
manifests: sleeping 4.0 seconds before retrying

manifests:
fatal: couldn't find remote ref refs/heads/twrp-10
fatal: cannot obtain manifest https://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp.git
jo@UNKNOWN:~/dolphinp1-twrp> repo init --depth=1 -u https://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp.git -b twrp-10
Downloading Repo source from https://gerrit.googlesource.com/git-repo

manifests:
fatal: couldn't find remote ref refs/heads/twrp-10
manifests: sleeping 4.0 seconds before retrying

manifests:
fatal: couldn't find remote ref refs/heads/twrp-10
fatal: cannot obtain manifest https://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp.git
jo@UNKNOWN:~/dolphinp1-twrp> repo init --depth=1 -u https://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp.git -b twrp-10

manifests:
fatal: couldn't find remote ref refs/heads/twrp-10
manifests: sleeping 4.0 seconds before retrying

manifests:
fatal: couldn't find remote ref refs/heads/twrp-10
fatal: cannot obtain manifest https://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp.git

struct.error: 'I' format requires 0 <= number <= 4294967295

mka bootimage
build/make/core/soong_config.mk:197: warning: BOARD_PLAT_PUBLIC_SEPOLICY_DIR has
 been deprecated. Use SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS instead.
build/make/core/soong_config.mk:198: warning: BOARD_PLAT_PRIVATE_SEPOLICY_DIR ha
s been deprecated. Use SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS instead.
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=16.1.0
TARGET_PRODUCT=twrp_pinephone
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.19.0-40-generic-x86_64-Ubuntu-22.10
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=SP2A.220405.004
OUT_DIR=out
============================================
environment variables changed value:
   ALLOW_MISSING_DEPENDENCIES ("true" -> "")
wildcard(out/target/product/pinephone/clean_steps.mk) was changed, regenerating.
..
[100% 1026/1026] Target boot image: out/target/product/pinephone/boot.img
FAILED: out/target/product/pinephone/boot.img
/bin/bash -c "(out/host/linux-x86/bin/mkbootimg --kernel    out/target/product/p
inephone/kernel  --ramdisk out/target/product/pinephone/ramdisk.img --cmdline \"
androidboot.hardware=pinephone buildvariant=userdebug buildvariant=eng\" --base 
0x40078000 --pagesize 4096 --os_version 12 --os_patch_level 2099-12-31  --header
_version 2 --ramdisk_offset 0x03288000 --tags_offset 0xfff88100 --dtb device/pin
e64/pinephone/prebuilt/dtb.img --output out/target/product/pinephone/boot.img ) 
&& (size=\$(for i in out/target/product/pinephone/boot.img; do stat -c \"%s\" \"
\$i\" | tr -d '\\n'; echo +; done; echo 0); total=\$(( \$( echo \"\$size\" ) ));
 printname=\$(echo -n \"out/target/product/pinephone/boot.img\" | tr \" \" +); m
axsize=\$((     29360128-69632)); if [ \"\$total\" -gt \"\$maxsize\" ]; then ech
o \"error: \$printname too large (\$total > \$maxsize)\"; false; elif [ \"\$tota
l\" -gt \$((maxsize - 32768)) ]; then echo \"WARNING: \$printname approaching si
ze limit (\$total now; limit \$maxsize)\"; fi ) && (out/host/linux-x86/bin/avbto
ol add_hash_footer --image out/target/product/pinephone/boot.img --partition_siz
e   29360128 --partition_name boot  --prop com.android.build.boot.fingerprint:\$
(cat out/target/product/pinephone/build_fingerprint.txt) --prop com.android.buil
d.boot.os_version:12 )"
Traceback (most recent call last):
  File "/home/aaron/twrp/out/host/linux-x86/bin/mkbootimg/internal/stdlib/runpy.
py", line 197, in _run_module_as_main
  File "/home/aaron/twrp/out/host/linux-x86/bin/mkbootimg/internal/stdlib/runpy.
py", line 87, in _run_code
  File "/home/aaron/twrp/out/host/linux-x86/bin/mkbootimg/__main__.py", line 12,
 in <module>
  File "/home/aaron/twrp/out/host/linux-x86/bin/mkbootimg/internal/stdlib/runpy.
py", line 197, in _run_module_as_main
  File "/home/aaron/twrp/out/host/linux-x86/bin/mkbootimg/internal/stdlib/runpy.
py", line 87, in _run_code
  File "/home/aaron/twrp/out/host/linux-x86/bin/mkbootimg/mkbootimg.py", line 67
4, in <module>
  File "/home/aaron/twrp/out/host/linux-x86/bin/mkbootimg/mkbootimg.py", line 66
4, in main
  File "/home/aaron/twrp/out/host/linux-x86/bin/mkbootimg/mkbootimg.py", line 21
1, in write_header
struct.error: 'I' format requires 0 <= number <= 4294967295
11:11:47 ninja failed with: exit status 1

#### failed to build some targets (53 seconds) ####

An error will be reported every time the compilation reaches 84%. The same error is reported whether it is compiling locally or in the workflow of GitHub Action.

bootable/recovery/twrp-functions.cpp:1624:20: error: use of undeclared identifier 'PageManager'; did you mean 'DataManager'?
char* manifest = PageManager::LoadFileToBuffer(filename, NULL);
^~~~~~~~~~~
DataManager
bootable/recovery/data.hpp:28:7: note: 'DataManager' declared here
class DataManager
^
bootable/recovery/twrp-functions.cpp:1624:33: error: no member named 'LoadFileToBuffer' in 'DataManager'
char* manifest = PageManager::LoadFileToBuffer(filename, NULL);
~~~~~~~~~~~~~^
bootable/recovery/twrp-functions.cpp:1626:3: error: no template named 'xml_document'
xml_document<>* vintfManifest = new xml_document<>();
^
bootable/recovery/twrp-functions.cpp:1626:39: error: no template named 'xml_document'
xml_document<>* vintfManifest = new xml_document<>();
^
bootable/recovery/twrp-functions.cpp:1628:3: error: no template named 'xml_node'
xml_node<>* manifestNode = vintfManifest->first_node("manifest");
^
bootable/recovery/twrp-functions.cpp:1631:9: error: no template named 'xml_node'
for (xml_node<>* child = manifestNode->first_node(); child; child = child->next_sibling()) {
^
bootable/recovery/twrp-functions.cpp:1634:6: error: no template named 'xml_node'
xml_node<>* nameNode = child->first_node("name");
^
bootable/recovery/twrp-functions.cpp:1637:7: error: no template named 'xml_node'
xml_node<> *versionNode = child->first_node("version");
^
8 errors generated.
[ 84% 17457/20660] target C++: recovery <= bootable/recovery/partition.cpp
[ 84% 17458/20660] target C++: recovery <= bootable/recovery/partitionmanager.cpp
[ 84% 17459/20660] //system/sepolicy:product_sepolicy.cil Building cil for product_sepolicy.cil [common]
ninja: build stopped: subcommand failed.
03:04:16 ninja failed with: exit status 1
Process completed with exit code 1.

platform_manifest_twrp_aosp is no work

https://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp

[ 76% 216/282] including external/libaom/Android.mk ...
[ 76% 217/282] including external/libncurses/Android.mk ...
[ 77% 218/282] including external/magisk-prebuilt/Android.mk ...
[ 77% 219/282] including external/nano/Android.mk ...
[ 78% 220/282] including external/openssh/Android.mk ...
[ 78% 221/282] including external/robolectric-shadows/Android.mk ...
[ 78% 222/282] including external/vixl/Android.mk ...
[ 79% 223/282] including frameworks/base/Android.mk ...
FAILED: 
In file included from external/vixl/Android.mk:69:
In file included from frameworks/base/Android.mk:77:
frameworks/base/services/core/xsd/vts/Android.mk:22: error: test/vts/tools/build/Android.host_config.mk: No such file or directory
22:58:17 ckati failed with: exit status 1
Error: Process completed with exit code 1.

ninja no work to do

On building twrp for device air (Redmi 13C 5G) running mka vendorbootimage the vendor_boot.img is not generated in the out/ directory, Upon checking the logs it showed

ninja: no work to do.

So where did i go wrong?
Here are: logs devicetree

Zulip link in README is dead

Title says it all. Looks like there are commits from a month ago, so I'm assuming the project isn't dead.

Is the zulip still alive, and if so, could you post a new sign-up link?

I tried joining the #twrp channel on Libera IRC, and it was dead, so I'm hoping to find another active community.

Can't get it to compile on Samsung A12

For some strange reason, I can't get it to compile on AOSP android 11. When I use the manifests for omni (android 10) all is ok, can compile just fine. On this AOSP manifest, it just hang after including prebuilt kernel with ninja: no job to do.

Is the manifest still not complete, or am I missing something?
Device tree is here: https://github.com/edward0181/twrp_samsung_a12
but it just doesn't to work.

ui.xml Problem

Hello. I've been trying to compile TWRP for my Nokia 5.3 using this device tree
I can't seem to get it to compile properly, I've done the steps of . build/envsetup.sh, lunch, m (using aosp_arm64-eng)
Checked through BroadConfig.mk and through the GUI xml's, changing the screen size to match the phone.
Please help :(

terminal

sync issues

how to fix this error

image

platform/external/apache-xml:
fatal: unable to access 'https://android.googlesource.com/platform/external/apache-xml/': Failed to connect to android.googlesource.com port 443 after 299999 ms: Connection timed out
platform/external/apache-xml: sleeping 4.0 seconds before retrying
fatal: unable to access 'https://android.googlesource.com/platform/external/apache-xml/': Failed to connect to android.googlesource.com port 443 after 299999 ms: Connection timed out
error: Cannot fetch platform/external/apache-xml from https://android.googlesource.com/platform/external/apache-xml
Fetching: 25% (64/248) 15:18 | 4 jobs | 10:03 platform/external/grpc-grpc @ external/grpc-grpc
fatal: unable to access 'https://android.googlesource.com/platform/external/grpc-grpc/': Failed to connect to android.googlesource.com port 443 after 299999 ms: Connection timed out

ninja failed with: exit status 1

After doing mka recoveryimage it returns me that at the end of the process

[ 99% 16572/16573] build out/target/product/eros/recovery.img
FAILED: out/target/product/eros/recovery.img
/bin/bash -c "(out/host/linux-x86/bin/mkbootimg --kernel out/target/product/eros/kernel --ramdisk out/target/product/eros/ramdisk-recovery.img  --cmdline \"selinux=1 androidboot.selinux=permissive androidboot.dtbo_idx=0,1,2 buildvariant=userdebug buildvariant=eng\" --base 0x40078000 --pagesize 2048 --os_version 12 --os_patch_level 2099-12-31  --header_version 2 --ramdisk_offset 0x02f88000 --tags_offset 0xfff88100 --dtb device/redline/eros/prebuilt/dtb.img --output  out/target/product/eros/recovery.img ) && (size=\$(for i in  out/target/product/eros/recovery.img; do stat -c \"%s\" \"\$i\" | tr -d '\\n'; echo +; done; echo 0); total=\$(( \$( echo \"\$size\" ) )); printname=\$(echo -n \" out/target/product/eros/recovery.img\" | tr \" \" +); maxsize=\$((   33554432-69632)); if [ \"\$total\" -gt \"\$maxsize\" ]; then echo \"error: \$printname too large (\$total > \$maxsize)\"; false; elif [ \"\$total\" -gt \$((maxsize - 32768)) ]; then echo \"WARNING: \$printname approaching size limit (\$total now; limit \$maxsize)\"; fi ) && (out/host/linux-x86/bin/avbtool add_hash_footer --image  out/target/product/eros/recovery.img --partition_size 33554432 --partition_name recovery --algorithm SHA256_RSA4096 --key external/avb/test/data/testkey_rsa4096.pem --prop com.android.build.recovery.fingerprint:\$(cat out/target/product/eros/build_fingerprint.txt) --prop com.android.build.boot.os_version:16.1.0 --prop com.android.build.boot.security_patch:2099-12-31 --rollback_index 1 )"
Traceback (most recent call last):
  File "/home/karim/twrpdtgen/min/out/host/linux-x86/bin/mkbootimg/internal/stdlib/runpy.py", line 197, in _run_module_as_main
  File "/home/karim/twrpdtgen/min/out/host/linux-x86/bin/mkbootimg/internal/stdlib/runpy.py", line 87, in _run_code
  File "/home/karim/twrpdtgen/min/out/host/linux-x86/bin/mkbootimg/__main__.py", line 12, in <module>
  File "/home/karim/twrpdtgen/min/out/host/linux-x86/bin/mkbootimg/internal/stdlib/runpy.py", line 197, in _run_module_as_main
  File "/home/karim/twrpdtgen/min/out/host/linux-x86/bin/mkbootimg/internal/stdlib/runpy.py", line 87, in _run_code
  File "/home/karim/twrpdtgen/min/out/host/linux-x86/bin/mkbootimg/mkbootimg.py", line 674, in <module>
  File "/home/karim/twrpdtgen/min/out/host/linux-x86/bin/mkbootimg/mkbootimg.py", line 664, in main
  File "/home/karim/twrpdtgen/min/out/host/linux-x86/bin/mkbootimg/mkbootimg.py", line 211, in write_header
struct.error: 'I' format requires 0 <= number <= 4294967295
04:25:12 ninja failed with: exit status 1

#### failed to build some targets (01:35:19 (hh:mm:ss)) ####

18n.module.public.api

error: external/icu/android_icu4j/Android.bp:168:1: module "i18n.module.public.api" var
iant "android_common": i18n.module.public.api is missing tracking files for previously
released library versions.
You need to do one of the following:

  • Add unsafe_ignore_missing_latest_api: true to your blueprint (to disable compat tra
    cking)
  • Add a set of prebuilt txt files representing the last released version of this librar
    y for compat checking.
    (the current set of API files can be used as a seed for this compatibility tracking

The following filegroup modules are missing:
runtime-i18n.api.public.latest
runtime-i18n-removed.api.public.latest
runtime-i18n-incompatibilities.api.public.latest
Please see the documentation of the prebuilt_apis module type (and a usage example in p
rebuilts/sdk) for a convenient way to generate these.

mka recoveryimage builds successfully without actually making a recovery.img file

repo init --depth=1 -u https://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp.git -b twrp-11
repo sync
git clone -b android-11 https://github.com/TeamWin/android_device_xiaomi_renoir.git device/xiaomi/renoir
export ALLOW_MISSING_DEPENDENCIES=true
source build/envsetup.sh
lunch twrp_renoir-eng
mka recoveryimage
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=127
TARGET_PRODUCT=twrp_renoir
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-2a
TARGET_2ND_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.4.0-81-generic-x86_64-Ubuntu-20.04.3-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=RQ1A.210205.004
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=device/xiaomi/renoir hardware/qcom-caf/bootctrl vendor/qcom/opensource/commonsys-intf/display
============================================
ninja: no work to do.

#### build completed successfully (01:42 (mm:ss)) ####

system requirements

What are the system requirements for repo sync Is available memory a big issue and is cpu a big issue

repo init error

scarlet-glass@scarlet-glass-PC:~/twrp$ repo init --depth=1 -u git://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp.git -b twrp-11
Downloading Repo source from https://gerrit.googlesource.com/git-repo
remote: Counting objects: 2, done
remote: Finding sources: 100% (54/54)
remote: Total 54 (delta 27), reused 54 (delta 27)
展开对象中: 100% (54/54), 完成.
Downloading manifest from git://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp.git
remote: Enumerating objects: 8, done.
remote: Counting objects: 100% (8/8), done.
remote: Compressing objects: 100% (6/6), done.
fatal: 读取错误: 连接被对方重设
fatal: 协议错误:坏的包头
manifests: sleeping 4.0 seconds before retrying
remote: Enumerating objects: 8, done.
remote: Counting objects: 100% (8/8), done.
remote: Compressing objects: 100% (6/6), done.
fatal: 读取错误: 连接被对方重设
fatal: 协议错误:坏的包头
fatal: cannot obtain manifest git://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp.git

struct.error: 'I' format requires 0 <= number <= 4294967295

mka bootimage
build/make/core/soong_config.mk:197: warning: BOARD_PLAT_PUBLIC_SEPOLICY_DIR has
 been deprecated. Use SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS instead.
build/make/core/soong_config.mk:198: warning: BOARD_PLAT_PRIVATE_SEPOLICY_DIR ha
s been deprecated. Use SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS instead.
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=16.1.0
TARGET_PRODUCT=twrp_pinephone
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.19.0-40-generic-x86_64-Ubuntu-22.10
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=SP2A.220405.004
OUT_DIR=out
============================================
environment variables changed value:
   ALLOW_MISSING_DEPENDENCIES ("true" -> "")
wildcard(out/target/product/pinephone/clean_steps.mk) was changed, regenerating.
..
[100% 1026/1026] Target boot image: out/target/product/pinephone/boot.img
FAILED: out/target/product/pinephone/boot.img
/bin/bash -c "(out/host/linux-x86/bin/mkbootimg --kernel    out/target/product/p
inephone/kernel  --ramdisk out/target/product/pinephone/ramdisk.img --cmdline \"
androidboot.hardware=pinephone buildvariant=userdebug buildvariant=eng\" --base 
0x40078000 --pagesize 4096 --os_version 12 --os_patch_level 2099-12-31  --header
_version 2 --ramdisk_offset 0x03288000 --tags_offset 0xfff88100 --dtb device/pin
e64/pinephone/prebuilt/dtb.img --output out/target/product/pinephone/boot.img ) 
&& (size=\$(for i in out/target/product/pinephone/boot.img; do stat -c \"%s\" \"
\$i\" | tr -d '\\n'; echo +; done; echo 0); total=\$(( \$( echo \"\$size\" ) ));
 printname=\$(echo -n \"out/target/product/pinephone/boot.img\" | tr \" \" +); m
axsize=\$((     29360128-69632)); if [ \"\$total\" -gt \"\$maxsize\" ]; then ech
o \"error: \$printname too large (\$total > \$maxsize)\"; false; elif [ \"\$tota
l\" -gt \$((maxsize - 32768)) ]; then echo \"WARNING: \$printname approaching si
ze limit (\$total now; limit \$maxsize)\"; fi ) && (out/host/linux-x86/bin/avbto
ol add_hash_footer --image out/target/product/pinephone/boot.img --partition_siz
e   29360128 --partition_name boot  --prop com.android.build.boot.fingerprint:\$
(cat out/target/product/pinephone/build_fingerprint.txt) --prop com.android.buil
d.boot.os_version:12 )"
Traceback (most recent call last):
  File "/home/aaron/twrp/out/host/linux-x86/bin/mkbootimg/internal/stdlib/runpy.
py", line 197, in _run_module_as_main
  File "/home/aaron/twrp/out/host/linux-x86/bin/mkbootimg/internal/stdlib/runpy.
py", line 87, in _run_code
  File "/home/aaron/twrp/out/host/linux-x86/bin/mkbootimg/__main__.py", line 12,
 in <module>
  File "/home/aaron/twrp/out/host/linux-x86/bin/mkbootimg/internal/stdlib/runpy.
py", line 197, in _run_module_as_main
  File "/home/aaron/twrp/out/host/linux-x86/bin/mkbootimg/internal/stdlib/runpy.
py", line 87, in _run_code
  File "/home/aaron/twrp/out/host/linux-x86/bin/mkbootimg/mkbootimg.py", line 67
4, in <module>
  File "/home/aaron/twrp/out/host/linux-x86/bin/mkbootimg/mkbootimg.py", line 66
4, in main
  File "/home/aaron/twrp/out/host/linux-x86/bin/mkbootimg/mkbootimg.py", line 21
1, in write_header
struct.error: 'I' format requires 0 <= number <= 4294967295
11:11:47 ninja failed with: exit status 1

#### failed to build some targets (53 seconds) ####

Lunch call fails due to invalid TARGET_PLATFORM_VERSION

A recent check-in seems to be causing lunch to fail due to an invalid TARGET_PLATFORM_VERSION.

To repo:

  • Initialize a new shallow clone of the twrp-11 branch and sync
  • Per the setup instructions, set export ALLOW_MISSING_DEPENDENCIES=true and call build/envsetup.sh.
  • Run lunch

Result:

build/make/core/version_defaults.mk:56: warning: Invalid TARGET_PLATFORM_VERSION 'PPR1', must be one of
In file included from build/make/core/config.mk:291:
In file included from build/make/core/envsetup.mk:68:
build/make/core/version_defaults.mk:57: error: RP1A.
23:19:39 dumpvars failed with: exit status 1

Lunch then runs, but there are no listed combos.

RECOVERY_VARIANT := twrp results in errors in build, builds standard recovery just fine without this set

Google Pixel 5, 12.1 minimal branch, I get all kinds of errors when BoardConfig.mk contains "RECOVERY_VARIANT := twrp"

error: bootable/recovery-twrp/tests/Android.bp:124:1: module "recovery_unit_test" variant "android_arm_armv8-a": depends on //external/bsdiff:libbspatch which is not visible to this module
You may need to add "//bootable/recovery-twrp/tests" to its visibility
error: bootable/recovery-twrp/tests/Android.bp:124:1: module "recovery_unit_test" variant "android_arm_armv8-a": depends on //external/brotli:libbrotli which is not visible to this module
You may need to add "//bootable/recovery-twrp/tests" to its visibility
error: bootable/recovery-twrp/tests/Android.bp:124:1: module "recovery_unit_test" variant "android_arm_armv8-a": depends on //external/bzip2:libbz which is not visible to this module
You may need to add "//bootable/recovery-twrp/tests" to its visibility
error: bootable/recovery-twrp/tests/Android.bp:124:1: module "recovery_unit_test" variant "android_arm_armv8-a": depends on //external/zlib:libz_stable which is not visible to this module
You may need to add "//bootable/recovery-twrp/tests" to its visibility
error: bootable/recovery-twrp/tests/Android.bp:124:1: module "recovery_unit_test" variant "android_arm_armv8-a": depends on //bootable/recovery-twrp/recovery_utils:librecovery_utils which is not visible to this module
You may need to add "//bootable/recovery-twrp/tests" to its visibility
11:42:38 soong bootstrap failed with: exit status 1

Can someone please advise on what I can do here to get this to build??? If I remove "RECOVERY_VARIANT := twrp" from BoardConfig.mk, all builds just fine with no errors but it just builds the standard recovery and not twrp. I can't build twrp with this minimal 12.1 branch.

Please advise.

bootable/recovery/twrpApex.hpp:21:10: fatal error: 'ziparchive/zip_archive.h'

2 errors:

bootable/recovery/twrpApex.hpp:21:10: fatal error: 'ziparchive/zip_archive.h' file not found
#include <ziparchive/zip_archive.h>

and, missing dependencies: system/core/libziparchive/include

I removed libziparchive from the Android.bp for my device, obviously ziparchive/zip_archive.h is missing and is being requested. most recent sync

Error: You are building on a case-insensitive filesystem.

I'm trying to build my TWRP on ubuntu running with WSL2 on Windows. I get an error:

"You are building on a case-insensitive filesystem. Please move your source tree to a case-sensitive filesystem."

I set the folder that the repo is in to case sensitive but I still get this error.

Is there a way that I can run this? Maybe some way to force it to see it as a case sensitive system. Or maybe force it to compile anyway.

Missing 'vendor/aosp/config/common.mk'

device/samsung/a60q/device.mk:8: error: _nic.PRODUCTS.[[device/samsung/a60q/omni_a60q.mk]]: "vendor/aosp/config/common.mk" does not exist.
10:37:05 dumpvars failed with: exit status 1
In file included from build/make/core/config.mk:313:
In file included from build/make/core/envsetup.mk:312:

Does anyone know how to fix this problem? I am using the device tree generate by twrpdtgen.😢

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.