yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] HiQual:
Hello

I have deleted CAF boost framework on my Redmi Note 3 SD650 (Kenzo)

Will this have any effect on the operation of Project WIPE - powercfg ?

Many thanks
[Android Apps and Games] yc9559:
OK.
[Android Apps and Games] yc9559:
No, it is done for interactive governor.
[Android Apps and Games] yc9559:
You are welcomed.
[Android Apps and Games] yc9559:
Kernel auditor cannot modify hmp parameters, but the shell script can.
[Android Apps and Games] yc9559:
No problem. powercfg disable perfd(CAF boost framework) as default.
[Android Apps and Games] ojosehenrick:
[MENTION=7561337]yc9559[/MENTION] what should be better for gaming (don't mind about battery) : performance governor or WIPE with 'fast' setting?
[Android Apps and Games] St.Noigel:
[MENTION=7561337]yc9559[/MENTION] what do you think about compatibility with SD630? What SOC configurations from available are better to use for SD630?
[Android Apps and Games] Costa02:
Yo bud i just tested this on sd801 running oreo , the thing here is: I'm using a custom kernel , and minimal frequencies might not be the same , so what should i do? change them in the script or..? anyways , it seems like this actually does it's job ;) hope to see some more development on this ?
[Android Apps and Games] DE SEXIEST:
It doesn't support mtk devices right?
[Android Apps and Games] Chaprnks:
I'm having some odd issues trying to use this on my Pixel (Android 10). My previous device Nexus 6P (Android Pie) seemed to work like a charm. Unfortunately for the Pixel, after installing the module via magisk, it shows the correct installation steps/logs; but does not show the module on the list of installed. Even after I reboot.

My second attempt was to manually copy the powercfg for my device (sd810). After copying it to him & xbin, I set the permissions and ownership to the correct values. Then I try to run it as SU in the local terminal. It returns a bunch of "file/folder not found" and "balanced FAILED". Even more odd, after rebooting, both of the powercfg files disappear completely from bin/xbin.
[Xiaomi Redmi Note 3 Questions & Answers] Azizbagwan:
Hello dear can any developer please port MIui 10 theme and provide me please
[Xiaomi Redmi Note 3 Questions & Answers] Azizbagwan:
http://miui.com
[Xiaomi Redmi Note 3 Questions & Answers] Daruwalla:
http://en.miui.com/thread-2749563-1-1.html
[Fire Q&A, Help & Troubleshooting] XtianDD:
Hello!!! I can't get my fire HD 8" 2017 to work with my PS4 controller nor a Xbox one controller either. Tried Bluetooth and OTG... With Bluetooth it says it syncs, but the controller doesn't do anything. With the OTG cable, it doesn't even connect. Anybody has an idea of what is going on? Is there something I'm missing? Any workarounds? Is this issue only on the Fire 8?
[Fire Q&A, Help & Troubleshooting] ANDROID2468:
Try this https://phandroid.com/2016/07/08/connect-ps4-controlled-with-android-device/

I don't know if it works since I don't have a ps4 controller
[Fire Q&A, Help & Troubleshooting] XtianDD:
Thanks, but that doesn't work. It is the first thing i tried. The tablet says the controller is synced, but it doesn't do anything. You try to move with the d-pad or joystick, push any buttons, nothing happens.
[Fire Q&A, Help & Troubleshooting] ANDROID2468:
Sorry about that fire os is finicky with alot of things I don't know if you can do it with out root what firmware are you on?
[Fire Q&A, Help & Troubleshooting] XtianDD:
Im on Fire OS 5.6.1
[Fire Q&A, Help & Troubleshooting] DB126:
Game controllers and Amazon devices (FireOS in particular) rarely play nice. Been at this since 2nd gen HD 2012. You *may* get it to work - probably not.
[Fire Q&A, Help & Troubleshooting] XtianDD:
Hello Davey! I've had plenty of help from u before.

