Support opening password protected PDF files

This closes #712
This commit is contained in:
Ensar Sarajčić
2023-07-06 12:53:47 +02:00
parent 2ac5648037
commit 84375597b6
48 changed files with 301 additions and 24 deletions

View File

@@ -3,20 +3,26 @@ package com.simplemobiletools.filemanager.pro.activities
import android.content.Context import android.content.Context
import android.content.res.Configuration import android.content.res.Configuration
import android.graphics.Color import android.graphics.Color
import android.net.Uri
import android.os.Bundle import android.os.Bundle
import android.print.PrintAttributes import android.print.PrintAttributes
import android.print.PrintManager import android.print.PrintManager
import android.view.WindowManager import android.view.WindowManager
import android.widget.RelativeLayout import android.widget.RelativeLayout
import com.github.barteksc.pdfviewer.scroll.DefaultScrollHandle import com.github.barteksc.pdfviewer.scroll.DefaultScrollHandle
import com.shockwave.pdfium.PdfPasswordException
import com.simplemobiletools.commons.extensions.* import com.simplemobiletools.commons.extensions.*
import com.simplemobiletools.commons.helpers.REAL_FILE_PATH import com.simplemobiletools.commons.helpers.REAL_FILE_PATH
import com.simplemobiletools.commons.helpers.isPiePlus import com.simplemobiletools.commons.helpers.isPiePlus
import com.simplemobiletools.filemanager.pro.R import com.simplemobiletools.filemanager.pro.R
import com.simplemobiletools.filemanager.pro.dialogs.EnterPasswordDialog
import com.simplemobiletools.filemanager.pro.extensions.hideSystemUI import com.simplemobiletools.filemanager.pro.extensions.hideSystemUI
import com.simplemobiletools.filemanager.pro.extensions.showSystemUI import com.simplemobiletools.filemanager.pro.extensions.showSystemUI
import com.simplemobiletools.filemanager.pro.helpers.PdfDocumentAdapter import com.simplemobiletools.filemanager.pro.helpers.PdfDocumentAdapter
import kotlinx.android.synthetic.main.activity_pdf_viewer.* import kotlinx.android.synthetic.main.activity_pdf_viewer.pdf_viewer
import kotlinx.android.synthetic.main.activity_pdf_viewer.pdf_viewer_appbar
import kotlinx.android.synthetic.main.activity_pdf_viewer.pdf_viewer_toolbar
import kotlinx.android.synthetic.main.activity_pdf_viewer.top_shadow
class PDFViewerActivity : SimpleActivity() { class PDFViewerActivity : SimpleActivity() {
private var realFilePath = "" private var realFilePath = ""
@@ -91,15 +97,32 @@ class PDFViewerActivity : SimpleActivity() {
return return
} }
loadPdfViewer(uri)
}
private fun loadPdfViewer(uri: Uri, filePassword: String? = null) {
val primaryColor = getProperPrimaryColor() val primaryColor = getProperPrimaryColor()
pdf_viewer.setBackgroundColor(getProperBackgroundColor()) pdf_viewer.setBackgroundColor(getProperBackgroundColor())
pdf_viewer.fromUri(uri) pdf_viewer.fromUri(uri)
.password(filePassword)
.scrollHandle(DefaultScrollHandle(this, primaryColor.getContrastColor(), primaryColor)) .scrollHandle(DefaultScrollHandle(this, primaryColor.getContrastColor(), primaryColor))
.spacing(15) .spacing(15)
.onTap { toggleFullScreen() } .onTap { toggleFullScreen() }
.onError { .onError {
showErrorToast(it.localizedMessage?.toString() ?: getString(R.string.unknown_error_occurred)) if (it is PdfPasswordException) {
finish() // Already entered a password and it was wrong
if (filePassword != null) {
it.showToastAndFinish()
} else {
EnterPasswordDialog(
this,
callback = { password -> loadPdfViewer(uri, password) },
cancelCallback = { it.showToastAndFinish() }
)
}
} else {
it.showToastAndFinish()
}
} }
.load() .load()
@@ -151,4 +174,9 @@ class PDFViewerActivity : SimpleActivity() {
window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS) window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS)
} }
} }
private fun Throwable.showToastAndFinish() {
showErrorToast(localizedMessage?.toString() ?: getString(R.string.unknown_error_occurred))
finish()
}
} }

View File

@@ -0,0 +1,42 @@
package com.simplemobiletools.filemanager.pro.dialogs
import androidx.appcompat.app.AlertDialog
import com.simplemobiletools.commons.activities.BaseSimpleActivity
import com.simplemobiletools.commons.extensions.*
import com.simplemobiletools.filemanager.pro.R
import kotlinx.android.synthetic.main.dialog_enter_password.view.password
class EnterPasswordDialog(
val activity: BaseSimpleActivity,
private val callback: (password: String) -> Unit,
private val cancelCallback: () -> Unit
) {
init {
val view = activity.layoutInflater.inflate(R.layout.dialog_enter_password, null)
activity.getAlertDialogBuilder()
.setPositiveButton(R.string.ok, null)
.setNegativeButton(R.string.cancel, null)
.apply {
activity.setupDialogStuff(view, this, R.string.enter_password) { alertDialog ->
alertDialog.showKeyboard(view.password)
alertDialog.getButton(AlertDialog.BUTTON_POSITIVE).setOnClickListener {
val password = view.password.value
if (password.isEmpty()) {
activity.toast(R.string.empty_password)
return@setOnClickListener
}
callback(password)
alertDialog.setOnDismissListener(null)
alertDialog.dismiss()
}
alertDialog.setOnDismissListener {
cancelCallback()
}
}
}
}
}

