This repository was archived by the owner on Jun 22, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +38
-6
lines changed
java/me/s1204/GalaxyCamSnd Expand file tree Collapse file tree 4 files changed +38
-6
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ android {
7
7
minSdk 21
8
8
// noinspection ExpiredTargetSdkVersion
9
9
targetSdk 22
10
- versionCode 1
11
- versionName " 1.0"
10
+ versionCode 2
11
+ versionName " 1.0.1 "
12
12
}
13
13
}
Original file line number Diff line number Diff line change 7
7
<application
8
8
android : allowBackup =" false"
9
9
android : icon =" @drawable/ic_launcher"
10
- android : label =" @string/app_name" >
10
+ android : label =" @string/app_name"
11
+ android : theme =" @style/AppTheme" >
11
12
<activity
12
13
android : name =" .DisableActivity"
13
14
android : exported =" true"
14
15
android : icon =" @drawable/ic_launcher"
15
- android : label =" @string/disable"
16
- android : theme =" @style/AppTheme" >
16
+ android : label =" @string/disable" >
17
17
<intent-filter >
18
18
<action android : name =" android.intent.action.MAIN" />
19
19
<category android : name =" android.intent.category.DEFAULT" />
20
20
<category android : name =" android.intent.category.LAUNCHER" />
21
21
</intent-filter >
22
22
</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 >
23
33
</application >
24
34
</manifest >
Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<resources >
3
3
<string name =" app_name" >Galaxy CamSnd</string >
4
- <string name =" disable" >無効</string >
4
+ <string name =" disable" >1</string >
5
+ <string name =" enable" >0</string >
5
6
</resources >
You can’t perform that action at this time.
0 commit comments