Do you know why is that? They work perfect with android.

There's videos on YouTube of ppl syncing them with the Fire tablet as well.

In any case, do you know any alternative for the awful on screen controls. Im trying to use retroarch, so my kid can play old Mario games. He's in love with them.
[Fire Q&A, Help & Troubleshooting] ANDROID2468:
Sorry but it looks like your stuck. You can't dowgrade to a fermware that can root. Try finding a generic controler or find one that says It's spports Android. Here's a form about the moga gamepad

https://xdaforums.com/amazon-fire/accessories/moga-gamepad-controller-t3228266/page2
[Fire Q&A, Help & Troubleshooting] DB126:
While based loosely on Android FireOS is heavily modified to suit Amazon's intentions for this device which most certainly does not included gaming on competitor's hardware. Amazon chose not to support certain Android capabilities which likely includes generic gaming controller support. Best guidance if using Amazon gizmos is to follow YouTube vids if someone else has figured out his to do it. Otherwise consider a different device that runs generic Android.
[Treble-Enabled Device Guides, News, & Discussion] yshalsager:
Community Edition

I made a community edition of this guide, available on [MENTION=1915408]phhusson[/MENTION] treble experimentations wiki

Feel free to edit it and improve the current one :)

How to build a GSI?
[Treble-Enabled Device Guides, News, & Discussion] Tu$h@r:
Weew thanks. Will try to ?
[Treble-Enabled Device Guides, News, & Discussion] Sinek_:
I'm getting an error when trying to repo sync manually the sources to download all of the phhusson's code. The thing is that even modifying the "replace.xml" file (the one "causing" the error) to adapt it to the rom's manifest, the error persists.

Repo is telling me the following: fatal: remove-project element specifies non-existent project: platform/build If I change the "platform/build" reference to the correct path, it's still giving me the error but with the new route, even while the folders and files clearly exist.

Anyone got a clue on why is this happening? I mean, the way to solve the problem is pretty straightforward, I just need to download manually the file from the Github repo and then perform all the needed chances, but it's always easier and cleaner to do it via the repo command.
[Treble-Enabled Device Guides, News, & Discussion] phhusson:
Ah indeed, the replace.xml is meant only for AOSP, if you build a custom ROM, remove it, but don't forget to cherry-pick the patches.

[MENTION=6084385]yshalsager[/MENTION] ^^^
[Treble-Enabled Device Guides, News, & Discussion] Jamie_oppo:
I'm sure this thread will see a lot of views in the coming years. Also it gives us noobs (me) a chance to build ROMs that actually build and run on our devices. Thanks for writing this.

Edit: in future if there's a way to add device specific features into here, it would be amazing. (Alert slider etc)
[Treble-Enabled Device Guides, News, & Discussion] phhusson:
I'm not sure what you mean. Alert slider is already supported in GSIs

Or you're asking for a documentation on how to implement such features for GSIs?
[Treble-Enabled Device Guides, News, & Discussion] Jamie_oppo:
Oh I isn't know the alert slider was already implemented in gsi. ( the only one I've flashed is dot os. ) maybe thats why.

Yeah I'm asking if its possible to add documentation for device specific features. Like imagine a new budget Motorola (with something specific like alert slider v3) with treble as a base and a Dev would be able to add the device specific "alert slider V3" from source to the gsi (and that gsi can be the ones that, that specific Motorola will flash).

Its so awesome they all of us involved with treble have an awesome Dev like you.
[Treble-Enabled Device Guides, News, & Discussion] Saftpresse99:
Hi

i try to build gsi on windows subsystem for linux with dakkar's script. But it failed with the following error:

I used this command to build lineage with su und gapps:
[Treble-Enabled Device Guides, News, & Discussion] Saftpresse99:
I figured out, that the error is a problem with the wsl. To fix this problem a patch is needed: https://xdaforums.com/showpost.php?p=70571884&postcount=20.

