Christoph Haas 5 years ago
commit
55ca4db95a
50 changed files with 551 additions and 0 deletions
  1. 9
    0
      .classpath
  2. 33
    0
      .project
  3. 4
    0
      .settings/org.eclipse.jdt.core.prefs
  4. 33
    0
      AndroidManifest.xml
  5. 33
    0
      bin/AndroidManifest.xml
  6. BIN
      bin/classes/at/sprinternet/mvnoroaming/BuildConfig.class
  7. BIN
      bin/classes/at/sprinternet/mvnoroaming/ExecuteAsRoot.class
  8. BIN
      bin/classes/at/sprinternet/mvnoroaming/MVNORoamingStatusChanger$1.class
  9. BIN
      bin/classes/at/sprinternet/mvnoroaming/MVNORoamingStatusChanger$2.class
  10. BIN
      bin/classes/at/sprinternet/mvnoroaming/MVNORoamingStatusChanger.class
  11. BIN
      bin/classes/at/sprinternet/mvnoroaming/R$attr.class
  12. BIN
      bin/classes/at/sprinternet/mvnoroaming/R$dimen.class
  13. BIN
      bin/classes/at/sprinternet/mvnoroaming/R$drawable.class
  14. BIN
      bin/classes/at/sprinternet/mvnoroaming/R$id.class
  15. BIN
      bin/classes/at/sprinternet/mvnoroaming/R$layout.class
  16. BIN
      bin/classes/at/sprinternet/mvnoroaming/R$menu.class
  17. BIN
      bin/classes/at/sprinternet/mvnoroaming/R$string.class
  18. BIN
      bin/classes/at/sprinternet/mvnoroaming/R$style.class
  19. BIN
      bin/classes/at/sprinternet/mvnoroaming/R.class
  20. BIN
      bin/classes/at/sprinternet/mvnoroaming/RebootService.class
  21. BIN
      bin/classes/at/sprinternet/mvnoroaming/RebootServiceReceiver.class
  22. BIN
      bin/dexedLibs/android-support-v4-fdaef44f6c6e5e528d87159766bd7e19.jar
  23. BIN
      bin/res/crunch/drawable-hdpi/ic_launcher.png
  24. BIN
      bin/res/crunch/drawable-mdpi/ic_launcher.png
  25. BIN
      bin/res/crunch/drawable-xhdpi/ic_launcher.png
  26. BIN
      bin/res/crunch/drawable-xxhdpi/ic_launcher.png
  27. 6
    0
      gen/at/sprinternet/mvnoroaming/BuildConfig.java
  28. 79
    0
      gen/at/sprinternet/mvnoroaming/R.java
  29. BIN
      ic_launcher-web.png
  30. BIN
      libs/android-support-v4.jar
  31. 20
    0
      proguard-project.txt
  32. 14
    0
      project.properties
  33. BIN
      res/drawable-hdpi/ic_launcher.png
  34. BIN
      res/drawable-mdpi/ic_launcher.png
  35. BIN
      res/drawable-xhdpi/ic_launcher.png
  36. BIN
      res/drawable-xxhdpi/ic_launcher.png
  37. 66
    0
      res/layout/activity_mvno.xml
  38. 9
    0
      res/menu/mvnoroaming_status_changer.xml
  39. 8
    0
      res/values-sw600dp/dimens.xml
  40. 9
    0
      res/values-sw720dp-land/dimens.xml
  41. 11
    0
      res/values-v11/styles.xml
  42. 12
    0
      res/values-v14/styles.xml
  43. 7
    0
      res/values/dimens.xml
  44. 13
    0
      res/values/strings.xml
  45. 20
    0
      res/values/styles.xml
  46. 22
    0
      src/at/sprinternet/mvnoroaming/ExecuteAsRoot.java
  47. 73
    0
      src/at/sprinternet/mvnoroaming/MVNORoamingStatusChanger.java
  48. 54
    0
      src/at/sprinternet/mvnoroaming/RebootService.java
  49. 16
    0
      src/at/sprinternet/mvnoroaming/RebootServiceReceiver.java
  50. 0
    0
      srcres/icon_roam.png

+ 9
- 0
.classpath View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>

+ 33
- 0
.project View File

@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>MVNOroaming</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>

+ 4
- 0
.settings/org.eclipse.jdt.core.prefs View File

