Skip to content

Commit 773b850

Browse files
committed
DVAC 2024.5
1 parent 3c5c943 commit 773b850

25 files changed

+603
-31
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.

.gradle/8.4/fileHashes/fileHashes.bin

4.64 KB
Binary file not shown.
0 Bytes
Binary file not shown.
816 Bytes
Binary file not shown.
Binary file not shown.
1.92 KB
Binary file not shown.

.gradle/file-system.probe

0 Bytes
Binary file not shown.

.idea/deploymentTargetDropDown.xml

Lines changed: 14 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/workspace.xml

Lines changed: 29 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/main/AndroidManifest.xml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010

1111
<application
1212
android:allowBackup="true"
13-
android:icon="@drawable/dvac"
13+
android:icon="@drawable/dvac_round"
1414
android:label="@string/app_name"
15-
android:roundIcon="@drawable/dvac"
15+
android:roundIcon="@drawable/dvac_round"
1616
android:supportsRtl="true"
1717
android:networkSecurityConfig="@xml/network_security_config"
1818
android:usesCleartextTraffic="true"
@@ -38,6 +38,7 @@
3838
<category android:name="android.intent.category.LAUNCHER" />
3939
</intent-filter>
4040
</activity>
41+
<activity android:name=".VulnerabilitiesActivity" />
4142

4243
<activity android:name=".PasswordManagerActivity" android:exported="true">
4344
<intent-filter>
@@ -104,7 +105,5 @@
104105
<action android:name="com.zin.dvac.PASSWORD_EXPORT_ACTION" />
105106
</intent-filter>
106107
</service>
107-
108108
</application>
109-
110109
</manifest>

app/src/main/java/com/zin/dvac/AddPasswordActivity.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// src/main/java/com.zin.dvac/AddUserActivity.java
21
package com.zin.dvac;
32

43
import android.content.Intent;

app/src/main/java/com/zin/dvac/LoginActivity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ public void onClick(View v) {
5959
});
6060

6161
// Add the Forgot Password button and its click listener
62-
Button btnForgotPassword = findViewById(R.id.btnForgotPassword);
62+
/* Button btnForgotPassword = findViewById(R.id.btnForgotPassword);
6363
btnForgotPassword.setOnClickListener(new View.OnClickListener() {
6464
@Override
6565
public void onClick(View v) {
6666
showForgotPasswordDialog();
6767
}
68-
});
68+
});*/
6969
}
7070