How can i apply this patch?
[Treble-Enabled Device Guides, News, & Discussion] yshalsager:
Cherry pick his commit like I explained in the guide ;)
[Treble-Enabled Device Guides, News, & Discussion] issayev.ali:
need a developer for treble natrium. The sources of the past developer remained, but he can not continue to update, since this device does not exist anymore. if someone can continue his work, then write to me, I'm ready to become a beta tester:p
[Treble-Enabled Device Guides, News, & Discussion] CosmicDan:
If you can't find that source file yourself and make the change because you lack C knowledge (I mean, the error log already says where the problematic file/line is), then you're probably better off using real Linux. WSL is still beta and designed for experienced developers.
[Treble-Enabled Device Guides, News, & Discussion] Saftpresse99:
Hi,

the problem is in zip.cc. User [MENTION=7350242]Uldiniad[/MENTION] has started a pr to fix the the problem: https://review.lineageos.org/#/c/LineageOS/android_build/+/208102/5

He also microsoft opens an issue at microsoft: https://github.com/Microsoft/WSL/issues/3157

I will try to cherry pick this commit. I don't know how exactly i can do this, but i will try :)
[Treble-Enabled Device Guides, News, & Discussion] CosmicDan:
You can just edit it manually if you don't want to add the remote and cherry-pick. Just make a note of the manual change the did since a git pull from later will have a conflict, requiring you to manually resolve it.
[Treble-Enabled Device Guides, News, & Discussion] meltbanana:
git fetch repo branch && git cherry-pick commit

~/build-treble/rom$ git fetch repo branch && git cherry-pick commit

fatal: not a git repository (or any of the parent directories): .git

wrong directory?
[Treble-Enabled Device Guides, News, & Discussion] yshalsager:
Repo and branch are what you are trying to get changes from, I mean phh repos

Simply type

export ALLOW_MISSING_DEPENDENCIES=true

Before building
[Treble-Enabled Device Guides, News, & Discussion] laoli0913:
When make system image, I got:

ninja: error: '/home/alan/dotos/out/target/common/obj/JAVA_LIBRARIES/sap-api-java-static_intermediates/classes.jack', needed by '/home/alan/dotos/out/target/common/obj/APPS/Bluetooth_intermediates/with-local/classes.dex', missing and no known rule to make it

14:35:40 ninja failed with: exit status 1

What should I do?
[Treble-Enabled Device Guides, News, & Discussion] mamarama9904:
it is likely too hard to build by newbie.

I give up to build GSI rom.
[Treble-Enabled Device Guides, News, & Discussion] giaur:
Can we build pure AOSP sources from Google the same way?
[Treble-Enabled Device Guides, News, & Discussion] dejansabo:
Hi, I am trying to build Mokee using dakkar's script,but I got this error:

Can anyone help me with this?
[Treble-Enabled Device Guides, News, & Discussion] yshalsager:
Yes

Create that file, like lineage.mk. Check device and vendor paths and add it.
[Treble-Enabled Device Guides, News, & Discussion] matze19999:
Can we also build a gsi which is based on android p with this guide?
[Treble-Enabled Device Guides, News, & Discussion] Jamie_oppo:
Google posted their instructions for a p gsi.

Any chance for an update to merge the two for android p.
[Treble-Enabled Device Guides, News, & Discussion] yshalsager:
Well, we need to wait till we get some working GSIs and till I build P GSI and update the guide :p

Meanwhile, the wiki version of the guide is open for every one to edit
[Treble-Enabled Device Guides, News, & Discussion] noobstyle1337:
VNDK Abi Broken error .... I had this at first time can someone help me....at AOSIP
[Treble-Enabled Device Guides, News, & Discussion] malatesta1:
[MENTION=1915408]phhusson[/MENTION] is possible follow this guide to try an aosp build for note 8? I need a patched kernel or treble api to work?
[Treble-Enabled Device Guides, News, & Discussion] Technical:
Wrong thread, sorry.
[Treble-Enabled Device Guides, News, & Discussion] yshalsager:
The guide is now updated for Android Pie!

