Skip to content

Commit b15c31f

Browse files
committed
Moved from eclipse to Android Studio
1 parent 0570b51 commit b15c31f

File tree

513 files changed

+17701
-4274
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

513 files changed

+17701
-4274
lines changed

aFWall/build.gradle

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
apply plugin: 'com.android.application'
2+
3+
android {
4+
compileSdkVersion 21
5+
buildToolsVersion "21.0.2"
6+
7+
defaultConfig {
8+
applicationId "dev.ukanth.ufirewall"
9+
minSdkVersion 15
10+
targetSdkVersion 21
11+
compileOptions {
12+
sourceCompatibility JavaVersion.VERSION_1_7
13+
targetCompatibility JavaVersion.VERSION_1_7
14+
}
15+
}
16+
17+
buildTypes {
18+
release {
19+
runProguard false
20+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
21+
}
22+
}
23+
}
24+
25+
dependencies {
26+
compile project(':androidlockpattern2')
27+
compile 'com.android.support:appcompat-v7:21.0.0'
28+
compile 'com.android.support:cardview-v7:21.0.0'
29+
compile 'com.android.support:recyclerview-v7:21.0.0'
30+
}

aFWall/lint.xml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<lint>
3+
</lint>

aFWall/src/main/AndroidManifest.xml

