Fixed crash on older Android versions due to unsupported app lock methods.
