Skip to content

Commit

Permalink
Merge pull request #687 from SecUpwN/development
Browse files Browse the repository at this point in the history
Unchaining WIP-Release v0.1.37-alpha
  • Loading branch information
SecUpwN committed Dec 14, 2015
2 parents 93b4247 + 9669279 commit bf2cd64
Show file tree
Hide file tree
Showing 388 changed files with 2,931 additions and 2,979 deletions.
35 changes: 3 additions & 32 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,6 @@ cache: false
sudo: false
env:
global:
# Initiating clean Gradle output
- TERM=dumb
# Amount of memory granted to Gradle JVM
- GRADLE_OPTS="-Xmx512m -XX:MaxPermSize=512m"
# General Android settings used in builds
- ANDROID_TARGET=android-17
- ANDROID_ABI=armeabi-v7a

# Encrypted Tokens
#-----------------

Expand All @@ -32,39 +24,18 @@ env:
notifications:
hipchat:
- secure: "I2XmQkFCyKZHW2NeClYyl3FND80YkqLtYo+Rn3ftS4xjEg6VfGgDv6AlvQ+b+oZg7RZI6nKia9OLZxAxVBOHw6UcJJnurJx4hfAIBZAihIiNpZPj1c9wGgv4D+M6zi3rgbJRZ2Tz6IKJvHC+CD3LApeJR9kH15lDWbD7YZ0UI7E="

before_install:
# Making sure gradlew has executable permissions
- chmod +x gradlew

android:
components:
# We are using the latest revision of Android SDK Tools
- platform-tools
- tools
# The BuildTools version we are using for our project
- build-tools-21.1.2
# System Image we use to run emulator(s) during tests
- sys-img-armeabi-v7a-android-17
- build-tools-22.0.1
- android-22
# Additional components
- extra-android-m2repository

licenses:
- 'android-sdk-license-.+'

# Emulator Management: Create, Start and Wait
before_script:
# Inspecting running services
- ps auxww
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI
- emulator -avd test -no-skin -no-audio -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &

script:
- ./gradlew connectedAndroidTest --info
- ./gradlew lintVitalRelease

script: ./gradlew build check
# Coverity Scan Settings
#-----------------------

Expand Down
File renamed without changes.
96 changes: 96 additions & 0 deletions AIMSICD/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
apply plugin: 'com.android.application'

def gitSha = 'na'
try {
gitSha = 'git rev-parse --short HEAD'.execute([], project.rootDir).text.trim()
} catch (Exception e) {
logger.warn("git not available")
}

def isCi = "true".equals(System.getenv("CI"))
def isTravis = "true".equals(System.getenv("TRAVIS"))

def buildNumber = null
if(isTravis) {
buildNumber = System.getenv("TRAVIS_BUILD_NUMBER")
} else {
buildNumber = System.getenv("BUILDOZER_BUILDNUMBER")
}


