mirror of
https://github.com/awfixers-stuff/OwnDroid.git
synced 2026-03-23 11:05:59 +00:00
add storage protection, update guide, enable obfuscate
This commit is contained in:
@@ -28,7 +28,6 @@ android {
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
//project.gradle.startParameter.excludedTaskNames.add("lint")
|
||||
isMinifyEnabled = true
|
||||
isShrinkResources = true
|
||||
proguardFiles(
|
||||
|
||||
2
app/proguard-rules.pro
vendored
2
app/proguard-rules.pro
vendored
@@ -5,7 +5,7 @@
|
||||
# For more details, see
|
||||
# http://developer.android.com/guide/developing/tools/proguard.html
|
||||
|
||||
-dontobfuscate
|
||||
# -dontobfuscate
|
||||
# If your project uses WebView with JS, uncomment the following
|
||||
# and specify the fully qualified class name to the JavaScript interface
|
||||
# class:
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
android:theme="@style/Theme.OwnDroid"
|
||||
android:enableOnBackInvokedCallback="true"
|
||||
android:testOnly="false"
|
||||
android:manageSpaceActivity=".ManageSpaceActivity"
|
||||
tools:targetApi="34">
|
||||
<activity
|
||||
android:name=".MainActivity"
|
||||
@@ -45,6 +46,11 @@
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<activity
|
||||
android:name=".ManageSpaceActivity"
|
||||
android:windowSoftInputMode="adjustResize|stateHidden"
|
||||
android:theme="@style/Theme.OwnDroid">
|
||||
</activity>
|
||||
<receiver
|
||||
android:name=".Receiver"
|
||||
android:description="@string/app_name"
|
||||
|
||||
@@ -117,6 +117,11 @@ private fun AuthSettings(){
|
||||
{ sharedPref.edit().putBoolean("lock_in_background",it).apply() }
|
||||
)
|
||||
}
|
||||
SwitchItem(
|
||||
R.string.protect_storage, "", null,
|
||||
{ sharedPref.getBoolean("protect_storage",false) },
|
||||
{ sharedPref.edit().putBoolean("protect_storage",it).apply() }
|
||||
)
|
||||
Box(modifier = Modifier.padding(horizontal = 8.dp)){
|
||||
Information {
|
||||
Text(text = stringResource(R.string.auth_on_start))
|
||||
|
||||
@@ -492,6 +492,11 @@
|
||||
<string name="auth_with_password">使用密码进行验证</string>
|
||||
<string name="auth_with_bio">使用生物识别进行验证</string>
|
||||
<string name="lock_in_background">处于后台时锁定</string>
|
||||
<string name="protect_storage">保护存储空间</string>
|
||||
<string name="storage_is_protected">存储空间受到保护</string>
|
||||
<string name="you_cant_clear_storage">你不能清除OwnDroid的存储空间</string>
|
||||
<string name="clear_storage">清除存储空间</string>
|
||||
<string name="clear_storage_success">清除存储空间成功\n应用即将退出</string>
|
||||
|
||||
<!--AndroidPermission-->
|
||||
<string name="permission_READ_EXTERNAL_STORAGE">读取外部存储</string>
|
||||
|
||||
@@ -507,6 +507,11 @@
|
||||
<string name="auth_with_password">Authenticate OwnDroid with password</string>
|
||||
<string name="auth_with_bio">Authenticate OwnDroid with biometrics</string>
|
||||
<string name="lock_in_background">Lock when switch to background</string>
|
||||
<string name="protect_storage">Protect storage</string>
|
||||
<string name="storage_is_protected">Storage is protected</string>
|
||||
<string name="you_cant_clear_storage">You can\'t clear storage of OwnDroid</string>
|
||||
<string name="clear_storage">Clear storage</string>
|
||||
<string name="clear_storage_success">Clear storage success\nApplication will exit</string>
|
||||
|
||||
<!--AndroidPermission-->
|
||||
<string name="permission_READ_EXTERNAL_STORAGE">Read external storage</string>
|
||||
|
||||
Reference in New Issue
Block a user