Changes for Ubuntu Touch, thanks to fr3ts0n!