View File

@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/enter_password_holder"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="@dimen/activity_margin">
<com.simplemobiletools.commons.views.MyTextInputLayout
android:id="@+id/enter_password_hint"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/password">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/activity_margin"
android:inputType="textPassword"
android:singleLine="true"
android:textCursorDrawable="@null"
android:textSize="@dimen/normal_text_size" />
</com.simplemobiletools.commons.views.MyTextInputLayout>
</LinearLayout>

View File

@@ -50,6 +50,10 @@
<string name="others">الاخرين</string> <string name="others">الاخرين</string>
<string name="storage_free">free</string> <string name="storage_free">free</string>
<string name="total_storage">إجمالي مساحة التخزين: %s</string> <string name="total_storage">إجمالي مساحة التخزين: %s</string>
<!-- Password protected files -->
<string name="enter_password">Enter password</string>
<string name="password">Password</string>
<string name="empty_password">Please enter the password</string>
<!-- Settings --> <!-- Settings -->
<string name="enable_root_access">تفعيل الدخول الى مسار الروت</string> <string name="enable_root_access">تفعيل الدخول الى مسار الروت</string>
<string name="press_back_twice">تتطلب الضغط على رجوع مرتين لمغادرة التطبيق</string> <string name="press_back_twice">تتطلب الضغط على رجوع مرتين لمغادرة التطبيق</string>
@@ -57,4 +61,4 @@
Haven't found some strings? There's more at Haven't found some strings? There's more at
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
--> -->
</resources> </resources>

View File

@@ -55,6 +55,10 @@
<string name="others">Others</string> <string name="others">Others</string>
<string name="storage_free">free</string> <string name="storage_free">free</string>
<string name="total_storage">Total storage: %s</string> <string name="total_storage">Total storage: %s</string>
<!-- Password protected files -->
<string name="enter_password">Enter password</string>
<string name="password">Password</string>
<string name="empty_password">Please enter the password</string>
<!-- Settings --> <!-- Settings -->
<string name="enable_root_access">Root icazəsini aktivləşdir</string> <string name="enable_root_access">Root icazəsini aktivləşdir</string>

View File

@@ -50,6 +50,10 @@
<string name="others">Іншае</string> <string name="others">Іншае</string>
<string name="storage_free">бясплатна</string> <string name="storage_free">бясплатна</string>
<string name="total_storage">Агульная памяць: %s</string> <string name="total_storage">Агульная памяць: %s</string>
<!-- Password protected files -->
<string name="enter_password">Enter password</string>
<string name="password">Password</string>
<string name="empty_password">Please enter the password</string>
<!-- Settings --> <!-- Settings -->
<string name="enable_root_access">Уключыць каранёвы доступ</string> <string name="enable_root_access">Уключыць каранёвы доступ</string>
<string name="press_back_twice">Патрабуецца двойчы націснуць \"Назад\", каб выйсці з праграмы</string> <string name="press_back_twice">Патрабуецца двойчы націснуць \"Назад\", каб выйсці з праграмы</string>
@@ -57,4 +61,4 @@
Haven't found some strings? There's more at Haven't found some strings? There's more at
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
--> -->
</resources> </resources>

View File

@@ -50,6 +50,10 @@
<string name="others">Други</string> <string name="others">Други</string>
<string name="storage_free">free</string> <string name="storage_free">free</string>
<string name="total_storage">Общо място за съхранение: %s</string> <string name="total_storage">Общо място за съхранение: %s</string>
<!-- Password protected files -->
<string name="enter_password">Enter password</string>
<string name="password">Password</string>
<string name="empty_password">Please enter the password</string>
<!-- Settings --> <!-- Settings -->
<string name="enable_root_access">Активиране на root достъп</string> <string name="enable_root_access">Активиране на root достъп</string>
<string name="press_back_twice">Натискане два пъти Назад за излизане от приложението</string> <string name="press_back_twice">Натискане два пъти Назад за излизане от приложението</string>
@@ -57,4 +61,4 @@
Haven't found some strings? There's more at Haven't found some strings? There's more at
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
--> -->
</resources> </resources>

View File

@@ -50,6 +50,10 @@
<string name="others">Altres</string> <string name="others">Altres</string>
<string name="storage_free">lliure</string> <string name="storage_free">lliure</string>
<string name="total_storage">Emmagatzematge total: %s</string> <string name="total_storage">Emmagatzematge total: %s</string>
<!-- Password protected files -->
<string name="enter_password">Enter password</string>
<string name="password">Password</string>
<string name="empty_password">Please enter the password</string>
<!-- Settings --> <!-- Settings -->
<string name="enable_root_access">Habilita l\'accés «root»</string> <string name="enable_root_access">Habilita l\'accés «root»</string>
<string name="press_back_twice">Cal que premeu Enrere dues vegades per sortir de l\'aplicació</string> <string name="press_back_twice">Cal que premeu Enrere dues vegades per sortir de l\'aplicació</string>

View File

@@ -50,6 +50,10 @@
<string name="others">Ostatní</string> <string name="others">Ostatní</string>
<string name="storage_free">volné</string> <string name="storage_free">volné</string>
<string name="total_storage">Úložiště celkem: %s</string> <string name="total_storage">Úložiště celkem: %s</string>
<!-- Password protected files -->
<string name="enter_password">Enter password</string>
<string name="password">Password</string>
<string name="empty_password">Please enter the password</string>
<!-- Settings --> <!-- Settings -->
<string name="enable_root_access">Povolit přístup jako root</string> <string name="enable_root_access">Povolit přístup jako root</string>
<string name="press_back_twice">Pro opuštění aplikace vyžadovat stisknutí Zpět dvakrát</string> <string name="press_back_twice">Pro opuštění aplikace vyžadovat stisknutí Zpět dvakrát</string>
@@ -57,4 +61,4 @@
Haven't found some strings? There's more at Haven't found some strings? There's more at
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
--> -->
</resources> </resources>

