GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Update AndroidSDK · initzhu/SKRoot-linuxKernelRoot@bc8b0e4

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • suTest
    • .idea
      • compiler.xml
      • encodings.xml
      • gradle.xml
      • jarRepositories.xml
      • misc.xml
    • app
      • build.gradle
      • src/main
        • AndroidManifest.xml
        • java/com/linux/sutest
          • MainActivity.java
        • res
          • menu
            • menu_main.xml
          • mipmap-hdpi
            • ic_launcher.png
            • ic_launcher.webp
            • ic_launcher_round.png
            • ic_launcher_round.webp
          • mipmap-mdpi
            • ic_launcher.png
            • ic_launcher.webp
            • ic_launcher_round.png
            • ic_launcher_round.webp
          • mipmap-xhdpi
            • ic_launcher.png
            • ic_launcher.webp
            • ic_launcher_round.png
            • ic_launcher_round.webp
          • mipmap-xxhdpi
            • ic_launcher.png
            • ic_launcher.webp
            • ic_launcher_round.png
            • ic_launcher_round.webp
          • mipmap-xxxhdpi
            • ic_launcher.png
            • ic_launcher.webp
            • ic_launcher_round.png
            • ic_launcher_round.webp
          • navigation
            • nav_graph.xml
          • values
            • dimens.xml
            • strings.xml
            • themes.xml
    • build.gradle
    • gradle.properties
    • gradlew.bat
    • gradlew
    • gradle/wrapper
      • gradle-wrapper.jar
      • gradle-wrapper.properties
    • settings.gradle
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎suTest/.idea/compiler.xml‎

Copy file name to clipboardExpand all lines: suTest/.idea/compiler.xml
+1-1Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎suTest/.idea/encodings.xml‎

Copy file name to clipboardExpand all lines: suTest/.idea/encodings.xml
-4Lines changed: 0 additions & 4 deletions
This file was deleted.
Collapse file

‎suTest/.idea/gradle.xml‎

Copy file name to clipboardExpand all lines: suTest/.idea/gradle.xml
+1-3Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎suTest/.idea/jarRepositories.xml‎

Copy file name to clipboardExpand all lines: suTest/.idea/jarRepositories.xml
-25Lines changed: 0 additions & 25 deletions
This file was deleted.
Collapse file

‎suTest/.idea/misc.xml‎

Copy file name to clipboardExpand all lines: suTest/.idea/misc.xml
+8-1Lines changed: 8 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎suTest/app/build.gradle‎

Copy file name to clipboardExpand all lines: suTest/app/build.gradle
+7-10Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@ plugins {
33
}
44

55
android {
6-
compileSdkVersion 29
7-
buildToolsVersion "29.0.3"
6+
compileSdk 31
87

98
defaultConfig {
109
applicationId "com.linux.sutest"
11-
minSdkVersion 26
12-
targetSdkVersion 29
10+
minSdk 23
11+
targetSdk 31
1312
versionCode 1
1413
versionName "1.0"
1514

@@ -30,12 +29,10 @@ android {
3029

3130
dependencies {
3231

33-
implementation 'androidx.appcompat:appcompat:1.3.1'
34-
implementation 'com.google.android.material:material:1.4.0'
35-
implementation 'androidx.constraintlayout:constraintlayout:2.1.0'
36-
implementation 'androidx.navigation:navigation-fragment:2.2.2'
37-
implementation 'androidx.navigation:navigation-ui:2.2.2'
38-
testImplementation 'junit:junit:4.+'
32+
implementation 'androidx.appcompat:appcompat:1.4.1'
33+
implementation 'com.google.android.material:material:1.5.0'
34+
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
35+
testImplementation 'junit:junit:4.13.2'
3936
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
4037
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
4138
}
Collapse file

‎suTest/app/src/main/AndroidManifest.xml‎

Copy file name to clipboardExpand all lines: suTest/app/src/main/AndroidManifest.xml
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
android:theme="@style/Theme.SuTest">
1212
<activity
1313
android:name=".MainActivity"
14-
android:label="@string/app_name"
15-
android:theme="@style/Theme.SuTest.NoActionBar">
14+
android:exported="true">
1615
<intent-filter>
1716
<action android:name="android.intent.action.MAIN" />
1817

Collapse file

‎suTest/app/src/main/java/com/linux/sutest/MainActivity.java‎

Copy file name to clipboardExpand all lines: suTest/app/src/main/java/com/linux/sutest/MainActivity.java
+5-14Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
11
package com.linux.sutest;
22

3-
import android.graphics.Color;
4-
import android.os.Bundle;
5-
6-
import com.google.android.material.floatingactionbutton.FloatingActionButton;
7-
import com.google.android.material.snackbar.Snackbar;
8-
93
import androidx.appcompat.app.AppCompatActivity;
10-
import androidx.appcompat.widget.Toolbar;
114

5+
import android.graphics.Color;
6+
import android.os.Bundle;
127
import android.view.View;
13-
14-
import android.view.Menu;
15-
import android.view.MenuItem;
168
import android.widget.Button;
179
import android.widget.TextView;
1810

@@ -23,6 +15,8 @@
2315

2416
public class MainActivity extends AppCompatActivity {
2517

18+
19+
2620
//执行root命令
2721
public static final String runRootCmd(String cmd, boolean bWait) {
2822
String retval = "";
@@ -85,11 +79,10 @@ public boolean canRunRootCommands() {
8579
}
8680
return false;
8781
}
88-
8982
@Override
9083
protected void onCreate(Bundle savedInstanceState) {
9184
super.onCreate(savedInstanceState);
92-
setContentView(R.layout.activity_main);
85+
9386

9487
updateRootStatus();
9588
Button test_root_btn = findViewById(R.id.test_root_btn);
@@ -101,7 +94,6 @@ public void onClick(View v) {
10194
});
10295

10396
}
104-
10597
private void updateRootStatus(){
10698
//获取ROOT权限检查
10799
TextView root_status_txt = findViewById(R.id.root_status_txt);
@@ -113,5 +105,4 @@ private void updateRootStatus(){
113105
root_status_txt.setTextColor(Color.rgb(255,0,0));
114106
}
115107
}
116-
117108
}
Collapse file

‎suTest/app/src/main/res/menu/menu_main.xml‎

Copy file name to clipboardExpand all lines: suTest/app/src/main/res/menu/menu_main.xml
-10Lines changed: 0 additions & 10 deletions
This file was deleted.
Collapse file

‎suTest/app/src/main/res/mipmap-hdpi/ic_launcher.png‎

Copy file name to clipboard
-3.51 KB
Binary file not shown.

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.