Code Monkey home page Code Monkey logo

android_advanced_treble_script's Introduction

Advanced GSI ROM Build Script

Info:

  • This script is a custom version of build-dakkar from here, With lot of optimizations, fixes, improvemets and more features.
  • Current Version: V2
  • Current Stable Version: 1.5
  • Current Features:
    • Automaticly sync, patch and build!:
      • Faster and stable syncing.
      • Patching from HEAD, always updated.
      • Prompting and take user choice for every step.
    • Fixes some common build errors, lot of roms are supported! (not for all android versions)

Usage Info:

  • Make a folder (sperated location from where this tool is cloned) of the ROM you want to collect. lets say: /home/username/aex, and /home/username/adv-script/ is where the script was cloned.
  • Navigate to aex, and run: bash ../adv*.sh aex81 arm-aonly-vanilla-nosu
    • This is for making a rom for a arm-aonly treblized device without gapps and su.
  • Run bash adv-build.sh --help for commend syntax guide.

Aknowledgement:

User
phhusson
nathanchance (base apply-patches code)

android_advanced_treble_script's People

Contributors

raymondmiracle avatar svoboda18 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

android_advanced_treble_script's Issues

Difficulties while removing a patch

Now, on v.1, I'm facing difficulties to remove a conflicting patch:
b22048782b4 Move SysuiDarkThemeOverlay to /system

The error message suggests we use
git rm
git commit

However, doing that with the /frameworks/base/packages/overlays remove all the folder from compiling, leading to compilation errors.
I've tried to find where is the patch located, but I can't find a specific file.
If I try to edit the /frameworks/base/.git/sequencer/todo file and remove the instruction
pick b22048782b4 Move SysuiDarkThemeOverlay to /system
The file is autorestored when patching process starts again

Can anybody guide me (preferable step by step) how to remove this specific patch from the compilation using v.1 of the script?
Thanks.

More info

  1. grep -ril SysuiDarkThemeOverlay command gives me the following information:

device/phh/treble/rw-system.sh
build/make/target/product/sdk_base.mk
build/make/target/product/generic_no_telephony.mk
frameworks/base/packages/overlays/SysuiDarkThemeOverlay/Android.mk
frameworks/base/.git/MERGE_MSG
frameworks/base/.git/index
frameworks/base/.git/sequencer/todo

  1. Patch is this one (or patches/platform_frameworks_base/0016-Move-SysuiDarkThemeOverlay-to-system.patch file if we were using the old script version):

From b22048782b4d57016ca6bad2d2c56560b91ab3da Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson [email protected]
Date: Sun, 19 Aug 2018 10:57:21 +0200
Subject: [PATCH 16/34] Move SysuiDarkThemeOverlay to /system

Change-Id: I31b3edc5d1abcc1163a13e63c909fee9d27ff432

packages/overlays/SysuiDarkThemeOverlay/Android.mk | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/packages/overlays/SysuiDarkThemeOverlay/Android.mk b/packages/overlays/SysuiDarkThemeOverlay/Android.mk
index 7b277bcf035..89cfcf819c2 100644
--- a/packages/overlays/SysuiDarkThemeOverlay/Android.mk
+++ b/packages/overlays/SysuiDarkThemeOverlay/Android.mk
@@ -11,4 +11,5 @@ LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
LOCAL_PACKAGE_NAME := SysuiDarkThemeOverlay
LOCAL_SDK_VERSION := current

-include $(BUILD_RRO_PACKAGE)
+LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
+include $(BUILD_PACKAGE)

2.17.1

Empty build folder e-0.2

Hello I build the rom e-0.2 with the command bash android_advanced_treble_script / adv * .sh e-0.2 arm64-ab-vanilla-nosu-userdebug but I can not find the rom the folder e-0.2 is empty?

Here is my dockerfile file :
Dockerfile.txt

Compile problem