View File

@@ -55,6 +55,10 @@
<string name="others">Others</string> <string name="others">Others</string>
<string name="storage_free">free</string> <string name="storage_free">free</string>
<string name="total_storage">Total storage: %s</string> <string name="total_storage">Total storage: %s</string>
<!-- Password protected files -->
<string name="enter_password">Enter password</string>
<string name="password">Password</string>
<string name="empty_password">Please enter the password</string>
<!-- Settings --> <!-- Settings -->
<string name="enable_root_access">Galluogi mynediad craidd</string> <string name="enable_root_access">Galluogi mynediad craidd</string>

View File

@@ -50,6 +50,10 @@
<string name="others">Andre</string> <string name="others">Andre</string>
<string name="storage_free">fri</string> <string name="storage_free">fri</string>
<string name="total_storage">Samlet lagerplads: %s</string> <string name="total_storage">Samlet lagerplads: %s</string>
<!-- Password protected files -->
<string name="enter_password">Enter password</string>
<string name="password">Password</string>
<string name="empty_password">Please enter the password</string>
<!-- Settings --> <!-- Settings -->
<string name="enable_root_access">Aktiver root-adgang</string> <string name="enable_root_access">Aktiver root-adgang</string>
<string name="press_back_twice">Kræv to tryk på tilbage for at forlade appen</string> <string name="press_back_twice">Kræv to tryk på tilbage for at forlade appen</string>

View File

@@ -50,6 +50,10 @@
<string name="others">Andere</string> <string name="others">Andere</string>
<string name="storage_free">frei</string> <string name="storage_free">frei</string>
<string name="total_storage">Gesamter Speicherplatz: %s</string> <string name="total_storage">Gesamter Speicherplatz: %s</string>
<!-- Password protected files -->
<string name="enter_password">Enter password</string>
<string name="password">Password</string>
<string name="empty_password">Please enter the password</string>
<!-- Settings --> <!-- Settings -->
<string name="enable_root_access">Root-Zugriff erlauben</string> <string name="enable_root_access">Root-Zugriff erlauben</string>
<string name="press_back_twice">Zweimaliges Drücken von Zurück ist erforderlich, um die Anwendung zu verlassen</string> <string name="press_back_twice">Zweimaliges Drücken von Zurück ist erforderlich, um die Anwendung zu verlassen</string>
@@ -57,4 +61,4 @@
Haven't found some strings? There's more at Haven't found some strings? There's more at
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
--> -->
</resources> </resources>

View File

@@ -55,6 +55,10 @@
<string name="others">Άλλα</string> <string name="others">Άλλα</string>
<string name="storage_free">ελεύθερα</string> <string name="storage_free">ελεύθερα</string>
<string name="total_storage">Σύνολο: %s</string> <string name="total_storage">Σύνολο: %s</string>
<!-- Password protected files -->
<string name="enter_password">Enter password</string>
<string name="password">Password</string>
<string name="empty_password">Please enter the password</string>
<!-- Settings --> <!-- Settings -->
<string name="enable_root_access">Ενεργοποιήστε την πρόσβαση ριζικού καταλόγου</string> <string name="enable_root_access">Ενεργοποιήστε την πρόσβαση ριζικού καταλόγου</string>

View File

@@ -50,6 +50,10 @@
<string name="others">Aliaj</string> <string name="others">Aliaj</string>
<string name="storage_free">free</string> <string name="storage_free">free</string>
<string name="total_storage">Total storage: %s</string> <string name="total_storage">Total storage: %s</string>
<!-- Password protected files -->
<string name="enter_password">Enter password</string>
<string name="password">Password</string>
<string name="empty_password">Please enter the password</string>
<!-- Settings --> <!-- Settings -->
<string name="enable_root_access">Enable root access</string> <string name="enable_root_access">Enable root access</string>
<string name="press_back_twice">Require pressing Back twice to leave the app</string> <string name="press_back_twice">Require pressing Back twice to leave the app</string>

View File

@@ -50,6 +50,10 @@
<string name="others">Otros</string> <string name="others">Otros</string>
<string name="storage_free">libre</string> <string name="storage_free">libre</string>
<string name="total_storage">Almacenamiento total: %s</string> <string name="total_storage">Almacenamiento total: %s</string>
<!-- Password protected files -->
<string name="enter_password">Enter password</string>
<string name="password">Password</string>
<string name="empty_password">Please enter the password</string>
<!-- Settings --> <!-- Settings -->
<string name="enable_root_access">Activar acceso root</string> <string name="enable_root_access">Activar acceso root</string>
<string name="press_back_twice">Se requiere presionar el botón atras dos veces para salir de la app</string> <string name="press_back_twice">Se requiere presionar el botón atras dos veces para salir de la app</string>
@@ -57,4 +61,4 @@
Haven't found some strings? There's more at Haven't found some strings? There's more at
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
--> -->
</resources> </resources>

View File

@@ -50,6 +50,10 @@
<string name="others">Muud failid</string> <string name="others">Muud failid</string>
<string name="storage_free">vaba</string> <string name="storage_free">vaba</string>
<string name="total_storage">Kogu salvestusruum: %s</string> <string name="total_storage">Kogu salvestusruum: %s</string>
<!-- Password protected files -->
<string name="enter_password">Enter password</string>
<string name="password">Password</string>
<string name="empty_password">Please enter the password</string>
<!-- Settings --> <!-- Settings -->
<string name="enable_root_access">Luba ligipääs juurkasutajale</string> <string name="enable_root_access">Luba ligipääs juurkasutajale</string>
<string name="press_back_twice">Rakendusest väljumiseks eelda kahte Tagasi-nupu vajutust</string> <string name="press_back_twice">Rakendusest väljumiseks eelda kahte Tagasi-nupu vajutust</string>

