mirror of
https://github.com/MaintainTeam/Hypatia.git
synced 2025-03-01 05:48:23 +03:00
ZipAlign and add more paths
This commit is contained in:
parent
1c8667dbdd
commit
39d8455602
2 changed files with 5 additions and 3 deletions
|
@ -6,13 +6,14 @@ android {
|
|||
applicationId "us.spotco.malwarescanner"
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 26
|
||||
versionCode 12
|
||||
versionCode 13
|
||||
versionName "1.6"
|
||||
}
|
||||
buildTypes {
|
||||
debug {
|
||||
minifyEnabled true
|
||||
useProguard false
|
||||
zipAlignEnabled true
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
|
||||
}
|
||||
|
@ -20,6 +21,7 @@ android {
|
|||
shrinkResources true
|
||||
minifyEnabled true
|
||||
useProguard true
|
||||
zipAlignEnabled true
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
package us.spotco.malwarescanner;
|
||||
|
||||
import android.app.Notification;
|
||||
import android.app.NotificationManager;
|
||||
import android.app.Service;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.os.Environment;
|
||||
import android.os.FileObserver;
|
||||
|
@ -28,8 +26,10 @@ public class MalwareScannerService extends Service {
|
|||
public final int onStartCommand(Intent intent, int flags, int startId) {
|
||||
malwareMonitors = new ArrayList<>();
|
||||
malwareMonitors.add(new MalwareMonitor(Environment.getExternalStorageDirectory().toString()));
|
||||
malwareMonitors.add(new MalwareMonitor(Environment.getExternalStorageDirectory() + "/Conversations"));
|
||||
malwareMonitors.add(new MalwareMonitor(Environment.getExternalStorageDirectory() + "/Documents"));
|
||||
malwareMonitors.add(new MalwareMonitor(Environment.getExternalStorageDirectory() + "/Download"));
|
||||
malwareMonitors.add(new MalwareMonitor(Environment.getExternalStorageDirectory() + "/Pictures"));
|
||||
|
||||
for (MalwareMonitor malwareMonitor : malwareMonitors) {
|
||||
malwareMonitor.startWatching();
|
||||
|
|
Loading…
Add table
Reference in a new issue