Svoboda18 Hello, compile "lineage 16 and mokee (mkp) arm64avN" using your script. When applying patches to the source code synchronously, the following prompt will appear: "find:'vendor/interfaces': no such file or directory", but there is a "interfaces" folder in the vnedor directory. There are no other errors in the following period. When the compilation progress reaches 90%, the following problems occur:
"[ 82% 90079/108662] Target Java: /home...o_intermediates/classes-full-debug.jar
FAILED: /home//android_advanced_treble_script/out/target/common/obj/APPS/QtiAudio_intermediates/classes-full-debug.jar
/bin/bash -c "(rm -f /home/
/android_advanced_treble_script/out/target/common/obj/APPS/QtiAudio_intermediates/classes-full-debug.jar ) && (rm -rf /home//android_advanced_treble_script/out/target/common/obj/APPS/QtiAudio_intermediates/classes /home//android_advanced_treble_script/out/target/common/obj/APPS/QtiAudio_intermediates/anno ) && (mkdir -p /home//android_advanced_treble_script/out/target/common/obj/APPS/QtiAudio_intermediates/ ) && (mkdir -p /home//android_advanced_treble_script/out/target/common/obj/APPS/QtiAudio_intermediates/classes /home//android_advanced_treble_script/out/target/common/obj/APPS/QtiAudio_intermediates/anno ) && (/home//android_advanced_treble_script/out/soong/host/linux-x86/bin/zipsync -d /home//android_advanced_treble_script/out/target/common/obj/APPS/QtiAudio_intermediates/srcjars -l /home//android_advanced_treble_script/out/target/common/obj/APPS/QtiAudio_intermediates/srcjar-list -f ".java" /home//android_advanced_treble_script/out/target/common/obj/APPS/QtiAudio_intermediates/aapt.srcjar ) && (if [ -s /home//android_advanced_treble_script/out/target/common/obj/APPS/QtiAudio_intermediates/java-source-list -o -s /home//android_advanced_treble_script/out/target/common/obj/APPS/QtiAudio_intermediates/srcjar-list ] ; then /home//android_advanced_treble_script/out/soong/host/linux-x86/bin/soong_javac_wrapper prebuilts/jdk/jdk9/linux-x86/bin/javac -Xmaxerrs 9999999 -encoding UTF-8 -sourcepath "" -g -XDskipDuplicateBridges=true -XDstringConcat=inline -encoding UTF-8 -bootclasspath /home//android_advanced_treble_script/out/target/common/obj/JAVA_LIBRARIES/core-oj_intermediates/classes-header.jar:/home//android_advanced_treble_script/out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes-header.jar:/home//android_advanced_treble_script/out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes-header.jar:/home//android_advanced_treble_script/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes-header.jar:/home//android_advanced_treble_script/out/target/common/obj/JAVA_LIBRARIES/okhttp_intermediates/classes-header.jar:/home//android_advanced_treble_script/out/target/common/obj/JAVA_LIBRARIES/core-lambda-stubs_intermediates/classes-header.jar -d /home//android_advanced_treble_script/out/target/common/obj/APPS/QtiAudio_intermediates/classes -s /home//android_advanced_treble_script/out/target/common/obj/APPS/QtiAudio_intermediates/anno -source 1.8 -target 1.8 -g:source,lines \@/home//android_advanced_treble_script/out/target/common/obj/APPS/QtiAudio_intermediates/java-source-list \@/home//android_advanced_treble_script/out/target/common/obj/APPS/QtiAudio_intermediates/srcjar-list || ( rm -rf /home//android_advanced_treble_script/out/target/common/obj/APPS/QtiAudio_intermediates/classes ; exit 41 ) fi ) && (prebuilts/jdk/jdk9/linux-x86/bin/jar -cf /home//android_advanced_treble_script/out/target/common/obj/APPS/QtiAudio_intermediates/classes-full-debug.jar @<(find /home//android_advanced_treble_script/out/target/common/obj/APPS/QtiAudio_intermediates/classes -type f | sort | build/soong/scripts/jar-args.sh /home//android_advanced_treble_script/out/target/common/obj/APPS/QtiAudio_intermediates/classes; echo "-C /home//android_advanced_treble_script/out/empty .") )"
vendor/hardware_overlay/Qualcomm/QtiAudio/src/vendor/qti/hardware/radio/am/V1_0/IQcRilAudioCallback.java:221: error: cannot find symbol
mRemote.transact(256462420 /* setHALInstrumentation /, _hidl_request, _hidl_reply, android.os.IHwBinder.FLAG_ONEWAY);
^
symbol: variable FLAG_ONEWAY
location: interface IHwBinder
vendor/hardware_overlay/Qualcomm/QtiAudio/src/vendor/qti/hardware/radio/am/V1_0/IQcRilAudioCallback.java:277: error: cannot find symbol
mRemote.transact(257120595 /
notifySyspropsChanged /, _hidl_request, _hidl_reply, android.os.IHwBinder.FLAG_ONEWAY);
^
symbol: variable FLAG_ONEWAY
location: interface IHwBinder
vendor/hardware_overlay/Qualcomm/QtiAudio/src/vendor/qti/qcril/am/V1_0/IQcRilAudioCallback.java:221: error: cannot find symbol
mRemote.transact(256462420 /
setHALInstrumentation /, _hidl_request, _hidl_reply, android.os.IHwBinder.FLAG_ONEWAY);
^
symbol: variable FLAG_ONEWAY
location: interface IHwBinder
vendor/hardware_overlay/Qualcomm/QtiAudio/src/vendor/qti/qcril/am/V1_0/IQcRilAudioCallback.java:277: error: cannot find symbol
mRemote.transact(257120595 /
notifySyspropsChanged /, _hidl_request, _hidl_reply, android.os.IHwBinder.FLAG_ONEWAY);
^
symbol: variable FLAG_ONEWAY
location: interface IHwBinder
vendor/hardware_overlay/Qualcomm/QtiAudio/src/vendor/qti/hardware/radio/am/V1_0/IQcRilAudio.java:102: error: cannot find symbol
mRemote.transact(1 /
setCallback /, _hidl_request, _hidl_reply, android.os.IHwBinder.FLAG_ONEWAY);
^
symbol: variable FLAG_ONEWAY
location: interface IHwBinder
vendor/hardware_overlay/Qualcomm/QtiAudio/src/vendor/qti/hardware/radio/am/V1_0/IQcRilAudio.java:118: error: cannot find symbol
mRemote.transact(2 /
setError /, _hidl_request, _hidl_reply, android.os.IHwBinder.FLAG_ONEWAY);
^
symbol: variable FLAG_ONEWAY
location: interface IHwBinder
vendor/hardware_overlay/Qualcomm/QtiAudio/src/vendor/qti/hardware/radio/am/V1_0/IQcRilAudio.java:213: error: cannot find symbol
mRemote.transact(256462420 /
setHALInstrumentation /, _hidl_request, _hidl_reply, android.os.IHwBinder.FLAG_ONEWAY);
^
symbol: variable FLAG_ONEWAY
location: interface IHwBinder
vendor/hardware_overlay/Qualcomm/QtiAudio/src/vendor/qti/hardware/radio/am/V1_0/IQcRilAudio.java:269: error: cannot find symbol
mRemote.transact(257120595 /
notifySyspropsChanged /, _hidl_request, _hidl_reply, android.os.IHwBinder.FLAG_ONEWAY);
^
symbol: variable FLAG_ONEWAY
location: interface IHwBinder
vendor/hardware_overlay/Qualcomm/QtiAudio/src/vendor/qti/qcril/am/V1_0/IQcRilAudio.java:102: error: cannot find symbol
mRemote.transact(1 /
setCallback /, _hidl_request, _hidl_reply, android.os.IHwBinder.FLAG_ONEWAY);
^
symbol: variable FLAG_ONEWAY
location: interface IHwBinder
vendor/hardware_overlay/Qualcomm/QtiAudio/src/vendor/qti/qcril/am/V1_0/IQcRilAudio.java:118: error: cannot find symbol
mRemote.transact(2 /
setError /, _hidl_request, _hidl_reply, android.os.IHwBinder.FLAG_ONEWAY);
^
symbol: variable FLAG_ONEWAY
location: interface IHwBinder
vendor/hardware_overlay/Qualcomm/QtiAudio/src/vendor/qti/qcril/am/V1_0/IQcRilAudio.java:213: error: cannot find symbol
mRemote.transact(256462420 /
setHALInstrumentation /, _hidl_request, _hidl_reply, android.os.IHwBinder.FLAG_ONEWAY);
^
symbol: variable FLAG_ONEWAY
location: interface IHwBinder
vendor/hardware_overlay/Qualcomm/QtiAudio/src/vendor/qti/qcril/am/V1_0/IQcRilAudio.java:269: error: cannot find symbol
mRemote.transact(257120595 /
notifySyspropsChanged /, _hidl_request, _hidl_reply, android.os.IHwBinder.FLAG_ONEWAY);
^
symbol: variable FLAG_ONEWAY
location: interface IHwBinder
12 errors
[ 82% 90082/108662] Proguard: /home/so...ler_intermediates/classes-proguard.jar
ProGuard, version 5.1
Reading system jar [/home/
/android_advanced_treble_script/out/target/common/obj/JAVA_LIBRARIES/core-oj_intermediates/classes-header.jar]
Reading system jar [/home//android_advanced_treble_script/out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes-header.jar]
Reading system jar [/home/
/android_advanced_treble_script/out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes-header.jar]
Reading system jar [/home//android_advanced_treble_script/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes-header.jar]
Reading system jar [/home/
/android_advanced_treble_script/out/target/common/obj/JAVA_LIBRARIES/okhttp_intermediates/classes-header.jar]
Reading system jar [/home//android_advanced_treble_script/out/target/common/obj/JAVA_LIBRARIES/core-lambda-stubs_intermediates/classes-header.jar]
Reading program jar [/home/
/android_advanced_treble_script/out/target/common/obj/APPS/ProxyHandler_intermediates/classes.jar]
Preparing output jar [/home//android_advanced_treble_script/out/target/common/obj/APPS/ProxyHandler_intermediates/classes-proguard.jar]
Copying resources from program jar [/home/
/android_advanced_treble_script/out/target/common/obj/APPS/ProxyHandler_intermediates/classes.jar]
[ 82% 90084/108662] target Turbine: settings-logtags
ninja: build stopped: subcommand failed.
21:57:57 ninja failed with: exit status 1
someone@2:~/android/l16gsi/android_advanced_treble_script$
"
In addition, in adv-build.sh, mokee90, mainbranch= "9.0" should be changed to "mkp", otherwise it can not be synchronized.
I would appreciate it if you could tell me how to repair it.

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.