View File

@@ -50,6 +50,10 @@
<string name="others">Muut</string> <string name="others">Muut</string>
<string name="storage_free">ilmainen</string> <string name="storage_free">ilmainen</string>
<string name="total_storage">Tallennustila: %s</string> <string name="total_storage">Tallennustila: %s</string>
<!-- Password protected files -->
<string name="enter_password">Enter password</string>
<string name="password">Password</string>
<string name="empty_password">Please enter the password</string>
<!-- Settings --> <!-- Settings -->
<string name="enable_root_access">Ota käyttöön root-ominaisuudet</string> <string name="enable_root_access">Ota käyttöön root-ominaisuudet</string>
<string name="press_back_twice">Ota käyttöön sovelluksesta poistuminen kahdella takaisin-painikkeen painalluksella</string> <string name="press_back_twice">Ota käyttöön sovelluksesta poistuminen kahdella takaisin-painikkeen painalluksella</string>
@@ -57,4 +61,4 @@
Haven't found some strings? There's more at Haven't found some strings? There's more at
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
--> -->
</resources> </resources>

View File

@@ -50,6 +50,10 @@
<string name="others">Autres</string> <string name="others">Autres</string>
<string name="storage_free">libre</string> <string name="storage_free">libre</string>
<string name="total_storage">Stockage total : %s</string> <string name="total_storage">Stockage total : %s</string>
<!-- Password protected files -->
<string name="enter_password">Enter password</string>
<string name="password">Password</string>
<string name="empty_password">Please enter the password</string>
<!-- Settings --> <!-- Settings -->
<string name="enable_root_access">Activer les droits root</string> <string name="enable_root_access">Activer les droits root</string>
<string name="press_back_twice">Obligation d\'appuyer deux fois sur la touche Retour pour quitter l\'application</string> <string name="press_back_twice">Obligation d\'appuyer deux fois sur la touche Retour pour quitter l\'application</string>

View File

@@ -50,6 +50,10 @@
<string name="others">Outros</string> <string name="others">Outros</string>
<string name="storage_free">ceibe</string> <string name="storage_free">ceibe</string>
<string name="total_storage">Almacenamento total: %s</string> <string name="total_storage">Almacenamento total: %s</string>
<!-- Password protected files -->
<string name="enter_password">Enter password</string>
<string name="password">Password</string>
<string name="empty_password">Please enter the password</string>
<!-- Settings --> <!-- Settings -->
<string name="enable_root_access">Activar acceso root</string> <string name="enable_root_access">Activar acceso root</string>
<string name="press_back_twice">Require premer Atrás dúas veces para saír da aplicación</string> <string name="press_back_twice">Require premer Atrás dúas veces para saír da aplicación</string>
@@ -57,4 +61,4 @@
Non atopou todas as cadeas que debería traducir? Existen algunhas máis en Non atopou todas as cadeas que debería traducir? Existen algunhas máis en
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
--> -->
</resources> </resources>

View File

@@ -54,6 +54,10 @@
<string name="others">Others</string> <string name="others">Others</string>
<string name="storage_free">free</string> <string name="storage_free">free</string>
<string name="total_storage">Total storage: %s</string> <string name="total_storage">Total storage: %s</string>
<!-- Password protected files -->
<string name="enter_password">Enter password</string>
<string name="password">Password</string>
<string name="empty_password">Please enter the password</string>
<!-- Settings --> <!-- Settings -->
<string name="enable_root_access">रूट एक्सेस</string> <string name="enable_root_access">रूट एक्सेस</string>

View File

@@ -50,6 +50,10 @@
<string name="others">Ostali</string> <string name="others">Ostali</string>
<string name="storage_free">slobodno</string> <string name="storage_free">slobodno</string>
<string name="total_storage">Ukupna memorija: %s</string> <string name="total_storage">Ukupna memorija: %s</string>
<!-- Password protected files -->
<string name="enter_password">Enter password</string>
<string name="password">Password</string>
<string name="empty_password">Please enter the password</string>
<!-- Settings --> <!-- Settings -->
<string name="enable_root_access">Aktiviraj administratorski pristup</string> <string name="enable_root_access">Aktiviraj administratorski pristup</string>
<string name="press_back_twice">Zahtijevaj pritiskanje gumba „Natrag” dvaput za napuštanje aplikacije</string> <string name="press_back_twice">Zahtijevaj pritiskanje gumba „Natrag” dvaput za napuštanje aplikacije</string>
@@ -57,4 +61,4 @@
Haven't found some strings? There's more at Haven't found some strings? There's more at
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
--> -->
</resources> </resources>

View File

@@ -50,6 +50,10 @@
<string name="others">Egyebek</string> <string name="others">Egyebek</string>
<string name="storage_free">szabad</string> <string name="storage_free">szabad</string>
<string name="total_storage">Összes tárhely: %s</string> <string name="total_storage">Összes tárhely: %s</string>
<!-- Password protected files -->
<string name="enter_password">Enter password</string>
<string name="password">Password</string>
<string name="empty_password">Please enter the password</string>
<!-- Settings --> <!-- Settings -->
<string name="enable_root_access">Root hozzáférés engedélyezése</string> <string name="enable_root_access">Root hozzáférés engedélyezése</string>
<string name="press_back_twice">A Vissza gombot kétszer kelljen megnyomni az alkalmazásból történő kilépéshez</string> <string name="press_back_twice">A Vissza gombot kétszer kelljen megnyomni az alkalmazásból történő kilépéshez</string>
@@ -57,4 +61,4 @@
Haven't found some strings? There's more at Haven't found some strings? There's more at
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
--> -->
</resources> </resources>

