Giter VIP home page Giter VIP logo

treble_yaap's Introduction

Building

You'll need to get familiar with Git and Repo as well as How to build a GSI.

Create Directories

As a first step, you'll have to create and enter a folder with the appropriate name. To do that, run these commands:

mkdir YAAP
cd YAAP

Initalise the Treble YAAP repo

repo init -u https://github.com/yaap/manifest.git -b fourteen

Clone the Manifest

This adds necessary dependencies for the YAAP GSI.

git clone https://github.com/ahnet-69/treble_manifest.git -b yaap-14 .repo/local_manifests

Sync the repository

repo sync --force-sync --optimized-fetch --no-tags --current-branch --no-clone-bundle --prune -j$(nproc --all)

Apply the patches

Copy the patches folder to the ROM folder, and run this in the ROM folder:

patches/apply-patches.sh .

NOTE: It is recommended to apply patches manually by going to the respective directory of the patches, and applying them by using git am, as the script often skips applying critical patches for some reason.

Adapting for YAAP

Clone this repository and then copy YAAP.mk to device/phh/treble in the ROM folder. Then run the following commands:

 cd device/phh/treble
 bash generate.sh YAAP

Turn On Caching

You can speed up subsequent builds by adding these lines to your ~/.bashrc OR ~/.zshrc file:

export USE_CCACHE=1
export CCACHE_COMPRESS=1
export CCACHE_MAXSIZE=50G # 50 GB

Reduce File Sizes

BOARD_EXT4_SHARE_DUP_BLOCKS := true

This flag makes the blocks shared, and makes the build read-only. It ensures it fits on to all possible Treble-supported devices, since many devices have a small system partitions.

Compilation

In the ROM folder, run this for building GAPPS:

. build/envsetup.sh
ccache -M 50G -F 0
lunch treble_arm64_bgN-userdebug 
 
 # Remove TARGET_BUILD_GAPPS=true if building vanilla.
TARGET_BUILD_GAPPS=true make systemimage -j$(nproc --all)

Compression

After compiling the GSI, you can run this to reduce the system.img file size:

Warning
You will need to decompress the output file to flash the system.img. In other words, you cannot flash this file directly.

cd out/target/product/tdgsi_arm64_ab
xz -9 -T0 -v -z system.img 

Troubleshooting

If you face any conflicts while applying patches, apply the patch manually. For any other issues, report them via the Issues tab.

Credits

These people have helped this project in some way or another, so they should be the ones who receive all the credit:

treble_yaap's People

Contributors

ahnet-69 avatar stupidrepo avatar tqmatvey avatar

Stargazers

 avatar laWiskaPY avatar  avatar kaii avatar StrawBerry avatar Арчусха avatar  avatar  avatar  avatar  avatar Yek avatar Inosuke Hashibira avatar

Watchers

 avatar  avatar

treble_yaap's Issues

[QUESTION] How to build AOSP TrebleDroid with Gapps

Hey there, ahnet. I know this is not the place to ask but I was wondering if you could teach me how to build a stock AOSP TrebleDroid GSI with Google Apps.

Last time I tried I cloned TrebleDroid/treble_experimentations and installed all required packages.

I modified the build.sh script to execute buildVariant treble_arm64_bgN-userdebug and was expecting an A/B build without superuser and with Google Apps. I got a vanilla A/B build with superuser.

Reading your README I found the TARGET_BUILD_GAPPS env variable, I'm now doing another build with the instructions in your README while I write this. Whether or not this works I'll come back here.

TLDR: please teach me how to build a stock aosp trebledroid gsi with google apps because I can't get it to work.

Thanks!

Spoofing Pixel XL doesn't work

I'm using the Pixelify GPhotos Xposed module and there seems to be some interference between the ROM and the module.

Override ROM feature levels is enabled. It seems like YAAP tries to spoof a Pixel 7 Pro (as seen in the Google One Backup page) and GPhotos also sees the device as a P7P.

The folder name for pictures in /sdcard is Pixel 7 Pro which tells me that GP is receiving that device model. Maybe remove P7P spoofing?

I'd try building YAAP myself with your buildbot but so far I've been unsuccessful doing so

Fix Google Camera app

I love the Google Camera app as it is so much better than the built in camera app. I remember that when I first tried the Superior OS GSI with Google Camera, it worked. But on YAAP it just crashes when I launch the app.

I hate using the built-in camera app like I said, so could you take a look at what fixes the Google Camera app in Superior OS, and try to implement it into YAAP? I'll take a look too.

Thanks in advance.
Screenshot_20230916-233531_SystemUI

Stuck on YAAP boot animation.

I flashed the latest (at time of post) GSI (it was varient bgN) and I'm stuck on the YAAP animation. It's been 7 minutes, and nothing has happened. How do I obtain logs from this stage?

My device is a Redmi Note 10 5G.

Hiii

I am a tester of a64 (arm32_binder64) GSI and works perfectly on my a64 device,you can support A64 again?. And I want test A14 plz.

exFAT

please support exFAT sd-card.

Brightness is weird (yes, I've enabled the settings required)

So for some reason, 1/4 of the brightness slider makes my screen go as dark as possible, but sliding the brightness slider to the minimum makes my screen brighter? And in some parts of the brightness slider it can make my screen go dark?
I would take a screenshot showing what the slider looks like for when my screen is super dark, but I've noticed the Power Menu has no screenshot option and I can't take a screenshot of my quick settings any other way.
I'll try my best to provide screenshots though via scrcpy soon.
Screenshot 2023-09-07 at 23 42 28
^ setting brightness to that = my phone screen goes to minimum brightness.

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.