Big merge from AOKP and CM
Signed-off-by: igio90 <giovanni.rocca.90@gmail.com>