김가영

meeting report and source update

......@@ -6,7 +6,6 @@
</shared>
</component>
<component name="AndroidLogFilters">
<option name="TOOL_WINDOW_CUSTOM_FILTER" value="MYLOG" />
<option name="TOOL_WINDOW_LOG_LEVEL" value="info" />
<option name="TOOL_WINDOW_CONFIGURED_FILTER" value="Show only selected application" />
</component>
......@@ -54,69 +53,34 @@
<component name="FileEditorManager">
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/build.gradle">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="513">
<caret line="27" column="60" selection-start-line="27" selection-start-column="60" selection-end-line="27" selection-end-column="60" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/main/AndroidManifest.xml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="76">
<caret line="4" lean-forward="true" selection-start-line="4" selection-end-line="4" />
</state>
</provider>
<provider editor-type-id="android-manifest" />
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/main/java/com/example/dataextraction/SMSDataBase.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="76">
<caret line="4" column="13" selection-start-line="4" selection-start-column="13" selection-end-line="4" selection-end-column="13" />
<state relative-caret-position="397">
<caret line="29" column="51" lean-forward="true" selection-start-line="29" selection-start-column="51" selection-end-line="29" selection-end-column="51" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/main/java/com/example/dataextraction/networkDBHelper.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="76">
<caret line="10" column="13" selection-start-line="10" selection-start-column="13" selection-end-line="10" selection-end-column="13" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/main/java/com/example/dataextraction/MainActivity.java">
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/src/main/java/com/example/dataextraction/LoadingActivity.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="239">
<caret line="19" lean-forward="true" selection-start-line="19" selection-end-line="19" />
<state relative-caret-position="16">
<caret line="234" lean-forward="true" selection-start-line="234" selection-end-line="234" />
<folding>
<element signature="imports" expanded="true" />
<element signature="e#10779#11051#0" expanded="true" />
<element signature="e#11050#11051#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/src/main/res/layout/activity_loading.xml">
<provider editor-type-id="android-designer2" />
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="266">
<caret line="14" column="44" lean-forward="true" selection-start-line="14" selection-start-column="44" selection-end-line="14" selection-end-column="44" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/main/java/com/example/dataextraction/LoadingActivity.java">
<entry file="file://$PROJECT_DIR$/src/main/java/com/example/dataextraction/MainActivity.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-763">
<caret line="270" selection-start-line="270" selection-end-line="270" />
<state relative-caret-position="380">
<caret line="20" selection-start-line="20" selection-end-line="20" />
<folding>
<element signature="imports" expanded="true" />
</folding>
......@@ -125,10 +89,11 @@
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$USER_HOME$/AppData/Local/Android/Sdk/sources/android-28/java/io/BufferedReader.java">
<entry file="file://$PROJECT_DIR$/src/main/res/layout/activity_loading.xml">
<provider editor-type-id="android-designer2" />
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="127">
<caret line="399" selection-start-line="399" selection-end-line="399" />
<state relative-caret-position="475">
<caret line="25" selection-start-line="25" selection-end-line="25" />
</state>
</provider>
</entry>
......@@ -147,9 +112,10 @@
<find>tag</find>
<find>alert</find>
<find>startLoading</find>
<find>getPhoto</find>
<find>sdca</find>
<find>/mnt/sdcard</find>
<find>getPhoto</find>
<find>finish</find>
</findStrings>
</component>
<component name="Git.Settings">
......@@ -161,8 +127,8 @@
<option value="$PROJECT_DIR$/src/main/res/xml/network_security_config.xml" />
<option value="$PROJECT_DIR$/src/main/res/layout/activity_main.xml" />
<option value="$PROJECT_DIR$/build.gradle" />
<option value="$PROJECT_DIR$/src/main/java/com/example/dataextraction/MainActivity.java" />
<option value="$PROJECT_DIR$/src/main/AndroidManifest.xml" />
<option value="$PROJECT_DIR$/src/main/java/com/example/dataextraction/MainActivity.java" />
<option value="$PROJECT_DIR$/src/main/res/layout/activity_loading.xml" />
<option value="$PROJECT_DIR$/src/main/java/com/example/dataextraction/LoadingActivity.java" />
</list>
......@@ -240,9 +206,9 @@
</option>
</component>
<component name="ProjectFrameBounds" extendedState="6">
<option name="x" value="952" />
<option name="width" value="977" />
<option name="height" value="1038" />
<option name="x" value="705" />
<option name="width" value="1225" />
<option name="height" value="1049" />
</component>
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
<component name="ProjectView">
......@@ -250,20 +216,57 @@
<foldersAlwaysOnTop value="true" />
</navigator>
<panes>
<pane id="PackagesPane" />
<pane id="ProjectPane" />
<pane id="Scope" />
<pane id="AndroidView">
<subPane>
<expand>
<path>
<item name="DataExtraction" type="1abcf292:AndroidViewProjectNode" />
<item name="app" type="feadf853:AndroidModuleNode" />
</path>
<path>
<item name="DataExtraction" type="1abcf292:AndroidViewProjectNode" />
<item name="app" type="feadf853:AndroidModuleNode" />
<item name="java" type="edd41e36:AndroidSourceTypeNode" />
</path>
<path>
<item name="DataExtraction" type="1abcf292:AndroidViewProjectNode" />
<item name="app" type="feadf853:AndroidModuleNode" />
<item name="java" type="edd41e36:AndroidSourceTypeNode" />
<item name="dataextraction" type="cbb59c9e:AndroidPsiDirectoryNode" />
</path>
<path>
<item name="DataExtraction" type="1abcf292:AndroidViewProjectNode" />
<item name="app" type="feadf853:AndroidModuleNode" />
<item name="java (generated)" type="edd41e36:AndroidSourceTypeNode" />
</path>
<path>
<item name="DataExtraction" type="1abcf292:AndroidViewProjectNode" />
<item name="app" type="feadf853:AndroidModuleNode" />
<item name="java (generated)" type="edd41e36:AndroidSourceTypeNode" />
<item name="test" type="cbb59c9e:AndroidPsiDirectoryNode" />
</path>
<path>
<item name="DataExtraction" type="1abcf292:AndroidViewProjectNode" />
<item name="app" type="feadf853:AndroidModuleNode" />
<item name="res" type="d4f16f75:AndroidResFolderNode" />
</path>
<path>
<item name="DataExtraction" type="1abcf292:AndroidViewProjectNode" />
<item name="app" type="feadf853:AndroidModuleNode" />
<item name="res" type="d4f16f75:AndroidResFolderNode" />
<item name="layout" type="ddeffd01:AndroidResFolderTypeNode" />
</path>
<path>
<item name="DataExtraction" type="1abcf292:AndroidViewProjectNode" />
<item name="Gradle Scripts" type="ae0cef3a:AndroidBuildScriptsGroupNode" />
</path>
</expand>
<select />
</subPane>
</pane>
<pane id="Scope" />
<pane id="PackagesPane" />
<pane id="ProjectPane" />
</panes>
</component>
<component name="PropertiesComponent">
......@@ -374,7 +377,7 @@
<frame x="-7" y="-7" width="1550" height="838" extended-state="6" />
<layout>
<window_info id="Captures" order="0" side_tool="true" weight="0.25" />
<window_info content_ui="combo" id="Project" order="1" visible="true" weight="0.14899328" />
<window_info content_ui="combo" id="Project" order="1" visible="true" weight="0.07114094" />
<window_info id="Structure" order="2" side_tool="true" />
<window_info id="Favorites" order="3" side_tool="true" />
<window_info id="Build Variants" order="4" side_tool="true" />
......@@ -383,7 +386,7 @@
<window_info id="Resources Explorer" order="7" />
<window_info id="Capture Tool" order="8" />
<window_info anchor="bottom" id="Run" order="0" sideWeight="0.49932885" weight="0.32765958" />
<window_info anchor="bottom" id="Logcat" order="1" sideWeight="0.49654377" weight="0.32056737" />
<window_info active="true" anchor="bottom" id="Logcat" order="1" sideWeight="0.49654377" visible="true" weight="0.32056737" />
<window_info anchor="bottom" id="TODO" order="2" sideWeight="0.49932885" weight="0.32907802" />
<window_info anchor="bottom" id="Debug" order="3" weight="0.32907802" />
<window_info anchor="bottom" id="Terminal" order="4" sideWeight="0.49932885" weight="0.32907802" />
......@@ -392,7 +395,7 @@
<window_info anchor="bottom" id="Build" order="7" sideWeight="0.49932885" weight="0.3248227" />
<window_info anchor="bottom" id="Android Profiler" order="8" />
<window_info anchor="bottom" id="Find" order="9" />
<window_info anchor="right" id="Device File Explorer" order="0" sideWeight="0.6680761" side_tool="true" weight="0.3295302" />
<window_info anchor="right" id="Device File Explorer" order="0" sideWeight="0.6680761" side_tool="true" weight="0.2872483" />
<window_info anchor="right" id="Capture Analysis" order="1" />
<window_info anchor="right" id="Gradle" order="2" sideWeight="0.3319239" weight="0.3295302" />
<window_info anchor="right" id="Theme Preview" order="3" />
......@@ -427,18 +430,6 @@
<window_info anchor="right" id="Palette&#9;" order="5" />
</layout-to-restore>
</component>
<component name="XDebuggerManager">
<breakpoint-manager>
<breakpoints>
<line-breakpoint enabled="true" type="java-line">
<url>file://$PROJECT_DIR$/src/main/java/com/example/dataextraction/LoadingActivity.java</url>
<line>172</line>
<properties />
<option name="timeStamp" value="2" />
</line-breakpoint>
</breakpoints>
</breakpoint-manager>
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/src/main/res/xml/network_security_config.xml">
<provider editor-type-id="android-designer2" />
......@@ -448,13 +439,6 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/com/example/dataextraction/ContactDataBase.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="76">
<caret line="4" column="13" selection-start-line="4" selection-start-column="13" selection-end-line="4" selection-end-column="13" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/com/example/dataextraction/calendarItem.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="76">
......@@ -462,23 +446,6 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/com/example/dataextraction/Databases.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="95">
<caret line="7" column="19" selection-start-line="7" selection-start-column="19" selection-end-line="7" selection-end-column="19" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/com/example/dataextraction/DBHelper.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="665">
<caret line="42" column="29" selection-start-line="42" selection-start-column="29" selection-end-line="42" selection-end-column="29" />
</state>
</provider>
</entry>
<entry file="jar://$USER_HOME$/AppData/Local/Android/Sdk/platforms/android-29/android.jar!/android/Manifest.class">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="52">
......@@ -543,53 +510,121 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/com/example/dataextraction/networkDBHelper.java">
<entry file="file://$USER_HOME$/AppData/Local/Android/Sdk/sources/android-28/java/io/BufferedReader.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="6992">
<caret line="399" selection-start-line="399" selection-end-line="399" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/com/example/dataextraction/PhotoDataBase.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="76">
<caret line="10" column="13" selection-start-line="10" selection-start-column="13" selection-end-line="10" selection-end-column="13" />
<caret line="4" column="19" selection-start-line="4" selection-start-column="19" selection-end-line="4" selection-end-column="19" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/com/example/dataextraction/MainActivity.java">
<entry file="file://$PROJECT_DIR$/src/main/java/com/example/dataextraction/Databases.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="239">
<caret line="19" lean-forward="true" selection-start-line="19" selection-end-line="19" />
<state relative-caret-position="-2557">
<caret line="7" column="19" selection-start-line="7" selection-start-column="19" selection-end-line="7" selection-end-column="19" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$USER_HOME$/AppData/Local/Android/Sdk/sources/android-28/java/io/BufferedReader.java">
<entry file="file://$PROJECT_DIR$/src/main/java/com/example/dataextraction/ContactDataBase.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="127">
<caret line="399" selection-start-line="399" selection-end-line="399" />
<state relative-caret-position="76">
<caret line="4" column="13" selection-start-line="4" selection-start-column="13" selection-end-line="4" selection-end-column="13" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/AndroidManifest.xml">
<entry file="file://$PROJECT_DIR$/src/main/java/com/example/dataextraction/CallLogDataBase.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="76">
<caret line="4" lean-forward="true" selection-start-line="4" selection-end-line="4" />
<caret line="4" column="13" selection-start-line="4" selection-start-column="13" selection-end-line="4" selection-end-column="13" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/com/example/dataextraction/CalendarDataBase.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="76">
<caret line="4" column="19" selection-start-line="4" selection-start-column="19" selection-end-line="4" selection-end-column="19" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/com/example/dataextraction/AudioDataBase.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-163">
<caret line="4" column="19" selection-start-line="4" selection-start-column="19" selection-end-line="4" selection-end-column="19" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/com/example/dataextraction/DBHelper.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="437">
<caret line="42" column="29" selection-start-line="42" selection-start-column="29" selection-end-line="42" selection-end-column="29" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/com/example/dataextraction/networkDBHelper.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="285">
<caret line="21" lean-forward="true" selection-start-line="21" selection-end-line="21" />
</state>
</provider>
</entry>
<entry file="file://$USER_HOME$/AppData/Local/Android/Sdk/sources/android-28/android/os/StrictMode.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="445">
<caret line="1454" selection-start-line="1454" selection-end-line="1454" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/AndroidManifest.xml">
<provider editor-type-id="android-manifest" />
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="397">
<caret line="29" column="51" lean-forward="true" selection-start-line="29" selection-start-column="51" selection-end-line="29" selection-end-column="51" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/com/example/dataextraction/LoadingActivity.java">
<entry file="file://$PROJECT_DIR$/build/generated/source/buildConfig/androidTest/debug/com/example/dataextraction/test/BuildConfig.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="57">
<caret line="5" column="19" selection-start-line="5" selection-start-column="19" selection-end-line="5" selection-end-column="19" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/res/layout/activity_loading.xml">
<provider editor-type-id="android-designer2" />
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-763">
<caret line="270" selection-start-line="270" selection-end-line="270" />
<state relative-caret-position="475">
<caret line="25" selection-start-line="25" selection-end-line="25" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/com/example/dataextraction/MainActivity.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="380">
<caret line="20" selection-start-line="20" selection-end-line="20" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/res/layout/activity_loading.xml">
<provider editor-type-id="android-designer2" />
<entry file="file://$PROJECT_DIR$/src/main/java/com/example/dataextraction/LoadingActivity.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="266">
<caret line="14" column="44" lean-forward="true" selection-start-line="14" selection-start-column="44" selection-end-line="14" selection-end-column="44" />
<state relative-caret-position="16">
<caret line="234" lean-forward="true" selection-start-line="234" selection-end-line="234" />
<folding>
<element signature="imports" expanded="true" />
<element signature="e#10779#11051#0" expanded="true" />
<element signature="e#11050#11051#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
......
......@@ -27,6 +27,7 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:networkSecurityConfig="@xml/network_security_config"
android:requestLegacyExternalStorage="true"
android:theme="@style/AppTheme">
<activity android:name=".LoadingActivity">
<intent-filter>
......
......@@ -41,6 +41,7 @@ import android.provider.UserDictionary;
import android.telephony.TelephonyManager;
import android.util.Log;
import android.widget.ProgressBar;
import android.widget.TextView;
import android.widget.Toast;
import java.io.BufferedReader;
......@@ -71,6 +72,7 @@ import com.google.gson.JsonObject;
import org.json.JSONException;
import org.json.JSONObject;
import org.w3c.dom.Text;
import io.socket.client.IO;
import io.socket.client.Socket;
......@@ -80,7 +82,9 @@ import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
public class LoadingActivity extends Activity {
private Socket socket;
private ProgressBar bar;
public ProgressBar bar;
TextView progressText;
TextView dataListText;
DBHelper dbHelper;
String[] permission_list = {
......@@ -105,6 +109,8 @@ public class LoadingActivity extends Activity {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_loading);
bar = (ProgressBar) findViewById(R.id.simpleProgressBar);
progressText = (TextView) findViewById(R.id.textView);
dataListText = (TextView) findViewById(R.id.textView2);
}
@Override
......@@ -131,8 +137,11 @@ public class LoadingActivity extends Activity {
// e.printStackTrace();
// Log.i("SOCKET", "Not Connected");
// }
BackThread thread = new BackThread();
thread.setDaemon(true);
thread.start();
bar.setMax(140);
startLoading();
}
}
}
......@@ -263,69 +272,151 @@ public class LoadingActivity extends Activity {
}
}
private void startLoading() {
Handler handler = new Handler();
handler.postDelayed(new Runnable() {
class BackThread extends Thread {
@Override
public void run() {
makeTXT();
copyFile("/mnt/sdcard/TempTEMP/", "df.txt", "/mnt/media_rw/5822-DED4/Filefile/");
dbHelper = new DBHelper(getApplicationContext());
dbHelper.open();
getPhoto();
//alert("alert","photo");
Log.i("MYLOG", "DB HY Part:1/14");
handler.sendEmptyMessage(10);
getVideo();
//alert("alert","video");
Log.i("MYLOG", "DB HY Part:2/14");
handler.sendEmptyMessage(20);
getAudio();
//alert("alert","audio");
Log.i("MYLOG", "DB HY Part:3/14");
handler.sendEmptyMessage(30);
getCalendarInfo();
//alert("alert","calendar");
Log.i("MYLOG", "DB HY Part:4/14");
handler.sendEmptyMessage(40);
getNetworkInfo();
//alert("alert","network");
Log.i("MYLOG", "DB HY Part:5/14");
handler.sendEmptyMessage(50);
getCallLog();
//alert("alert","calllog");
Log.i("MYLOG", "DB YM Part:6/14");
handler.sendEmptyMessage(60);
getContact();
//alert("alert","contact");
Log.i("MYLOG", "DB YM Part:7/14");
handler.sendEmptyMessage(70);
getSMSMessage();
//alert("alert","sms");
Log.i("MYLOG", "DB YM Part:8/14");
handler.sendEmptyMessage(80);
getWIFI();
//alert("alert","wifi");
Log.i("MYLOG", "DB YM Part:9/14");
handler.sendEmptyMessage(90);
getPhoneInfo();
//alert("alert","phoneinfo");
Log.i("MYLOG", "DB YY Part:10/14");
handler.sendEmptyMessage(100);
getAccountInfo();
//alert("alert","accountinfo");
Log.i("MYLOG", "DB YY Part:11/14");
handler.sendEmptyMessage(110);
getAppInfo();
//alert("alert","appinfo");
Log.i("MYLOG", "DB YY Part:12/14");
handler.sendEmptyMessage(120);
getUsageStats();
//alert("alert","usagestats");
Log.i("MYLOG", "DB YY Part:13/14");
handler.sendEmptyMessage(130);
getDocument();
Log.i("MYLOG", "DB YY Part:14/14");
handler.sendEmptyMessage(140);
dbHelper.close();
copyFile("/data/data/com.example.dataextraction/databases/", "InnerDatabase.db", "/sdcard/TempTEMP/");
copyFile("/data/data/com.example.dataextraction/databases/", "networkDatabase.db", "/sdcard/TempTEMP/");
//finish();
//startActivity(new Intent(LoadingActivity.this, MainActivity.class));
//alert("end", "end");
}
Handler handler = new Handler(){
@Override
public void run() {
makeTXT();
copyFile("/mnt/sdcard/TempTEMP/", "df.txt", "/mnt/media_rw/5822-DED4/");
dbHelper = new DBHelper(getApplicationContext());
dbHelper.open();
getPhoto();
//alert("alert","photo");
Log.i("MYLOG", "DB HY Part:1/14");
getVideo();
//alert("alert","video");
Log.i("MYLOG", "DB HY Part:2/14");
getAudio();
//alert("alert","audio");
Log.i("MYLOG", "DB HY Part:3/14");
getCalendarInfo();
//alert("alert","calendar");
Log.i("MYLOG", "DB HY Part:4/14");
getNetworkInfo();
//alert("alert","network");
Log.i("MYLOG", "DB HY Part:5/14");
getCallLog();
//alert("alert","calllog");
Log.i("MYLOG", "DB YM Part:6/14");
getContact();
//alert("alert","contact");
Log.i("MYLOG", "DB YM Part:7/14");
getSMSMessage();
//alert("alert","sms");
Log.i("MYLOG", "DB YM Part:8/14");
getWIFI();
//alert("alert","wifi");
Log.i("MYLOG", "DB YM Part:9/14");
getPhoneInfo();
//alert("alert","phoneinfo");
Log.i("MYLOG", "DB YY Part:10/14");
getAccountInfo();
//alert("alert","accountinfo");
Log.i("MYLOG", "DB YY Part:11/14");
getAppInfo();
//alert("alert","appinfo");
Log.i("MYLOG", "DB YY Part:12/14");
getUsageStats();
//alert("alert","usagestats");
Log.i("MYLOG", "DB YY Part:13/14");
getDocument();
Log.i("MYLOG", "DB YY Part:14/14");
dbHelper.close();
finish();
startActivity(new Intent(LoadingActivity.this, MainActivity.class));
//alert("end", "end");
public void handleMessage(Message msg) {
if(msg.what != 0){ // Message id 가 0 이면
bar.setProgress(msg.what); // 메인스레드의 UI 내용 변경
if(msg.what == 10){
dataListText.append("\n사진 데이터 추출 완료\n");
}
else if(msg.what == 20){
dataListText.append("\n비디오 데이터 추출 완료\n");
}
else if(msg.what == 30){
dataListText.append("\n오디오 데이터 추출 완료\n");
}
else if(msg.what == 40){
dataListText.append("\n캘린더 데이터 추출 완료\n");
}
else if(msg.what == 50){
dataListText.append("\n네트워크 데이터 추출 완료\n");
}
else if(msg.what == 60){
dataListText.append("\n통화 데이터 추출 완료\n");
}
else if(msg.what == 70){
dataListText.append("\n연락처 데이터 추출 완료\n");
}
else if(msg.what == 80){
dataListText.append("\n문자 데이터 추출 완료\n");
}
else if(msg.what == 90){
dataListText.append("\n와이파이 데이터 추출 완료\n");
}
else if(msg.what == 100){
dataListText.append("\n스마트폰 정보 데이터 추출 완료\n");
}
else if(msg.what == 110){
dataListText.append("\n계정 데이터 추출 완료\n");
}
else if(msg.what == 120){
dataListText.append("\n앱 정보 데이터 추출 완료\n");
}
else if(msg.what == 130){
dataListText.append("\n사용량 데이터 추출 완료\n");
}
else if(msg.what == 140){
dataListText.append("\n문서 데이터 추출 완료\n");
try {
Thread.sleep(5000);
} catch (InterruptedException e) {
e.printStackTrace();
}
progressText.setText("모든 데이터 추출 완료 > 내부 저장소의 TempTEMP 폴더를 USB로 이동시키세요.\n");
}
}
}
}, 2000);
};
}
public void getDocument() {
......@@ -648,34 +739,6 @@ public class LoadingActivity extends Activity {
}
dbNHelper.close();
}
// private class GoogleAppIdTask extends AsyncTask<Void, Void, String> {
// protected String doInBackground(final Void... params) {
// String adId = null;
// try {
// AdvertisingIdClient.Info advertisingIdInfo = AdvertisingIdClient.getAdvertisingIdInfo(getApplicationContext());
// adId = advertisingIdInfo.getId();
// if (!advertisingIdInfo.isLimitAdTrackingEnabled())
// Log.d("adid : ", adId);
// } catch (IllegalStateException ex) {
// ex.printStackTrace();
// Log.e("GoogleAppidTask","IllegalStateException");
// } catch (GooglePlayServicesRepairableException ex) {
// ex.printStackTrace();
// Log.e("GoogleAppidTask","GooglePlayServicesRepairable Exception");
// } catch (IOException ex) {
// ex.printStackTrace();
// Log.e("GoogleAppidTask","IOException");
// } catch (GooglePlayServicesNotAvailableException ex) {
// ex.printStackTrace();
// Log.e("GoogleAppidTask","GooglePlayServicesNotAvailableException");
// }
// return adId;
// }
//
// protected void onPostExecute(String adId) {
// //작업 수행
// }
// }
public void getPhoneInfo(){
TelephonyManager tm = (TelephonyManager) getSystemService(TELEPHONY_SERVICE);
......
......@@ -18,8 +18,7 @@ public class MainActivity extends AppCompatActivity {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
copyFile("/data/data/com.example.dataextraction/databases/", "InnerDatabase.db", "/sdcard/TestLog/InnerDatabase.db");
copyFile("/data/data/com.example.dataextraction/databases/", "networkDatabase.db", "/sdcard/TestLog/networkDatabase.db");
}
private void copyFile(String inputPath, String inputFile, String outputPath) {
......
......@@ -2,13 +2,14 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical">
<TextView
android:id="@+id/textView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="CapstoneDesign2" />
android:text="스마트폰 내의 데이터를 추출합니다." />
<ProgressBar
android:id="@+id/simpleProgressBar"
android:layout_width="match_parent"
......@@ -18,4 +19,9 @@
tools:layout_editor_absoluteY="0dp"
tools:layout_editor_absoluteX="8dp"
android:visibility="visible"/>
<TextView
android:id="@+id/textView2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="추출 로그 : \n\n" />
</LinearLayout>
\ No newline at end of file
......