yashsingh1/xdaforums huggingface dataset:
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] DiamondJohn:
I received this question VIA PM. This question is definitely not a PM, but a thread post/question. Nothing is "private" or "personal" and others may wonder or be helped by the exact same answer.

When in doubt, ask on the thread, not via PM. If you have a question, others may wonder the same exact thing.

The quietest way to answer the question as I understand it, would be to provide my list/"to-do" of things to do manually before or as part of running a build, after a repo-synch. Remember, I want to enable/help others to do a build from source (y).

The following is in addition to the GMS stuff I posted above, but with the roomservice/local_manifest changes only required during the initial ROM setup, not before every build.

Comment the following line in device/google/sunfish/aosp_sunfish.mk
# PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS := strict

Replace files:
vendor/addons/prebuilt/bootanimation/bootanimation_1080.tar
vendor/addons/prebuilt/bootanimation/desc.txt

REMOVED the size lines in the Android.mk

comment following lines in vendor/google/sunfish/Android.bp
//android_app_import {
// name: "DeviceIntelligenceNetworkPrebuilt",
// owner: "google",
// apk: "proprietary/product/priv-app/DeviceIntelligenceNetworkPrebuilt/DeviceIntelligenceNetworkPrebuilt.apk",
// presigned: true,
// dex_preopt: {
// enabled: false,
// },
// privileged: true,
// product_specific: true,
//}

ADD the single line vendor/lineage/config/partner_gms.mk
endif
endif
+ $(call inherit-product, vendor/gms/products/gms.mk)
endif

Replace:
/vendor/addons/overlay/common/frameworks/base/core/res/res/drawable-nodpi/default_wallpaper.jpg
/vendor/addons/overlay/common/frameworks/base/core/res/res/drawable-sw720dp-nodpi/default_wallpaper.jpg
/vendor/addons/overlay/common/frameworks/base/core/res/res/drawable-sw600dp-nodpi/default_wallpaper.jpg

