-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
G-LocON fixed version for Security Hackathon
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
*.iml | ||
.gradle | ||
/local.properties | ||
/.idea/workspace.xml | ||
/.idea/libraries | ||
.DS_Store | ||
/build | ||
/captures | ||
.externalNativeBuild |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
apply plugin: 'com.android.application' | ||
|
||
android { | ||
compileSdkVersion 32 | ||
defaultConfig { | ||
applicationId "com.example.pc.ictf2018" | ||
minSdkVersion 23 | ||
targetSdkVersion 32 | ||
versionCode 1 | ||
versionName "1.0" | ||
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner' | ||
} | ||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
namespace 'com.example.pc.main' | ||
} | ||
|
||
dependencies { | ||
implementation 'com.google.android.gms:play-services-maps:11.0.2' | ||
implementation 'com.google.android.gms:play-services-location:11.0.2' | ||
implementation fileTree(dir: 'libs', include: ['*.jar']) | ||
implementation 'androidx.appcompat:appcompat:1.0.0' | ||
implementation 'androidx.constraintlayout:constraintlayout:1.1.3' | ||
testImplementation 'junit:junit:4.12' | ||
androidTestImplementation 'androidx.test.ext:junit:1.1.1' | ||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0' | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Add project specific ProGuard rules here. | ||
# You can control the set of applied configuration files using the | ||
# proguardFiles setting in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# If your project uses WebView with JS, uncomment the following | ||
# and specify the fully qualified class name to the JavaScript interface | ||
# class: | ||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
# public *; | ||
#} | ||
|
||
# Uncomment this to preserve the line number information for | ||
# debugging stack traces. | ||
#-keepattributes SourceFile,LineNumberTable | ||
|
||
# If you keep the line number information, uncomment this to | ||
# hide the original source file name. | ||
#-renamesourcefileattribute SourceFile |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> | ||
|
||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> | ||
<!-- GPS-based --> | ||
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> | ||
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> | ||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> | ||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | ||
|
||
<application | ||
android:name="com.example.pc.main.UtilCommon" | ||
android:allowBackup="true" | ||
android:icon="@mipmap/ic_launcher" | ||
android:label="@string/app_name" | ||
android:roundIcon="@mipmap/ic_launcher_round" | ||
android:supportsRtl="true" | ||
android:theme="@style/AppTheme" > | ||
|
||
<meta-data | ||
android:name="com.google.android.maps.v2.API_KEY" | ||
android:value="AIzaSyCh7_240AWrDsdSgosII7ZZqLhs-Z-1Cs0" /> | ||
|
||
<activity android:name="com.example.pc.main.MainActivity" | ||
android:exported="true"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
|
||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
|
||
<uses-library android:name="org.apache.http.legacy" android:required="false"/> | ||
</application> | ||
</manifest> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.example.pc.P2P; | ||
|
||
/* | ||
* Created by pc on 2018/06/09. | ||
* Processing division of P2P communication | ||
*/ | ||
|
||
public enum EP2PProcess { | ||
NATRegisterDstUsers, // Register peripheral user information received from signaling servers to NAT | ||
NATRegisterSrcUser, // Register information on users who have searched for confidence in the NAT | ||
SendLocation, // Send data to peripheral users | ||
// Transmit ACK for data received | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.example.pc.P2P; | ||
|
||
/* | ||
* Created by pc on 2018/06/09. | ||
* Processing division of data to be sent to signaling server | ||
*/ | ||
|
||
public enum ESignalingProcess { | ||
REGISTER, | ||
UPDATE, | ||
SEARCH, | ||
DELETE | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.example.pc.P2P; | ||
|
||
import com.example.pc.main.UserInfo; | ||
|
||
import java.util.ArrayList; | ||
|
||
/* | ||
* Created by pc on 2018/06/09. | ||
* This interface is implemented in MainActivity and used in P2P | ||
*/ | ||
|
||
public interface IP2P { | ||
void onGetDetailUserInfo(UserInfo receiveUserInfo,ArrayList<UserInfo> userInfos); // When data is sent from a peripheral user | ||
void onGetPeripheralUsersInfo(ArrayList<UserInfo> userInfos);// When peripheral user information is acquired from a signaling server | ||
} |