Skip to content

Commit

Permalink
v1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
s1204IT committed Jul 3, 2023
1 parent a1d9a48 commit 15e604a
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 5 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# CT3用 Digichalizer

チャレンジタッチ契約者用改造補助アプリ

---

#### 権限の付与
```
adb shell pm grant me.s1204.benesse.dcha.e android.permission.WRITE_SECURE_SETTINGS
```
これを行わないと動作しません。
6 changes: 2 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,18 @@ android {
applicationId 'me.s1204.benesse.dcha.e'
minSdk 24
targetSdk 22
versionCode 1
versionName "1.0"
versionCode 2
versionName "1.1"
}

buildTypes {
debug {
debuggable false
//signingConfig signingConfigs.release
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
release {
//signingConfig signingConfigs.release
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
Expand Down
1 change: 1 addition & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
package="me.s1204.benesse.dcha.e">

<uses-sdk android:maxSdkVersion="28" />
<uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
<uses-permission android:name="jp.co.benesse.dcha.permission.ACCESS_SYSTEM" />

<application
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/java/me/s1204/benesse/dcha/e/BackNova.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import android.os.Bundle;
import android.os.IBinder;
import android.os.RemoteException;
import android.provider.Settings.Global;

import jp.co.benesse.dcha.dchaservice.IDchaService;
import jp.co.benesse.dcha.dchautilservice.IDchaUtilService;
Expand All @@ -32,6 +33,7 @@ public void onServiceDisconnected(ComponentName componentName) {
unbindService(this);
}
}, 1);
Global.putInt(getContentResolver(), Global.ADB_ENABLED, 1);
bindService(new Intent("jp.co.benesse.dcha.dchaservice.DchaService").setPackage("jp.co.benesse.dcha.dchaservice"), new ServiceConnection() {
@Override
public void onServiceConnected(ComponentName componentName, IBinder iBinder) {
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/java/me/s1204/benesse/dcha/e/InitDcha.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import android.os.Bundle;
import android.os.IBinder;
import android.os.RemoteException;
import android.provider.Settings.Global;

import jp.co.benesse.dcha.dchaservice.IDchaService;
import jp.co.benesse.dcha.dchautilservice.IDchaUtilService;
Expand All @@ -32,6 +33,7 @@ public void onServiceDisconnected(ComponentName componentName) {
unbindService(this);
}
}, 1);
Global.putInt(getContentResolver(), Global.ADB_ENABLED, 1);
bindService(new Intent("jp.co.benesse.dcha.dchaservice.DchaService").setPackage("jp.co.benesse.dcha.dchaservice"), new ServiceConnection() {
@Override
public void onServiceConnected(ComponentName componentName, IBinder iBinder) {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/me/s1204/benesse/dcha/e/Reboot.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public class Reboot extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
startActivity(new Intent(Intent.ACTION_MAIN).setClassName(getPackageName(), getPackageName() + ".BackNova"));
bindService(new Intent("jp.co.benesse.dcha.dchaservice.DchaService").setPackage("jp.co.benesse.dcha.dchaservice"), new ServiceConnection() {
@Override
public void onServiceConnected(ComponentName componentName, IBinder iBinder) {
Expand All @@ -30,6 +31,5 @@ public void onServiceDisconnected(ComponentName componentName) {
unbindService(this);
}
}, 1);
finishAndRemoveTask();
}
}

0 comments on commit 15e604a

Please sign in to comment.