IO Schedulers
kernel/google/msm-4.14/block/* (multiple files added & some replaced)
kernel/google/msm-4.14/arch/arm64/configs/sunfish_defconfig (replaced)

frameworks/base/packages/SystemUI/res/drawable/qs_header_image_[*].webp
NB: The next build has MANY MANY new ones. 189 in total, as compared to about 25 in stock crDroid

packages/apps/crDroidSettings/res/xml/crdroid_settings_quicksettings.xml
<!-- QS Header Image -->
<com.crdroid.settings.preferences.SystemSettingSeekBarPreference
android:key="qs_header_image"
android:icon="@drawable/ic_header"
android:title="[USER=936943]@string[/USER]/qs_header_image_title"
android:defaultValue="0"
settings:interval="1"
android:max="189" <!-- === HERE === -->
android:min="0" />

Did the above cover your question?
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] vldrs:
In general, together with the post above, everything is clear, only files/diff/changes for the io scheduler are missing, or is work still being done on this?

Well, I would like clarifications about the path of this file, in the root of the project or in some other one?
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] DiamondJohn:
You actually said BESIDES the IO scheduler.

You actually are now asking for a list of ALL the SPECIFICS of the changes I make.

I have no problem sharing these, its just the time it is going to take to package it, as its obvious that whatever I supply, there will be something in your eyes that I missed...

Give me a couple of days. now is a REALLY bad time, a lot is happening outside of XDA. I repeat, I have NO problem sharing the work, its just not packaged into anything useful for someone else to use.

Attached is my last FULL build log (I log and time stamp everything, I'm using crappy disks right now, so the build time is a little embarrassing) from a couple of days ago. It includes a REPO status AND REPO DIFF, so the changes are all there (near the top, and labeled, apart from the binary file changes for the header images). Its all there, but I personally would see it as TMI to the point of being obstructive.

Out of interest, are you thinking of building?
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] DiamondJohn:
actually, here are the full details, combined with my original answer, and the txt files, its all there EXCEPT the header images. That raises the ZIP to >26MB

is that OK? it is everything
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] vldrs:
I think I'll try your build first, and then if I have time maybe I'll build my own with google/pixel stock bootanimation....

And so, tried to build myself a few months ago, there was a conflict of gms(MindTheGapps) with proprietary_vendor_google_sunfish, and some more....

Yes, thank you very much
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] DiamondJohn:
Regarding "with stock pixel animation" (which is not the one that comes with standard crDroid ). if the ability to overlay the firmware using a second ADB sideload zip, does work as it is touted (I have a suspicion it can only add and & use a new partition not overwrite, similar to how Magisk overlays work), then using a simple ADB sideload zip could be used to change the animation of my build. AND it/you would answer the question in my head to some extent. It would still be possible that in the background, a new partition is created, added & overlayed, and the existing partition (with the original boot animation) is not overwritten.

If you want to try and include a smaller GMS, I originally used the one from Rising OS. It worked and was much lighter. I first used the same technique with RisingOS GMS source in local_manifest. But they have done some recent changes to the way GMS is on their ROM that I haven't followed.
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] DiamondJohn:
NEW BUILD!

crDroidAndroid-13.0-20230805-sunfish-v9.7-UNOFFICIAL-DiamondJohn-FASTBOOT.zip​

See OP for Download and link to instructions.

It includes the latest changes from crDroid. See attached for the crDroid change log

The changes I specifically additionally make to a default crDroid build include:

Google Play Services included

IO Schedulers

Boot Animation

QS Header Images (1-24 are stock crDroid, 25-49 are mine, 50-104 are from RisingOS de-duped from crDroid ones.

Default Wallpaper. Still a space theme
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] DiamondJohn:
The below is from a PM. And to be clear, if there is nothing private or personal in the message, then the thread is the place to post a question as others may also wonder the same thing.

Huh?

By "a kernel source" I am guessing you mean for the Kernel source code for the Pixel 4A crDroid ROM? I also currently build RisingOS, but I make no changes apart from those required to make it build for our specific unofficial device.

For that, its ALL already here for you. Its the combination of the kernel source in the local manifest (that I documented only a few posts above) and the mods I documented/attached, also in this thread only a few posts above, to add the IO Schedulers. Before I do a new build, I do a full & deep repo synch, bringing in ALL the updates in the source (ROM & Kernel & Vendor & GMS) by the ROM devs. Then I apply my changes you can find in the attachment (the same post I linked just before).

What do you feel is missing?

EDIT: Or are you saying you have created your own Kernel Source?
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] DiamondJohn:
@rodken what were you thinking of throwing my way? in addition to the 2 question above.
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] rodken:
My question was strictly in relation to a kernel source from a crDroid ROM for the OnePlus 8, but since you mentioned the crDroid kernel source for the Google Pixel 4A, my question has apparently been answered.

I suppose that it would be somewhat difficult to build from any type of source without the actual device on hand.
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] DiamondJohn:
It takes MUCH more than just kernel source. And what / why would iiiIIIIIiii build for some device based on a random request from anyone? On telegram there are countless random requests to build crDroid for their device. The question is either ignored or the response is to find a maintainer OR build for themselves. Even if you sent me a new device, the hours involved are a LOT. And time does not go well in the post and the postage on human hours is prohibitive.

Its not the difficulty, its the fact I am not here to do requests on call. I just dont get why you would even think for a second, someone would just build for your device, because you asked??????

And the device does not "help" me build, its only there to test the results. I could of built and just let others test. And thats actually what happened for my first build attempt for this devoice; which I own.

Or have I totally missed what you are saying? If I didnt, it was a ludicrous question.
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] rodken:
I understand that building a ROM/Kernel Source for a device is a lot of work, and I appreciate your willingness helping out the community. I also understand that you don't have the time to build for everyone who asks.

I apologize if I came across as entitled or demanding in my previous message. I was simply hoping that you might be willing to help me out, as I do not have the time that I used to have to build the ROM myself.

I understand that you are not obligated to build the ROM for me, and I respect your decision.
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] DiamondJohn:
They have bumped the version to 9.8

crdroid: Bump to version 9.8 · crdroidandroid/android_vendor_crdroid@b46950f

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>

github.com

I understand you have tried to correct your misptep, however, you have managed to add further insult.

You say you "understand that you don't have the time to build for everyone who asks", and yet, you asked and even in a PM for my personals attention, beyond any thread. There is also a specific build help thread here on XDA, not my PM.

You also say, "I was simply hoping that you might be willing to help me out" Your original request contradicts this statement, as you specifically implied if I was able to build for your device, if you sent me a kernel. You did not ask for help on how to build (which I explicitly have provided in a post above) AND you haven't even attempted a build, as you did not come to me for help with a roadblock/error. You also only talk of a kernel, not a vendor and device. NB: I could find these myself on github for countless devices, not just your p0ersonal device.

Then you say "as I do not have the time that I used to have to build the ROM myself" now that is the most offensive statement, as you are implying that I have the time and as such, my time is less valuable than your restricted time. I am not a spotty faced high school student or even a young uni student. I am a grown (some would say elderly, usually the spotty faced high school person) man with very restrictive time demands, and you have assumed that you are somehow more constrained than others, and such, that your little time available is somehow more valuable.
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] duallex:
Dear friend, hello. I beg you not to be offended by anyone, and continue your wonderful work. At the moment, in my humble opinion, this is the best and bug-free firmware for our phone. Huge thanks to you!
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] DiamondJohn:
I build for me, and I understand one is not everyone.
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] Oswald Boelcke:
Moderator Announcements

@DiamondJohn On your request I've sanitised your thread from the posts off-topic to this thread's subject; however, this means I've also deleted some of your posts.

@rodken While I as a non-native English tongue assessed that the removed conversation occured in a civil and adult way, I'd appreciate if you don't hijack a thread to post your views if they are not related to the subject of a thread. As you certainly know we remove such posts from a thread on request of a thread owner. If you're not content with somebody you've always the possibility to share your opinion by a private conversation, well knowing that not everybody accepts such a conversation and adds a member to the ignore list. However, this is also something that has to be accepted.

If anybody of you has any question or comment to my actions or this announcement, feel free to contact me privately but not as a public reply e.g. in this thread. Thanks for your cooperation.

Just a reminder - XDA Forum Rules (excerpt):

@DiamondJohn Sir, allow me a final remark. It's just a coincidence that I've assigned to your reports briefly after you posted here. Different to your statement here, you filed your first report yesterday at 12:40 UTC. Usually, I allow the members of my moderators team 24 hours to assign to a report and to handle it. This timeframe is required because we're not only spread all over the world and in different timezones but all moderators are volunteers who do this "job" for free and without any benefits and besides their real lifes, real family, friends and problems, real business and occupation. We try our very best to ensure a 24/7 coverage and early responses. It just doesn't always work out and I request your patience in future; you can be sure that nothing gets forgotten and will eventually be handled. I've nothing to add what my esteemed team mate @Clark Joseph Kent told you in the other thread.

Regards

Oswald Boelcke

Senior Moderator
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] DiamondJohn:
Heads up. I have a new Build of v9.8, but I wont have the time to test flash, test & upload for a few days. To be clear, I am not looking for testers, as the other stuff is the time consuming part.

crDroidAndroid-13.0-20230819-sunfish-v9.8-UNOFFICIAL-DiamondJohn-FASTBOOT.zip

Usually there is a commit that makes it clear this is the time for official builds to be made, however, I didnt see one. But I do see a LOT of builds being released for official devices, so it seemed like a good time for an unofficial build of an official release...

Basically all crDroid updates with the same additional features I have made, as before.
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] DiamondJohn:
NEW BUILD!

crDroidAndroid-13.0-20230819-sunfish-v9.8-UNOFFICIAL-DiamondJohn-FASTBOOT.zip​

See OP for Download and link to instructions.

It includes the latest changes from crDroid. See attached on previous post for the crDroid change log

The changes I specifically additionally make to a default crDroid build include:

Google Play Services included

IO Schedulers

Boot Animation

QS Header Images (1-24 are stock crDroid, 25-49 are mine, 50-104 are from RisingOS de-duped from crDroid ones.

Default Wallpaper. Still a space theme

Woo-Hoo! the search in settings after a dirty flash works!
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] prog19:
Hi @DiamondJohn . Does this rom have the battery setting called "Charging Control" that act like the Pixel's adaptative charging ?
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] DiamondJohn:
There IS a setting called "Charging Control". I dont use it nor have any idea what it does.
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] prog19:
Thank you ! I saw this feature today on my father's Mi 9se (it was my device before and i gave it to him on crdroid) running the 9.8 build, and wanted to know if was a device specific thing.

This is great. It mimics the adaptative charging of the pixel 4a. If you set a timer and put the phone to charge it will get to 100% by that time. I love this pixel feature and was the only thing that was stopping me from using your build. Now that the crdroid team implemented that there's no going back to stock rom.

CrDroid is fantastic. Thank you for making it available for us
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] DiamondJohn:
Yeah, thats the theory maybe, but if it work's or not on this device, you will have to test for yourself. Personally, I have around 4 different charge options / USB ports. I have come to know/expect how fast each charges.

The slightly unusual thing is that my old phone charger slowly tapers off charging rate near 100% But I USB port on a power board charges through at roughly the same rate near 100% as at 10%; similar to my fast charger cigarette lighter adapter. I think the charger is built to protect the battery.
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] DiamondJohn:
NEW BUILD

crDroidAndroid-13.0-20230909-sunfish-v9.8-UNOFFICIAL-DiamondJohn-FASTBOOT.zip​

See OP for download links

Not too many changes, but I saw a LOT of official devices were providing new builds, so FOMO kicked in :rolleyes:
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] Tomatcree:
Good stuff! What does it take to port for example crdroid or other roms to any (pixel) phone?
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] DiamondJohn:
OFF TOPIC! in many ways. This is a Pixel 4A ROM share thread, NOT a "help me compile a ROM for another random device" thread. Secondly, its a crDroid specific thread, not "how to port any other ROM", and this is not a "PORT", its a device specific build. IF you were asking for help on doing a Pixel 4A crDroid specific build (ie this thread topic), then if you read back a few pages, i give very detailed instructions / help on how I got it to build.

[GUIDE][COMPLETE] Android ROM Development From Source To End

Hello Everyone....:D:D Today I will present you all the ultimate guide for ROM development starting from Source to End. This guide will be applicable to all devices. So lets Start :D What is Android? :rolleyes: Android is an...

xdaforums.com

GitHub - crdroidandroid/android: Build crDroid and some general information

Build crDroid and some general information . Contribute to crdroidandroid/android development by creating an account on GitHub.

github.com

There is also a Telegram channel specific for crDroid, where the maintainers and other devs are present.

Have you checked if its an official build already?

GitHub - crdroidandroid/android_vendor_crDroidOTA: OTA configuration for crDroidOTA (make your device official)

OTA configuration for crDroidOTA (make your device official) - crdroidandroid/android_vendor_crDroidOTA

github.com

I had one guy only a page or two back expecting me (then denying he was) to build for his device, when it was already an official / available device! And that palava only happened a page back, which you clearly missed reading, which I think is a rule of XDA to read the first few and the last few posts as a minimum.

To everyone else, I kicked off a new build last night, but it kinda-failed. I had to restart the build mid-way when the terminal randomly shutdown, which it went on and succeeded, but I prefer a single build process (NB: Android build is built to handle it in parts). I was doing other things and I am running a Virtual box on a windows 11 PC. ie a computer in a computer. Its the next version v9.9, but I think its mostly bug & stability fixes.
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] DiamondJohn:
NEW BUILD

crDroidAndroid-13.0-20230922-sunfish-v9.9-UNOFFICIAL-DiamondJohn-FASTBOOT.zip​

See OP for download links
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] DiamondJohn:
On Telegram (which I will be leaving soon) I have been asked how I generate a FASTBOOT build/release. So I thought I would post/share my scripts here and link, rather than on Telegram which is not my favourite UI. No benefit to read / view the attached script for the general population, but It may help (or hinder / confuse) someone interested in doing a build for themselves.

Basically, to get a FASTBOOT release I:

Do a standard ADB sideload build (see attached script I run/sequence manually)

Issue the following 3 commands (its near the bottom of the first script, but parameterised, after the build via a "brunch")

Manually rename the new FASTBOOT zip

lunch lineage_sunfish-userdebug;
breakfast sunfish;
make updatepackage;

I also attached a log of the last build output as an FYI
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] DiamondJohn:
If only I know about AlphaDroid sooner

https://xdaforums.com/t/rom-unoffic...w-very-customisable-rom.4592521/post-89042125
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] DiamondJohn:
Move along, nothing to see here, that hasn't been doco'd before.

The attached zip is a simple container of all the kernel changes I have made to enable to extra IO Schedulers. I put this together to make it as easy as possible for anyone who builds a ROM for the Pixel 4A (SUNFISH) to add these schedulers. As listed in the post

I dont use GitHub that much other than to puill/retrieve code, so feel free to add it as your commit. 99.9% of the code is coded by others (ie the schedulers themselves) and attribution is in the individual files. I only did the config to tell the compiler to add in others code. And work out which would work, search and test what they would compile and then worked; or at least not crash
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] DiamondJohn:
i have added the changes as a commit up on github, so it should be even easier for anyone to apply it onto other kernels, possibly other than a Pixel 4A

Add IO Schedulers Anxiety, FIOPs, maple, ROW, SIO, tripndroid & zen. … · diamondjohndroid/android_kernel_google_msm-4.14@175ed37

…Default to ZEN. Attribution in code files.

github.com
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] prog19:
Nice
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] CYC1711:
hi，Thank you for the incredible work，Nice to see so many new ROM

about Volte，I saw Google stating that Pixel4a can support Volte

But I flashed the official 13.001 version（Latest Previous）And tried the crdroid、AlphaDroid，

Just can't see the switch，Even in*#*#4636#*#*

What happened，pixel4a Can't support the VOLTE of China？I must root and Magisk？

Very frustrated，probably forced to replace the equipment
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] DiamondJohn:
I dont know much about VoLTE. i just checked if it was available in Australia. Im on vodafone and bought my phone through another store. The web site I found says

So, I am also on a very old plan that they have been trying to coax me off onto one of their newer plans (I don't want to as its the only plan that covers me for cheap calls to ANY country in the world). AND I bought my one through someone else, so I have two reasons they wont enable VoLTE on my device. Ring your provider and ask if it is available to you, under your plan. It also says on Pixel 3 or higher.
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] prog19:
Here in brazil VoLTE works in a whitelist by the carriers. So only models that are sold in our regular market are able to make lte calls. Maybe in china works the same ?
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] DiamondJohn:
Actually, Last night,. I juuuust was out of WiFi range, and I noticed a tiiiiny icon in my status bar. I also have VoLTE!!!

Another thing I havnt looked into, I was switching it on and off, but the first time I saw it, the LTE icon was actually LTE+ Switching it back and forward made the "+" sign go away. https://www.ecom-ex.com/intrinsic-safety/glossary/term/lte/

So VoLTE does work on this ROM.
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] CYC1711:
I just never seen a switch for Volte，in A10-13、crdroid、AlphaDroid。

But I successfully used the magic module to enable volte，After I tried two unusable modules。

According to the description of the module's creator,We do need some settings and mbn files specific to the China region

Thank you all

I am glad that my 4A can continue to serve,Now it's not easy to find a phone tha tequilibrium and is of the right size

reply to @prog19 in #104 。I don't think we have this restrictions，Because I am indeed able to use Volte now
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] DiamondJohn:
I have a new build. I use crDroid as my daily, so dirty flashing as a test may break my daily. Anyone have a test device or are prepared to do a test dirty flash of the new build? and maybe a clean flash for others as well?