@@ -0,0 +1,4 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
org.eclipse.jdt.core.compiler.compliance=1.6
org.eclipse.jdt.core.compiler.source=1.6

+ 33
- 0
AndroidManifest.xml View File

@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="at.sprinternet.mvnoroaming"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="19" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<uses-permission android:name="android.permission.ACCESS_SUPERUSER"/>
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" android:testOnly="false">
<activity
android:name="at.sprinternet.mvnoroaming.MVNORoamingStatusChanger"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<receiver android:name=".RebootServiceReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
<service android:name=".RebootService" />
</application>
</manifest>

+ 33
- 0
bin/AndroidManifest.xml View File

@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="at.sprinternet.mvnoroaming"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="19" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<uses-permission android:name="android.permission.ACCESS_SUPERUSER"/>
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" android:testOnly="false">
<activity
android:name="at.sprinternet.mvnoroaming.MVNORoamingStatusChanger"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<receiver android:name=".RebootServiceReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
<service android:name=".RebootService" />
</application>
</manifest>

BIN
bin/classes/at/sprinternet/mvnoroaming/BuildConfig.class View File


BIN
bin/classes/at/sprinternet/mvnoroaming/ExecuteAsRoot.class View File


BIN
bin/classes/at/sprinternet/mvnoroaming/MVNORoamingStatusChanger$1.class View File


BIN
bin/classes/at/sprinternet/mvnoroaming/MVNORoamingStatusChanger$2.class View File


BIN
bin/classes/at/sprinternet/mvnoroaming/MVNORoamingStatusChanger.class View File


BIN
bin/classes/at/sprinternet/mvnoroaming/R$attr.class View File


BIN
bin/classes/at/sprinternet/mvnoroaming/R$dimen.class View File


BIN
bin/classes/at/sprinternet/mvnoroaming/R$drawable.class View File


BIN
bin/classes/at/sprinternet/mvnoroaming/R$id.class View File


BIN
bin/classes/at/sprinternet/mvnoroaming/R$layout.class View File


BIN
bin/classes/at/sprinternet/mvnoroaming/R$menu.class View File


BIN
bin/classes/at/sprinternet/mvnoroaming/R$string.class View File


BIN
bin/classes/at/sprinternet/mvnoroaming/R$style.class View File


BIN
bin/classes/at/sprinternet/mvnoroaming/R.class View File


BIN
bin/classes/at/sprinternet/mvnoroaming/RebootService.class View File


BIN
bin/classes/at/sprinternet/mvnoroaming/RebootServiceReceiver.class View File


BIN
bin/dexedLibs/android-support-v4-fdaef44f6c6e5e528d87159766bd7e19.jar View File


BIN
bin/res/crunch/drawable-hdpi/ic_launcher.png View File


BIN
bin/res/crunch/drawable-mdpi/ic_launcher.png View File


BIN
bin/res/crunch/drawable-xhdpi/ic_launcher.png View File


BIN
bin/res/crunch/drawable-xxhdpi/ic_launcher.png View File


+ 6
- 0
gen/at/sprinternet/mvnoroaming/BuildConfig.java View File

@@ -0,0 +1,6 @@
/** Automatically generated file. DO NOT MODIFY */
package at.sprinternet.mvnoroaming;

public final class BuildConfig {
public final static boolean DEBUG = true;
}

+ 79
- 0
gen/at/sprinternet/mvnoroaming/R.java
File diff suppressed because it is too large
View File


BIN
ic_launcher-web.png View File


BIN
libs/android-support-v4.jar View File


+ 20
- 0
proguard-project.txt View File

@@ -0,0 +1,20 @@
# To enable ProGuard in your project, edit project.properties
# to define the proguard.config property as described in that file.
#
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in ${sdk.dir}/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the ProGuard
# include property in project.properties.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# 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 *;
#}

+ 14
- 0
project.properties View File

@@ -0,0 +1,14 @@
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system edit
# "ant.properties", and override values to adapt the script to your
# project structure.
#
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt

# Project target.
target=android-19

BIN
res/drawable-hdpi/ic_launcher.png View File


BIN
res/drawable-mdpi/ic_launcher.png View File


BIN
res/drawable-xhdpi/ic_launcher.png View File


BIN
res/drawable-xxhdpi/ic_launcher.png View File


+ 66
- 0
res/layout/activity_mvno.xml
File diff suppressed because it is too large
View File


+ 9
- 0
res/menu/mvnoroaming_status_changer.xml View File

