This commit is contained in:
commit
b84bb3c6a2
33
BUILD.md
33
BUILD.md
@ -1,18 +1,21 @@
|
||||
# Introduction
|
||||
DroidFS relies on modified versions of the original encrypted filesystems programs to open volumes. [CryFS](https://github.com/cryfs/cryfs) is written in C++ while [gocryptfs](https://github.com/rfjakob/gocryptfs) is written in [Go](https://golang.org). Thus, building DroidFS requires the compilation of native code. However, for the sake of simplicity, the application has been designed in a modular way: you can build a version of DroidFS that supports both Gocryptfs and CryFS, or only one of the two.
|
||||
|
||||
Moreover, DroidFS aims to be accessible to as many people as possible. If you encounter any problems or need help with the build, feel free to open an issue, a discussion, or contact me by [email](mailto:hardcore.sushi@disroot.org) or on [Matrix](https://matrix.org): @hardcoresushi:matrix.underworld.fr
|
||||
Moreover, DroidFS aims to be accessible to as many people as possible. If you encounter any problems or need help with the build, feel free to open an issue, a discussion, or contact me (currently the main developer) by [email](mailto:gh@arkensys.dedyn.io) or on [Matrix](https://matrix.org): @hardcoresushi:matrix.underworld.fr
|
||||
|
||||
# Setup
|
||||
|
||||
The following two steps assume you're using a Debian-based Linux distribution. Package names might be similar for other distributions. Don't hesitate to ask if you're having trouble with this.
|
||||
|
||||
Install required packages:
|
||||
```
|
||||
$ sudo apt-get install openjdk-11-jdk-headless build-essential pkg-config git gnupg2 wget apksigner
|
||||
$ sudo apt-get install openjdk-17-jdk-headless build-essential pkg-config git gnupg2 wget apksigner npm
|
||||
```
|
||||
You also need to manually install the [Android SDK](https://developer.android.com/studio/index.html#command-tools) and the [Android Native Development Kit (NDK)](https://developer.android.com/ndk/downloads) (r23 versions are recommended).
|
||||
You also need to manually install the [Android SDK](https://developer.android.com/studio/index.html#command-tools) and the [Android Native Development Kit (NDK)](https://github.com/android/ndk/wiki/Unsupported-Downloads#r25c) version `25.2.9519653` (r25c). libcryfs cannot be built with newer NDK versions at the moment due to compatibility issues with [boost](https://www.boost.org). If you succeed in building it with a more recent version of NDK, please report it.
|
||||
|
||||
If you want a support for Gocryptfs volumes, you must install [Go](https://golang.org/doc/install) and libssl:
|
||||
If you want a support for Gocryptfs volumes, you need to install [Go](https://golang.org/doc/install):
|
||||
```
|
||||
$ sudo apt-get install golang-go libssl-dev
|
||||
$ sudo apt-get install golang-go
|
||||
```
|
||||
The code should be authenticated before being built. To verify the signatures, you will need my PGP key:
|
||||
```
|
||||
@ -45,16 +48,16 @@ $ git clone --depth=1 https://git.ffmpeg.org/ffmpeg.git
|
||||
If you want Gocryptfs support, you need to download OpenSSL:
|
||||
```
|
||||
$ cd ../libgocryptfs
|
||||
$ wget https://www.openssl.org/source/openssl-1.1.1w.tar.gz
|
||||
$ wget https://openssl.org/source/openssl-3.3.1.tar.gz
|
||||
```
|
||||
Verify OpenSSL signature:
|
||||
```
|
||||
$ wget https://www.openssl.org/source/openssl-1.1.1w.tar.gz.asc
|
||||
$ gpg --verify openssl-1.1.1w.tar.gz.asc openssl-1.1.1w.tar.gz
|
||||
$ https://openssl.org/source/openssl-3.3.1.tar.gz.asc
|
||||
$ gpg --verify openssl-3.3.1.tar.gz.asc openssl-3.3.1.tar.gz
|
||||
```
|
||||
Continue **ONLY** if the signature is **VALID**.
|
||||
```
|
||||
$ tar -xzf openssl-1.1.1w.tar.gz
|
||||
$ tar -xzf openssl-3.3.1.tar.gz
|
||||
```
|
||||
If you want CryFS support, initialize libcryfs:
|
||||
```
|
||||
@ -62,14 +65,6 @@ $ cd app/libcryfs
|
||||
$ git submodule update --depth=1 --init
|
||||
```
|
||||
|
||||
To be able to open PDF files internally, [pdf.js](https://github.com/mozilla/pdf.js) must be downloaded:
|
||||
```
|
||||
$ mkdir libpdfviewer/app/pdfjs-dist && cd libpdfviewer/app/pdfjs-dist
|
||||
$ wget https://registry.npmjs.org/pdfjs-dist/-/pdfjs-dist-3.8.162.tgz
|
||||
$ tar xf pdfjs-dist-3.8.162.tgz package/build/pdf.min.js package/build/pdf.worker.min.js
|
||||
$ mv package/build . && rm pdfjs-dist-3.8.162.tgz
|
||||
```
|
||||
|
||||
# Build
|
||||
Retrieve your Android NDK installation path, usually something like `/home/\<user\>/Android/SDK/ndk/\<NDK version\>`. Then, make it available in your shell:
|
||||
```
|
||||
@ -84,8 +79,8 @@ $ ./build.sh ffmpeg
|
||||
This step is only required if you want Gocryptfs support.
|
||||
```
|
||||
$ cd app/libgocryptfs
|
||||
$ OPENSSL_PATH="./openssl-1.1.1w" ./build.sh
|
||||
```
|
||||
$ ANDROID_NDK_ROOT="$ANDROID_NDK_HOME" OPENSSL_PATH="./openssl-3.3.1" ./build.sh
|
||||
```
|
||||
## Compile APKs
|
||||
Gradle build libgocryptfs and libcryfs by default.
|
||||
|
||||
|
@ -62,7 +62,7 @@ Some available features are considered risky and are therefore disabled by defau
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
\* These features may require temporarily writing the plain file to disk (DroidFS internal storage). This file can be read by applications with root access or by physical access if your device is not encrypted. For files small enough and on a 3.17+ kernel, DroidFS will try to use memory-only storage using `memfd_create(2)` (can break some apps).
|
||||
\* These features can work in two ways: temporarily writing the plain file to disk (DroidFS internal storage) or sharing it via memory. By default, DroidFS will choose to keep the file only in memory as it's more secure, but will fallback to disk export if the file is too large to be held in memory. This behavior can be changed with the *"Export method"* parameter in the settings. Please note that some applications require the file to be stored on disk, and therefore do not work with memory-exported files.
|
||||
|
||||
# Download
|
||||
<a href="https://f-droid.org/packages/sushi.hardcore.droidfs">
|
||||
|
@ -21,7 +21,7 @@ if (hasProperty("nosplits")) {
|
||||
|
||||
android {
|
||||
compileSdk 34
|
||||
ndkVersion "25.2.9519653"
|
||||
ndkVersion '25.2.9519653'
|
||||
namespace "sushi.hardcore.droidfs"
|
||||
|
||||
compileOptions {
|
||||
@ -58,6 +58,7 @@ android {
|
||||
splits {
|
||||
abi {
|
||||
enable true
|
||||
reset() // fix unknown bug (https://ru.stackoverflow.com/questions/1557805/abis-armeabi-mips-mips64-riscv64-are-not-supported-for-platform)
|
||||
universalApk true
|
||||
}
|
||||
}
|
||||
@ -103,28 +104,28 @@ android {
|
||||
|
||||
dependencies {
|
||||
implementation project(":libpdfviewer:app")
|
||||
implementation 'androidx.core:core-ktx:1.12.0'
|
||||
implementation "androidx.appcompat:appcompat:1.6.1"
|
||||
implementation 'androidx.core:core-ktx:1.13.1'
|
||||
implementation "androidx.appcompat:appcompat:1.7.0"
|
||||
implementation "androidx.constraintlayout:constraintlayout:2.1.4"
|
||||
def lifecycle_version = "2.6.2"
|
||||
def lifecycle_version = "2.8.1"
|
||||
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
|
||||
implementation "androidx.lifecycle:lifecycle-process:$lifecycle_version"
|
||||
|
||||
implementation "androidx.sqlite:sqlite-ktx:2.3.1"
|
||||
implementation "androidx.sqlite:sqlite-ktx:2.4.0"
|
||||
implementation "androidx.preference:preference-ktx:1.2.1"
|
||||
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
|
||||
implementation 'com.google.android.material:material:1.9.0'
|
||||
implementation 'com.google.android.material:material:1.12.0'
|
||||
implementation 'com.github.bumptech.glide:glide:4.16.0'
|
||||
implementation "androidx.biometric:biometric-ktx:1.2.0-alpha05"
|
||||
|
||||
def media3_version = "1.1.1"
|
||||
def media3_version = "1.3.1"
|
||||
implementation "androidx.media3:media3-exoplayer:$media3_version"
|
||||
implementation 'androidx.media3:media3-ui:1.1.1'
|
||||
implementation "androidx.media3:media3-ui:$media3_version"
|
||||
implementation "androidx.media3:media3-datasource:$media3_version"
|
||||
|
||||
implementation "androidx.concurrent:concurrent-futures:1.1.0"
|
||||
|
||||
def camerax_version = "1.3.0-rc02"
|
||||
def camerax_version = "1.3.3"
|
||||
implementation "androidx.camera:camera-camera2:$camerax_version"
|
||||
implementation "androidx.camera:camera-lifecycle:$camerax_version"
|
||||
implementation "androidx.camera:camera-view:$camerax_version"
|
||||
|
@ -74,7 +74,7 @@ else
|
||||
--disable-appkit \
|
||||
--disable-alsa \
|
||||
--disable-debug \
|
||||
>/dev/null &&
|
||||
&&
|
||||
make -j $(nproc --all) >/dev/null) &&
|
||||
mkdir -p build/$1/libavformat build/$1/libavcodec build/$1/libavutil &&
|
||||
cp $FFMPEG_DIR/libavformat/*.h $FFMPEG_DIR/libavformat/libavformat.so build/$1/libavformat &&
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 6388eaf433a4196f10389921d5e346c90ee3d793
|
||||
Subproject commit 0398d48b0963c01092976c5c7012b02327e564f0
|
@ -53,6 +53,7 @@
|
||||
<activity android:name=".file_viewers.AudioPlayer" android:configChanges="screenSize|orientation" />
|
||||
<activity android:name=".file_viewers.TextEditor" android:configChanges="screenSize|orientation" />
|
||||
<activity android:name=".CameraActivity" android:screenOrientation="nosensor" />
|
||||
<activity android:name=".LogcatActivity"/>
|
||||
|
||||
<service android:name=".WiperService" android:exported="false" android:stopWithTask="false"/>
|
||||
<service android:name=".file_operations.FileOperationService" android:exported="false"/>
|
||||
|
@ -5,7 +5,7 @@ Create the `new` folder if needed:
|
||||
mkdir -p new
|
||||
```
|
||||
|
||||
Put new CameraX files from upstream in the `new` folder.
|
||||
Put the new CameraX files from upstream (`androidx.camera.video.Recorder`, `androidx.camera.video.Recording`, `androidx.camera.video.PendingRecording` and `androidx.camera.video.internal.encoder.EncoderImpl`) in the `new` folder.
|
||||
|
||||
Perform the 3 way merge:
|
||||
```
|
||||
|
@ -16,7 +16,7 @@ import sushi.hardcore.droidfs.filesystems.EncryptedVolume
|
||||
import sushi.hardcore.droidfs.filesystems.GocryptfsVolume
|
||||
import sushi.hardcore.droidfs.util.IntentUtils
|
||||
import sushi.hardcore.droidfs.util.ObjRef
|
||||
import sushi.hardcore.droidfs.util.WidgetUtil
|
||||
import sushi.hardcore.droidfs.util.UIUtils
|
||||
import sushi.hardcore.droidfs.widgets.CustomAlertDialogBuilder
|
||||
import java.util.*
|
||||
|
||||
@ -89,8 +89,8 @@ class ChangePasswordActivity: BaseActivity() {
|
||||
}
|
||||
|
||||
private fun changeVolumePassword() {
|
||||
val newPassword = WidgetUtil.encodeEditTextContent(binding.editNewPassword)
|
||||
val newPasswordConfirm = WidgetUtil.encodeEditTextContent(binding.editPasswordConfirm)
|
||||
val newPassword = UIUtils.encodeEditTextContent(binding.editNewPassword)
|
||||
val newPasswordConfirm = UIUtils.encodeEditTextContent(binding.editPasswordConfirm)
|
||||
@SuppressLint("NewApi")
|
||||
if (!newPassword.contentEquals(newPasswordConfirm)) {
|
||||
Toast.makeText(this, R.string.passwords_mismatch, Toast.LENGTH_SHORT).show()
|
||||
@ -135,7 +135,7 @@ class ChangePasswordActivity: BaseActivity() {
|
||||
null
|
||||
}
|
||||
val currentPassword = if (givenHash == null) {
|
||||
WidgetUtil.encodeEditTextContent(binding.editCurrentPassword)
|
||||
UIUtils.encodeEditTextContent(binding.editCurrentPassword)
|
||||
} else {
|
||||
null
|
||||
}
|
||||
|
@ -7,6 +7,7 @@ import android.os.Handler
|
||||
import android.os.ParcelFileDescriptor
|
||||
import android.system.Os
|
||||
import android.util.Log
|
||||
import androidx.preference.PreferenceManager
|
||||
import kotlinx.coroutines.CoroutineScope
|
||||
import kotlinx.coroutines.launch
|
||||
import sushi.hardcore.droidfs.filesystems.EncryptedVolume
|
||||
@ -22,6 +23,23 @@ class EncryptedFileProvider(context: Context) {
|
||||
companion object {
|
||||
private const val TAG = "EncryptedFileProvider"
|
||||
fun getTmpFilesDir(context: Context) = File(context.cacheDir, "tmp")
|
||||
|
||||
var exportMethod = ExportMethod.AUTO
|
||||
}
|
||||
|
||||
enum class ExportMethod {
|
||||
AUTO,
|
||||
DISK,
|
||||
MEMORY;
|
||||
|
||||
companion object {
|
||||
fun parse(value: String) = when (value) {
|
||||
"auto" -> EncryptedFileProvider.ExportMethod.AUTO
|
||||
"disk" -> EncryptedFileProvider.ExportMethod.DISK
|
||||
"memory" -> EncryptedFileProvider.ExportMethod.MEMORY
|
||||
else -> throw IllegalArgumentException("Invalid export method: $value")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private val memoryInfo = ActivityManager.MemoryInfo()
|
||||
@ -33,6 +51,11 @@ class EncryptedFileProvider(context: Context) {
|
||||
(context.getSystemService(Context.ACTIVITY_SERVICE) as ActivityManager).getMemoryInfo(
|
||||
memoryInfo
|
||||
)
|
||||
|
||||
PreferenceManager.getDefaultSharedPreferences(context)
|
||||
.getString("export_method", null)?.let {
|
||||
exportMethod = ExportMethod.parse(it)
|
||||
}
|
||||
}
|
||||
|
||||
class ExportedDiskFile private constructor(
|
||||
@ -118,16 +141,18 @@ class EncryptedFileProvider(context: Context) {
|
||||
path: String,
|
||||
size: Long,
|
||||
): ExportedFile? {
|
||||
return if (size > memoryInfo.availMem * 0.8) {
|
||||
ExportedDiskFile.create(
|
||||
path,
|
||||
tmpFilesDir,
|
||||
handler,
|
||||
)
|
||||
} else if (isMemFileSupported) {
|
||||
ExportedMemFile.create(path, size) as ExportedFile
|
||||
} else {
|
||||
null
|
||||
val diskFile by lazy { ExportedDiskFile.create(path, tmpFilesDir, handler) }
|
||||
val memFile by lazy { ExportedMemFile.create(path, size) }
|
||||
return when (exportMethod) {
|
||||
ExportMethod.MEMORY -> memFile
|
||||
ExportMethod.DISK -> diskFile
|
||||
ExportMethod.AUTO -> {
|
||||
if (isMemFileSupported && size < memoryInfo.availMem * 0.8) {
|
||||
memFile
|
||||
} else {
|
||||
diskFile
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -6,7 +6,7 @@ object FileTypes {
|
||||
private val FILE_EXTENSIONS = mapOf(
|
||||
Pair("image", listOf("png", "jpg", "jpeg", "gif", "webp", "bmp", "heic")),
|
||||
Pair("video", listOf("mp4", "webm", "mkv", "mov")),
|
||||
Pair("audio", listOf("mp3", "ogg", "m4a", "wav", "flac")),
|
||||
Pair("audio", listOf("mp3", "ogg", "m4a", "wav", "flac", "opus")),
|
||||
Pair("pdf", listOf("pdf")),
|
||||
Pair("text", listOf(
|
||||
"asc",
|
||||
|
88
app/src/main/java/sushi/hardcore/droidfs/LogcatActivity.kt
Normal file
88
app/src/main/java/sushi/hardcore/droidfs/LogcatActivity.kt
Normal file
@ -0,0 +1,88 @@
|
||||
package sushi.hardcore.droidfs
|
||||
|
||||
import android.net.Uri
|
||||
import android.os.Bundle
|
||||
import android.view.Menu
|
||||
import android.view.MenuItem
|
||||
import android.widget.Toast
|
||||
import androidx.activity.result.contract.ActivityResultContracts
|
||||
import androidx.lifecycle.lifecycleScope
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.launch
|
||||
import sushi.hardcore.droidfs.databinding.ActivityLogcatBinding
|
||||
import java.io.BufferedReader
|
||||
import java.io.BufferedWriter
|
||||
import java.io.InputStreamReader
|
||||
import java.io.InterruptedIOException
|
||||
import java.io.OutputStreamWriter
|
||||
import java.text.SimpleDateFormat
|
||||
import java.util.Date
|
||||
import java.util.Locale
|
||||
|
||||
class LogcatActivity: BaseActivity() {
|
||||
private lateinit var binding: ActivityLogcatBinding
|
||||
private var process: Process? = null
|
||||
private val dateFormat by lazy {
|
||||
SimpleDateFormat("yyyy-MM-dd_HH:mm:ss", Locale.getDefault())
|
||||
}
|
||||
private val saveAs = registerForActivityResult(ActivityResultContracts.CreateDocument("text/*")) { uri ->
|
||||
uri?.let {
|
||||
saveTo(it)
|
||||
}
|
||||
}
|
||||
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
binding = ActivityLogcatBinding.inflate(layoutInflater)
|
||||
setContentView(binding.root)
|
||||
title = getString(R.string.logcat_title)
|
||||
supportActionBar?.setDisplayHomeAsUpEnabled(true)
|
||||
|
||||
lifecycleScope.launch(Dispatchers.IO) {
|
||||
try {
|
||||
BufferedReader(InputStreamReader(Runtime.getRuntime().exec("logcat").also {
|
||||
process = it
|
||||
}.inputStream)).forEachLine {
|
||||
binding.content.post {
|
||||
binding.content.append("$it\n")
|
||||
}
|
||||
}
|
||||
} catch (_: InterruptedIOException) {}
|
||||
}
|
||||
}
|
||||
|
||||
override fun onDestroy() {
|
||||
super.onDestroy()
|
||||
process?.destroy()
|
||||
}
|
||||
|
||||
override fun onCreateOptionsMenu(menu: Menu): Boolean {
|
||||
menuInflater.inflate(R.menu.logcat, menu)
|
||||
return true
|
||||
}
|
||||
|
||||
override fun onOptionsItemSelected(item: MenuItem): Boolean {
|
||||
return when (item.itemId) {
|
||||
android.R.id.home -> {
|
||||
finish()
|
||||
true
|
||||
}
|
||||
R.id.save -> {
|
||||
saveAs.launch("DroidFS_${dateFormat.format(Date())}.log")
|
||||
true
|
||||
}
|
||||
else -> super.onOptionsItemSelected(item)
|
||||
}
|
||||
}
|
||||
|
||||
private fun saveTo(uri: Uri) {
|
||||
lifecycleScope.launch(Dispatchers.IO) {
|
||||
BufferedWriter(OutputStreamWriter(contentResolver.openOutputStream(uri))).use {
|
||||
it.write(binding.content.text.toString())
|
||||
}
|
||||
launch(Dispatchers.Main) {
|
||||
Toast.makeText(this@LogcatActivity, R.string.logcat_saved, Toast.LENGTH_SHORT).show()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -28,6 +28,7 @@ import sushi.hardcore.droidfs.file_operations.FileOperationService
|
||||
import sushi.hardcore.droidfs.file_operations.TaskResult
|
||||
import sushi.hardcore.droidfs.util.IntentUtils
|
||||
import sushi.hardcore.droidfs.util.PathUtils
|
||||
import sushi.hardcore.droidfs.util.UIUtils
|
||||
import sushi.hardcore.droidfs.widgets.CustomAlertDialogBuilder
|
||||
import sushi.hardcore.droidfs.widgets.EditTextDialog
|
||||
import java.io.File
|
||||
@ -354,7 +355,11 @@ class MainActivity : BaseActivity(), VolumeAdapter.Listener {
|
||||
|
||||
override fun onCreateOptionsMenu(menu: Menu): Boolean {
|
||||
menuInflater.inflate(R.menu.main_activity, menu)
|
||||
menu.findItem(R.id.settings).isVisible = !explorerRouter.pickMode && !explorerRouter.dropMode
|
||||
val settingsVisible = !explorerRouter.pickMode && !explorerRouter.dropMode
|
||||
menu.findItem(R.id.settings).isVisible = settingsVisible
|
||||
if (settingsVisible) {
|
||||
UIUtils.getMenuIconNeutralTint(this, menu).applyTo(R.id.settings, R.drawable.icon_settings)
|
||||
}
|
||||
val isSelecting = volumeAdapter.selectedItems.isNotEmpty()
|
||||
menu.findItem(R.id.select_all).isVisible = isSelecting
|
||||
menu.findItem(R.id.lock).isVisible = isSelecting && volumeAdapter.selectedItems.any {
|
||||
|
@ -1,5 +1,6 @@
|
||||
package sushi.hardcore.droidfs
|
||||
|
||||
import android.app.ActivityOptions
|
||||
import android.content.Intent
|
||||
import android.content.SharedPreferences
|
||||
import android.os.Build
|
||||
@ -90,9 +91,15 @@ class SettingsActivity : BaseActivity() {
|
||||
|
||||
private fun refreshTheme() {
|
||||
with(requireActivity()) {
|
||||
startActivity(Intent(this, SettingsActivity::class.java))
|
||||
startActivity(
|
||||
Intent(this, SettingsActivity::class.java),
|
||||
ActivityOptions.makeCustomAnimation(
|
||||
this,
|
||||
android.R.anim.fade_in,
|
||||
android.R.anim.fade_out
|
||||
).toBundle()
|
||||
)
|
||||
finish()
|
||||
overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out)
|
||||
}
|
||||
}
|
||||
|
||||
@ -120,6 +127,10 @@ class SettingsActivity : BaseActivity() {
|
||||
false
|
||||
}
|
||||
}
|
||||
findPreference<Preference>("logcat")?.setOnPreferenceClickListener { _ ->
|
||||
startActivity(Intent(requireContext(), LogcatActivity::class.java))
|
||||
true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -179,17 +190,7 @@ class SettingsActivity : BaseActivity() {
|
||||
true
|
||||
}
|
||||
switchExpose.setOnPreferenceChangeListener { _, checked ->
|
||||
if (checked as Boolean) {
|
||||
if (!Compat.isMemFileSupported()) {
|
||||
CustomAlertDialogBuilder(requireContext(), (requireActivity() as BaseActivity).theme)
|
||||
.setTitle(R.string.error)
|
||||
.setMessage("Your current kernel does not support memfd_create(). This feature requires a minimum kernel version of ${Compat.MEMFD_CREATE_MINIMUM_KERNEL_VERSION}.")
|
||||
.setPositiveButton(R.string.ok, null)
|
||||
.show()
|
||||
return@setOnPreferenceChangeListener false
|
||||
}
|
||||
}
|
||||
VolumeProvider.usfExpose = checked
|
||||
VolumeProvider.usfExpose = checked as Boolean
|
||||
updateView(usfExpose = checked)
|
||||
VolumeProvider.notifyRootsChanged(requireContext())
|
||||
true
|
||||
@ -199,6 +200,19 @@ class SettingsActivity : BaseActivity() {
|
||||
TemporaryFileProvider.usfSafWrite = checked
|
||||
true
|
||||
}
|
||||
|
||||
findPreference<ListPreference>("export_method")!!.setOnPreferenceChangeListener { _, newValue ->
|
||||
if (newValue as String == "memory" && !Compat.isMemFileSupported()) {
|
||||
CustomAlertDialogBuilder(requireContext(), (requireActivity() as BaseActivity).theme)
|
||||
.setTitle(R.string.error)
|
||||
.setMessage(getString(R.string.memfd_create_unsupported, Compat.MEMFD_CREATE_MINIMUM_KERNEL_VERSION))
|
||||
.setPositiveButton(R.string.ok, null)
|
||||
.show()
|
||||
return@setOnPreferenceChangeListener false
|
||||
}
|
||||
EncryptedFileProvider.exportMethod = EncryptedFileProvider.ExportMethod.parse(newValue)
|
||||
true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -13,7 +13,7 @@ import sushi.hardcore.droidfs.Constants.DEFAULT_VOLUME_KEY
|
||||
import sushi.hardcore.droidfs.databinding.DialogOpenVolumeBinding
|
||||
import sushi.hardcore.droidfs.filesystems.EncryptedVolume
|
||||
import sushi.hardcore.droidfs.util.ObjRef
|
||||
import sushi.hardcore.droidfs.util.WidgetUtil
|
||||
import sushi.hardcore.droidfs.util.UIUtils
|
||||
import sushi.hardcore.droidfs.widgets.CustomAlertDialogBuilder
|
||||
import java.util.*
|
||||
|
||||
@ -123,7 +123,7 @@ class VolumeOpener(
|
||||
apply()
|
||||
}
|
||||
}
|
||||
val password = WidgetUtil.encodeEditTextContent(dialogBinding!!.editPassword)
|
||||
val password = UIUtils.encodeEditTextContent(dialogBinding!!.editPassword)
|
||||
val savePasswordHash = dialogBinding!!.checkboxSavePassword.isChecked
|
||||
dialogBinding = null
|
||||
// openVolumeWithPassword is responsible for wiping the password
|
||||
|
@ -20,7 +20,7 @@ import sushi.hardcore.droidfs.filesystems.EncryptedVolume
|
||||
import sushi.hardcore.droidfs.filesystems.GocryptfsVolume
|
||||
import sushi.hardcore.droidfs.util.Compat
|
||||
import sushi.hardcore.droidfs.util.ObjRef
|
||||
import sushi.hardcore.droidfs.util.WidgetUtil
|
||||
import sushi.hardcore.droidfs.util.UIUtils
|
||||
import sushi.hardcore.droidfs.widgets.CustomAlertDialogBuilder
|
||||
import java.io.File
|
||||
import java.util.*
|
||||
@ -146,8 +146,8 @@ class CreateVolumeFragment: Fragment() {
|
||||
}
|
||||
|
||||
private fun createVolume() {
|
||||
val password = WidgetUtil.encodeEditTextContent(binding.editPassword)
|
||||
val passwordConfirm = WidgetUtil.encodeEditTextContent(binding.editPasswordConfirm)
|
||||
val password = UIUtils.encodeEditTextContent(binding.editPassword)
|
||||
val passwordConfirm = UIUtils.encodeEditTextContent(binding.editPasswordConfirm)
|
||||
if (!password.contentEquals(passwordConfirm)) {
|
||||
Toast.makeText(requireContext(), R.string.passwords_mismatch, Toast.LENGTH_SHORT).show()
|
||||
Arrays.fill(password, 0)
|
||||
|
@ -236,14 +236,21 @@ class VolumeProvider: DocumentsProvider() {
|
||||
): String? {
|
||||
if (!usfExpose || !usfSafWrite) return null
|
||||
val document = parseDocumentId(parentDocumentId) ?: return null
|
||||
val newFile = PathUtils.pathJoin(document.path, displayName)
|
||||
val f = document.encryptedVolume.openFileWriteMode(newFile)
|
||||
return if (f == -1L) {
|
||||
Log.e(TAG, "Failed to create file: $document")
|
||||
null
|
||||
val path = PathUtils.pathJoin(document.path, displayName)
|
||||
var success = false
|
||||
if (mimeType == DocumentsContract.Document.MIME_TYPE_DIR) {
|
||||
success = document.encryptedVolume.mkdir(path)
|
||||
} else {
|
||||
document.encryptedVolume.closeFile(f)
|
||||
document.rootId+newFile
|
||||
val f = document.encryptedVolume.openFileWriteMode(path)
|
||||
if (f != -1L) {
|
||||
document.encryptedVolume.closeFile(f)
|
||||
success = true
|
||||
}
|
||||
}
|
||||
return if (success) {
|
||||
document.rootId+path
|
||||
} else {
|
||||
null
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -11,10 +11,12 @@ import android.view.Menu
|
||||
import android.view.MenuItem
|
||||
import android.view.View
|
||||
import android.widget.ImageButton
|
||||
import android.widget.ProgressBar
|
||||
import android.widget.TextView
|
||||
import android.widget.Toast
|
||||
import androidx.activity.addCallback
|
||||
import androidx.core.content.ContextCompat
|
||||
import androidx.core.view.isVisible
|
||||
import androidx.lifecycle.ViewModel
|
||||
import androidx.lifecycle.ViewModelProvider
|
||||
import androidx.lifecycle.lifecycleScope
|
||||
@ -23,10 +25,13 @@ import androidx.recyclerview.widget.LinearLayoutManager
|
||||
import androidx.recyclerview.widget.RecyclerView
|
||||
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.Job
|
||||
import kotlinx.coroutines.MainScope
|
||||
import kotlinx.coroutines.async
|
||||
import kotlinx.coroutines.cancel
|
||||
import kotlinx.coroutines.cancelAndJoin
|
||||
import kotlinx.coroutines.launch
|
||||
import kotlinx.coroutines.withContext
|
||||
import kotlinx.coroutines.yield
|
||||
import sushi.hardcore.droidfs.BaseActivity
|
||||
import sushi.hardcore.droidfs.Constants
|
||||
import sushi.hardcore.droidfs.EncryptedFileProvider
|
||||
@ -49,6 +54,7 @@ import sushi.hardcore.droidfs.file_viewers.VideoPlayer
|
||||
import sushi.hardcore.droidfs.filesystems.EncryptedVolume
|
||||
import sushi.hardcore.droidfs.filesystems.Stat
|
||||
import sushi.hardcore.droidfs.util.PathUtils
|
||||
import sushi.hardcore.droidfs.util.UIUtils
|
||||
import sushi.hardcore.droidfs.widgets.CustomAlertDialogBuilder
|
||||
import sushi.hardcore.droidfs.widgets.EditTextDialog
|
||||
|
||||
@ -69,6 +75,7 @@ open class BaseExplorerActivity : BaseActivity(), ExplorerElementAdapter.Listene
|
||||
}
|
||||
protected lateinit var fileOperationService: FileOperationService
|
||||
protected val activityScope = MainScope()
|
||||
private var directoryLoadingTask: Job? = null
|
||||
protected lateinit var explorerElements: MutableList<ExplorerElement>
|
||||
protected lateinit var explorerAdapter: ExplorerElementAdapter
|
||||
protected lateinit var app: VolumeManagerApp
|
||||
@ -79,6 +86,7 @@ open class BaseExplorerActivity : BaseActivity(), ExplorerElementAdapter.Listene
|
||||
private lateinit var titleText: TextView
|
||||
private lateinit var recycler_view_explorer: RecyclerView
|
||||
private lateinit var refresher: SwipeRefreshLayout
|
||||
private lateinit var loader: ProgressBar
|
||||
private lateinit var textDirEmpty: TextView
|
||||
private lateinit var currentPathText: TextView
|
||||
private lateinit var numberOfFilesText: TextView
|
||||
@ -101,6 +109,7 @@ open class BaseExplorerActivity : BaseActivity(), ExplorerElementAdapter.Listene
|
||||
init()
|
||||
recycler_view_explorer = findViewById(R.id.recycler_view_explorer)
|
||||
refresher = findViewById(R.id.refresher)
|
||||
loader = findViewById(R.id.loader)
|
||||
textDirEmpty = findViewById(R.id.text_dir_empty)
|
||||
currentPathText = findViewById(R.id.current_path_text)
|
||||
numberOfFilesText = findViewById(R.id.number_of_files_text)
|
||||
@ -259,6 +268,27 @@ open class BaseExplorerActivity : BaseActivity(), ExplorerElementAdapter.Listene
|
||||
.show()
|
||||
}
|
||||
|
||||
protected fun createNewFile(callback: (Long) -> Unit) {
|
||||
EditTextDialog(this, R.string.enter_file_name) {
|
||||
if (it.isEmpty()) {
|
||||
Toast.makeText(this, R.string.error_filename_empty, Toast.LENGTH_SHORT).show()
|
||||
createNewFile(callback)
|
||||
} else {
|
||||
val filePath = PathUtils.pathJoin(currentDirectoryPath, it)
|
||||
val handleID = encryptedVolume.openFileWriteMode(filePath)
|
||||
if (handleID == -1L) {
|
||||
CustomAlertDialogBuilder(this, theme)
|
||||
.setTitle(R.string.error)
|
||||
.setMessage(R.string.file_creation_failed)
|
||||
.setPositiveButton(R.string.ok, null)
|
||||
.show()
|
||||
} else {
|
||||
callback(handleID)
|
||||
}
|
||||
}
|
||||
}.show()
|
||||
}
|
||||
|
||||
private fun setVolumeNameTitle() {
|
||||
titleText.text = getString(R.string.volume, volumeName)
|
||||
}
|
||||
@ -312,17 +342,15 @@ open class BaseExplorerActivity : BaseActivity(), ExplorerElementAdapter.Listene
|
||||
}
|
||||
|
||||
private fun displayExplorerElements() {
|
||||
synchronized(this) {
|
||||
ExplorerElement.sortBy(sortOrderValues[currentSortOrderIndex], foldersFirst, explorerElements)
|
||||
}
|
||||
ExplorerElement.sortBy(sortOrderValues[currentSortOrderIndex], foldersFirst, explorerElements)
|
||||
unselectAll(false)
|
||||
loader.isVisible = false
|
||||
recycler_view_explorer.isVisible = true
|
||||
explorerAdapter.explorerElements = explorerElements
|
||||
val sharedPrefsEditor = sharedPrefs.edit()
|
||||
sharedPrefsEditor.putString(Constants.SORT_ORDER_KEY, sortOrderValues[currentSortOrderIndex])
|
||||
sharedPrefsEditor.apply()
|
||||
}
|
||||
|
||||
private fun recursiveSetSize(directory: ExplorerElement) {
|
||||
private suspend fun recursiveSetSize(directory: ExplorerElement) {
|
||||
yield()
|
||||
for (child in encryptedVolume.readDir(directory.fullPath) ?: return) {
|
||||
if (child.isDirectory) {
|
||||
recursiveSetSize(child)
|
||||
@ -346,15 +374,16 @@ open class BaseExplorerActivity : BaseActivity(), ExplorerElementAdapter.Listene
|
||||
}
|
||||
}
|
||||
|
||||
protected fun setCurrentPath(path: String, onDisplayed: (() -> Unit)? = null) {
|
||||
synchronized(this) {
|
||||
explorerElements = encryptedVolume.readDir(path) ?: return
|
||||
if (path != "/") {
|
||||
explorerElements.add(
|
||||
0,
|
||||
ExplorerElement("..", Stat.parentFolderStat(), parentPath = currentDirectoryPath)
|
||||
)
|
||||
}
|
||||
protected fun setCurrentPath(path: String, onDisplayed: (() -> Unit)? = null) = lifecycleScope.launch {
|
||||
directoryLoadingTask?.cancelAndJoin()
|
||||
recycler_view_explorer.isVisible = false
|
||||
loader.isVisible = true
|
||||
explorerElements = encryptedVolume.readDir(path) ?: return@launch
|
||||
if (path != "/") {
|
||||
explorerElements.add(
|
||||
0,
|
||||
ExplorerElement("..", Stat.parentFolderStat(), parentPath = currentDirectoryPath)
|
||||
)
|
||||
}
|
||||
textDirEmpty.visibility = if (explorerElements.size == 0) View.VISIBLE else View.GONE
|
||||
currentDirectoryPath = path
|
||||
@ -362,22 +391,19 @@ open class BaseExplorerActivity : BaseActivity(), ExplorerElementAdapter.Listene
|
||||
displayNumberOfElements(numberOfFilesText, R.string.one_file, R.string.multiple_files, explorerElements.count { it.isRegularFile })
|
||||
displayNumberOfElements(numberOfFoldersText, R.string.one_folder, R.string.multiple_folders, explorerElements.count { it.isDirectory })
|
||||
if (mapFolders) {
|
||||
lifecycleScope.launch {
|
||||
var totalSize: Long = 0
|
||||
withContext(Dispatchers.IO) {
|
||||
synchronized(this@BaseExplorerActivity) {
|
||||
for (element in explorerElements) {
|
||||
if (element.isDirectory) {
|
||||
recursiveSetSize(element)
|
||||
}
|
||||
totalSize += element.stat.size
|
||||
}
|
||||
var totalSize: Long = 0
|
||||
directoryLoadingTask = launch(Dispatchers.IO) {
|
||||
for (element in explorerElements) {
|
||||
if (element.isDirectory) {
|
||||
recursiveSetSize(element)
|
||||
}
|
||||
totalSize += element.stat.size
|
||||
}
|
||||
displayExplorerElements()
|
||||
totalSizeText.text = getString(R.string.total_size, PathUtils.formatSize(totalSize))
|
||||
onDisplayed?.invoke()
|
||||
}
|
||||
directoryLoadingTask!!.join()
|
||||
displayExplorerElements()
|
||||
totalSizeText.text = getString(R.string.total_size, PathUtils.formatSize(totalSize))
|
||||
onDisplayed?.invoke()
|
||||
} else {
|
||||
displayExplorerElements()
|
||||
totalSizeText.text = getString(
|
||||
@ -560,14 +586,6 @@ open class BaseExplorerActivity : BaseActivity(), ExplorerElementAdapter.Listene
|
||||
}
|
||||
}
|
||||
|
||||
private fun setMenuIconTint(menu: Menu, iconColor: Int, menuItemId: Int, drawableId: Int) {
|
||||
menu.findItem(menuItemId)?.let {
|
||||
it.icon = ContextCompat.getDrawable(this, drawableId)?.apply {
|
||||
setTint(iconColor)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun onCreateOptionsMenu(menu: Menu): Boolean {
|
||||
menu.findItem(R.id.rename).isVisible = false
|
||||
menu.findItem(R.id.open_as)?.isVisible = false
|
||||
@ -575,9 +593,10 @@ open class BaseExplorerActivity : BaseActivity(), ExplorerElementAdapter.Listene
|
||||
menu.findItem(R.id.external_open)?.isVisible = false
|
||||
}
|
||||
val noItemSelected = explorerAdapter.selectedItems.isEmpty()
|
||||
val iconColor = ContextCompat.getColor(this, R.color.neutralIconTint)
|
||||
setMenuIconTint(menu, iconColor, R.id.sort, R.drawable.icon_sort)
|
||||
setMenuIconTint(menu, iconColor, R.id.share, R.drawable.icon_share)
|
||||
with(UIUtils.getMenuIconNeutralTint(this, menu)) {
|
||||
applyTo(R.id.sort, R.drawable.icon_sort)
|
||||
applyTo(R.id.share, R.drawable.icon_share)
|
||||
}
|
||||
menu.findItem(R.id.sort).isVisible = noItemSelected
|
||||
menu.findItem(R.id.lock).isVisible = noItemSelected
|
||||
menu.findItem(R.id.close).isVisible = noItemSelected
|
||||
@ -607,7 +626,13 @@ open class BaseExplorerActivity : BaseActivity(), ExplorerElementAdapter.Listene
|
||||
.setTitle(R.string.sort_order)
|
||||
.setSingleChoiceItems(sortOrderEntries, currentSortOrderIndex) { dialog, which ->
|
||||
currentSortOrderIndex = which
|
||||
displayExplorerElements()
|
||||
// displayExplorerElements must not be called if directoryLoadingTask is active
|
||||
if (directoryLoadingTask?.isActive != true) {
|
||||
displayExplorerElements()
|
||||
}
|
||||
val sharedPrefsEditor = sharedPrefs.edit()
|
||||
sharedPrefsEditor.putString(Constants.SORT_ORDER_KEY, sortOrderValues[currentSortOrderIndex])
|
||||
sharedPrefsEditor.apply()
|
||||
dialog.dismiss()
|
||||
}
|
||||
.setNegativeButton(R.string.cancel, null)
|
||||
|
@ -68,7 +68,11 @@ class ExplorerActivity : BaseExplorerActivity() {
|
||||
private val pickFiles = registerForActivityResult(ActivityResultContracts.OpenMultipleDocuments()) { uris ->
|
||||
if (uris != null) {
|
||||
for (uri in uris) {
|
||||
contentResolver.takePersistableUriPermission(uri, Intent.FLAG_GRANT_WRITE_URI_PERMISSION)
|
||||
try {
|
||||
contentResolver.takePersistableUriPermission(uri, Intent.FLAG_GRANT_WRITE_URI_PERMISSION)
|
||||
} catch (e: SecurityException) {
|
||||
e.printStackTrace()
|
||||
}
|
||||
}
|
||||
importFilesFromUris(uris) {
|
||||
onImportComplete(uris)
|
||||
@ -189,9 +193,11 @@ class ExplorerActivity : BaseExplorerActivity() {
|
||||
pickImportDirectory.launch(null)
|
||||
}
|
||||
"createFile" -> {
|
||||
EditTextDialog(this, R.string.enter_file_name) {
|
||||
createNewFile(it)
|
||||
}.show()
|
||||
createNewFile {
|
||||
encryptedVolume.closeFile(it)
|
||||
setCurrentPath(currentDirectoryPath)
|
||||
invalidateOptionsMenu()
|
||||
}
|
||||
}
|
||||
"createFolder" -> {
|
||||
openDialogCreateFolder()
|
||||
@ -219,26 +225,6 @@ class ExplorerActivity : BaseExplorerActivity() {
|
||||
cancelItemAction()
|
||||
}
|
||||
|
||||
private fun createNewFile(fileName: String){
|
||||
if (fileName.isEmpty()) {
|
||||
Toast.makeText(this, R.string.error_filename_empty, Toast.LENGTH_SHORT).show()
|
||||
} else {
|
||||
val filePath = PathUtils.pathJoin(currentDirectoryPath, fileName)
|
||||
val handleID = encryptedVolume.openFileWriteMode(filePath)
|
||||
if (handleID == -1L) {
|
||||
CustomAlertDialogBuilder(this, theme)
|
||||
.setTitle(R.string.error)
|
||||
.setMessage(R.string.file_creation_failed)
|
||||
.setPositiveButton(R.string.ok, null)
|
||||
.show()
|
||||
} else {
|
||||
encryptedVolume.closeFile(handleID)
|
||||
setCurrentPath(currentDirectoryPath)
|
||||
invalidateOptionsMenu()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun onCreateOptionsMenu(menu: Menu): Boolean {
|
||||
menuInflater.inflate(R.menu.explorer, menu)
|
||||
val result = super.onCreateOptionsMenu(menu)
|
||||
|
@ -9,6 +9,8 @@ import com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||
import sushi.hardcore.droidfs.R
|
||||
import sushi.hardcore.droidfs.util.IntentUtils
|
||||
import sushi.hardcore.droidfs.widgets.CustomAlertDialogBuilder
|
||||
import java.nio.CharBuffer
|
||||
import java.nio.charset.StandardCharsets
|
||||
|
||||
class ExplorerActivityDrop : BaseExplorerActivity() {
|
||||
|
||||
@ -30,15 +32,15 @@ class ExplorerActivityDrop : BaseExplorerActivity() {
|
||||
return when (item.itemId) {
|
||||
R.id.validate -> {
|
||||
val extras = intent.extras
|
||||
val errorMsg: String? = if (extras != null && extras.containsKey(Intent.EXTRA_STREAM)) {
|
||||
val success = if (extras != null && extras.containsKey(Intent.EXTRA_STREAM)) {
|
||||
when (intent.action) {
|
||||
Intent.ACTION_SEND -> {
|
||||
val uri = IntentUtils.getParcelableExtra<Uri>(intent, Intent.EXTRA_STREAM)
|
||||
if (uri == null) {
|
||||
getString(R.string.share_intent_parsing_failed)
|
||||
false
|
||||
} else {
|
||||
importFilesFromUris(listOf(uri), ::onImported)
|
||||
null
|
||||
true
|
||||
}
|
||||
}
|
||||
Intent.ACTION_SEND_MULTIPLE -> {
|
||||
@ -50,20 +52,34 @@ class ExplorerActivityDrop : BaseExplorerActivity() {
|
||||
}
|
||||
if (uris != null) {
|
||||
importFilesFromUris(uris, ::onImported)
|
||||
null
|
||||
true
|
||||
} else {
|
||||
getString(R.string.share_intent_parsing_failed)
|
||||
false
|
||||
}
|
||||
}
|
||||
else -> getString(R.string.share_intent_parsing_failed)
|
||||
else -> false
|
||||
}
|
||||
} else if ((intent.clipData?.itemCount ?: 0) > 0) {
|
||||
val byteBuffer = StandardCharsets.UTF_8.encode(CharBuffer.wrap(intent.clipData!!.getItemAt(0).text))
|
||||
val byteArray = ByteArray(byteBuffer.remaining())
|
||||
byteBuffer.get(byteArray)
|
||||
val size = byteArray.size.toLong()
|
||||
createNewFile {
|
||||
var offset = 0L
|
||||
while (offset < size) {
|
||||
offset += encryptedVolume.write(it, offset, byteArray, offset, size-offset)
|
||||
}
|
||||
encryptedVolume.closeFile(it)
|
||||
onImported()
|
||||
}
|
||||
true
|
||||
} else {
|
||||
getString(R.string.share_intent_parsing_failed)
|
||||
false
|
||||
}
|
||||
errorMsg?.let {
|
||||
if (!success) {
|
||||
CustomAlertDialogBuilder(this, theme)
|
||||
.setTitle(R.string.error)
|
||||
.setMessage(it)
|
||||
.setMessage(R.string.share_intent_parsing_failed)
|
||||
.setPositiveButton(R.string.ok, null)
|
||||
.show()
|
||||
}
|
||||
|
@ -3,6 +3,7 @@ package sushi.hardcore.droidfs.util
|
||||
import android.content.ActivityNotFoundException
|
||||
import android.content.Context
|
||||
import android.net.Uri
|
||||
import android.os.Build
|
||||
import android.os.Environment
|
||||
import android.os.storage.StorageManager
|
||||
import android.provider.DocumentsContract
|
||||
@ -111,24 +112,27 @@ object PathUtils {
|
||||
}
|
||||
}
|
||||
Log.d(PATH_RESOLVER_TAG, "getExternalFilesDirs failed")
|
||||
try {
|
||||
val process = ProcessBuilder("mount").redirectErrorStream(true).start().apply { waitFor() }
|
||||
process.inputStream.readBytes().decodeToString().split("\n").forEach { line ->
|
||||
if (line.startsWith("/dev/block/vold")) {
|
||||
Log.d(PATH_RESOLVER_TAG, "mount: $line")
|
||||
val fields = line.split(" ")
|
||||
if (fields.size >= 3) {
|
||||
val path = fields[2]
|
||||
if (File(path).name == name) {
|
||||
return path
|
||||
// Don't risk to be killed by SELinux on newer Android versions
|
||||
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.Q) {
|
||||
try {
|
||||
val process = ProcessBuilder("mount").redirectErrorStream(true).start().apply { waitFor() }
|
||||
process.inputStream.readBytes().decodeToString().split("\n").forEach { line ->
|
||||
if (line.startsWith("/dev/block/vold")) {
|
||||
Log.d(PATH_RESOLVER_TAG, "mount: $line")
|
||||
val fields = line.split(" ")
|
||||
if (fields.size >= 3) {
|
||||
val path = fields[2]
|
||||
if (File(path).name == name) {
|
||||
return path
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
e.printStackTrace()
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
e.printStackTrace()
|
||||
Log.d(PATH_RESOLVER_TAG, "mount processing failed")
|
||||
}
|
||||
Log.d(PATH_RESOLVER_TAG, "mount processing failed")
|
||||
return null
|
||||
}
|
||||
|
||||
|
42
app/src/main/java/sushi/hardcore/droidfs/util/UIUtils.kt
Normal file
42
app/src/main/java/sushi/hardcore/droidfs/util/UIUtils.kt
Normal file
@ -0,0 +1,42 @@
|
||||
package sushi.hardcore.droidfs.util
|
||||
|
||||
import android.content.Context
|
||||
import android.view.Menu
|
||||
import android.widget.EditText
|
||||
import androidx.core.content.ContextCompat
|
||||
import sushi.hardcore.droidfs.R
|
||||
import java.nio.CharBuffer
|
||||
import java.nio.charset.StandardCharsets
|
||||
import java.util.*
|
||||
|
||||
object UIUtils {
|
||||
fun encodeEditTextContent(editText: EditText): ByteArray {
|
||||
val charArray = CharArray(editText.text.length)
|
||||
editText.text.getChars(0, editText.text.length, charArray, 0)
|
||||
val byteBuffer = StandardCharsets.UTF_8.encode(CharBuffer.wrap(charArray))
|
||||
Arrays.fill(charArray, Char.MIN_VALUE)
|
||||
val byteArray = ByteArray(byteBuffer.remaining())
|
||||
byteBuffer.get(byteArray)
|
||||
Wiper.wipe(byteBuffer)
|
||||
return byteArray
|
||||
}
|
||||
|
||||
class MenuIconColor(
|
||||
private val context: Context,
|
||||
private val menu: Menu,
|
||||
private val color: Int
|
||||
) {
|
||||
fun applyTo(menuItemId: Int, drawableId: Int) {
|
||||
menu.findItem(menuItemId)?.let {
|
||||
it.icon = ContextCompat.getDrawable(context, drawableId)?.apply {
|
||||
setTint(color)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun getMenuIconNeutralTint(context: Context, menu: Menu) = MenuIconColor(
|
||||
context, menu,
|
||||
ContextCompat.getColor(context, R.color.neutralIconTint),
|
||||
)
|
||||
}
|
@ -1,19 +0,0 @@
|
||||
package sushi.hardcore.droidfs.util
|
||||
|
||||
import android.widget.EditText
|
||||
import java.nio.CharBuffer
|
||||
import java.nio.charset.StandardCharsets
|
||||
import java.util.*
|
||||
|
||||
object WidgetUtil {
|
||||
fun encodeEditTextContent(editText: EditText): ByteArray {
|
||||
val charArray = CharArray(editText.text.length)
|
||||
editText.text.getChars(0, editText.text.length, charArray, 0)
|
||||
val byteBuffer = StandardCharsets.UTF_8.encode(CharBuffer.wrap(charArray))
|
||||
Arrays.fill(charArray, Char.MIN_VALUE)
|
||||
val byteArray = ByteArray(byteBuffer.remaining())
|
||||
byteBuffer.get(byteArray)
|
||||
Wiper.wipe(byteBuffer)
|
||||
return byteArray
|
||||
}
|
||||
}
|
@ -2,23 +2,13 @@ package sushi.hardcore.droidfs.widgets
|
||||
|
||||
import android.annotation.SuppressLint
|
||||
import android.content.Context
|
||||
import android.content.res.Configuration
|
||||
import android.media.session.PlaybackState
|
||||
import android.os.Handler
|
||||
import android.os.Looper
|
||||
import android.util.AttributeSet
|
||||
import android.view.GestureDetector
|
||||
import android.view.MotionEvent
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
import android.widget.Button
|
||||
import android.widget.FrameLayout
|
||||
import android.widget.LinearLayout
|
||||
import androidx.core.view.GestureDetectorCompat
|
||||
import androidx.core.view.updateLayoutParams
|
||||
import androidx.core.view.updatePadding
|
||||
import androidx.media3.ui.PlayerView
|
||||
import sushi.hardcore.droidfs.R
|
||||
|
||||
class DoubleTapPlayerView @JvmOverloads constructor(
|
||||
context: Context,
|
||||
@ -75,22 +65,7 @@ class DoubleTapPlayerView @JvmOverloads constructor(
|
||||
handler.postDelayed(stopDoubleTap, 700)
|
||||
}
|
||||
}
|
||||
private val gestureDetector = GestureDetectorCompat(context, gestureListener)
|
||||
private val density by lazy {
|
||||
context.resources.displayMetrics.density
|
||||
}
|
||||
private val originalExoIconPaddingBottom by lazy {
|
||||
resources.getDimension(R.dimen.exo_icon_padding_bottom)
|
||||
}
|
||||
private val originalExoIconSize by lazy {
|
||||
resources.getDimension(R.dimen.exo_icon_size)
|
||||
}
|
||||
|
||||
init {
|
||||
if (resources.configuration.orientation == Configuration.ORIENTATION_LANDSCAPE) {
|
||||
handleOrientationChange(Configuration.ORIENTATION_LANDSCAPE)
|
||||
}
|
||||
}
|
||||
private val gestureDetector = GestureDetector(context, gestureListener)
|
||||
|
||||
@SuppressLint("ClickableViewAccessibility")
|
||||
override fun onTouchEvent(event: MotionEvent): Boolean {
|
||||
@ -135,35 +110,4 @@ class DoubleTapPlayerView @JvmOverloads constructor(
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun updateButtonSize(orientation: Int) {
|
||||
val size = (if (orientation == Configuration.ORIENTATION_LANDSCAPE) 45*density else originalExoIconSize).toInt()
|
||||
listOf(R.id.exo_prev, R.id.exo_rew_with_amount, R.id.exo_play_pause, R.id.exo_ffwd_with_amount, R.id.exo_next).forEach {
|
||||
findViewById<View>(it).updateLayoutParams {
|
||||
width = size
|
||||
height = size
|
||||
}
|
||||
}
|
||||
// fix text vertical alignment inside icons
|
||||
val paddingBottom = (if (orientation == Configuration.ORIENTATION_LANDSCAPE) 15*density else originalExoIconPaddingBottom).toInt()
|
||||
listOf(R.id.exo_rew_with_amount, R.id.exo_ffwd_with_amount).forEach {
|
||||
findViewById<Button>(it).updatePadding(bottom = paddingBottom)
|
||||
}
|
||||
}
|
||||
|
||||
private fun handleOrientationChange(orientation: Int) {
|
||||
val centerControls = findViewById<LinearLayout>(R.id.exo_center_controls)
|
||||
(centerControls.parent as ViewGroup).removeView(centerControls)
|
||||
findViewById<FrameLayout>(if (orientation == Configuration.ORIENTATION_LANDSCAPE) {
|
||||
R.id.center_controls_bar
|
||||
} else {
|
||||
R.id.center_controls_external
|
||||
}).addView(centerControls)
|
||||
updateButtonSize(orientation)
|
||||
}
|
||||
|
||||
override fun onConfigurationChanged(newConfig: Configuration) {
|
||||
super.onConfigurationChanged(newConfig)
|
||||
handleOrientationChange(newConfig.orientation)
|
||||
}
|
||||
}
|
@ -40,7 +40,7 @@ struct Muxer {
|
||||
jmethodID seek_method_id;
|
||||
};
|
||||
|
||||
int write_packet(void* opaque, uint8_t* buff, int buff_size) {
|
||||
int write_packet(void* opaque, const uint8_t* buff, int buff_size) {
|
||||
struct Muxer* muxer = opaque;
|
||||
JNIEnv *env;
|
||||
(*muxer->jvm)->GetEnv(muxer->jvm, (void **) &env, JNI_VERSION_1_6);
|
||||
@ -108,8 +108,8 @@ Java_sushi_hardcore_droidfs_video_1recording_FFmpegMuxer_addVideoTrack(JNIEnv *e
|
||||
stream->codecpar->height = height;
|
||||
stream->codecpar->format = AV_PIX_FMT_YUVJ420P;
|
||||
stream->time_base = (AVRational) {1, frame_rate};
|
||||
uint8_t* matrix = av_stream_new_side_data(stream, AV_PKT_DATA_DISPLAYMATRIX, sizeof(int32_t) * 9);
|
||||
av_display_rotation_set((int32_t *) matrix, orientation_hint);
|
||||
AVPacketSideData *side_data_packet = av_packet_side_data_new(&stream->codecpar->coded_side_data, &stream->codecpar->nb_coded_side_data, AV_PKT_DATA_DISPLAYMATRIX, sizeof(int32_t) * 9, 0);
|
||||
av_display_rotation_set((int32_t *) side_data_packet->data, orientation_hint);
|
||||
return stream->index;
|
||||
}
|
||||
|
||||
|
5
app/src/main/res/drawable/icon_debug.xml
Normal file
5
app/src/main/res/drawable/icon_debug.xml
Normal file
@ -0,0 +1,5 @@
|
||||
<vector android:height="24dp"
|
||||
android:viewportHeight="24" android:viewportWidth="24"
|
||||
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="?attr/colorAccent" android:pathData="M5,16c0,3.87 3.13,7 7,7s7,-3.13 7,-7v-4L5,12v4zM16.12,4.37l2.1,-2.1 -0.82,-0.83 -2.3,2.31C14.16,3.28 13.12,3 12,3s-2.16,0.28 -3.09,0.75L6.6,1.44l-0.82,0.83 2.1,2.1C6.14,5.64 5,7.68 5,10v1h14v-1c0,-2.32 -1.14,-4.36 -2.88,-5.63zM9,9c-0.55,0 -1,-0.45 -1,-1s0.45,-1 1,-1 1,0.45 1,1 -0.45,1 -1,1zM15,9c-0.55,0 -1,-0.45 -1,-1s0.45,-1 1,-1 1,0.45 1,1 -0.45,1 -1,1z"/>
|
||||
</vector>
|
@ -1,5 +1,5 @@
|
||||
<vector android:height="24dp" android:tint="#FFFFFF"
|
||||
<vector android:height="24dp"
|
||||
android:viewportHeight="24" android:viewportWidth="24"
|
||||
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="@android:color/white" android:pathData="M19.14,12.94c0.04,-0.3 0.06,-0.61 0.06,-0.94c0,-0.32 -0.02,-0.64 -0.07,-0.94l2.03,-1.58c0.18,-0.14 0.23,-0.41 0.12,-0.61l-1.92,-3.32c-0.12,-0.22 -0.37,-0.29 -0.59,-0.22l-2.39,0.96c-0.5,-0.38 -1.03,-0.7 -1.62,-0.94L14.4,2.81c-0.04,-0.24 -0.24,-0.41 -0.48,-0.41h-3.84c-0.24,0 -0.43,0.17 -0.47,0.41L9.25,5.35C8.66,5.59 8.12,5.92 7.63,6.29L5.24,5.33c-0.22,-0.08 -0.47,0 -0.59,0.22L2.74,8.87C2.62,9.08 2.66,9.34 2.86,9.48l2.03,1.58C4.84,11.36 4.8,11.69 4.8,12s0.02,0.64 0.07,0.94l-2.03,1.58c-0.18,0.14 -0.23,0.41 -0.12,0.61l1.92,3.32c0.12,0.22 0.37,0.29 0.59,0.22l2.39,-0.96c0.5,0.38 1.03,0.7 1.62,0.94l0.36,2.54c0.05,0.24 0.24,0.41 0.48,0.41h3.84c0.24,0 0.44,-0.17 0.47,-0.41l0.36,-2.54c0.59,-0.24 1.13,-0.56 1.62,-0.94l2.39,0.96c0.22,0.08 0.47,0 0.59,-0.22l1.92,-3.32c0.12,-0.22 0.07,-0.47 -0.12,-0.61L19.14,12.94zM12,15.6c-1.98,0 -3.6,-1.62 -3.6,-3.6s1.62,-3.6 3.6,-3.6s3.6,1.62 3.6,3.6S13.98,15.6 12,15.6z"/>
|
||||
<path android:fillColor="?attr/colorAccent" android:pathData="M19.14,12.94c0.04,-0.3 0.06,-0.61 0.06,-0.94c0,-0.32 -0.02,-0.64 -0.07,-0.94l2.03,-1.58c0.18,-0.14 0.23,-0.41 0.12,-0.61l-1.92,-3.32c-0.12,-0.22 -0.37,-0.29 -0.59,-0.22l-2.39,0.96c-0.5,-0.38 -1.03,-0.7 -1.62,-0.94L14.4,2.81c-0.04,-0.24 -0.24,-0.41 -0.48,-0.41h-3.84c-0.24,0 -0.43,0.17 -0.47,0.41L9.25,5.35C8.66,5.59 8.12,5.92 7.63,6.29L5.24,5.33c-0.22,-0.08 -0.47,0 -0.59,0.22L2.74,8.87C2.62,9.08 2.66,9.34 2.86,9.48l2.03,1.58C4.84,11.36 4.8,11.69 4.8,12s0.02,0.64 0.07,0.94l-2.03,1.58c-0.18,0.14 -0.23,0.41 -0.12,0.61l1.92,3.32c0.12,0.22 0.37,0.29 0.59,0.22l2.39,-0.96c0.5,0.38 1.03,0.7 1.62,0.94l0.36,2.54c0.05,0.24 0.24,0.41 0.48,0.41h3.84c0.24,0 0.44,-0.17 0.47,-0.41l0.36,-2.54c0.59,-0.24 1.13,-0.56 1.62,-0.94l2.39,0.96c0.22,0.08 0.47,0 0.59,-0.22l1.92,-3.32c0.12,-0.22 0.07,-0.47 -0.12,-0.61L19.14,12.94zM12,15.6c-1.98,0 -3.6,-1.62 -3.6,-3.6s1.62,-3.6 3.6,-3.6s3.6,1.62 3.6,3.6S13.98,15.6 12,15.6z"/>
|
||||
</vector>
|
||||
|
20
app/src/main/res/layout/activity_logcat.xml
Normal file
20
app/src/main/res/layout/activity_logcat.xml
Normal file
@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<HorizontalScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/content"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textIsSelectable="true"
|
||||
android:typeface="monospace" />
|
||||
|
||||
</HorizontalScrollView>
|
||||
|
||||
</ScrollView>
|
@ -1,30 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<merge xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@id/exo_center_controls"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:background="@android:color/transparent"
|
||||
android:gravity="center"
|
||||
android:padding="@dimen/exo_styled_controls_padding"
|
||||
android:clipToPadding="false"
|
||||
android:layoutDirection="ltr">
|
||||
|
||||
<ImageButton android:id="@id/exo_prev"
|
||||
style="@style/ExoStyledControls.Button.Center.Previous"/>
|
||||
|
||||
<include layout="@layout/exo_player_control_rewind_button" />
|
||||
|
||||
<ImageButton android:id="@id/exo_play_pause"
|
||||
style="@style/ExoStyledControls.Button.Center.PlayPause"/>
|
||||
|
||||
<include layout="@layout/exo_player_control_ffwd_button" />
|
||||
|
||||
<ImageButton android:id="@id/exo_next"
|
||||
style="@style/ExoStyledControls.Button.Center.Next"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</merge>
|
@ -1,148 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright 2020 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<merge xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<!-- 0dp dimensions are used to prevent this view from influencing the size of
|
||||
the parent view if it uses "wrap_content". It is expanded to occupy the
|
||||
entirety of the parent in code, after the parent's size has been
|
||||
determined. See: https://github.com/google/ExoPlayer/issues/8726.
|
||||
-->
|
||||
<View android:id="@id/exo_controls_background"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:background="@color/exo_black_opacity_60"/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom"
|
||||
android:orientation="vertical">
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/center_controls_external"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom|center_horizontal">
|
||||
|
||||
<include layout="@layout/exo_center_controls"/>
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout android:id="@id/exo_bottom_bar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/exo_styled_bottom_bar_height"
|
||||
android:background="@color/exo_bottom_bar_background"
|
||||
android:layoutDirection="ltr">
|
||||
|
||||
<LinearLayout android:id="@id/exo_time"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingStart="@dimen/exo_styled_bottom_bar_time_padding"
|
||||
android:paddingEnd="@dimen/exo_styled_bottom_bar_time_padding"
|
||||
android:paddingLeft="@dimen/exo_styled_bottom_bar_time_padding"
|
||||
android:paddingRight="@dimen/exo_styled_bottom_bar_time_padding"
|
||||
android:layout_gravity="center_vertical|start"
|
||||
android:layoutDirection="ltr">
|
||||
|
||||
<TextView android:id="@id/exo_position"
|
||||
style="@style/ExoStyledControls.TimeText.Position"/>
|
||||
|
||||
<TextView
|
||||
style="@style/ExoStyledControls.TimeText.Separator"/>
|
||||
|
||||
<TextView android:id="@id/exo_duration"
|
||||
style="@style/ExoStyledControls.TimeText.Duration"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/center_controls_bar"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"/>
|
||||
|
||||
<LinearLayout android:id="@id/exo_basic_controls"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical|end"
|
||||
android:layoutDirection="ltr">
|
||||
|
||||
<ImageButton android:id="@id/exo_vr"
|
||||
style="@style/ExoStyledControls.Button.Bottom.VR"/>
|
||||
|
||||
<ImageButton android:id="@id/exo_shuffle"
|
||||
style="@style/ExoStyledControls.Button.Bottom.Shuffle"/>
|
||||
|
||||
<ImageButton android:id="@id/exo_repeat_toggle"
|
||||
style="@style/ExoStyledControls.Button.Bottom.RepeatToggle"/>
|
||||
|
||||
<ImageButton android:id="@id/exo_subtitle"
|
||||
style="@style/ExoStyledControls.Button.Bottom.CC"/>
|
||||
|
||||
<ImageButton android:id="@id/exo_settings"
|
||||
style="@style/ExoStyledControls.Button.Bottom.Settings"/>
|
||||
|
||||
<ImageButton android:id="@id/exo_fullscreen"
|
||||
style="@style/ExoStyledControls.Button.Bottom.FullScreen"/>
|
||||
|
||||
<ImageButton android:id="@id/exo_overflow_show"
|
||||
style="@style/ExoStyledControls.Button.Bottom.OverflowShow"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<HorizontalScrollView android:id="@id/exo_extra_controls_scroll_view"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical|end"
|
||||
android:visibility="invisible">
|
||||
|
||||
<LinearLayout android:id="@id/exo_extra_controls"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layoutDirection="ltr">
|
||||
|
||||
<ImageButton android:id="@id/exo_overflow_hide"
|
||||
style="@style/ExoStyledControls.Button.Bottom.OverflowHide"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</HorizontalScrollView>
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<View android:id="@id/exo_progress_placeholder"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/exo_styled_progress_layout_height"
|
||||
android:layout_gravity="bottom"
|
||||
android:layout_marginBottom="@dimen/exo_styled_progress_margin_bottom"/>
|
||||
|
||||
<LinearLayout android:id="@id/exo_minimal_controls"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom|end"
|
||||
android:layout_marginBottom="@dimen/exo_styled_minimal_controls_margin_bottom"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="center_vertical"
|
||||
android:layoutDirection="ltr">
|
||||
|
||||
<ImageButton android:id="@id/exo_minimal_fullscreen"
|
||||
style="@style/ExoStyledControls.Button.Bottom.FullScreen"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</merge>
|
@ -10,6 +10,12 @@
|
||||
android:text="@string/dir_empty"
|
||||
android:visibility="gone"/>
|
||||
|
||||
<ProgressBar
|
||||
android:id="@+id/loader"
|
||||
android:layout_centerInParent="true"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"/>
|
||||
|
||||
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
||||
android:id="@+id/refresher"
|
||||
android:layout_width="match_parent"
|
||||
|
11
app/src/main/res/menu/logcat.xml
Normal file
11
app/src/main/res/menu/logcat.xml
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<item
|
||||
android:id="@+id/save"
|
||||
app:showAsAction="ifRoom"
|
||||
android:icon="@drawable/icon_save"
|
||||
android:title="@string/save" />
|
||||
|
||||
</menu>
|
@ -252,4 +252,20 @@
|
||||
<string name="black_theme">لون أسود داكن</string>
|
||||
<string name="password_fallback">العودة إلى كلمة المرور</string>
|
||||
<string name="password_fallback_summary">طلب كلمة المرور في حال فشل المصادقة ببصمة الأصبع</string>
|
||||
<string name="unknown_error_code">خطأ غير معروف: %d</string>
|
||||
<string name="config_load_error">لا يمكن تحميل ملف الإعدادات. تأكد من صحّة مسار المجلد الآمن.</string>
|
||||
<string name="wrong_password">لقد تعذر فك تشفر ملف الإعدادات. رجاءً قم بالتحقق من كلمة المرور.</string>
|
||||
<string name="filesystem_id_changed">لقد إختلف معرف نظام الملفات الموجود في ملف الإعدادات عن آخر مرة فتحنا فيها هذا المجلد. قد يعني هذا أن أحد ما قد قام باستبدال ملفاتك بملفات أخرى بهدف إختراقك.</string>
|
||||
<string name="inaccessible_base_dir">إن المجلد المشفر غير موجود أو لا يمكن الوصول إليه.</string>
|
||||
<string name="task_failed">لقد فشلت عملية: %s</string>
|
||||
<string name="usf_expose">كشف المجلدات المفتوحة</string>
|
||||
<string name="usf_expose_summary">السماح للتطبيقات الأخرى بالوصول إلى المجلدات المشفرة عن طريق نظام "توفير المستندات" الخاص بنظام الأندرويد</string>
|
||||
<string name="usf_saf_write">منح صلاحيات الكتابة</string>
|
||||
<string name="usf_saf_write_summary">منح صلاحيات الكتابة عند فتح الملفات مع التطبيقات الأخرى</string>
|
||||
<string name="saf">"إطار الوصول للقرص"</string>
|
||||
<string name="tmp_export_failed">لقد فشل تصدير: %s</string>
|
||||
<string name="export_failed_create">تعذر إنشاء الملف المستخرج</string>
|
||||
<string name="export_failed_export">فشل إستخراج الملف</string>
|
||||
<string name="export_mem">يتم الإستخراج إلى الذاكرة المؤقتة…</string>
|
||||
<string name="export_disk">يتم الإستخراج إلى القرص…</string>
|
||||
</resources>
|
||||
|
@ -242,6 +242,7 @@
|
||||
<string name="file_op_delete_msg">Eliminando archivos…</string>
|
||||
<string name="volume_type">(%s)</string>
|
||||
<string name="volume_type_read_only">(%s, Sólo lectura)</string>
|
||||
<string name="volume_type_inaccessible">(%s, inaccesible)</string>
|
||||
<string name="io_error">I/O Error.</string>
|
||||
<string name="use_fingerprint">Utilizar huella dactilar en lugar de la contraseña actual</string>
|
||||
<string name="remember_volume">Recordar volumen</string>
|
||||
@ -272,4 +273,10 @@
|
||||
<string name="export_failed_export">Error al exportar el archivo</string>
|
||||
<string name="export_mem">Exportando a memoria…</string>
|
||||
<string name="export_disk">Exportar a disco…</string>
|
||||
<string name="memfd_create_unsupported">El kernel actual no soporta memfd_create(). Esta característica requiere una versión mínima del kernel de %s.</string>
|
||||
<string name="export_method">Método de exportación</string>
|
||||
<string name="export_method_summary">Método de exportación de archivos. Se utiliza para compartir, abrir externamente y acceder a archivos expuestos.</string>
|
||||
<string name="debug">Depurar</string>
|
||||
<string name="logcat_title">Logcat de DroidFS</string>
|
||||
<string name="logcat_saved">Logcat guardado</string>
|
||||
</resources>
|
||||
|
@ -17,4 +17,10 @@
|
||||
<item>Фиолетовый</item>
|
||||
<item>Розовый</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="export_methods">
|
||||
<item>Автовыбор (зависит от доступной памяти)</item>
|
||||
<item>Временный файл в хранилище (надёжно, но могут остаться следы)</item>
|
||||
<item>Файл в памяти (безопаснее, но не всегда возможно)</item>
|
||||
</string-array>
|
||||
</resources>
|
||||
|
@ -262,4 +262,10 @@
|
||||
<string name="export_failed_export">невозможно экспортировать файл</string>
|
||||
<string name="export_mem">Экспорт в память…</string>
|
||||
<string name="export_disk">Экспорт в хранилище…</string>
|
||||
<string name="memfd_create_unsupported">Текущее ядро не поддерживает memfd_create(). Для работы данной функции требуется версия ядра не ниже %s.</string>
|
||||
<string name="export_method">Метод экспорта</string>
|
||||
<string name="export_method_summary">Метод экспорта файлов. Используется для обмена, открытия во внешнем приложении и доступа к открытым файлам.</string>
|
||||
<string name="debug">Отладка</string>
|
||||
<string name="logcat_title">Журнал logcat DroidFS</string>
|
||||
<string name="logcat_saved">Журнал logcat сохранён</string>
|
||||
</resources>
|
||||
|
72
app/src/main/res/values-tr/arrays.xml
Normal file
72
app/src/main/res/values-tr/arrays.xml
Normal file
@ -0,0 +1,72 @@
|
||||
<resources>
|
||||
<string-array name="gocryptfs_encryption_ciphers">
|
||||
<item>AES-GCM</item>
|
||||
<item>XChaCha20-Poly1305</item>
|
||||
<item>@string/auto</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="cryfs_encryption_ciphers">
|
||||
<item>xchacha20-poly1305</item>
|
||||
<item>aes-256-gcm</item>
|
||||
<item>aes-128-gcm</item>
|
||||
<item>twofish-256-gcm</item>
|
||||
<item>twofish-128-gcm</item>
|
||||
<item>serpent-256-gcm</item>
|
||||
<item>serpent-128-gcm</item>
|
||||
<item>cast-256-gcm</item>
|
||||
<item>mars-448-gcm</item>
|
||||
<item>mars-256-gcm</item>
|
||||
<item>mars-128-gcm</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="sort_orders_entries">
|
||||
<item>Ad</item>
|
||||
<item>Boyut</item>
|
||||
<item>Tarih</item>
|
||||
<item>Ad (azalan)</item>
|
||||
<item>Boyut (azalan)</item>
|
||||
<item>Tarih (azalan)</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="color_names">
|
||||
<item>Yeşil</item>
|
||||
<item>Kırmızı</item>
|
||||
<item>Mavi</item>
|
||||
<item>Sarı</item>
|
||||
<item>Turuncu</item>
|
||||
<item>Mor</item>
|
||||
<item>Pembe</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="export_methods">
|
||||
<item>Otomatik (kullanılabilir belleğe bağlı olarak)</item>
|
||||
<item>Diske geçici dışa aktarma (güvenilir ancak iz bırakabilir)</item>
|
||||
<item>Bellek dosyası (daha güvenlidir ancak her zaman işe yaramaz)</item>
|
||||
</string-array>
|
||||
|
||||
<!-- don't translate the following otherwise the app will crash -->
|
||||
<string-array name="sort_orders_values">
|
||||
<item>name</item>
|
||||
<item>size</item>
|
||||
<item>date</item>
|
||||
<item>name_desc</item>
|
||||
<item>size_desc</item>
|
||||
<item>date_desc</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="color_values">
|
||||
<item>green</item>
|
||||
<item>red</item>
|
||||
<item>blue</item>
|
||||
<item>yellow</item>
|
||||
<item>orange</item>
|
||||
<item>purple</item>
|
||||
<item>pink</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="export_methods_values">
|
||||
<item>auto</item>
|
||||
<item>disk</item>
|
||||
<item>memory</item>
|
||||
</string-array>
|
||||
</resources>
|
282
app/src/main/res/values-tr/strings.xml
Normal file
282
app/src/main/res/values-tr/strings.xml
Normal file
@ -0,0 +1,282 @@
|
||||
<resources>
|
||||
<string name="app_name">DroidFS</string>
|
||||
<string name="create_volume">Birim oluştur</string>
|
||||
<string name="open">Aç</string>
|
||||
<string name="create">Oluştur</string>
|
||||
<string name="change_password">Şifreyi değiştir</string>
|
||||
<string name="password">Şifre</string>
|
||||
<string name="import_files">Dosyaları içe aktar/Şifrele</string>
|
||||
<string name="import_folder">Klasörü İçe Aktar/Şifrele</string>
|
||||
<string name="discovering_files">Dosyalar keşfediliyor…</string>
|
||||
<string name="mkdir">Klasör oluştur</string>
|
||||
<string name="dir_empty">Klasör boş</string>
|
||||
<string name="warning">Dikkat !</string>
|
||||
<string name="ask_lock_volume">Bu birimi kilitlemek istediğinizden emin misiniz?</string>
|
||||
<string name="ok">Tamam</string>
|
||||
<string name="cancel">İptal</string>
|
||||
<string name="enter_folder_name">Klasör adı:</string>
|
||||
<string name="error">Hata</string>
|
||||
<string name="error_filename_empty">Lütfen bir isim girin</string>
|
||||
<string name="error_mkdir">Klasör oluşturulamadı.</string>
|
||||
<string name="success_import">Başarılı bir şekilde içe aktarıldı !</string>
|
||||
<string name="success_import_msg">Seçili dosyalar başarılı bir şekilde içe aktarıldı.</string>
|
||||
<string name="import_failed">İçe aktarılamadı: %s</string>
|
||||
<string name="export_failed">Dışa aktarılamadı: %s</string>
|
||||
<string name="success_export">Başarılı bir şekilde dışa aktarıldı !</string>
|
||||
<string name="remove_failed">Silinemedi: %s</string>
|
||||
<string name="passwords_mismatch">Şifreler uyuşmuyor</string>
|
||||
<string name="dir_not_empty">Seçili klasör boş değil</string>
|
||||
<string name="create_volume_failed">Birim oluşturualamadı.</string>
|
||||
<string name="open_volume_failed">Açılamadı</string>
|
||||
<string name="share_chooser">Dosyayı paylaş</string>
|
||||
<string name="storage_perm_denied">Depolama izni reddedildi</string>
|
||||
<string name="storage_perm_denied_msg">DroidFS, depolama izinleri olmadan çalışamaz.</string>
|
||||
<string name="get_size_failed">Dosya boyutu alınamadı.</string>
|
||||
<string name="parent_folder">Ana klasör</string>
|
||||
<string name="enter_volume_path">Lütfen birim yolunu girin</string>
|
||||
<string name="enter_volume_name">Lütfen birim adını girin</string>
|
||||
<string name="external_open">Harici uygulamayla aç</string>
|
||||
<string name="single_delete_confirm">Silmek istediğimizden emin misiniz: %s</string>
|
||||
<string name="multiple_delete_confirm">Bunları silmek istediğinizden emin misiniz: %s</string>
|
||||
<string name="location">Konum: %s</string>
|
||||
<string name="total_size">Toplam boyut: %s</string>
|
||||
<string name="import_from_other_volume">Başka bir birimden içe aktar</string>
|
||||
<string name="read_file_failed">Bu dosya açılamadı.</string>
|
||||
<string name="volume">Birim: %s</string>
|
||||
<string name="yes">Evet</string>
|
||||
<string name="no">Hayır</string>
|
||||
<string name="ask_for_wipe">Orijinal dosyaları silmek istiyor musunuz ?</string>
|
||||
<string name="wipe_failed">Silinemedi: %s</string>
|
||||
<string name="wipe_successful">Dosyalar başarılı bir şekilde silindi !</string>
|
||||
<string name="rename">Yeniden adlandır</string>
|
||||
<string name="rename_title">Yeni ad:</string>
|
||||
<string name="rename_failed">Yeniden adlandırılamadı: %s</string>
|
||||
<string name="sort_order">Sıralama biçimi:</string>
|
||||
<string name="change_password_failed">İşlem başarısız oldu. Lütfen eski şifrenizi kontrol edin.</string>
|
||||
<string name="share_menu_label">DroidFS ile şifrele</string>
|
||||
<string name="share_intent_parsing_failed">Paylaşım isteği işlenemedi.</string>
|
||||
<string name="listdir_null_error_msg">Bu dizine erişilemiyor</string>
|
||||
<string name="fingerprint_save_checkbox_text">Parmak izini kullanarak şifre hash değerini kaydedin</string>
|
||||
<string name="fingerprint_instruction">Lütfen parmak izi sensörüne dokunun</string>
|
||||
<string name="illegal_block_size_exception">IllegalBlockSizeException</string>
|
||||
<string name="illegal_block_size_exception_msg">Yeni bir parmak izi eklediyseniz bu durum meydana gelebilir. Hash depolamasının sıfırlanması bu sorunu çözebilir.</string>
|
||||
<string name="reset_hash_storage">Hash depolamasını sıfırla</string>
|
||||
<string name="MAC_verification_failed">İmza/MAC doğrulaması başarısız oldu. Android KeyStore veya kaydedilen hash değeri değiştirildi. Hash depolamasını sıfırlamak bu sorunu çözebilir.</string>
|
||||
<string name="hash_storage_reset">Hash depolaması başarıyla sıfırlandı</string>
|
||||
<string name="encrypt_action_description">Şifre hash değerini şifreleme ve kaydetme.</string>
|
||||
<string name="decrypt_action_description">Şifre hash değeri şifreleniyor.</string>
|
||||
<string name="title_activity_settings">DroidFS ayarları</string>
|
||||
<string name="explorer">Tarayıcı</string>
|
||||
<string name="settings_title_sort_order">Varsayılan sıralama düzeni</string>
|
||||
<string name="usf_decrypt">Dosyaların dışa aktarılmasına/şifresinin çözülmesine izin ver</string>
|
||||
<string name="usf_share">Android paylaşım menüsü aracılığıyla dosya paylaşımına izin ver</string>
|
||||
<string name="usf_open">Dosyaların diğer uygulamalarla açılmasına izin ver</string>
|
||||
<string name="usf_screenshot">Ekran görüntüsü almaya izin ver</string>
|
||||
<string name="usf_fingerprint">Parmak izi kullanılarak şifre hash değerinin kaydedilmesine izin ver</string>
|
||||
<string name="usf_volume_management">Birim yönetimi</string>
|
||||
<string name="usf_keep_open">Uygulama arka plana geçtiğinde birimi açık tutun</string>
|
||||
<string name="unsafe_features">Güvenli olmayan özellikler</string>
|
||||
<string name="manage_unsafe_features">Güvenli olmayan özellikleri yönetin</string>
|
||||
<string name="manage_unsafe_features_summary">Güvenli olmayan özellikleri etkinleştirme/devre dışı bırakma</string>
|
||||
<string name="usf_home_warning_msg">DroidFS mümkün olduğunca güvenli olmaya çalışır. Ancak güvenlik çoğu zaman konfor eksikliğini de beraberinde getirir. Bu nedenle DroidFS, ihtiyaçlarınıza göre etkinleştirebileceğiniz/devre dışı bırakabileceğiniz güvenli olmayan ek özellikler sunar.\n\nDikkat: bu özellikler GÜVENLİ OLMAYABİLİR. Ne yaptığınızı tam olarak bilmiyorsanız bunları kullanmayın. Bunları etkinleştirmeden önce belgeleri okumanız önemle tavsiye edilir.</string>
|
||||
<string name="see_unsafe_features">Güvenli olmayan özellikleri görün</string>
|
||||
<string name="open_as">Farklı aç</string>
|
||||
<string name="image">Resim</string>
|
||||
<string name="video">Video</string>
|
||||
<string name="audio">Ses</string>
|
||||
<string name="playing_failed">Bu dosya oynatılamadı: %s</string>
|
||||
<string name="text">Metin</string>
|
||||
<string name="save_failed">Kaydedilemedi</string>
|
||||
<string name="file_saved">Dosya kaydedildi !</string>
|
||||
<string name="ask_save">Dosya kaydedilmemiş değişiklikler içeriyor. Çıkmadan önce bunları kaydetmek istiyor musunuz ?</string>
|
||||
<string name="save">Kaydet</string>
|
||||
<string name="discard">Gözardı et</string>
|
||||
<string name="word_wrap">Kelime kaydırma</string>
|
||||
<string name="outofmemoryerror_msg">OutOfMemoryError: Bu dosya belleğe yüklenemeyecek kadar büyük.</string>
|
||||
<string name="new_file">Yeni dosya oluştur</string>
|
||||
<string name="enter_file_name">Dosya adı:</string>
|
||||
<string name="file_creation_failed">Dosya oluşturulamadı.</string>
|
||||
<string name="loading">Yükleniyor…</string>
|
||||
<string name="loading_msg_create">Birim oluşturuluyor…</string>
|
||||
<string name="loading_msg_change_password">Şifre değiştiriliyor…</string>
|
||||
<string name="loading_msg_open">Birim açılıyor…</string>
|
||||
<string name="loading_msg_export">Dosyalar dışa aktarılıyor…</string>
|
||||
<string name="query_cursor_null_error_msg">Bu dosyaya erişilemiyor</string>
|
||||
<string name="about">Hakkında</string>
|
||||
<string name="github">GitHub</string>
|
||||
<string name="github_summary">DroidFS Github deposu. Kaynak kodu, dokümantasyon, hata izleyici…</string>
|
||||
<string name="gitea">Gitea</string>
|
||||
<string name="gitea_summary">Chapril Gitea bulut sunucusundaki DroidFS deposu GitHub\'tan farklı olarak Gitea tamamen ücretsiz bir yazılımdır ve kendi kendine barındırılır. Kaynak kodu, belgeler, hata izleyici…</string>
|
||||
<string name="share">Paylaş</string>
|
||||
<string name="decrypt_files">Dışa aktar/Şifre çöz</string>
|
||||
<string name="copy_failed">Kopyalanamadı: %s</string>
|
||||
<string name="copy_success">Başarıyla kopyalandı !</string>
|
||||
<string name="add">Ekle</string>
|
||||
<string name="camera">Kamera</string>
|
||||
<string name="picture_save_success">Resim şuraya kaydedildi: %s</string>
|
||||
<string name="picture_save_failed">Bu resim kaydedilemedi.</string>
|
||||
<string name="video_save_success">Resim şuraya kaydedildi: %s</string>
|
||||
<string name="file_overwrite_question">%s zaten mevcut, üzerine yazmak istiyor musunuz ?</string>
|
||||
<string name="dir_overwrite_question">%s zaten mevcut, içeriğini birleştirmek istiyor musunuz ?</string>
|
||||
<string name="enter_new_name">Yeni ad girin</string>
|
||||
<string name="copy_menu_title">Kopyala</string>
|
||||
<string name="move_failed">Taşınamadı: %s</string>
|
||||
<string name="move_success">Başarıyla taşındı !</string>
|
||||
<string name="enter_timer_duration">Zamanlayıcı süresini girin (saniye olarak)</string>
|
||||
<string name="path_error">Seçilen yol alınamadı.</string>
|
||||
<string name="create_cant_write_error_msg">DroidFS\'nin bu yola yazma erişimi yok. Lütfen başka bir konum deneyin.</string>
|
||||
<string name="add_cant_write_warning">DroidFS\'nin bu yola yazma erişimi yok. Salt okunur erişimle birim ekleniyor.</string>
|
||||
<string name="sdcard_error_header">DroidFS yalnızca aşağıdaki durumlarda çıkarılabilir SD kartlara yazabilir:</string>
|
||||
<string name="sdcard_error_add_footer">Salt okunur erişimle birim ekleme.</string>
|
||||
<string name="sdcard_error_create_footer">Lütfen bu yolun bir alt dizinini veya dahili depolamayı kullanın.</string>
|
||||
<string name="slideshow_stopped">Slayt gösterisi durduruldu</string>
|
||||
<string name="slideshow_started">Slayt gösterisi başlatıldı</string>
|
||||
<string name="ask_save_img_rotated">Resim döndürüldü. Bu değişiklikleri kaydedip orijinal resmin üzerine yazmak istiyor musunuz ?</string>
|
||||
<string name="image_saved_successfully">Resim değişiklikleri başarıyla kaydedildi.</string>
|
||||
<string name="bitmap_compress_failed">Bitmap sıkıştırılamadı.</string>
|
||||
<string name="file_write_failed">Dosya yazılamadı.</string>
|
||||
<string name="error_not_a_volume">Şifrelenmiş birim tanınmadı. Lütfen seçilen yolu kontrol edin.</string>
|
||||
<string name="version">Versiyon</string>
|
||||
<string name="error_cipher_null">Hata şifre boş</string>
|
||||
<string name="key_permanently_invalidated_exception">KeyPermanentlyInvalidatedException</string>
|
||||
<string name="key_permanently_invalidated_exception_msg">Yeni bir parmak izi eklemişsiniz gibi görünüyor. Kaydedilen şifrelerin hash değeri kullanılamaz hale geldi.</string>
|
||||
<string name="usf_read_doc">Bu seçeneklerden herhangi birini etkinleştirmeden önce dikkatlice okumalısınız.</string>
|
||||
<string name="usf_doc">Güvenli olmayan özellikler dokümantasyonu</string>
|
||||
<string name="error_retrieving_filename">Şu URI için dosya adı alınamıyor: %s</string>
|
||||
<string name="hidden_volume">Gizli birim</string>
|
||||
<string name="error_slash_in_name">Birim adı eğik çizgi sembolü içeremez</string>
|
||||
<string name="hidden_volume_warning">Gizli birimler uygulamanın dahili deposunda saklanır. Diğer uygulamalar bu birimleri root erişimi olmadan göremez. Ancak DroidFS\'yi kaldırırsanız veya uygulamanın verilerini temizlerseniz tüm gizli birimleriniz KAYBOLACAKTIR. Yedekleme yaptığınızdan emin olun !</string>
|
||||
<string name="camera_perm_needed">Fotoğraf çekebilmek için kamera izni gerekiyor.</string>
|
||||
<string name="choose_resolution">Bir çözünürlük seçin</string>
|
||||
<string name="file_operations">Dosya işlemleri</string>
|
||||
<string name="file_op_copy_msg">Dosyalar kopyalanıyor…</string>
|
||||
<string name="file_op_import_msg">Dosyalar içe aktarılıyor...</string>
|
||||
<string name="file_op_export_msg">Dosyalar dışa aktarılıyor...</string>
|
||||
<string name="file_op_move_msg">Dosyalar taşınıyor…</string>
|
||||
<string name="file_op_wiping_msg">Dosyalar siliniyor…</string>
|
||||
<string name="folders_first">Önce klasörler</string>
|
||||
<string name="folders_first_summary">Klasörleri listenin başında göster</string>
|
||||
<string name="auto_fit_title">Video oynatıcı ekranı otomatik döndürme</string>
|
||||
<string name="auto_fit_summary">Video boyutlarına uyacak şekilde ekranı otomatik olarak döndürün</string>
|
||||
<string name="open_tree_failed">Dosya tarayıcısı bulunamadı. Lütfen bir tane yükleyin ve tekrar deneyin.</string>
|
||||
<string name="close_volume">Birimi kapat</string>
|
||||
<string name="sort_by">Sırala</string>
|
||||
<string name="cut">Kes</string>
|
||||
<string name="map_folders">Klasörleri eşleme</string>
|
||||
<string name="map_folders_summary">Boyutlarını hesaplamak için klasörleri yinelemeli olarak eşleyin (büyük birimleri açarken bunu devre dışı bırakmalısınız)</string>
|
||||
<string name="camera_optimization">Kamera optimizasyonu</string>
|
||||
<string name="maximize_quality">Kaliteyi maksimuma çıkarın</string>
|
||||
<string name="minimize_latency">Gecikmeyi minimuma indirin</string>
|
||||
<string name="auto">Otomatik</string>
|
||||
<string name="encryption_cipher_label">Şifreleme şifresi:</string>
|
||||
<string name="theme">Tema</string>
|
||||
<string name="thumbnails">Küçük resimler</string>
|
||||
<string name="thumbnails_summary">Resimlerin ve videoların küçük resimlerini göster</string>
|
||||
<string name="seek_seconds_forward">+%d saniye</string>
|
||||
<string name="seek_seconds_backward">-%d saniye</string>
|
||||
<string name="add_volume">Birim ekle</string>
|
||||
<string name="pick_directory">Klasör seç</string>
|
||||
<string name="volume_alread_saved">Birim zaten kayıtlı</string>
|
||||
<string name="open_dialog_title">Açılıyor %s:</string>
|
||||
<string name="remove">Kaldır</string>
|
||||
<string name="settings">Ayarlar</string>
|
||||
<string name="select_all">Tümünü seç</string>
|
||||
<string name="remove_fingerprint">Parmak izini kaldır</string>
|
||||
<string name="unrecoverable_key_exception_msg">%s. Şifreleme anahtarı yüklenemedi.</string>
|
||||
<string name="unrecoverable_key_exception">UnrecoverableKeyException</string>
|
||||
<string name="delete_hidden_volume_question">%s gizli, sadece birimin yolunu unutmak mı yoksa tüm İÇERİĞİNİ SİLMEK mi istiyorsunuz?</string>
|
||||
<string name="forget_only">Sadece unut</string>
|
||||
<string name="delete_volume">Birimi sil</string>
|
||||
<string name="hidden_volume_description">Birimi DroidFS dahili deposunda saklayın</string>
|
||||
<string name="error_is_file">Hata: dosya zaten mevcut</string>
|
||||
<string name="volume_path_label">Birimin yolunu seçin:</string>
|
||||
<string name="volume_name_label">Birimin adını girin:</string>
|
||||
<string name="volume_path_hint">Birim yolu</string>
|
||||
<string name="volume_name_hint">Birim adı</string>
|
||||
<string name="password_label">Birim şifresini girin:</string>
|
||||
<string name="password_confirmation_label">Şifreyi tekrarlayın:</string>
|
||||
<string name="password_confirmation_hint">Şifre (doğrulama)</string>
|
||||
<string name="password_hash_saved">şifre hash değeri kaydedildi</string>
|
||||
<string name="no_volumes_text">Kaydedilmiş birim yok, + düğmesini tıklayarak biraz ekleyin</string>
|
||||
<string name="fingerprint_error_msg">Parmak izi kimlik doğrulaması kullanılamaz: %s.</string>
|
||||
<string name="keyguard_not_secure">tuş kilidi güvenli değil</string>
|
||||
<string name="no_hardware">uygun donanım bulunamadı</string>
|
||||
<string name="hardware_unavailable">donanım mevcut değil</string>
|
||||
<string name="no_fingerprint">kayıtlı parmak izi yok</string>
|
||||
<string name="unknown_error">bilinmeyen hata</string>
|
||||
<string name="biometric_error">Biyometri hatası: %s</string>
|
||||
<string name="apply_to_all">Bu seçimi tüm gizli birimlere uygula</string>
|
||||
<string name="select_volume">Birimi seç</string>
|
||||
<string name="current_password_label">Mevcut birim parolasını girin:</string>
|
||||
<string name="current_password_hint">Mevcut şifre</string>
|
||||
<string name="new_password_label">Yeni birim şifresini girin:</string>
|
||||
<string name="new_password_hint">Yeni şifre</string>
|
||||
<string name="new_password_confirmation_label">Yeni şifreyi tekrarlayın:</string>
|
||||
<string name="error_marshmallow_required">Bu özellik yalnızca Android 6.0 (Marshmallow) veya üzeri sürümlerde mevcuttur.</string>
|
||||
<string name="copy_hidden_volume">Paylaşılan depolamaya kopyala</string>
|
||||
<string name="copy_external_volume">Gizli bir kopya oluştur</string>
|
||||
<string name="copy_volume_notification">Birim kopyalanıyor…</string>
|
||||
<string name="hidden_volume_already_exists">Aynı ada sahip bir gizli birim zaten mevcut.</string>
|
||||
<string name="pdf_document">PDF dökümanı</string>
|
||||
<string name="thumbnail_max_size">Küçük resimler için maksimum boyut</string>
|
||||
<string name="thumbnail_max_size_summary">Küçük resmin yüklenebileceği maksimum dosya boyutu. Mevcut değer: %s</string>
|
||||
<string name="size_hint">Boyut (KB olarak)</string>
|
||||
<string name="invalid_number">Geçersiz numara</string>
|
||||
<string name="new_volume_name">Yeni birim adı:</string>
|
||||
<string name="volume_rename_failed">Birim yeniden adlandırılamadı</string>
|
||||
<string name="switch_display_layout">Ekran düzenini değiştir</string>
|
||||
<string name="one_file">1 dosya</string>
|
||||
<string name="multiple_files">%d dosya</string>
|
||||
<string name="one_folder">1 klasör</string>
|
||||
<string name="multiple_folders">%d klasör</string>
|
||||
<string name="default_open">Uygulamayı başlattığınızda bu birimi açın</string>
|
||||
<string name="remove_default_open">Varsayılan olarak açma</string>
|
||||
<string name="elements_selected">%d/%d seçildi</string>
|
||||
<string name="pin_passwords_title">Sayısal tuş takımı düzeni</string>
|
||||
<string name="pin_passwords_summary">Birim parolalarını girerken sayısal tuş takımı düzeni kullanın</string>
|
||||
<string name="volume_type_label">Birim türü:</string>
|
||||
<string name="gocryptfs">Gocryptfs</string>
|
||||
<string name="cryfs">CryFS</string>
|
||||
<string name="gocryptfs_disabled">Gocryptfs desteği devre dışı bırakıldı</string>
|
||||
<string name="cryfs_disabled">CryFS desteği devre dışı bırakıldı</string>
|
||||
<string name="file_op_delete_msg">Dosyalar silindi…</string>
|
||||
<string name="volume_type">(%s)</string>
|
||||
<string name="volume_type_read_only">(%s, salt-okunur)</string>
|
||||
<string name="volume_type_inaccessible">(%s, erişilemez)</string>
|
||||
<string name="io_error">I/O hatası.</string>
|
||||
<string name="use_fingerprint">Mevcut şifre yerine parmak izini kullan</string>
|
||||
<string name="remember_volume">Birimi hatırla</string>
|
||||
<string name="open_volume">Birimi aç</string>
|
||||
<string name="choose_existing_volume">Lütfen mevcut bir birimi seçin</string>
|
||||
<string name="volume_unlocked">Birimin kilidi açıldı</string>
|
||||
<string name="lock_volume">Birimi kilitle</string>
|
||||
<string name="lock">Kilitle</string>
|
||||
<string name="ux">UX</string>
|
||||
<string name="theme_color">Tema rengi</string>
|
||||
<string name="theme_color_summary">Uygulama teması rengini değiştirme</string>
|
||||
<string name="black_theme">Siyah tema</string>
|
||||
<string name="password_fallback">Şifreye geri dönme</string>
|
||||
<string name="password_fallback_summary">Parmak iziyle kimlik doğrulama iptal edildiğinde şifre sor</string>
|
||||
<string name="unknown_error_code">Bilinmeyen hata kodu: %d</string>
|
||||
<string name="config_load_error">Yapılandırma dosyası yüklenemiyor. Birimin erişilebilir olduğundan emin olun.</string>
|
||||
<string name="wrong_password">Yapılandırma dosyasının şifresi çözülemiyor. Lütfen şifrenizi kontrol edin.</string>
|
||||
<string name="filesystem_id_changed">Yapılandırma dosyasındaki dosya sistemi kimliği, bu birimi son açtığımız zamandan farklı. Bu, saldırganın dosya sistemini farklı bir sistemle değiştirdiği anlamına gelebilir.</string>
|
||||
<string name="inaccessible_base_dir">Birim mevcut değil veya erişilemiyor.</string>
|
||||
<string name="task_failed">Görev başarısız oldu: %s</string>
|
||||
<string name="usf_expose">Açık birimleri ortaya çıkarın</string>
|
||||
<string name="usf_expose_summary">Diğer uygulamaların belge sağlayıcıları olarak açık birimlere göz atmasına izin ver</string>
|
||||
<string name="usf_saf_write">Yazma erişimi ver</string>
|
||||
<string name="usf_saf_write_summary">Dosyaları diğer uygulamalarla açarken yazma erişimi verin</string>
|
||||
<string name="saf">Depolama Erişim Sistemi</string>
|
||||
<string name="tmp_export_failed">Dışa aktarma başarısız oldu: %s</string>
|
||||
<string name="export_failed_create">dışa aktarılan dosya oluşturulamıyor</string>
|
||||
<string name="export_failed_export">dosya dışa aktarılamadı</string>
|
||||
<string name="export_mem">Belleğe aktarılıyor…</string>
|
||||
<string name="export_disk">Diske dışarı aktarılıyor…</string>
|
||||
<string name="memfd_create_unsupported">Mevcut çekirdeğiniz memfd_create() özelliğini desteklemiyor. Bu özellik minimum %s çekirdek sürümünü gerektirir.</string>
|
||||
<string name="export_method">Dışa aktarma yöntemi</string>
|
||||
<string name="export_method_summary">Dosya dışa aktarma yöntemi. Açıkta kalan dosyaları paylaşmak, harici olarak açmak ve bunlara erişmek için kullanılır.</string>
|
||||
<string name="debug">Debug</string>
|
||||
<string name="logcat_title">DroidFS Logcat</string>
|
||||
<string name="logcat_saved">Logcat kaydedildi</string>
|
||||
</resources>
|
20
app/src/main/res/values-zh-rCN/arrays.xml
Normal file
20
app/src/main/res/values-zh-rCN/arrays.xml
Normal file
@ -0,0 +1,20 @@
|
||||
<resources>
|
||||
<string-array name="sort_orders_entries">
|
||||
<item>名称</item>
|
||||
<item>大小</item>
|
||||
<item>日期</item>
|
||||
<item>名称 (降序)</item>
|
||||
<item>大小 (降序)</item>
|
||||
<item>日期 (降序)</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="color_names">
|
||||
<item>绿</item>
|
||||
<item>红</item>
|
||||
<item>蓝</item>
|
||||
<item>黄</item>
|
||||
<item>橙</item>
|
||||
<item>紫</item>
|
||||
<item>粉</item>
|
||||
</string-array>
|
||||
</resources>
|
277
app/src/main/res/values-zh-rCN/strings.xml
Normal file
277
app/src/main/res/values-zh-rCN/strings.xml
Normal file
@ -0,0 +1,277 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="app_name">DroidFS</string>
|
||||
<string name="create_volume">创建加密卷</string>
|
||||
<string name="open">打开</string>
|
||||
<string name="create">创建</string>
|
||||
<string name="change_password">修改密码</string>
|
||||
<string name="password">密码</string>
|
||||
<string name="import_files">导入文件</string>
|
||||
<string name="import_folder">导入文件夹</string>
|
||||
<string name="discovering_files">正在清点文件…</string>
|
||||
<string name="mkdir">新建文件夹</string>
|
||||
<string name="dir_empty">文件夹空</string>
|
||||
<string name="warning">警告!</string>
|
||||
<string name="ask_lock_volume">你想要锁定该卷吗?</string>
|
||||
<string name="ok">锁了</string>
|
||||
<string name="cancel">取消</string>
|
||||
<string name="enter_folder_name">文件夹名称</string>
|
||||
<string name="error">出问题了</string>
|
||||
<string name="error_filename_empty">输入名称</string>
|
||||
<string name="error_mkdir">文件夹创建失败</string>
|
||||
<string name="success_import">导入成功</string>
|
||||
<string name="success_import_msg">选中文件成功导入</string>
|
||||
<string name="import_failed">导入 %s 时失败</string>
|
||||
<string name="export_failed">导出 %s 时失败</string>
|
||||
<string name="success_export">导出成功</string>
|
||||
<string name="remove_failed">删除 %s 失败</string>
|
||||
<string name="passwords_mismatch">密码不匹配</string>
|
||||
<string name="dir_not_empty">选中文件夹非空</string>
|
||||
<string name="create_volume_failed">创建卷失败</string>
|
||||
<string name="open_volume_failed">打开失败</string>
|
||||
<string name="share_chooser">分享文件</string>
|
||||
<string name="storage_perm_denied">存储空间权限被拒绝</string>
|
||||
<string name="storage_perm_denied_msg">没有存储权限时DroidFS无法工作</string>
|
||||
<string name="get_size_failed">无法获取文件的大小</string>
|
||||
<string name="parent_folder">上一级文件夹</string>
|
||||
<string name="enter_volume_path">输入卷的路径</string>
|
||||
<string name="enter_volume_name">输入卷的名称</string>
|
||||
<string name="external_open">使用外部软件打开</string>
|
||||
<string name="single_delete_confirm">确认删除%s?</string>
|
||||
<string name="multiple_delete_confirm">确认删除多个文件:%s</string>
|
||||
<string name="location">位置: %s</string>
|
||||
<string name="total_size">总大小: %s</string>
|
||||
<string name="import_from_other_volume">从别的卷导入</string>
|
||||
<string name="read_file_failed">打开文件失败</string>
|
||||
<string name="volume">卷: %s</string>
|
||||
<string name="yes">确认</string>
|
||||
<string name="no">取消</string>
|
||||
<string name="ask_for_wipe">确认擦除原始文件?</string>
|
||||
<string name="wipe_failed">擦除失败: %s</string>
|
||||
<string name="wipe_successful">擦除成功!</string>
|
||||
<string name="rename">重命名</string>
|
||||
<string name="rename_title">新名称:</string>
|
||||
<string name="rename_failed">无法重命名: %s</string>
|
||||
<string name="sort_order">排序方法:</string>
|
||||
<string name="change_password_failed">操作失败,请检查你的旧密码</string>
|
||||
<string name="share_menu_label">使用DroidFS加密</string>
|
||||
<string name="share_intent_parsing_failed">处理分享请求失败</string>
|
||||
<string name="listdir_null_error_msg">无法访问这个文件夹</string>
|
||||
<string name="fingerprint_save_checkbox_text">使用指纹存储</string>
|
||||
<string name="fingerprint_instruction">请使用指纹传感器</string>
|
||||
<string name="illegal_block_size_exception">块大小非法(illegalBlockSizeException)</string>
|
||||
<string name="illegal_block_size_exception_msg">在添加指纹后会出现此问题,重置保存的哈希值可解决此问题,随后你需要重新关联哈希与指纹</string>
|
||||
<string name="reset_hash_storage">重置保存的哈希</string>
|
||||
<string name="MAC_verification_failed">签名/MAC验证失败。安卓密钥存储或者哈希存储已经受到修改。重置保存的哈希值可解决此问题,随后你需要重新关联哈希与指纹</string>
|
||||
<string name="hash_storage_reset">哈希存储已经成功重置</string>
|
||||
<string name="encrypt_action_description">正在加密并保存密码哈希</string>
|
||||
<string name="decrypt_action_description">正在解密密码哈希</string>
|
||||
<string name="title_activity_settings">DroidFS设置</string>
|
||||
<string name="explorer">浏览</string>
|
||||
<string name="settings_title_sort_order">默认排序方法</string>
|
||||
<string name="usf_decrypt">允许导出文件</string>
|
||||
<string name="usf_share">允许通过系统分享菜单分享文件</string>
|
||||
<string name="usf_open">允许其他应用打开文件</string>
|
||||
<string name="usf_screenshot">允许截屏</string>
|
||||
<string name="usf_fingerprint">允许通过指纹保存密码哈希</string>
|
||||
<string name="usf_volume_management">加密卷管理</string>
|
||||
<string name="usf_keep_open">当应用切入后台时已打开的卷不再自动锁上</string>
|
||||
<string name="unsafe_features">以下功能会降低安全性</string>
|
||||
<string name="manage_unsafe_features">管理非安全功能</string>
|
||||
<string name="manage_unsafe_features_summary">打开/关闭非安全功能</string>
|
||||
<string name="usf_home_warning_msg">DroidFS会尽可能保证安全。但高度安全往往伴随着不便。这也是DroidFS允许你按照习惯打开/关闭非安全功能的原因。\n\n警告:这些功能会 降 低 安 全 性。在不清楚风险的情况下尽量不要使用。高度建议在启用这些功能之前阅读相关文档</string>
|
||||
<string name="see_unsafe_features">查看非安全功能</string>
|
||||
<string name="open_as">打开为</string>
|
||||
<string name="image">图像</string>
|
||||
<string name="video">视频</string>
|
||||
<string name="audio">音频</string>
|
||||
<string name="playing_failed">无法播放这个文件: %s</string>
|
||||
<string name="text">文本</string>
|
||||
<string name="save_failed">保存失败</string>
|
||||
<string name="file_saved">文件已保存!</string>
|
||||
<string name="ask_save">有些更改未保存,在关闭文件之前要看看吗</string>
|
||||
<string name="save">保存</string>
|
||||
<string name="discard">丢弃</string>
|
||||
<string name="word_wrap">自动换行</string>
|
||||
<string name="outofmemoryerror_msg">内存耗尽: 文件过大而无法读入内存</string>
|
||||
<string name="new_file">新建文件</string>
|
||||
<string name="enter_file_name">文件名</string>
|
||||
<string name="file_creation_failed">无法创建文件</string>
|
||||
<string name="loading">加载中…</string>
|
||||
<string name="loading_msg_create">正在创建卷…</string>
|
||||
<string name="loading_msg_change_password">正在更改密码…</string>
|
||||
<string name="loading_msg_open">正在开启卷…</string>
|
||||
<string name="loading_msg_export">导出文件…</string>
|
||||
<string name="query_cursor_null_error_msg">无法访问文件</string>
|
||||
<string name="about">关于</string>
|
||||
<string name="github">Github</string>
|
||||
<string name="github_summary">DroidFS在Github上的仓库。存有源码,文档以及BUG追踪等</string>
|
||||
<string name="gitea">Gitea</string>
|
||||
<string name="gitea_summary">DroidFS在Chapril Gitea站上的仓库。与Github不同, Gitea是完全的自主搭建的自由软件.存有源码,文档以及BUG追踪等</string>
|
||||
<string name="share">分享</string>
|
||||
<string name="decrypt_files">导出</string>
|
||||
<string name="copy_failed">复制%s失败</string>
|
||||
<string name="copy_success">复制成功</string>
|
||||
<string name="add">添加</string>
|
||||
<string name="camera">相机</string>
|
||||
<string name="picture_save_success">图片已经保存至%s</string>
|
||||
<string name="picture_save_failed">保存图片失败</string>
|
||||
<string name="video_save_success">视频已经保存至%s</string>
|
||||
<string name="file_overwrite_question">%s已经存在,覆盖吗?</string>
|
||||
<string name="dir_overwrite_question">%s已经存在,要合并吗?</string>
|
||||
<string name="enter_new_name">输入新名称</string>
|
||||
<string name="copy_menu_title">复制</string>
|
||||
<string name="move_failed">移动%s失败</string>
|
||||
<string name="move_success">移动成功</string>
|
||||
<string name="enter_timer_duration">输入持续时间(单位: 秒)</string>
|
||||
<string name="path_error">检索所选路径失败</string>
|
||||
<string name="create_cant_write_error_msg">DroidFS对于该路径并无写入权限,换一个吧</string>
|
||||
<string name="add_cant_write_warning">DroidFS对于该路径并无写入权限,将会以只读方式添加卷</string>
|
||||
<string name="sdcard_error_header">DroidFS仅对可移动存储的如下路径有写入权限:</string>
|
||||
<string name="sdcard_error_add_footer">以只读方式添加卷</string>
|
||||
<string name="sdcard_error_create_footer">请在该路径下使用或者使用内置存储</string>
|
||||
<string name="slideshow_stopped">停止幻灯片放映</string>
|
||||
<string name="slideshow_started">开始幻灯片放映</string>
|
||||
<string name="ask_save_img_rotated">图片已经被旋转。要存储并覆盖原图吗</string>
|
||||
<string name="image_saved_successfully">图片改动已经成功保存</string>
|
||||
<string name="bitmap_compress_failed">位图压缩失败</string>
|
||||
<string name="file_write_failed">写入文件失败</string>
|
||||
<string name="error_not_a_volume">加密卷未能被识别,请检查路径</string>
|
||||
<string name="version">版本</string>
|
||||
<string name="error_cipher_null">错误: 密文为空</string>
|
||||
<string name="key_permanently_invalidated_exception">KeyPermanentlyInvalidatedException</string>
|
||||
<string name="key_permanently_invalidated_exception_msg">看起来你添加了新的指纹。原有的密码哈希将失效</string>
|
||||
<string name="usf_read_doc">在启用这些功能之前请仔细阅读</string>
|
||||
<string name="usf_doc">非安全功能的说明文档</string>
|
||||
<string name="error_retrieving_filename">通过URI检索文件失败: %s</string>
|
||||
<string name="hidden_volume">隐藏卷</string>
|
||||
<string name="error_slash_in_name">卷名不应当包含斜杠</string>
|
||||
<string name="hidden_volume_warning">隐藏卷存放在DroidFS的私有文件夹内,其他应用在没有Root权限的情况下无法读取隐藏卷。如果你卸载DroidFS或者在应用管理器中清除了DroidFS的数据,隐藏卷内的文件会全部消失。请提前做好备份!</string>
|
||||
<string name="camera_perm_needed">照相需要授予相机权限</string>
|
||||
<string name="choose_resolution">选择分辨率</string>
|
||||
<string name="file_operations">文件操作</string>
|
||||
<string name="file_op_copy_msg">正在复制文件…</string>
|
||||
<string name="file_op_import_msg">正在导入…</string>
|
||||
<string name="file_op_export_msg">正在导出…</string>
|
||||
<string name="file_op_move_msg">正在移动文件…</string>
|
||||
<string name="file_op_wiping_msg">正在擦除文件…</string>
|
||||
<string name="folders_first">文件夹优先</string>
|
||||
<string name="folders_first_summary">在列表顶部显示文件夹</string>
|
||||
<string name="auto_fit_title">视频播放器屏幕自动旋转</string>
|
||||
<string name="auto_fit_summary">自动旋转屏幕以适应屏幕尺寸</string>
|
||||
<string name="open_tree_failed">未发现文件浏览器。请安装后重试</string>
|
||||
<string name="close_volume">关闭卷</string>
|
||||
<string name="sort_by">分类方式</string>
|
||||
<string name="cut">剪切</string>
|
||||
<string name="map_folders">显示文件夹大小</string>
|
||||
<string name="map_folders_summary">通过递归映射来计算文件夹的大小(如果文件夹很大,启用该功能将导致APP卡顿)</string>
|
||||
<string name="camera_optimization">相机优化</string>
|
||||
<string name="maximize_quality">最大质量</string>
|
||||
<string name="minimize_latency">最低延迟</string>
|
||||
<string name="auto">自动</string>
|
||||
<string name="encryption_cipher_label">加密密文</string>
|
||||
<string name="theme">主题</string>
|
||||
<string name="thumbnails">缩略图</string>
|
||||
<string name="thumbnails_summary">展示图片与视频的缩略图</string>
|
||||
<string name="seek_seconds_forward">+%d 秒</string>
|
||||
<string name="seek_seconds_backward">-%d 秒</string>
|
||||
<string name="add_volume">添加卷</string>
|
||||
<string name="pick_directory">选择文件夹</string>
|
||||
<string name="volume_alread_saved">卷已经保存</string>
|
||||
<string name="open_dialog_title">正在打开%s:</string>
|
||||
<string name="remove">移除</string>
|
||||
<string name="settings">设置</string>
|
||||
<string name="select_all">全选</string>
|
||||
<string name="remove_fingerprint">移除指纹验证</string>
|
||||
<string name="unrecoverable_key_exception_msg">%s. 无法加载加密密钥</string>
|
||||
<string name="unrecoverable_key_exception">UnrecoverableKeyException</string>
|
||||
<string name="delete_hidden_volume_question">%s 是隐藏的,你希望DroidFS暂时不在UI上显示该卷的入口还是希望DroidFS删除卷内的文件?</string>
|
||||
<string name="forget_only">仅删除UI上的入口</string>
|
||||
<string name="delete_volume">删除卷</string>
|
||||
<string name="hidden_volume_description">在DroidFS的私有文件夹中存放该卷</string>
|
||||
<string name="error_is_file">出错: 文件已存在</string>
|
||||
<string name="volume_path_label">选择加密卷的路径:</string>
|
||||
<string name="volume_name_label">输入卷的名称:</string>
|
||||
<string name="volume_path_hint">卷的路径</string>
|
||||
<string name="volume_name_hint">卷的名称</string>
|
||||
<string name="password_label">输入卷的密码:</string>
|
||||
<string name="password_confirmation_label">再次输入密码:</string>
|
||||
<string name="password_confirmation_hint">密码(确认)</string>
|
||||
<string name="password_hash_saved">密码的哈希值已保存</string>
|
||||
<string name="no_volumes_text">没有保存的卷,通过点击\"+\"添加</string>
|
||||
<string name="fingerprint_error_msg">指纹验证无法使用: %s</string>
|
||||
<string name="keyguard_not_secure">Keyguard不安全</string>
|
||||
<string name="no_hardware">未发现适用硬件</string>
|
||||
<string name="hardware_unavailable">硬件不可用</string>
|
||||
<string name="no_fingerprint">无已经录入的指纹</string>
|
||||
<string name="unknown_error">未知错误</string>
|
||||
<string name="biometric_error">生物识别错误: %s</string>
|
||||
<string name="apply_to_all">将该设置应用到所有隐藏卷</string>
|
||||
<string name="select_volume">选择卷</string>
|
||||
<string name="current_password_label">输入该卷的密码</string>
|
||||
<string name="current_password_hint">当前密码</string>
|
||||
<string name="new_password_label">输入新密码:</string>
|
||||
<string name="new_password_hint">新密码</string>
|
||||
<string name="new_password_confirmation_label">确认新密码:</string>
|
||||
<string name="error_marshmallow_required">该功能仅在安卓6.0及以上可用</string>
|
||||
<string name="copy_hidden_volume">复制到共享存储</string>
|
||||
<string name="copy_external_volume">创建隐藏副本</string>
|
||||
<string name="copy_volume_notification">正在复制卷…</string>
|
||||
<string name="hidden_volume_already_exists">一个有相同名字的隐藏卷已经存在</string>
|
||||
<string name="pdf_document">PDF文档</string>
|
||||
<string name="thumbnail_max_size">缩略图最大体积</string>
|
||||
<string name="thumbnail_max_size_summary">允许的缩略图文件最大体积. 当前值:</string>
|
||||
<string name="size_hint">大小(KB):</string>
|
||||
<string name="invalid_number">无效数字</string>
|
||||
<string name="new_volume_name">新卷名:</string>
|
||||
<string name="volume_rename_failed">卷重命名失败</string>
|
||||
<string name="switch_display_layout">切换显示排版</string>
|
||||
<string name="one_file">单文件</string>
|
||||
<string name="multiple_files">%d个文件</string>
|
||||
<string name="one_folder">文件夹</string>
|
||||
<string name="multiple_folders">%d个文件夹</string>
|
||||
<string name="default_open">启动DroidFS时自动打开卷</string>
|
||||
<string name="remove_default_open">不要默认打开</string>
|
||||
<string name="elements_selected">已选 %d/%d</string>
|
||||
<string name="pin_passwords_title">数字键盘布局</string>
|
||||
<string name="pin_passwords_summary">输入卷的密码时使用纯数字键盘</string>
|
||||
<string name="volume_type_label">卷的类型:</string>
|
||||
<string name="gocryptfs">Gocryptfs</string>
|
||||
<string name="cryfs">CryFS</string>
|
||||
<string name="gocryptfs_disabled">Gocrytfs支持已关闭</string>
|
||||
<string name="cryfs_disabled">CryFS支持已关闭</string>
|
||||
<string name="file_op_delete_msg">正在删除文件…</string>
|
||||
<string name="volume_type">(%s)</string>
|
||||
<string name="volume_type_read_only">(%s, 只读)</string>
|
||||
<string name="volume_type_inaccessible">(%s, 不可访问)</string>
|
||||
<string name="io_error">I/O出错</string>
|
||||
<string name="use_fingerprint">使用指纹替代当前密码</string>
|
||||
<string name="remember_volume">记住卷</string>
|
||||
<string name="open_volume">打开卷</string>
|
||||
<string name="choose_existing_volume">请选择一个已存在的卷</string>
|
||||
<string name="volume_unlocked">卷已锁定</string>
|
||||
<string name="lock_volume">锁定卷</string>
|
||||
<string name="lock">锁定</string>
|
||||
<string name="ux">用户体验</string>
|
||||
<string name="theme_color">主题色</string>
|
||||
<string name="theme_color_summary">更改DroidFS用户界面主题色</string>
|
||||
<string name="black_theme">黑色主题</string>
|
||||
<string name="password_fallback">返回密码验证</string>
|
||||
<string name="password_fallback_summary">当指纹验证取消时自动弹出密码验证</string>
|
||||
<string name="unknown_error_code">未知错误: %d</string>
|
||||
<string name="config_load_error">无法读取配置. 请确保卷可访问</string>
|
||||
<string name="wrong_password">无法解密配置文件. 请检查你的密码</string>
|
||||
<string name="filesystem_id_changed">文件系统的ID与上一次打开时的ID不一样. 这可能意味着攻击者已经将文件系统替换</string>
|
||||
<string name="inaccessible_base_dir">卷不存在或者不可访问</string>
|
||||
<string name="task_failed">任务失败: %s</string>
|
||||
<string name="usf_expose">暴露已打开的卷</string>
|
||||
<string name="usf_expose_summary">允许其他应用软件通过DocumentsProviders接口读取卷内的文件</string>
|
||||
<string name="usf_saf_write">允许写入</string>
|
||||
<string name="usf_saf_write_summary">允许其他应用读取和删改卷内的文件</string>
|
||||
<string name="saf">存储访问框架(SAF)</string>
|
||||
<string name="tmp_export_failed">导出失败: %s</string>
|
||||
<string name="export_failed_create">无法创建导出文件</string>
|
||||
<string name="export_failed_export">导出文件失败</string>
|
||||
<string name="export_mem">导出至内存</string>
|
||||
<string name="export_disk">导出至磁盘</string>
|
||||
</resources>
|
@ -38,6 +38,12 @@
|
||||
<item>Pink</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="export_methods">
|
||||
<item>Auto (depending on available memory)</item>
|
||||
<item>Temporary export on disk (reliable but may leave traces)</item>
|
||||
<item>Memory file (safer but doesn\'t always work)</item>
|
||||
</string-array>
|
||||
|
||||
<!-- don't translate the following otherwise the app will crash -->
|
||||
<string-array name="sort_orders_values">
|
||||
<item>name</item>
|
||||
@ -57,4 +63,10 @@
|
||||
<item>purple</item>
|
||||
<item>pink</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="export_methods_values">
|
||||
<item>auto</item>
|
||||
<item>disk</item>
|
||||
<item>memory</item>
|
||||
</string-array>
|
||||
</resources>
|
@ -273,4 +273,10 @@
|
||||
<string name="export_failed_export">failed to export file</string>
|
||||
<string name="export_mem">Exporting to memory…</string>
|
||||
<string name="export_disk">Exporting to disk…</string>
|
||||
<string name="memfd_create_unsupported">Your current kernel does not support memfd_create(). This feature requires a minimum kernel version of %s.</string>
|
||||
<string name="export_method">Export method</string>
|
||||
<string name="export_method_summary">File export method. Used for sharing, external opening and accessing exposed files.</string>
|
||||
<string name="debug">Debug</string>
|
||||
<string name="logcat_title">DroidFS Logcat</string>
|
||||
<string name="logcat_saved">Logcat saved</string>
|
||||
</resources>
|
||||
|
@ -93,6 +93,16 @@
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory android:title="@string/debug">
|
||||
|
||||
<Preference
|
||||
android:key="logcat"
|
||||
android:title="Logcat"
|
||||
android:summary="View the DroidFS logcat"
|
||||
android:icon="@drawable/icon_debug"/>
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory android:title="@string/about">
|
||||
|
||||
<Preference
|
||||
@ -110,7 +120,6 @@
|
||||
</Preference>
|
||||
|
||||
<Preference
|
||||
android:key="version"
|
||||
android:icon="@drawable/icon_info"
|
||||
android:title="@string/version"
|
||||
android:summary="@string/versionName"/> <!--added by gradle at build time-->
|
||||
|
@ -78,6 +78,15 @@
|
||||
android:title="@string/usf_saf_write"
|
||||
android:summary="@string/usf_saf_write_summary" />
|
||||
|
||||
<ListPreference
|
||||
android:key="export_method"
|
||||
android:entries="@array/export_methods"
|
||||
android:entryValues="@array/export_methods_values"
|
||||
android:defaultValue="auto"
|
||||
android:title="@string/export_method"
|
||||
android:summary="@string/export_method_summary"
|
||||
android:icon="@drawable/icon_settings"/>
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
</PreferenceScreen>
|
13
build.gradle
13
build.gradle
@ -1,13 +1,6 @@
|
||||
buildscript {
|
||||
ext.kotlin_version = '1.9.0'
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:8.1.1'
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||
}
|
||||
plugins {
|
||||
id("com.android.application") version '8.4.0' apply false
|
||||
id("org.jetbrains.kotlin.android") version "1.9.24" apply false
|
||||
}
|
||||
|
||||
allprojects {
|
||||
|
@ -16,3 +16,4 @@ kotlin.code.style=official
|
||||
|
||||
android.native.buildOutput=verbose
|
||||
android.nonTransitiveRClass=false
|
||||
org.gradle.configuration-cache=true
|
5
gradle/wrapper/gradle-wrapper.properties
vendored
5
gradle/wrapper/gradle-wrapper.properties
vendored
@ -1,7 +1,8 @@
|
||||
#Sun Jun 02 15:50:33 UTC 2024
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionSha256Sum=591855b517fc635b9e04de1d05d5e76ada3f89f5fc76f87978d1b245b4f69225
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
|
||||
distributionSha256Sum=a4b4158601f8636cdeeab09bd76afb640030bb5b144aafe261a5e8af027dc612
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
|
||||
networkTimeout=10000
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 22965932759f232328810eadf3f02671b5c6ff99
|
||||
Subproject commit 48631380a7a8b5f0932078e2b643e06c3f433890
|
@ -1,2 +1,8 @@
|
||||
pluginManagement {
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
}
|
||||
}
|
||||
include ':app', ':libpdfviewer:app'
|
||||
rootProject.name = "DroidFS"
|
Loading…
Reference in New Issue
Block a user