Skip to content
This repository was archived by the owner on Jun 22, 2025. It is now read-only.

Commit f02323c

Browse files
committed
v1.0.1
1 parent 7321983 commit f02323c

File tree

4 files changed

+38
-6
lines changed

4 files changed

+38
-6
lines changed

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ android {
77
minSdk 21
88
//noinspection ExpiredTargetSdkVersion
99
targetSdk 22
10-
versionCode 1
11-
versionName "1.0"
10+
versionCode 2
11+
versionName "1.0.1"
1212
}
1313
}

app/src/main/AndroidManifest.xml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,28 @@
77
<application
88
android:allowBackup="false"
99
android:icon="@drawable/ic_launcher"
10-
android:label="@string/app_name">
10+
android:label="@string/app_name"
11+
android:theme="@style/AppTheme">
1112
<activity
1213
android:name=".DisableActivity"
1314
android:exported="true"
1415
android:icon="@drawable/ic_launcher"
15-
android:label="@string/disable"
16-
android:theme="@style/AppTheme">
16+
android:label="@string/disable">
1717
<intent-filter>
1818
<action android:name="android.intent.action.MAIN" />
1919
<category android:name="android.intent.category.DEFAULT" />
2020
<category android:name="android.intent.category.LAUNCHER" />
2121
</intent-filter>
2222
</activity>
23+
<activity
24+
android:name=".EnableActivity"
25+
android:exported="true"
26+
android:icon="@drawable/ic_launcher"
27+
android:label="@string/enable">
28+
<intent-filter>
29+
<action android:name="android.intent.action.MAIN" />
30+
<category android:name="android.intent.category.LAUNCHER" />
31+
</intent-filter>
32+
</activity>
2333
</application>
2434
</manifest>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package me.s1204.GalaxyCamSnd;
2+
3+
import android.app.Activity;
4+
import android.content.Intent;
5+
import android.os.Bundle;
6+
import android.os.Handler;
7+
8+
import static android.provider.Settings.System.putInt;
9+
10+
public class EnableActivity extends Activity {
11+
@Override
12+
protected void onCreate(Bundle savedInstanceState) {
13+
super.onCreate(savedInstanceState);
14+
putInt(getContentResolver(), "csc_pref_camera_forced_shuttersound_key", 0);
15+
super.onDestroy();
16+
finishAndRemoveTask();
17+
Intent camera=new Intent();
18+
camera.setClassName("com.sec.android.app.camera", "com.sec.android.app.camera.Camera");
19+
startActivity(camera);
20+
}
21+
}

app/src/main/res/values/strings.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
33
<string name="app_name">Galaxy CamSnd</string>
4-
<string name="disable">無効</string>
4+
<string name="disable">1</string>
5+
<string name="enable">0</string>
56
</resources>

0 commit comments

Comments
 (0)