@@ -0,0 +1,9 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:id="@+id/action_settings"
android:orderInCategory="100"
android:showAsAction="never"
android:title="@string/action_settings"/>
</menu>

+ 8
- 0
res/values-sw600dp/dimens.xml View File

@@ -0,0 +1,8 @@
<resources>
<!--
Customize dimensions originally defined in res/values/dimens.xml (such as
screen margins) for sw600dp devices (e.g. 7" tablets) here.
-->
</resources>

+ 9
- 0
res/values-sw720dp-land/dimens.xml View File

@@ -0,0 +1,9 @@
<resources>
<!--
Customize dimensions originally defined in res/values/dimens.xml (such as
screen margins) for sw720dp devices (e.g. 10" tablets) in landscape here.
-->
<dimen name="activity_horizontal_margin">128dp</dimen>
</resources>

+ 11
- 0
res/values-v11/styles.xml View File

@@ -0,0 +1,11 @@
<resources>
<!--
Base application theme for API 11+. This theme completely replaces
AppBaseTheme from res/values/styles.xml on API 11+ devices.
-->
<style name="AppBaseTheme" parent="android:Theme.Holo.Light">
<!-- API 11 theme customizations can go here. -->
</style>
</resources>

+ 12
- 0
res/values-v14/styles.xml View File

@@ -0,0 +1,12 @@
<resources>
<!--
Base application theme for API 14+. This theme completely replaces
AppBaseTheme from BOTH res/values/styles.xml and
res/values-v11/styles.xml on API 14+ devices.
-->
<style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar">
<!-- API 14 theme customizations can go here. -->
</style>
</resources>

+ 7
- 0
res/values/dimens.xml View File

@@ -0,0 +1,7 @@
<resources>
<!-- Default screen margins, per the Android Design guidelines. -->
<dimen name="activity_horizontal_margin">16dp</dimen>
<dimen name="activity_vertical_margin">16dp</dimen>
</resources>

+ 13
- 0
res/values/strings.xml View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">MVNO roaming</string>
<string name="action_settings">Settings</string>
<string name="description">With this app you can disable the roaming icon if your service provider is a mvno (mobile virtual network operator)! Just enter your providername in the textfield.</string>
<string name="inputHint">Your provider. e.g. tmobile</string>
<string name="enableOnBoot">Enable this switch to set the correct providername after a reboot, so you do not need to run this app manually!</string>
<string name="update">Update</string>
<string name="rebootSwitch">Set on reboot:</string>
<string name="copyright">Written by h44z 2013. v1.0</string>
</resources>

+ 20
- 0
res/values/styles.xml View File

@@ -0,0 +1,20 @@
<resources>
<!--
Base application theme, dependent on API level. This theme is replaced
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
-->
<style name="AppBaseTheme" parent="android:Theme.Light">
<!--
Theme customizations available in newer API levels can go in
res/values-vXX/styles.xml, while customizations related to
backward-compatibility can go here.
-->
</style>
<!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
</style>
</resources>

+ 22
- 0
src/at/sprinternet/mvnoroaming/ExecuteAsRoot.java View File

@@ -0,0 +1,22 @@
package at.sprinternet.mvnoroaming;
import java.io.IOException;
import android.util.Log;
public class ExecuteAsRoot {
public static boolean exec(String command) {
try {
Process process = Runtime.getRuntime().exec(
new String[] { "su", "-c", command });
process.waitFor();
} catch (IOException ex) {
Log.w("ROOT", "Can't get root access", ex);
return false;
} catch (InterruptedException ex) {
Log.w("ROOT", "Can't get root access", ex);
return false;
}
return true;
}
}

+ 73
- 0
src/at/sprinternet/mvnoroaming/MVNORoamingStatusChanger.java
File diff suppressed because it is too large
View File


+ 54
- 0
src/at/sprinternet/mvnoroaming/RebootService.java
File diff suppressed because it is too large
View File


+ 16
- 0
src/at/sprinternet/mvnoroaming/RebootServiceReceiver.java View File

@@ -0,0 +1,16 @@
package at.sprinternet.mvnoroaming;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
public class RebootServiceReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
if ("android.intent.action.BOOT_COMPLETED".equals(intent.getAction())) {
Intent serviceIntent = new Intent(context, RebootService.class);
context.startService(serviceIntent);
}
}
}

+ 0
- 0
srcres/icon_roam.png View File


Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save