View File

@@ -50,6 +50,10 @@
<string name="others">Lainnya</string> <string name="others">Lainnya</string>
<string name="storage_free">free</string> <string name="storage_free">free</string>
<string name="total_storage">Total penyimpanan: %s</string> <string name="total_storage">Total penyimpanan: %s</string>
<!-- Password protected files -->
<string name="enter_password">Enter password</string>
<string name="password">Password</string>
<string name="empty_password">Please enter the password</string>
<!-- Settings --> <!-- Settings -->
<string name="enable_root_access">Aktifkan akses root</string> <string name="enable_root_access">Aktifkan akses root</string>
<string name="press_back_twice">Wajib tekan tombol kembali dua kali untuk keluar aplikasi</string> <string name="press_back_twice">Wajib tekan tombol kembali dua kali untuk keluar aplikasi</string>
@@ -57,4 +61,4 @@
Haven't found some strings? There's more at Haven't found some strings? There's more at
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
--> -->
</resources> </resources>

View File

@@ -50,6 +50,10 @@
<string name="others">Annað</string> <string name="others">Annað</string>
<string name="storage_free">laust</string> <string name="storage_free">laust</string>
<string name="total_storage">Samtals geymslupláss: %s</string> <string name="total_storage">Samtals geymslupláss: %s</string>
<!-- Password protected files -->
<string name="enter_password">Enter password</string>
<string name="password">Password</string>
<string name="empty_password">Please enter the password</string>
<!-- Settings --> <!-- Settings -->
<string name="enable_root_access">Virkja aðgang að rót</string> <string name="enable_root_access">Virkja aðgang að rót</string>
<string name="press_back_twice">Krefjast þess að ýta tvisvar á „til baka“ til að loka forriti</string> <string name="press_back_twice">Krefjast þess að ýta tvisvar á „til baka“ til að loka forriti</string>

View File

@@ -50,6 +50,10 @@
<string name="others">Altri</string> <string name="others">Altri</string>
<string name="storage_free">libero</string> <string name="storage_free">libero</string>
<string name="total_storage">Memoria totale: %s</string> <string name="total_storage">Memoria totale: %s</string>
<!-- Password protected files -->
<string name="enter_password">Enter password</string>
<string name="password">Password</string>
<string name="empty_password">Please enter the password</string>
<!-- Settings --> <!-- Settings -->
<string name="enable_root_access">Abilita accesso root</string> <string name="enable_root_access">Abilita accesso root</string>
<string name="press_back_twice">Richiedi di premere Indietro due volte per uscire dall\'app</string> <string name="press_back_twice">Richiedi di premere Indietro due volte per uscire dall\'app</string>
@@ -57,4 +61,4 @@
Haven't found some strings? There's more at Haven't found some strings? There's more at
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
--> -->
</resources> </resources>

View File

@@ -50,6 +50,10 @@
<string name="others">אחרים</string> <string name="others">אחרים</string>
<string name="storage_free">חינם</string> <string name="storage_free">חינם</string>
<string name="total_storage">שטח אחסון כולל: %s</string> <string name="total_storage">שטח אחסון כולל: %s</string>
<!-- Password protected files -->
<string name="enter_password">Enter password</string>
<string name="password">Password</string>
<string name="empty_password">Please enter the password</string>
<!-- Settings --> <!-- Settings -->
<string name="enable_root_access">אפשר גישת שורש</string> <string name="enable_root_access">אפשר גישת שורש</string>
<string name="press_back_twice">דרוש לחיצה על חזרה פעמיים כדי לצאת מהאפליקציה דרוש לחיצה על חזרה פעמיים כדי לצאת מהאפליקציה</string> <string name="press_back_twice">דרוש לחיצה על חזרה פעמיים כדי לצאת מהאפליקציה דרוש לחיצה על חזרה פעמיים כדי לצאת מהאפליקציה</string>

View File

@@ -50,6 +50,10 @@
<string name="others">その他</string> <string name="others">その他</string>
<string name="storage_free">空き</string> <string name="storage_free">空き</string>
<string name="total_storage">合計ストレージ: %s</string> <string name="total_storage">合計ストレージ: %s</string>
<!-- Password protected files -->
<string name="enter_password">Enter password</string>
<string name="password">Password</string>
<string name="empty_password">Please enter the password</string>
<!-- Settings --> <!-- Settings -->
<string name="enable_root_access">ルートアクセスを有効にする</string> <string name="enable_root_access">ルートアクセスを有効にする</string>
<string name="press_back_twice">戻るボタンを2回押してアプリを閉じる</string> <string name="press_back_twice">戻るボタンを2回押してアプリを閉じる</string>
@@ -57,4 +61,4 @@
Haven't found some strings? There's more at Haven't found some strings? There's more at
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
--> -->
</resources> </resources>

View File

@@ -55,6 +55,10 @@
<string name="others">Others</string> <string name="others">Others</string>
<string name="storage_free">free</string> <string name="storage_free">free</string>
<string name="total_storage">Total storage: %s</string> <string name="total_storage">Total storage: %s</string>
<!-- Password protected files -->
<string name="enter_password">Enter password</string>
<string name="password">Password</string>
<string name="empty_password">Please enter the password</string>
<!-- Settings --> <!-- Settings -->
<string name="enable_root_access">루트 접근 활성화</string> <string name="enable_root_access">루트 접근 활성화</string>

