phhusson / treble_experimentations

Notes about tinkering with Android Project Treble
3.3k stars 653 forks source link

ARM32 FLOSS build #2279

Open jesse-osiecki opened 2 years ago

jesse-osiecki commented 2 years ago

Phusson, thank you for all your work here. I've been trying to build a FLOSS ARM32 build, testing on the CAT S22 Flip (a pretty cool phone), and I don't believe your build scripts have that https://github.com/phhusson/treble_experimentations/blob/f8392c3fc66f2df71c6ced1a7c829194f19bd6dd/build.sh#L123

I ran out of space on my disk trying to build Android after adding a line like buildVariant treble_a64_boS-userdebug squeak-arm32_binder64-ab-floss

Is this the right approach? Would this be something you'd be interested in adding to the releases?

jesse-osiecki commented 1 year ago

@phhusson sorry to bump, am I approaching this correctly above? I'd like to make a floss build for the CAT phone so that it can auto-update apps from F-Droid

phhusson commented 1 year ago

Currently floss variants are too big (I think it's like +1GB compared to vanilla) to fit on most arm32 devices. it'd need a floss-light variant

floss variant is with a f, so rather than your buildVariant treble_a64_boS-userdebug squeak-arm32_binder64-ab-floss, it's buildVariant treble_a64_bfS-userdebug squeak-arm32_binder64-ab-floss

If you just want auto-update from fdroid, you can edit vendor/foss/update.sh to remove all apk but fdroid

jesse-osiecki commented 1 year ago

Hey Thanks! I was able to build. Would you be interested in adding a floss-lite-32 build to the variants list? I don't know where you're building this and if that adds to your expense at all.

Tangently, I read this recently, if you need more compute power, it looks like Oracle :nauseated_face: has some beefy free compute resources. I'd be happy to help setup some build pipelines

Docbroke commented 5 months ago

Hi, @jesse-osiecki I am interested in trying GSI version for cat s22 flip, can you please tell your experience esp., if there are any issue running GSI on cat s22 and, which release variant shall I choose? My guess is I should try either arm32_..vanilla or arm32..vndlite_..vanilla of recent (12.1) build but I am not sure which one, and I don't know if this is correct choice. Currently I am running magisk rooted v30 rom with unlocked bootloader. I searched everywhere, including phh telegram channel, as well as all cat s22 issues and I am not sure if GSI build is day to day usable or not. It will be very helpful if you can share some light on this. --Thanks