the stock qcom 8960 hwcomposer chokes on getDisplayAttributes if the submitted arrays are not at least size 6. I patched the qcom android 4.2 hwcomposer driver on the ubuntu touch images to work properly, but this causes us problems with in-the wild drivers, and the new 4.4 drivers. Make sure we always submit a larger-than-needed array to this function.
Approved by PS Jenkins bot, Andreas Pokorny, Alan Griffiths.