Skip to content

Instantly share code, notes, and snippets.

View Ashutoshwahane's full-sized avatar
💻
Android developer Interested in Kotlin Multiplatform

ǝuɐɥɐM ɥsoʇnɥs∀ Ashutoshwahane

💻
Android developer Interested in Kotlin Multiplatform
View GitHub Profile
@Ashutoshwahane
Ashutoshwahane / RootDetection.kt
Last active September 13, 2023 12:54
Util class to check for the root detection
/*
The RootDetection class has a method called isPhoneJailbreakOrRooted(),
which returns a boolean value indicating whether the phone is jailbroken or rooted.
*/
class RootDetection {
fun isPhoneJailbreakOrRooted(): Boolean {
val testKey = detectTestKeys()
val suExist = checkSuExists()
val suBinary = checkForSuBinary()
This file has been truncated, but you can view the full file.
{
"photos": [
{
"id": 102693,
"sol": 1000,
"camera": {
"id": 20,
"name": "FHAZ",
"rover_id": 5,
"full_name": "Front Hazard Avoidance Camera"