View File

@@ -50,6 +50,10 @@
<string name="others">Kiti</string> <string name="others">Kiti</string>
<string name="storage_free">laisva</string> <string name="storage_free">laisva</string>
<string name="total_storage">Total storage: %s</string> <string name="total_storage">Total storage: %s</string>
<!-- Password protected files -->
<string name="enter_password">Enter password</string>
<string name="password">Password</string>
<string name="empty_password">Please enter the password</string>
<!-- Settings --> <!-- Settings -->
<string name="enable_root_access">Enable root access</string> <string name="enable_root_access">Enable root access</string>
<string name="press_back_twice">Require pressing Back twice to leave the app</string> <string name="press_back_twice">Require pressing Back twice to leave the app</string>

View File

@@ -50,6 +50,10 @@
<string name="others">Others</string> <string name="others">Others</string>
<string name="storage_free">ledig</string> <string name="storage_free">ledig</string>
<string name="total_storage">Total lagring: %s</string> <string name="total_storage">Total lagring: %s</string>
<!-- Password protected files -->
<string name="enter_password">Enter password</string>
<string name="password">Password</string>
<string name="empty_password">Please enter the password</string>
<!-- Settings --> <!-- Settings -->
<string name="enable_root_access">Aktiver root-tilgang</string> <string name="enable_root_access">Aktiver root-tilgang</string>
<string name="press_back_twice">Require pressing Back twice to leave the app</string> <string name="press_back_twice">Require pressing Back twice to leave the app</string>

View File

@@ -50,6 +50,10 @@
<string name="others">Overig</string> <string name="others">Overig</string>
<string name="storage_free">vrij</string> <string name="storage_free">vrij</string>
<string name="total_storage">Totale opslag: %s</string> <string name="total_storage">Totale opslag: %s</string>
<!-- Password protected files -->
<string name="enter_password">Enter password</string>
<string name="password">Password</string>
<string name="empty_password">Please enter the password</string>
<!-- Settings --> <!-- Settings -->
<string name="enable_root_access">Root-toegang inschakelen</string> <string name="enable_root_access">Root-toegang inschakelen</string>
<string name="press_back_twice">Twee keer op de terugknop drukken om af te sluiten</string> <string name="press_back_twice">Twee keer op de terugknop drukken om af te sluiten</string>
@@ -57,4 +61,4 @@
Haven't found some strings? There's more at Haven't found some strings? There's more at
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
--> -->
</resources> </resources>

View File

@@ -50,7 +50,11 @@
<string name="others">ہور</string> <string name="others">ہور</string>
<string name="storage_free">اُپلبدھ</string> <string name="storage_free">اُپلبدھ</string>
<string name="total_storage">‫ساری سٹوریج:؜ %s</string> <string name="total_storage">‫ساری سٹوریج:؜ %s</string>
<!-- Password protected files -->
<string name="enter_password">Enter password</string>
<string name="password">Password</string>
<string name="empty_password">Please enter the password</string>
<!-- Settings --> <!-- Settings -->
<string name="enable_root_access">روٹ دی پہنچ چالو کرو</string> <string name="enable_root_access">روٹ دی پہنچ چالو کرو</string>
<string name="press_back_twice">بند کرن لئی دو وار پچھلے دباؤݨ دی لوڑ اے</string> <string name="press_back_twice">بند کرن لئی دو وار پچھلے دباؤݨ دی لوڑ اے</string>
</resources> </resources>

View File

@@ -50,6 +50,10 @@
<string name="others">Inne</string> <string name="others">Inne</string>
<string name="storage_free">wolne</string> <string name="storage_free">wolne</string>
<string name="total_storage">Całkowita pamięć: %s</string> <string name="total_storage">Całkowita pamięć: %s</string>
<!-- Password protected files -->
<string name="enter_password">Enter password</string>
<string name="password">Password</string>
<string name="empty_password">Please enter the password</string>
<!-- Settings --> <!-- Settings -->
<string name="enable_root_access">Włącz dostęp do roota</string> <string name="enable_root_access">Włącz dostęp do roota</string>
<string name="press_back_twice">Wymagaj dwukrotnego naciśnięcia przycisku Wstecz, aby wyjść z aplikacji</string> <string name="press_back_twice">Wymagaj dwukrotnego naciśnięcia przycisku Wstecz, aby wyjść z aplikacji</string>

View File

@@ -55,6 +55,10 @@
<string name="others">Outros</string> <string name="others">Outros</string>
<string name="storage_free">Livre</string> <string name="storage_free">Livre</string>
<string name="total_storage">Armazenamento total: %s</string> <string name="total_storage">Armazenamento total: %s</string>
<!-- Password protected files -->
<string name="enter_password">Enter password</string>
<string name="password">Password</string>
<string name="empty_password">Please enter the password</string>
<!-- Settings --> <!-- Settings -->
<string name="enable_root_access">Ativar o acesso ao root</string> <string name="enable_root_access">Ativar o acesso ao root</string>

View File

@@ -50,6 +50,10 @@
<string name="others">Outros</string> <string name="others">Outros</string>
<string name="storage_free">livre</string> <string name="storage_free">livre</string>
<string name="total_storage">Armazenamento total: %s</string> <string name="total_storage">Armazenamento total: %s</string>
<!-- Password protected files -->
<string name="enter_password">Enter password</string>
<string name="password">Password</string>
<string name="empty_password">Please enter the password</string>
<!-- Settings --> <!-- Settings -->
<string name="enable_root_access">Conceder acesso root</string> <string name="enable_root_access">Conceder acesso root</string>
<string name="press_back_twice">Premir duas vezes a tecla Back para sair da aplicação</string> <string name="press_back_twice">Premir duas vezes a tecla Back para sair da aplicação</string>
@@ -57,4 +61,4 @@
Não encontrou todas as cadeias a traduzir? Existem mais algumas em Não encontrou todas as cadeias a traduzir? Existem mais algumas em
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
--> -->
</resources> </resources>

