The final group project for 3A04. Designing a prototype for a secure chat application utilizing a Key distribution center, symmetric key encryptions, and a mediated authentication protocol.
- Home: https://www.flaticon.com/free-icons/menu. Icon created by Fengquanli - Flaticon
- Messages:https://www.flaticon.com/free-icons/message. Message icon created by Freepik - Flaticon
- Calls: https://www.flaticon.com/free-icons/android. Call icon created by Afdalul Zikri - Flaticon
- Account: https://www.flaticon.com/free-icons/user. User account icon created by Freepik - Flaticon
- Survey: https://www.flaticon.com/free-icons/questionnaire. Survey icon created by IYIKON - Flaticon
-
Ensure that Java JDK version 8 or higher is installed. run
java -versionand see that it is "1.8.____" -
Ensure Gradle is installed and on the PATH. Check by running
gradle -v. Can install from https://gradle.org/install/ -
Use gitbash or equivalent and go to the folder for this application (SecureChatApplication)
-
Run
gradle wrapperin the main folder of SecureChatApplication -
Run
./gradlew build -
Run
cd server/bin/main -
Run
java com/example/server/KDC -
Open up another gitbash and repeat previous step 6
-
Run
java com/example/server/AccountManagementon the new gitbash -
Install
cmdline-toolsfrom Android Studio tools package and extract the zip anywhere. Can also locate an existing version of it (Commonly found inProgram Files (x86)/Android/android-sdk) -
launching gitbash as admin and locate the
cmdline-toolsfolder. -
Run
./sdkmanager platform-tools emulatoror./sdkmanager.bat platform-tools emulator -
Create Environment Variables
ANDROID_SDK_ROOT=Path of thecmdline-toolsfolder. Same withANDROID_HOME -
Add
emulatordirectory,platform-toolsdirectory, andcmdline-tools/{version num}/binto PATH and restart gitbash in admin mode -
Run
./sdkmanager platforms;android-34incmdline-toolsfolder -
Run
./sdkmanager build-tools;34.0.0 -
Run
./sdkmanager system-images;android-34;google_apis;x86_64 -
Run
avdmanager create avd --name android34 --package "system-images;android-34;google_apis;x86_64"and use default settings -
Run
emulator -avd android34 -
Navigate to where the apk file is stored (Default is SecureChatApplication/app/release), copy it over to
cmdline-tools, navigate over there and runabd install app-release.apk
-
Ensure that Java JDK version 8 or higher is installed. run
java -versionand see that it is "1.8.____" -
Ensure Gradle is installed and on the PATH. Check by running
gradle -v. Can install from https://gradle.org/install/ -
Use gitbash or equivalent and go to the folder for this application (SecureChatApplication)
-
Run
gradle wrapperin the main folder of SecureChatApplication -
Run
./gradlew build -
Run
cd server/bin/main -
Run
java com/example/server/KDC -
Open up another gitbash and repeat previous step 6
-
Run
java com/example/server/AccountManagementon the new gitbash -
Open the project in Android Studio, create an emulator in device manager, run module SecureChatApplication.app.main
All of the above references: https://medium.com/@yohan.ardiansyah90/how-to-run-android-emulator-for-development-without-android-studio-f0e73682af3a