Post AUB2I150T0TmDrj2DA by adam@androiddev.social
 (DIR) More posts by adam@androiddev.social
 (DIR) Post #AUB1K8jis1qgavDcgK by friendlymike@androiddev.social
       2023-03-31T14:02:27Z
       
       0 likes, 1 repeats
       
       I'm going to be building android from source at new job, this is new for me. Any recs on hardware. Can I do it on VMs or should I get dedicated hardware?
       
 (DIR) Post #AUB2I150T0TmDrj2DA by adam@androiddev.social
       2023-03-31T14:13:15Z
       
       0 likes, 0 repeats
       
       @friendlymike @effie knows a thing or two about building android from source
       
 (DIR) Post #AUB4BwELmd1PLzKEIS by botteaap@androiddev.social
       2023-03-31T14:34:34Z
       
       0 likes, 0 repeats
       
       @friendlymike I've tried VMs and such but dedicated hardware is easier and faster in my experience, especially if you are going to do this on a regular basis. I have a separate usb disk to boot into ubuntu for on and off tinkering which is OK, but linux on macs is not always easy or great, so I'd just get a linux box that's up to the task.
       
 (DIR) Post #AUBFVsucvdf4LloVHc by kiranrao@androiddev.social
       2023-03-31T16:41:25Z
       
       0 likes, 0 repeats
       
       @friendlymike I've had experience with both. VMs are faster to build but the download-and-flash experience is very inefficient, especially if you are going to be doing this multiple times a day. Dedicated hardware is a much better option.When I was working on this AOSP builds on Mac was not officially supported. It might have changed now.
       
 (DIR) Post #AUBFg0Qtp31qZQjd8S by krysanify@androiddev.social
       2023-03-31T16:43:15Z
       
       0 likes, 0 repeats
       
       @friendlymike Last time I built Android was Lolipop back in 2016(?) on Ubuntu of that time. Can't remember the machine specs (sorry), but pretty sure wasn't through VM and it still takes ~40mins for every build.OTOH I put a shell of my app in /system so during dev I just need to update the app and not rebuild the whole OS.
       
 (DIR) Post #AUBOAWBL8z4nMKW90S by Aurimas@androiddev.social
       2023-03-31T18:18:24Z
       
       0 likes, 0 repeats
       
       @friendlymike in general use Linux, SSD very important, then lots of cores (googlers on Android use 72 core machines), ram probably 64gb or more.
       
 (DIR) Post #AUBPDIHZNWIR4cJpHE by Aurimas@androiddev.social
       2023-03-31T18:28:58Z
       
       0 likes, 0 repeats
       
       @friendlymike if you'll have multiple people building stuff consider setting up RBE https://cs.android.com/android/platform/superproject/+/master:build/soong/docs/rbe.md
       
 (DIR) Post #AUBPDIuZ2XUL1YYy3c by friendlymike@androiddev.social
       2023-03-31T18:30:06Z
       
       0 likes, 0 repeats
       
       @Aurimas awesome I was hoping for something with remote execution/shared caches