View File

@@ -50,6 +50,10 @@
<string name="others">Altele</string> <string name="others">Altele</string>
<string name="storage_free">liber</string> <string name="storage_free">liber</string>
<string name="total_storage">Spaţiu de stocare total: %s</string> <string name="total_storage">Spaţiu de stocare total: %s</string>
<!-- Password protected files -->
<string name="enter_password">Enter password</string>
<string name="password">Password</string>
<string name="empty_password">Please enter the password</string>
<!-- Settings --> <!-- Settings -->
<string name="enable_root_access">Activați accesul root</string> <string name="enable_root_access">Activați accesul root</string>
<string name="press_back_twice">Trebuie să apăsați de două ori butonul Înapoi pentru a părăsi aplicația</string> <string name="press_back_twice">Trebuie să apăsați de două ori butonul Înapoi pentru a părăsi aplicația</string>
@@ -57,4 +61,4 @@
Haven't found some strings? There's more at Haven't found some strings? There's more at
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
--> -->
</resources> </resources>

View File

@@ -50,6 +50,10 @@
<string name="others">Другое</string> <string name="others">Другое</string>
<string name="storage_free">свободно</string> <string name="storage_free">свободно</string>
<string name="total_storage">Полный объём: %s</string> <string name="total_storage">Полный объём: %s</string>
<!-- Password protected files -->
<string name="enter_password">Enter password</string>
<string name="password">Password</string>
<string name="empty_password">Please enter the password</string>
<!-- Settings --> <!-- Settings -->
<string name="enable_root_access">Включить root-доступ</string> <string name="enable_root_access">Включить root-доступ</string>
<string name="press_back_twice">Двойное нажатие кнопки «Назад» для выхода из приложения</string> <string name="press_back_twice">Двойное нажатие кнопки «Назад» для выхода из приложения</string>
@@ -57,4 +61,4 @@
Haven't found some strings? There's more at Haven't found some strings? There's more at
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
--> -->
</resources> </resources>

View File

@@ -55,6 +55,10 @@
<string name="others">Iné</string> <string name="others">Iné</string>
<string name="storage_free">využitých</string> <string name="storage_free">využitých</string>
<string name="total_storage">Úložisko celkom: %s</string> <string name="total_storage">Úložisko celkom: %s</string>
<!-- Password protected files -->
<string name="enter_password">Enter password</string>
<string name="password">Password</string>
<string name="empty_password">Please enter the password</string>
<!-- Settings --> <!-- Settings -->
<string name="enable_root_access">Povoliť prístup ku koreňovým súborom</string> <string name="enable_root_access">Povoliť prístup ku koreňovým súborom</string>

View File

@@ -50,7 +50,11 @@
<string name="others">Ostali</string> <string name="others">Ostali</string>
<string name="storage_free">prosto</string> <string name="storage_free">prosto</string>
<string name="total_storage">Skupno prostora za shranjevanje: %s</string> <string name="total_storage">Skupno prostora za shranjevanje: %s</string>
<!-- Password protected files -->
<string name="enter_password">Enter password</string>
<string name="password">Password</string>
<string name="empty_password">Please enter the password</string>
<!-- Settings --> <!-- Settings -->
<string name="enable_root_access">Omogoči root (korenski) dostop</string> <string name="enable_root_access">Omogoči root (korenski) dostop</string>
<string name="press_back_twice">Dvakratni pritisk nazaj za izhod iz aplikacije</string> <string name="press_back_twice">Dvakratni pritisk nazaj za izhod iz aplikacije</string>
</resources> </resources>

View File

@@ -50,6 +50,10 @@
<string name="others">Други</string> <string name="others">Други</string>
<string name="storage_free">бесплатно</string> <string name="storage_free">бесплатно</string>
<string name="total_storage">Укупно складиште: %s</string> <string name="total_storage">Укупно складиште: %s</string>
<!-- Password protected files -->
<string name="enter_password">Enter password</string>
<string name="password">Password</string>
<string name="empty_password">Please enter the password</string>
<!-- Settings --> <!-- Settings -->
<string name="enable_root_access">Омогућите роот приступ</string> <string name="enable_root_access">Омогућите роот приступ</string>
<string name="press_back_twice">Захтевајте да двапут притиснете Назад да бисте напустили апликацију</string> <string name="press_back_twice">Захтевајте да двапут притиснете Назад да бисте напустили апликацију</string>

View File

@@ -50,6 +50,10 @@
<string name="others">Annat</string> <string name="others">Annat</string>
<string name="storage_free">ledigt</string> <string name="storage_free">ledigt</string>
<string name="total_storage">Total lagring: %s</string> <string name="total_storage">Total lagring: %s</string>
<!-- Password protected files -->
<string name="enter_password">Enter password</string>
<string name="password">Password</string>
<string name="empty_password">Please enter the password</string>
<!-- Settings --> <!-- Settings -->
<string name="enable_root_access">Aktivera rotåtkomst</string> <string name="enable_root_access">Aktivera rotåtkomst</string>
<string name="press_back_twice">Krävs att trycka tillbaka två gånger för att lämna appen</string> <string name="press_back_twice">Krävs att trycka tillbaka två gånger för att lämna appen</string>
@@ -57,4 +61,4 @@
Haven't found some strings? There's more at Haven't found some strings? There's more at
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
--> -->
</resources> </resources>

