* commit 'a865bb5df834194dee339db615c17d7c7b63aaa3': Use the correct method to check if device is encrypted