Merge "Read config.ini for Android build too" into idea133
diff --git a/android/avd/info.c b/android/avd/info.c
index 56f46e1..67e1c73 100644
--- a/android/avd/info.c
+++ b/android/avd/info.c
@@ -896,13 +896,12 @@
 
     _avdInfo_extractBuildProperties(i);
 
-    /* TODO: find a way to provide better information from the build files */
     i->deviceName = ASTRDUP("<build>");
 
-    /* There is no config.ini in the build */
-    i->configIni = NULL;
-
-    if (_avdInfo_getCoreHwIniPath(i, i->androidOut) < 0 )
+    /* out/target/product/<name>/config.ini, if exists, provide configuration
+     * from build files. */
+    if (_avdInfo_getConfigIni(i) < 0 ||
+        _avdInfo_getCoreHwIniPath(i, i->androidOut) < 0)
         goto FAIL;
 
     /* Read the build skin's hardware.ini, if any */