7171
private boolean isFirstLaunch() {

app/src/main/java/com/zin/dvac/PasswordAdapter.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// src/main/java/com.zin.dvac/PasswordAdapter.java
21
package com.zin.dvac;
32

43
import android.view.LayoutInflater;

app/src/main/java/com/zin/dvac/PasswordExportService.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ public class PasswordExportService extends Service {
2020
// Messenger for communicating with clients
2121
private final Messenger messenger = new Messenger(new ExportHandler());
2222
private static final String TAG = "PasswordExportService";
23-
// private int NOTIFICATION = R.string.app_name;
24-
// private NotificationManager nManager;
2523
private Messenger responseHandler;
2624
private Messenger serviceHandler;
2725
private Looper serviceLooper;

app/src/main/java/com/zin/dvac/PasswordManagerActivity.java

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@
4343
import android.database.Cursor;
4444
import android.provider.ContactsContract;
4545

46-
import androidx.annotation.NonNull;
47-
import android.content.ComponentName;
48-
49-
5046
public class PasswordManagerActivity extends AppCompatActivity {
5147

5248
private static final int REQUEST_PERMISSIONS_CODE = 100;
@@ -89,6 +85,7 @@ protected void onCreate(Bundle savedInstanceState) {
8985
Button btnExport = findViewById(R.id.btnExport);
9086
Button btnImport = findViewById(R.id.btnImport);
9187
Button btnFetchXML = findViewById(R.id.btnFetchXml);
88+
Button btnVulnerabilities = findViewById(R.id.btnVulnerabilities);
9289

9390
copyRawResourceToDataDir(R.raw.secret, SECRET_FILE_NAME);
9491
Button btnChangePassword = findViewById(R.id.btnChangePassword); // Added button
@@ -111,6 +108,16 @@ protected void onCreate(Bundle savedInstanceState) {
111108
// Create a notification on activity creation
112109
createAddPasswordNotification();
113110

111+
// Vulnerabilities list butotn
112+
btnVulnerabilities.setOnClickListener(new View.OnClickListener() {
113+
@Override
114+
public void onClick(View v) {
115+
// Open VulnerabilitiesActivity
116+
Intent intent = new Intent(PasswordManagerActivity.this, VulnerabilitiesActivity.class);
117+
startActivity(intent);
118+
}
119+
});
120+
114121
btnAddPassword.setOnClickListener(new View.OnClickListener() {
115122
@Override
116123
public void onClick(View v) {

app/src/main/java/com/zin/dvac/PasswordProvider.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
import android.database.sqlite.SQLiteOpenHelper;
99
import android.net.Uri;
1010
import android.os.ParcelFileDescriptor;
11-
import android.text.TextUtils;
12-
import android.util.Log;
1311
import java.io.File;
1412

1513
import androidx.annotation.NonNull;
@@ -58,7 +56,7 @@ public String getType(@NonNull Uri uri) {
5856
return null;
5957
}
6058

61-
/*@Override // android.content.ContentProvider
59+
@Override // android.content.ContentProvider
6260
public ParcelFileDescriptor openFile(Uri uri, String mode) {
6361
int modeCode;
6462
if (mode.equals("r")) {
@@ -77,7 +75,7 @@ public ParcelFileDescriptor openFile(Uri uri, String mode) {
7775
//Log.e(TAG, "ERROR: unable to open file: " + e.getMessage());
7876
return null;
7977
}
80-
}*/
78+
}
8179

8280
@Nullable
8381
@Override

app/src/main/java/com/zin/dvac/PasswordSocketService.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,8 @@
44
import android.content.Intent;
55
import android.os.IBinder;
66
import android.util.Log;
7-
import java.io.BufferedReader;
87
import java.io.IOException;
9-
import java.io.InputStreamReader;
108
import java.io.OutputStream;
11-
import java.io.PrintWriter;
129
import java.net.ServerSocket;
1310
import java.net.Socket;
1411

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package com.zin.dvac;
2+
3+
import android.os.Bundle;
4+
import androidx.appcompat.app.AppCompatActivity;
5+
6+
public class VulnerabilitiesActivity extends AppCompatActivity{
7+
@Override
8+
protected void onCreate(Bundle savedInstanceState) {
9+
super.onCreate(savedInstanceState);
10+
setContentView(R.layout.activity_vulnerabilities);
11+
}
12+
}

app/src/main/java/com/zin/dvac/XMLExporter.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
package com.zin.dvac;// src/main/java/com.zin.dvac/XMLExporter.java
2-
import android.util.Xml;
3-
4-
import com.zin.dvac.DatabaseHelper;
1+
package com.zin.dvac;
52

3+
import android.util.Xml;
64
import org.xmlpull.v1.XmlSerializer;
75
import java.io.IOException;
86
import java.io.OutputStream;

app/src/main/res/layout/activity_login.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@
3434
android:layout_marginTop="16dp"
3535
android:text="@string/login" />
3636

37-
<Button
37+
<!-- <Button
3838
android:id="@+id/btnForgotPassword"
3939
android:layout_width="wrap_content"
4040
android:layout_height="wrap_content"
4141
android:layout_below="@id/btnLogin"
4242
android:layout_centerHorizontal="true"
4343
android:layout_marginTop="16dp"
44-
android:text="@string/forgot_password" />
44+
android:text="@string/forgot_password" />-->
4545
</RelativeLayout>

app/src/main/res/layout/activity_password_manager.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@
5656
android:layout_margin="10dp"
5757
android:text="@string/fetch_xml_format" />
5858

59+
<Button
60+
android:id="@+id/btnVulnerabilities"
61+
android:layout_width="0dp"
62+
android:layout_height="wrap_content"
63+
android:layout_columnWeight="1"
64+
android:layout_margin="10dp"
65+
android:text="@string/vulnerabilities" />
66+
5967
</GridLayout>
6068

6169
<androidx.recyclerview.widget.RecyclerView

0 commit comments

Comments
 (0)