+283
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,283 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
* Android Manifest
4+
* Copyright (C) 2007-2008 The Android Open Source Project
5+
* Copyright (C) 2009-2011 Rodrigo Zechin Rosauro
6+
* Copyright (C) 2011-2014 Umakanthan Chandran
7+
*
8+
* This program is free software: you can redistribute it and/or modify
9+
* it under the terms of the GNU General Public License as published by
10+
* the Free Software Foundation, either version 3 of the License, or
11+
* (at your option) any later version.
12+
*
13+
* This program is distributed in the hope that it will be useful,
14+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16+
* GNU General Public License for more details.
17+
*
18+
* You should have received a copy of the GNU General Public License
19+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
20+
*
21+
* @author Rodrigo Zechin Rosauro, Umakanthan Chandran
22+
* @version 1.2
23+
*/
24+
25+
-->
26+
27+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
28+
xmlns:tools="http://schemas.android.com/tools"
29+
package="dev.ukanth.ufirewall"
30+
android:versionCode="15200"
31+
android:versionName="2.0.0-ALPHA-1">
32+
33+
<!-- Android 4.0.3 up -->
34+
<uses-sdk
35+
android:minSdkVersion="15"
36+
android:targetSdkVersion="21" />
37+
38+
<!-- Permissions -->
39+
<!--
40+
Allows AFWall+ to receive the ACTION_BOOT_COMPLETED that is broadcast
41+
after the system finishes booting. If you don't request this permission,
42+
you will not receive the broadcast at that time. Though holding this
43+
permission does not have any security implications, it can have
44+
a negative impact on the user experience by increasing the amount
45+
of time it takes the system to start and allowing applications
46+
to have themselves running without the user being aware of them.
47+
As such, you must explicitly declare your use of this facility to make
48+
that visible to the user.
49+
-->
50+
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
51+
<!-- Allows ufwall to access information about networks -->
52+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
53+
<!-- Allows ufwall to change network connectivity state -->
54+
<!-- <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" /> -->
55+
<!-- Allows low-level access to power management -->
56+
<!-- <uses-permission android:name="android.permission.DEVICE_POWER" /> -->
57+
<!-- Allows ufwall to write to external storage -->
58+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
59+
60+
<!-- Allows access to IP configuration and tethering state -->
61+
<uses-permission android:name="android.permission.INTERNET"/>
62+
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
63+
64+
<!-- Will be default in CyanogenMod Superuser App -->
65+
<uses-permission android:name="android.permission.ACCESS_SUPERUSER" />
66+
67+
<uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES" />
68+
69+
<!-- Screen support -->
70+
<supports-screens
71+
android:anyDensity="true"
72+
android:smallScreens="true"
73+
android:normalScreens="true"
74+
android:largeScreens="true"
75+
android:xlargeScreens="true"
76+
/>
77+
78+
<application
79+
android:hardwareAccelerated="false"
80+
android:allowBackup="false"
81+
android:icon="@drawable/ic_launcher_free"
82+
android:label="@string/app_name"
83+
android:theme="@style/AppBaseTheme"
84+
android:name="dev.ukanth.ufirewall.G" >
85+
<activity
86+
android:name="dev.ukanth.ufirewall.MainActivity"
87+
android:excludeFromRecents="true"
88+
android:launchMode="singleInstance"
89+
android:configChanges="orientation|keyboardHidden|screenSize|keyboard|locale|screenLayout"
90+
android:hardwareAccelerated="true"
91+
android:label="@string/app_name" >
92+
<intent-filter>
93+
<action android:name="android.intent.action.MAIN" />
94+
<category android:name="android.intent.category.DEFAULT" />
95+
<category android:name="android.intent.category.LAUNCHER" />
96+
<category android:name="android.intent.category.MULTIWINDOW_LAUNCHER" />
97+
</intent-filter>
98+
</activity>
99+
<activity
100+
android:name="dev.ukanth.ufirewall.preferences.PreferencesActivity"
101+
android:configChanges="orientation|keyboardHidden|screenSize|locale|screenLayout"
102+
android:hardwareAccelerated="true" >
103+
<meta-data
104+
android:name="android.support.PARENT_ACTIVITY"
105+
android:value="dev.ukanth.ufirewall.MainActivity" />
106+
</activity>
107+
<activity
108+
android:name="dev.ukanth.ufirewall.HelpActivity"
109+
android:configChanges="orientation|keyboardHidden|screenSize|locale"
110+
android:hardwareAccelerated="true" >
111+
</activity>
112+
113+
<activity android:name="dev.ukanth.ufirewall.RulesActivity"/>
114+
<activity android:name="dev.ukanth.ufirewall.AppDetailActivity">
115+
<meta-data
116+
android:name="android.support.PARENT_ACTIVITY"
117+
android:value="dev.ukanth.ufirewall.MainActivity" />
118+
</activity>
119+
<activity android:name="dev.ukanth.ufirewall.LogActivity"/>
120+
<activity android:name="dev.ukanth.ufirewall.DataDumpActivity" >
121+
<meta-data
122+
android:name="android.support.PARENT_ACTIVITY"
123+
android:value="dev.ukanth.ufirewall.MainActivity" />
124+
</activity>
125+
126+
<activity android:name="dev.ukanth.ufirewall.AlertDialogActivity"/>
127+
128+
<activity
129+
android:name="dev.ukanth.ufirewall.widget.ToggleWidgetActivity"
130+
android:launchMode="singleInstance"
131+
android:theme="@style/Theme.Transparent" >
132+
<intent-filter>
133+
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
134+
</intent-filter>
135+
</activity>
136+
137+
<activity android:name="dev.ukanth.ufirewall.widget.ToggleWidgetOldActivity"
138+
android:launchMode="singleInstance"
139+
android:theme="@style/Theme.Transparent" >
140+
<intent-filter>
141+
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
142+
</intent-filter>
143+
</activity>
144+
145+
<activity android:name="dev.ukanth.ufirewall.CustomScriptActivity" >
146+
<meta-data
147+
android:name="android.support.PARENT_ACTIVITY"
148+
android:value="dev.ukanth.ufirewall.MainActivity" />
149+
</activity>
150+
151+
<receiver android:name="dev.ukanth.ufirewall.BootBroadcast" >
152+
<intent-filter>
153+
<action android:name="android.intent.action.BOOT_COMPLETED" />
154+
<action android:name="android.intent.action.QUICKBOOT_POWERON" />
155+
<action android:name="android.intent.action.MEDIA_MOUNTED" />
156+
</intent-filter>
157+
</receiver>
158+
159+
<receiver android:name="dev.ukanth.ufirewall.PackageBroadcast" >
160+
<intent-filter>
161+
<action android:name="android.intent.action.PACKAGE_ADDED" />
162+
<action android:name="android.intent.action.PACKAGE_REMOVED" />
163+
164+
<data android:scheme="package" />
165+
</intent-filter>
166+
</receiver>
167+
168+
169+
<receiver android:name="dev.ukanth.ufirewall.ConnectivityChangeReceiver" >
170+
<intent-filter>
171+
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
172+
<action android:name="android.net.wifi.WIFI_AP_STATE_CHANGED" />
173+
</intent-filter>
174+
</receiver>
175+
176+
<receiver
177+
android:name="dev.ukanth.ufirewall.StatusWidget"
178+
android:label="@string/widget_label_status"
179+
android:icon="@drawable/on_off_widget">
180+
<meta-data
181+
android:name="android.appwidget.provider"
182+
android:resource="@xml/onoff_widget" />
183+
184+
<intent-filter>
185+
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
186+
<action android:name="dev.ukanth.ufirewall.intent.action.STATUS_CHANGED" />
187+
<action android:name="dev.ukanth.ufirewall.intent.action.TOGGLE_REQUEST" />
188+
</intent-filter>
189+
</receiver>
190+
<receiver
191+
android:name="dev.ukanth.ufirewall.widget.ToggleWidget"
192+
android:label="@string/widget_label_settings"
193+
android:icon="@drawable/question">
194+
<meta-data
195+
android:name="android.appwidget.provider"
196+
android:resource="@xml/toggle_widget" />
197+
198+
<intent-filter>
199+
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
200+
<action android:name="dev.ukanth.ufirewall.intent.action.STATUS_CHANGED" />
201+
<action android:name="dev.ukanth.ufirewall.intent.action.TOGGLE_REQUEST" />
202+
</intent-filter>
203+
</receiver>
204+
205+
206+
<receiver android:name="dev.ukanth.ufirewall.widget.ToggleWidgetOld" android:label="@string/widget_label_settings_old">
207+
<meta-data
208+
android:name="android.appwidget.provider"
209+
android:resource="@xml/toggle_widget_old" />
210+
211+
<intent-filter>
212+
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
213+
<action android:name="dev.ukanth.ufirewall.intent.action.STATUS_CHANGED" />
214+
<action android:name="dev.ukanth.ufirewall.intent.action.TOGGLE_REQUEST" />
215+
</intent-filter>
216+
</receiver>
217+
218+
219+
220+
<activity
221+
android:name="com.haibison.android.lockpattern.LockPatternActivity"
222+
android:configChanges="orientation|screenSize|keyboard|keyboardHidden"
223+
android:screenOrientation="user"
224+
android:theme="@style/Alp.42447968.Theme.Dark" />
225+
226+
<!-- device admin -->
227+
<!-- This is required this receiver to become device admin component. -->
228+
229+
<receiver
230+
android:name="dev.ukanth.ufirewall.admin.AdminDeviceReceiver"
231+
android:permission="android.permission.BIND_DEVICE_ADMIN" >
232+
<meta-data android:name="android.app.device_admin" android:resource="@xml/device_admin"/>
233+
<intent-filter>
234+
<!-- This action is required -->
235+
<action android:name="android.app.action.DEVICE_ADMIN_ENABLED" />
236+
<action android:name="android.app.action.ACTION_DEVICE_ADMIN_DISABLE_REQUESTED" />
237+
<action android:name="android.app.action.ACTION_DEVICE_ADMIN_DISABLED" />
238+
<action android:name="android.app.action.DEVICE_ADMIN_DISABLED" />
239+
</intent-filter>
240+
</receiver>
241+
242+
243+
<!-- Tasker/Locale Plugin -->
244+
245+
<activity
246+
android:name="dev.ukanth.ufirewall.plugin.LocaleEdit"
247+
android:exported="true"
248+
android:icon="@drawable/ic_launcher_free"
249+
android:label="@string/tasker_lable"
250+
android:theme="@style/Theme.Locale.Dark"
251+
android:uiOptions="splitActionBarWhenNarrow"
252+
android:windowSoftInputMode="adjustResize"
253+
tools:ignore="ExportedActivity" >
254+
255+
<!-- this Intent filter allows the plug-in to be discovered by Locale -->
256+
<intent-filter>
257+
<action android:name="com.twofortyfouram.locale.intent.action.EDIT_SETTING" />
258+
</intent-filter>
259+
</activity>
260+
261+
<receiver
262+
android:name="dev.ukanth.ufirewall.plugin.FireReceiver"
263+
android:exported="true"
264+
tools:ignore="ExportedReceiver" >
265+
<!-- this Intent filter allows the plug-in to discovered by Locale -->
266+
<intent-filter>
267+
<action android:name="com.twofortyfouram.locale.intent.action.FIRE_SETTING" />
268+
</intent-filter>
269+
</receiver>
270+
271+
<service android:name="RootShell"/>
272+
<service android:name="NflogService"/>
273+
<service android:name="dev.ukanth.ufirewall.log.LogService"/>
274+
275+
<!-- Samsung MultiWindow Support -->
276+
<uses-library android:required="false" android:name="com.sec.android.app.multiwindow" />
277+
<meta-data android:name="com.sec.android.multiwindow.DEFAULT_SIZE_W" android:resource="@dimen/app_defaultsize_w" />
278+
<meta-data android:name="com.sec.android.multiwindow.DEFAULT_SIZE_H" android:resource="@dimen/app_defaultsize_h" />
279+
<meta-data android:name="com.sec.android.multiwindow.MINIMUM_SIZE_W" android:resource="@dimen/app_minimumsize_w" />
280+
<meta-data android:name="com.sec.android.multiwindow.MINIMUM_SIZE_H" android:resource="@dimen/app_minimumsize_h" />
281+
</application>
282+
283+
</manifest>

0 commit comments

Comments
 (0)