I suggest using build-dakkar.sh, if errors occurred continue manually :D
[Treble-Enabled Device Guides, News, & Discussion] Technical:
Just after syncing repo, the dakkar's script is deleting aicp.mk file that is needed, later, to build aicp treble.

Syncing work tree: 100% (652/652), done.
Removing AndroidProducts.mk
[B]Removing aicp.mk[/B]
Removing treble_arm64_afN.mk
Removing treble_arm64_afS.mk
Removing treble_arm64_agN.mk
Removing treble_arm64_agS.mk
Removing treble_arm64_aoN.mk
Removing treble_arm64_aoS.mk
Removing treble_arm64_avN.mk
Removing treble_arm64_avS.mk
Removing treble_arm64_bfN.mk
Removing treble_arm64_bfS.mk
Removing treble_arm64_bgN.mk
Removing treble_arm64_bgS.mk
Removing treble_arm64_boN.mk
Removing treble_arm64_boS.mk
Removing treble_arm64_bvN.mk
Removing treble_arm64_bvS.mk
Removing treble_arm_afN.mk
Removing treble_arm_afS.mk
Removing treble_arm_agN.mk
Removing treble_arm_agS.mk
Removing treble_arm_aoN.mk
Removing treble_arm_aoS.mk
Removing treble_arm_avN.mk
Removing treble_arm_avS.mk
Removing treble_arm_bfN.mk
Removing treble_arm_bfS.mk
Removing treble_arm_bgN.mk
Removing treble_arm_bgS.mk
Removing treble_arm_boN.mk[CODE]

Removing treble_arm_boS.mk

Removing treble_arm_bvN.mk

Removing treble_arm_bvS.mk

~/aicp/build/make ~/aicp[/CODE]

When it starts to compile, we get the following error:

including device/generic/car/vendorsetup.sh
including device/generic/mini-emulator-arm64/vendorsetup.sh
including device/generic/mini-emulator-armv7-a-neon/vendorsetup.sh
including device/generic/mini-emulator-x86/vendorsetup.sh
including device/generic/mini-emulator-x86_64/vendorsetup.sh
including device/generic/uml/vendorsetup.sh
including vendor/aicp/vendorsetup.sh
including sdk/bash_completion/adb.bash
build/core/product_config.mk:243: *** _nic.PRODUCTS.[[device/phh/treble/treble_arm64_bvN.mk]]: "device/phh/treble/aicp.mk" does not exist. Stop.

If we copy the file at the beginning of the repo syncing, change the permissions (read-only), the compilation continues.
[Treble-Enabled Device Guides, News, & Discussion] Vaas_FC:
i am trying to build aex 9.0 and getting this error so can anyone shed some light please

[ 88% 8/9] glob frameworks/base/services/core/java/**/*.java
ninja: error: '/home/xbebenk/treble_experimentations/out/target/common/obj/JAVA_LIBRARIES/sap-api-java-static_intermediates/classes-header.jar', needed by '/home/xbebenk/treble_experimentations/out/target/common/obj/APPS/Bluetooth_intermediates/classes-full-debug.jar', missing and no known rule to make it
14:24:44 ninja failed with: exit status 1

thanks
[Treble-Enabled Device Guides, News, & Discussion] SaintZ93:
EDIT: I fixed it.
[Treble-Enabled Device Guides, News, & Discussion] Technical:
Edited: my fault.

There is no android-9 remote repository in Havoc. Seems it's called pie.

Cloning into '.repo/local_manifests'...

fatal: Remote branch android-9.0 not found in upstream origin
[Treble-Enabled Device Guides, News, & Discussion] mamarama9904:
it is very difficult to understand in the code words or temporary words to replace to correct word.