View File

@@ -50,6 +50,10 @@
<string name="others">மற்றவை</string> <string name="others">மற்றவை</string>
<string name="storage_free">மீதம்</string> <string name="storage_free">மீதம்</string>
<string name="total_storage">மொத்த சேமிப்பிடம்: %s</string> <string name="total_storage">மொத்த சேமிப்பிடம்: %s</string>
<!-- Password protected files -->
<string name="enter_password">Enter password</string>
<string name="password">Password</string>
<string name="empty_password">Please enter the password</string>
<!-- Settings --> <!-- Settings -->
<string name="enable_root_access">ரூட் அணுகலை இயக்கு</string> <string name="enable_root_access">ரூட் அணுகலை இயக்கு</string>
<string name="press_back_twice">செயலியை வெளியேற இரண்டு முறை பின் அழுத்த கோரு</string> <string name="press_back_twice">செயலியை வெளியேற இரண்டு முறை பின் அழுத்த கோரு</string>

View File

@@ -55,6 +55,10 @@
<string name="others">Others</string> <string name="others">Others</string>
<string name="storage_free">free</string> <string name="storage_free">free</string>
<string name="total_storage">Total storage: %s</string> <string name="total_storage">Total storage: %s</string>
<!-- Password protected files -->
<string name="enter_password">Enter password</string>
<string name="password">Password</string>
<string name="empty_password">Please enter the password</string>
<!-- Settings --> <!-- Settings -->
<string name="enable_root_access">Enable root access</string> <string name="enable_root_access">Enable root access</string>

View File

@@ -50,6 +50,10 @@
<string name="others">Diğerleri</string> <string name="others">Diğerleri</string>
<string name="storage_free">boş</string> <string name="storage_free">boş</string>
<string name="total_storage">Toplam depolama: %s</string> <string name="total_storage">Toplam depolama: %s</string>
<!-- Password protected files -->
<string name="enter_password">Enter password</string>
<string name="password">Password</string>
<string name="empty_password">Please enter the password</string>
<!-- Settings --> <!-- Settings -->
<string name="enable_root_access">Root erişimini etkinleştir</string> <string name="enable_root_access">Root erişimini etkinleştir</string>
<string name="press_back_twice">Uygulamadan çıkmak için Geri tuşuna iki kez basmayı gerektir</string> <string name="press_back_twice">Uygulamadan çıkmak için Geri tuşuna iki kez basmayı gerektir</string>

View File

@@ -50,6 +50,10 @@
<string name="others">Інше</string> <string name="others">Інше</string>
<string name="storage_free">free</string> <string name="storage_free">free</string>
<string name="total_storage">Всього пам\'яті: %s</string> <string name="total_storage">Всього пам\'яті: %s</string>
<!-- Password protected files -->
<string name="enter_password">Enter password</string>
<string name="password">Password</string>
<string name="empty_password">Please enter the password</string>
<!-- Settings --> <!-- Settings -->
<string name="enable_root_access">Активувати root-доступ</string> <string name="enable_root_access">Активувати root-доступ</string>
<string name="press_back_twice">Натисніть Назад двічі, щоб вийти з додатка</string> <string name="press_back_twice">Натисніть Назад двічі, щоб вийти з додатка</string>

View File

@@ -50,6 +50,10 @@
<string name="others">其他</string> <string name="others">其他</string>
<string name="storage_free">空闲</string> <string name="storage_free">空闲</string>
<string name="total_storage">总存储: %s</string> <string name="total_storage">总存储: %s</string>
<!-- Password protected files -->
<string name="enter_password">Enter password</string>
<string name="password">Password</string>
<string name="empty_password">Please enter the password</string>
<!-- Settings --> <!-- Settings -->
<string name="enable_root_access">启用 root 访问</string> <string name="enable_root_access">启用 root 访问</string>
<string name="press_back_twice">需要按两次返回键才能离开应用程序</string> <string name="press_back_twice">需要按两次返回键才能离开应用程序</string>
@@ -57,4 +61,4 @@
Haven't found some strings? There's more at Haven't found some strings? There's more at
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
--> -->
</resources> </resources>

View File

@@ -50,6 +50,10 @@
<string name="others">其他</string> <string name="others">其他</string>
<string name="storage_free">free</string> <string name="storage_free">free</string>
<string name="total_storage">總儲存空間:%s</string> <string name="total_storage">總儲存空間:%s</string>
<!-- Password protected files -->
<string name="enter_password">Enter password</string>
<string name="password">Password</string>
<string name="empty_password">Please enter the password</string>
<!-- Settings --> <!-- Settings -->
<string name="enable_root_access">啟用root權限</string> <string name="enable_root_access">啟用root權限</string>
<string name="press_back_twice">需按兩次返回鍵才能離開 app</string> <string name="press_back_twice">需按兩次返回鍵才能離開 app</string>

View File

@@ -56,6 +56,11 @@
<string name="storage_free">free</string> <string name="storage_free">free</string>
<string name="total_storage">Total storage: %s</string> <string name="total_storage">Total storage: %s</string>
<!-- Password protected files -->
<string name="enter_password">Enter password</string>
<string name="password">Password</string>
<string name="empty_password">Please enter the password</string>
<!-- Settings --> <!-- Settings -->
<string name="enable_root_access">Enable root access</string> <string name="enable_root_access">Enable root access</string>
<string name="press_back_twice">Require pressing Back twice to leave the app</string> <string name="press_back_twice">Require pressing Back twice to leave the app</string>