Remove some public fields and methods
This commit is contained in:
parent
e34192573d
commit
d0c8fecfd3
@ -107,7 +107,7 @@ public class Hasher {
|
|||||||
return hex(encoded);
|
return hex(encoded);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String hex(byte[] sig) {
|
private static String hex(byte[] sig) {
|
||||||
byte[] csig = new byte[sig.length * 2];
|
byte[] csig = new byte[sig.length * 2];
|
||||||
for (int j = 0; j < sig.length; j++) {
|
for (int j = 0; j < sig.length; j++) {
|
||||||
byte v = sig[j];
|
byte v = sig[j];
|
||||||
|
@ -102,9 +102,6 @@ public class App extends ValueObject implements Comparable<App> {
|
|||||||
|
|
||||||
public String installedSig;
|
public String installedSig;
|
||||||
|
|
||||||
public boolean system;
|
|
||||||
public boolean updatedSystemApp;
|
|
||||||
|
|
||||||
public boolean uninstallable;
|
public boolean uninstallable;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -345,9 +342,9 @@ public class App extends ValueObject implements Comparable<App> {
|
|||||||
apk.sig = Utils.hashBytes(fdroidSig, "md5");
|
apk.sig = Utils.hashBytes(fdroidSig, "md5");
|
||||||
|
|
||||||
this.installedApk = apk;
|
this.installedApk = apk;
|
||||||
this.system = (appInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0;
|
boolean system = (appInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0;
|
||||||
this.updatedSystemApp = (appInfo.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0;
|
boolean updatedSystemApp = (appInfo.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0;
|
||||||
this.uninstallable = !this.system || this.updatedSystemApp;
|
this.uninstallable = !system || updatedSystemApp;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isValid() {
|
public boolean isValid() {
|
||||||
|
@ -17,7 +17,7 @@ public class DBHelper extends SQLiteOpenHelper {
|
|||||||
|
|
||||||
private static final String TAG = "DBHelper";
|
private static final String TAG = "DBHelper";
|
||||||
|
|
||||||
public static final String DATABASE_NAME = "fdroid";
|
private static final String DATABASE_NAME = "fdroid";
|
||||||
|
|
||||||
public static final String TABLE_REPO = "fdroid_repo";
|
public static final String TABLE_REPO = "fdroid_repo";
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ import android.net.Uri;
|
|||||||
|
|
||||||
public class AppDiff {
|
public class AppDiff {
|
||||||
|
|
||||||
public final PackageManager mPm;
|
private final PackageManager mPm;
|
||||||
public final PackageInfo mPkgInfo;
|
public final PackageInfo mPkgInfo;
|
||||||
|
|
||||||
public ApplicationInfo mInstalledAppInfo;
|
public ApplicationInfo mInstalledAppInfo;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user