I would want to put a mark to temporary words to understand easily. etc. *temporary*
[Treble-Enabled Device Guides, News, & Discussion] Guido83:
I am building on ubuntu 18.04 and getting this error:

bash: prebuilts/misc/linux-x86/ccache/ccache: No such file or directory

Do I have to change something concernig ccache in ubuntu?
[Treble-Enabled Device Guides, News, & Discussion] Technical:
To be honest, only the phhusson's script is working.

Dakkar's one can't build carbon, crDroid, aex, aicp, havoc.

We're just losing time downloading the full repository and can't even start building due to .mk files missing for building specific ROMs for Treble.

Maybe this is the reason because all updates of them (excep havoc) are 'stopped' before July.

I can build DU (not Treble) and RR (with phhusson's script) in my Linux Mint computer.
[Treble-Enabled Device Guides, News, & Discussion] ale_191:
Hi! thank u for the guide!

I have only a question:

today I have tried to understand the actually situation of aosp sources, for try to compile a gsi for my Honor 9 ( .... I have EMUI, I don't know why I have this phone, but ok... ), but I noticed a "strange" branch : pie-gsi.

what is the best choice of the branch to compile a right image?

thank u for your time :)
[Treble-Enabled Device Guides, News, & Discussion] yshalsager:
You can setup your ccache path in .bashrc

You have to create the rom mk file manually, then continue the build steps, there's no need to re-sync.

I'd prefer sticking with phhusson's GSIs. So use phh script or dakker one.
[Treble-Enabled Device Guides, News, & Discussion] Technical:
Thanks. Anyway, there are 2 issues in my case:

1. I've tried to manually put the files into the folder. When the script run, it removes it, probably when the script syncs.

2. What are the contents of these files? I cannot find any into Github's repositories of these most common ROMs.
[Treble-Enabled Device Guides, News, & Discussion] Rupesh Tanwer:
Can anyone enable project treble support lenovo k8 plus
[Treble-Enabled Device Guides, News, & Discussion] Technical:
Well, as I said before, the script deletes the manually created file.

Then it returns an error because there is not such file.

...
build/make/: discarding 2 commits
external/selinux/: discarding 4 commits
frameworks/av/: discarding 2 commits
frameworks/base/: discarding 13 commits
frameworks/native/: discarding 1 commits
frameworks/opt/telephony/: discarding 3 commits
system/bt/: discarding 1 commits
system/core/: discarding 2 commits
system/libvintf/: discarding 2 commits
system/netd/: discarding 1 commits
system/vold/: discarding 1 commits
vendor/opengapps/sources/all/: discarding 1 commits
vendor/opengapps/sources/arm/: discarding 1 commits
vendor/opengapps/sources/arm64/: discarding 1 commits
vendor/opengapps/sources/x86/: discarding 1 commits
vendor/opengapps/sources/x86_64/: discarding 1 commits
Removing AndroidProducts.mk
Removing crdroid.mk
...
build/core/product_config.mk:243: *** _nic.PRODUCTS.[[device/phh/treble/treble_arm64_bvN.mk]]: "device/phh/treble/crdroid.mk" does not exist. Stop.
[Treble-Enabled Device Guides, News, & Discussion] yshalsager:
This happen when you do a sync. You need to sync with dakker script like the first time, then create the new mk files and start the build manually.
[Treble-Enabled Device Guides, News, & Discussion] Technical:
I've tried to use manual build commands. And we can't go further due to lack of repositories, common.mk files, etc. Like happens all the time when there isn't a ROM for a specific device. I don't think it's that easy to make it. Why does the ROMs stopped to be updated?

If you can make a step by step guide, it would be awesome. In this case of Treble ROMs, there are other steps (like patching) different the default ones. I've tried to contact other devs and also debug the dakkar script. It's not being easy to me and it's time consuming for non-devs.
[Treble-Enabled Device Guides, News, & Discussion] Guido83:
a guide for creating the mk files would be much appreciated
[Treble-Enabled Device Guides, News, & Discussion] yshalsager:
I believe it's not a script problem, I've used it so many times.

I'll try to record a tutorial/walkthrough building process if I got some free time.
[Treble-Enabled Device Guides, News, & Discussion] yshalsager:
How to create ROM mk file?

If you checked the examples in phh device repo:

Lineage

$(call inherit-product, vendor/lineage/config/common_full_phone.mk)
$(call inherit-product, device/lineage/sepolicy/common/sepolicy.mk)

RR:

$(call inherit-product, vendor/rr/config/common_full_phone.mk)
$(call inherit-product, device/rr/sepolicy/common/sepolicy.mk)

Carbon:

$(call inherit-product, vendor/carbon/config/gsm.mk)
$(call inherit-product, vendor/carbon/config/common.mk)

Some ROMs like LOS needs to add this line in order to ignore including some parts.

-include vendor/havoc/build/core/config.mk

So, basically, you need to inherit device and vendor. Some ROMs doesn't have a specific device changes.

In simple steps:

- Open github and find any official device tree for the ROM you want to build.

- Check device.mk and $rom_$device.mk (like aosp_kenzo.mk) to know what needs to be inherited

- Create new file in device/phh/treble named $rom.mk (e.g. benzo.mk)

- Add the inherit lines.

And now you can build as you want.
[Treble-Enabled Device Guides, News, & Discussion] Technical:
Tried very hard to find these device.mk files for crdroid.

All ones have a lot of apps, kernel, settings... and some inherit calls. Nothing consistent, nothing related to Treble.

So, I'm testing this carbon.mk:

$(call inherit-product, vendor/lineage/config/common.mk)
$(call inherit-product, vendor/lineage/config/common_full_phone.mk)
$(call inherit-product, vendor/lineage/config/crdroid.mk)
$(call inherit-product, device/lineage/sepolicy/common/sepolicy.mk)

It's building but I'm not sure what monster I will get at the end :D

Edit: Which end? Building stop at different stages depending on what inherit lines I add/remove from crdroid.mk

I wish it won't be trial and error, but I'm not finding help from crdroid team as well. Maybe they join later.
[Treble-Enabled Device Guides, News, & Discussion] yshalsager:
Crdroid is based on LineageOS, I think it doesn't have any specific inherits. Try with lineage mk file on phh device pie branch.
[Treble-Enabled Device Guides, News, & Discussion] Technical:
Thanks. I'll try with the script below:

clear
cd ~/crdroid
source ~/.profile
git config --global user.email "myrealemail"
git config --global user.name "myrealname"
repo init -u https://github.com/crdroidandroid/android.git -b 9.0
git clone https://github.com/phhusson/treble_experimentations
git clone https://github.com/phhusson/treble_patches -b android-9.0
git clone https://github.com/phhusson/treble_manifest .repo/local_manifests -b android-9.0
rm ~/crdroid/.repo/local_manifests/replace.xml
source ~/crdroid/device/phh/treble/generate.sh
cp ~/crdroid/device/phh/treble/lineage.mk ~/crdroid/device/phh/treble/crdroid.mk
repo sync -c -f -j12 --force-sync --no-clone-bundle --no-tags
source build/envsetup.sh
lunch treble_arm64_bvN-userdebug
WITHOUT_CHECK_API=true make -j8 systemimage
[Treble-Enabled Device Guides, News, & Discussion] yshalsager:
Wait,

Source step should be after repo sync

And also, you're missing patching step.

That's why I prefer to use dakker script.
[Treble-Enabled Device Guides, News, & Discussion] srgrusso:
I'm building RR and everything builds fine, but I'm missing the bootanimation. Normally the bootanimation resolution is defined in device.mk. How is the bootanimation defined in treble Roms when using [MENTION=260854]Dakkar[/MENTION] script?

Thanks