standardize priv-app install name as FDroidPrivilegedExtension

This syncs up the name the root install method uses with what is used by
the ROM integration and update.zip.  It also uses the full name for
consistency, with non-alpha and spaces removed following priv-app naming
conventions.

https://gitlab.com/fdroid/privileged-extension/merge_requests/3
https://gitlab.com/fdroid/privileged-extension/merge_requests/5
This commit is contained in:
Hans-Christoph Steiner 2016-08-12 11:28:36 +02:00 committed by Danial Behzadi
parent 9eaf601f61
commit bc19a72de5

View File

@ -41,7 +41,8 @@ abstract class InstallExtension {
final Context context; final Context context;
private static final String APK_FILE_NAME = "FDroidPrivileged.apk"; private static final String BASE_NAME = "FDroidPrivilegedExtension";
private static final String APK_FILE_NAME = BASE_NAME + ".apk";
InstallExtension(final Context context) { InstallExtension(final Context context) {
this.context = context; this.context = context;
@ -191,7 +192,7 @@ abstract class InstallExtension {
*/ */
@Override @Override
protected String getSystemFolder() { protected String getSystemFolder() {
return FDroidApp.SYSTEM_DIR_NAME + "/priv-app/FDroidPrivileged/"; return FDroidApp.SYSTEM_DIR_NAME + "/priv-app/" + BASE_NAME + "/";
} }
/** /**