Cherrypick JustArchi's ArchiDroid Optimizations

Test, only for codina because janice cant compile with 4.7+ GCC