android {
compileSdkVersion 22
buildToolsVersion '22.0.1'
defaultConfig {
minSdkVersion 16
targetSdkVersion 19 // Do not change: Working Icons on Android 5+
versionCode 37
versionName '0.1.37-alpha'
testApplicationId "com.SecUpwN.AIMSICD.test"

buildConfigField 'String', 'BUILD_NUMBER', (buildNumber == null ? 'null' : "\"${buildNumber}\"")
}
buildTypes {
debug {
try {
buildConfigField 'String', 'OPEN_CELLID_API_KEY', '\"' + open_cellid_api_key + '\"'
} catch (MissingPropertyException e) {
buildConfigField 'String', 'OPEN_CELLID_API_KEY', '"NA"'
}
if (!gitSha.equals('na')) {
versionNameSuffix '-' + gitSha
} else {
versionNameSuffix '-debug'
}
}
release {
buildConfigField 'String', 'OPEN_CELLID_API_KEY', '"NA"'
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'

versionNameSuffix '-release'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
lintOptions {
warning 'MissingTranslation', 'InvalidPackage'
abortOnError false

xmlReport false
htmlReport !isCi

textReport isCi
textOutput 'stdout'
}
packagingOptions {
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/LICENSE.txt'
}

productFlavors {
system {}
normal {}
}
}

dependencies {
// DO NOT REMOVE BELOW COMMENTED-OUT CODE BEFORE ASKING!
//compile 'com.github.amlcurran.showcaseview:library:5.0.0'
compile 'com.android.support:appcompat-v7:22.2.1'
//https://github.com/lp0/slf4j-android
compile project(':third_party:rootshell')
compile 'org.slf4j:slf4j-api:1.7.12'
compile 'eu.lp0.slf4j:slf4j-android:1.7.12-0'
compile 'com.squareup.okhttp:okhttp:2.6.0'
compile 'au.com.bytecode:opencsv:2.4'

//This git hash resolves to version 5.5
compile 'com.github.MKergall.osmbonuspack:OSMBonusPack:2e8bca20f7'
compile 'com.github.kaichunlin.transition:core:0.9.2'
compile 'io.freefair.android-util:logging:1.1.0'
//debugCompile 'com.squareup.leakcanary:leakcanary-android:1.3.1'
//releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.3.1'
}
18 changes: 18 additions & 0 deletions AIMSICD/proguard-rules.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
-verbose
-optimizationpasses 5
-dontpreverify
-dump class_files.txt
-printseeds seeds.txt
-printusage unused.txt
-printmapping mapping.txt

-keepattributes *Annotation*
-keepattributes SourceFile,LineNumberTable

-dontwarn java.beans.**

-dontwarn org.apache.**
-dontwarn okio.**

-keep class com.kaichunlin.transition.** { *; }
-dontwarn com.kaichunlin.transition.**
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<?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.SecUpwN.AIMSICD"
android:versionCode="36"
android:versionName="0.1.36-alpha-b00">
xmlns:tools="http://schemas.android.com/tools"
package="com.SecUpwN.AIMSICD">

<!-- If we ever wanna make this a system app, we can add the following 2 lines above:
coreApp="true"
Expand All @@ -17,58 +15,19 @@
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_UPDATES"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.READ_LOGS"/>
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<uses-permission android:name="android.permission.RECEIVE_SMS"/>
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

<!-- NEW -->
<uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL"/>
<uses-permission android:name="android.permission.BLUETOOTH_PRIVILEGED"/>
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>
<uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES"/>
<uses-permission android:name="android.permission.NFC"/>
<uses-permission android:name="android.permission.READ_CONTACTS"/>
<uses-permission android:name="android.permission.READ_SMS"/>
<uses-permission android:name="android.permission.RECEIVE_MMS"/>
<uses-permission android:name="android.permission.RECEIVE_WAP_PUSH"/>
<uses-permission android:name="android.permission.USE_SIP"/>
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.WRITE_SETTINGS"/>

<!-- SPECIAL PERMISSIONS TO BE ADDED AFTER THIS LINE. /> -->
<!-- To list all available (used) Android permissions on a device, use:
# `pm list permissions -g` -->

<!-- These are Android System (non 3rd party) Permissions -->
<uses-permission android:name="android.permission.CONTROL_LOCATION_UPDATES"/>
<uses-permission android:name="android.permission.DEVICE_POWER"/>
<uses-permission android:name="android.permission.DIAGNOSTIC"/>
<uses-permission android:name="android.permission.DUMP"/>
<uses-permission android:name="android.permission.FACTORY_TEST"/>
<uses-permission android:name="android.permission.HARDWARE_TEST"/>
<uses-permission android:name="android.permission.INJECT_EVENTS"/>
<uses-permission android:name="android.permission.INTERNAL_SYSTEM_WINDOW"/>
<uses-permission android:name="android.permission.LOCATION_HARDWARE"/>
<uses-permission android:name="android.permission.MODIFY_PHONE_STATE"/>
<uses-permission android:name="android.permission.SET_PROCESS_LIMIT"/>
<uses-permission android:name="android.permission.WRITE_APN_SETTINGS"/>
<!--uses-permission android:name="android.permission.WRITE_GSERVICES"/ -->
<uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS"/>

<!-- possibly deprecated -->
<uses-permission android:name="android.permission.RECEIVE_EMERGENCY_BROADCAST"/>
<uses-permission android:name="android.permission.READ_NETWORK_USAGE_HISTORY"/>

<!-- These are OEM / Samsung Permissions -->
<uses-permission android:name="android.phone.receiveDetailedCallState"/>
<uses-permission android:name="com.android.permission.HANDOVER_STATUS"/>
Expand Down Expand Up @@ -178,24 +137,10 @@
</intent-filter>
</receiver>

<!-- We may need to remove the android:permission line in order NOT
to block other (system?) apps who doesn't have or use this permission. -->
<receiver android:name=".receiver.SmsReceiver"
android:permission="android.permission.BROADCAST_SMS">
<intent-filter android:priority="1000">
<action android:name="android.provider.Telephony.SMS_RECEIVED"/>
</intent-filter>
</receiver>
<activity android:name=".activities.CreditsRollActivity"
android:theme="@android:style/Theme.Dialog"
android:screenOrientation="portrait"> </activity>

<activity
android:name=".activities.CustomPopUp"
android:label="@string/title_activity_about_pop_up"
android:theme="@android:style/Theme.Dialog">
</activity>

<activity
android:name=".smsdetection.AdvancedUserActivity"
android:label="@string/title_activity_advanced_user" >
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,3 +236,7 @@ Marek Sebera\n
https://github.com/smarek\n
for saving our project from death!\n
\n
Lars Grefer\n
https://github.com/larsgrefer\n
for all incredible improvements! ;-)\n
\n
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit bf2cd64

Please sign in to comment.