Add B2G compatibility changes

Mostly just ported over from mako, as these devices are very similar.