Use same buffer length as CyanogenMod.