Skip to content

Commit

Permalink
add executable IC3 for iccProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
lilicoding committed May 31, 2015
1 parent f2347b3 commit a79ad5e
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ release/testapks
release/testspace

bin
iccProvider/ic3
iccProvider/epicc/output_iccta
iccProvider/epicc/sootOutput
iccProvider/epicc/testspace
Expand Down
Binary file added iccProvider/ic3/RetargetedApp.jar
Binary file not shown.
4 changes: 4 additions & 0 deletions iccProvider/ic3/cc.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
user=li
password=changeme
characterEncoding=ISO-8859-1
useUnicode=true
Binary file added iccProvider/ic3/ic3-0.1.0-full.jar
Binary file not shown.
2 changes: 2 additions & 0 deletions iccProvider/ic3/resetDB.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mysql -uli -pchangeme -e 'drop database cc; create database cc';
mysql -uli -pchangeme cc < ../../res/schema;
18 changes: 18 additions & 0 deletions iccProvider/ic3/runIC3.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#! /bin/sh

appPath=$1
forceAndroidJar=/Users/li.li/Project/github/android-platforms/android-18/android.jar

rm -rf testspace
mkdir testspace

appName=`basename $appPath .apk`
retargetedPath=testspace/$appName.apk/retargeted/retargeted/$appName

rm -rf output/ic3/$appName.txt

java -Xmx8192m -jar RetargetedApp.jar $forceAndroidJar $appPath $retargetedPath
java -Xmx8192m -jar ic3-0.1.0-full.jar -apkormanifest $appPath -input $retargetedPath -cp $forceAndroidJar -db cc.properties

rm -rf testspace
rm -rf sootOutput
13 changes: 13 additions & 0 deletions iccProvider/ic3/runIC3Wrapper.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#! /bin/sh

DIR=$1
DUR=600
AndroidJars=/Users/li.li/Project/github/android-platforms

for app in `ls $DIR`
do
echo $DIR/$app

gtimeout $DUR ./runIC3.sh $DIR/$app

done
9 changes: 9 additions & 0 deletions res/schema
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ DROP TABLE IF EXISTS `ExitPointComponents`;
DROP TABLE IF EXISTS `PAuthorities`;
DROP TABLE IF EXISTS `Providers`;
DROP TABLE IF EXISTS `Components`;
DROP TABLE IF EXISTS `ComponentExtras`;
DROP TABLE IF EXISTS `ICategories`;
DROP TABLE IF EXISTS `IActions`;
DROP TABLE IF EXISTS `IMimeTypes`;
Expand Down Expand Up @@ -122,6 +123,14 @@ CREATE TABLE `Components` (
FOREIGN KEY (`permission`) REFERENCES PermissionStrings(`id`)
) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;

CREATE TABLE `ComponentExtras` (
`id` int NOT NULL AUTO_INCREMENT,
`component_id` int NOT NULL,
`extra` varchar(512) NOT NULL,
PRIMARY KEY (`id`),
FOREIGN KEY (`component_id`) REFERENCES Components(`id`)
) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;

CREATE TABLE `Aliases` (
`id` int NOT NULL AUTO_INCREMENT,
`component_id` int NOT NULL,
Expand Down

0 comments on commit a79ad5e

Please sign in to comment.