Skip to content
This repository has been archived by the owner on Nov 18, 2021. It is now read-only.

Solution in Android 12 #2

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .classpath

This file was deleted.

51 changes: 7 additions & 44 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,44 +1,7 @@
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.o.d
*.so

# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.rar
*.tar
*.zip

# Generated code #
##################
obj/*
libs/*
bin/*
gen/*

# Logs #
######################
*.log

# OS generated files #
######################
.DS_Store*
ehthumbs.db
Icon?
Thumbs.db

# Eclipse Artifacts #
#####################
.metadata/*

.gradle
/local.properties
/.idea/
*.iml
.DS_Store
/build
/captures
33 changes: 0 additions & 33 deletions .project

This file was deleted.

17 changes: 0 additions & 17 deletions AndroidManifest.xml

This file was deleted.

190 changes: 0 additions & 190 deletions NOTICE

This file was deleted.

14 changes: 3 additions & 11 deletions README.asciidoc
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
= About This Project
= Storage Encryption

This Android Eclipse project demonstrates how [not] to protect data in an Android application.
This project was created to support https://www.protechtraining.com/android-security-pt15256[Protech Android Security Training] course

This code was developed to support Marakana's Android Training courses.

For more info, see http://marakana.com/training/android/

== Legal

Please see ++NOTICE++ file in this directory for copyright, license terms, and legal disclaimers.

Copyright © 2012 Marakana Inc.
This application is intended to demonstrate the use of Android cryptography to encrypt data in Android.
1 change: 1 addition & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
36 changes: 36 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'

android {
compileSdkVersion 31

defaultConfig {
applicationId "com.example.android.securenote"
minSdkVersion 23
targetSdkVersion 31
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}

buildFeatures {
viewBinding true
}

packagingOptions {
exclude 'META-INF/atomicfu.kotlin_module'
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.3.0'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.1-native-mt'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.1-native-mt'
implementation 'androidx.security:security-crypto:1.1.0-alpha03'
}
22 changes: 22 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.example.android.securenote">

<application
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/Theme.AppCompat"
android:allowBackup="true"
tools:ignore="GoogleAppIndexingWarning">
<activity
android:name=".SecureNoteActivity"
android:label="@string/app_name"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
Loading