diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml index 3c7772a..7643783 100644 --- a/.idea/codeStyles/Project.xml +++ b/.idea/codeStyles/Project.xml @@ -1,22 +1,6 @@ - - diff --git a/.idea/compiler.xml b/.idea/compiler.xml index 61a9130..fb7f4a8 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index d5d35ec..860da66 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,6 +1,6 @@ - + diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml new file mode 100644 index 0000000..797acea --- /dev/null +++ b/.idea/runConfigurations.xml @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle index 12654f0..ecc63f8 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -11,8 +11,8 @@ android { applicationId "com.bos.oculess" minSdkVersion 23 targetSdkVersion 30 - versionCode 2 - versionName "1.1" + versionCode 3 + versionName "1.2" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } @@ -35,11 +35,11 @@ android { dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" - implementation 'androidx.core:core-ktx:1.3.2' - implementation 'androidx.appcompat:appcompat:1.2.0' - implementation 'com.google.android.material:material:1.2.1' - implementation 'androidx.constraintlayout:constraintlayout:2.0.4' + implementation 'androidx.core:core-ktx:1.6.0' + implementation 'androidx.appcompat:appcompat:1.3.1' + implementation 'com.google.android.material:material:1.4.0' + implementation 'androidx.constraintlayout:constraintlayout:2.1.1' testImplementation 'junit:junit:4.+' - androidTestImplementation 'androidx.test.ext:junit:1.1.2' - androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' + androidTestImplementation 'androidx.test.ext:junit:1.1.3' + androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' } \ No newline at end of file diff --git a/app/release/output-metadata.json b/app/release/output-metadata.json index 21b4d71..158f721 100644 --- a/app/release/output-metadata.json +++ b/app/release/output-metadata.json @@ -5,13 +5,13 @@ "kind": "Directory" }, "applicationId": "com.bos.oculess", - "variantName": "processReleaseResources", + "variantName": "release", "elements": [ { "type": "SINGLE", "filters": [], - "versionCode": 2, - "versionName": "1.1", + "versionCode": 3, + "versionName": "1.2", "outputFile": "app-release.apk" } ] diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 0818cc8..6713e1e 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -23,8 +23,6 @@ android:resource="@xml/device_admin" /> - - diff --git a/app/src/main/java/com/bos/oculess/MainActivity.kt b/app/src/main/java/com/bos/oculess/MainActivity.kt index a4acf7c..35461ca 100644 --- a/app/src/main/java/com/bos/oculess/MainActivity.kt +++ b/app/src/main/java/com/bos/oculess/MainActivity.kt @@ -3,10 +3,10 @@ package com.bos.oculess import android.app.admin.DevicePolicyManager import android.content.ComponentName import android.content.Context -import android.content.DialogInterface import android.content.Intent import android.graphics.Color import android.os.Bundle +import android.provider.Settings import android.view.WindowManager import android.widget.Button import android.widget.TextView @@ -20,6 +20,7 @@ class MainActivity : AppCompatActivity() { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) + val updaterName = "com.oculus.updater" val telemetryApps = arrayOf( "com.oculus.unifiedtelemetry", "com.oculus.gatekeeperservice", @@ -29,13 +30,20 @@ class MainActivity : AppCompatActivity() { "com.oculus.appsafety" ) - val viewAdminsBtn = findViewById