Friends, I am new in AOSP. Have done the tutorial here: AOSP tutorial by google Have built my own 7.1.2 custom build with the modifications I needed. It works perfectly fine on the emulator! Happy days!
Next step would be to reproduce the same thing on the real device and this is where all my confusion comes from.
I probably incorreclty but do believe that if I build aosp_arm-eng with the lunch option will produce a 32bit build for an arm architecture processor. Aosp_arm64-eng will do the same but for a 64bit variant.
I get the *.img files at the end of the build and just started to look it up how to flash *.img files (with fastboot?) to the real device when I found an article saying that the lunch setups is populated from the envsetup.sh file which is irrelevant for my device. For my device I need to have a "custom build". Excuse me?
This makes me think that for every individual make of android devices you need to have a different 'build' (?) to create your own build? This doesn't make any sense to me.
If someone undestands my confusion can please make the things clear?
Can I use the aosp_arm-eng build *.img files to flash a 32bit arm device? If not, why not?
MILLION thanks for helping me understand this!
For the same android release (branch android-7.1.2_r28 for example) the build of two different devices (Nexus 5X and Nexus 6P for example) will result in two different builds.
The build result of the Nexus 5X will not be compatible with Nexus 6P and reciprocally.
Android is not like Ubuntu or Windows, where one image is compatible with a lot of devices.
To add your own device to AOSP, consider reading: Adding a new device