Skip to content

Commit

Permalink
Rename package
Browse files Browse the repository at this point in the history
  • Loading branch information
HMBSbige committed Nov 7, 2019
1 parent adc1502 commit c449b34
Show file tree
Hide file tree
Showing 64 changed files with 236 additions and 266 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ShadowsocksRR
A ShadowsocksRR client for Android, written in Java.
# shadowsocksr
A shadowsocksr client for Android, written in Java.



Expand Down
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ apply plugin: 'kotlin-android-extensions'
android {
compileSdkVersion rootProject.compileSdkVersion
defaultConfig {
applicationId "com.github.shadowsocksr_hmbsbige"
applicationId "com.bige0.shadowsocksr"
minSdkVersion rootProject.minSdkVersion
targetSdkVersion rootProject.sdkVersion
versionCode rootProject.versionCode
Expand Down
44 changes: 22 additions & 22 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?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.github.shadowsocks">
package="com.bige0.shadowsocksr">

<application
android:name=".ShadowsocksApplication"
android:name="com.bige0.shadowsocksr.ShadowsocksApplication"
android:allowBackup="true"
android:banner="@drawable/ic_start_connected"
android:hardwareAccelerated="true"
Expand All @@ -16,7 +16,7 @@
android:usesCleartextTraffic="true">

<activity
android:name=".Shadowsocks"
android:name="com.bige0.shadowsocksr.Shadowsocks"
android:label="@string/app_name"
android:launchMode="singleTask">
<intent-filter>
Expand All @@ -34,30 +34,30 @@
android:resource="@xml/shortcuts" />
</activity>
<activity
android:name=".ShadowsocksRunnerActivity"
android:name="com.bige0.shadowsocksr.ShadowsocksRunnerActivity"
android:excludeFromRecents="true"
android:launchMode="singleTask"
android:taskAffinity=""
android:theme="@android:style/Theme.Translucent.NoTitleBar" />

<activity
android:name=".ProfileManagerActivity"
android:name="com.bige0.shadowsocksr.ProfileManagerActivity"
android:excludeFromRecents="true"
android:label="@string/profiles"
android:launchMode="singleTask"
android:parentActivityName=".Shadowsocks">
android:parentActivityName="com.bige0.shadowsocksr.Shadowsocks">
<intent-filter>
<action android:name="com.github.shadowsocks.ProfileManagerActivity" />
<action android:name="com.bige0.shadowsocksr.ProfileManagerActivity" />

<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
<action android:name="com.github.shadowsocks.intent.action.SORT" />
<action android:name="com.bige0.shadowsocksr.intent.action.SORT" />

<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
<action android:name="com.github.shadowsocks.intent.action.SCAN" />
<action android:name="com.bige0.shadowsocksr.intent.action.SCAN" />

<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
Expand Down Expand Up @@ -93,38 +93,38 @@
</intent-filter>
</activity>
<activity
android:name=".ScannerActivity"
android:name="com.bige0.shadowsocksr.ScannerActivity"
android:excludeFromRecents="true"
android:label="@string/add_profile_methods_scan_qr_code"
android:parentActivityName=".ProfileManagerActivity" />
android:parentActivityName="com.bige0.shadowsocksr.ProfileManagerActivity" />
<activity
android:name=".AppManager"
android:name="com.bige0.shadowsocksr.AppManager"
android:excludeFromRecents="true"
android:label="@string/proxied_apps"
android:launchMode="singleTask"
android:parentActivityName=".Shadowsocks" />
android:parentActivityName="com.bige0.shadowsocksr.Shadowsocks" />
<activity
android:name=".TaskerActivity"
android:name="com.bige0.shadowsocksr.TaskerActivity"
android:icon="@mipmap/ic_launcher">
<intent-filter>
<action android:name="com.twofortyfouram.locale.intent.action.EDIT_SETTING" />
</intent-filter>
</activity>
<activity
android:name=".ShadowsocksQuickSwitchActivity"
android:name="com.bige0.shadowsocksr.ShadowsocksQuickSwitchActivity"
android:excludeFromRecents="true"
android:label="@string/quick_switch"
android:launchMode="singleInstance"
android:taskAffinity=""
android:theme="@style/PopupTheme.QuickSwitch">
<intent-filter>
<action android:name="com.github.shadowsocks.QUICK_SWITCH" />
<action android:name="com.bige0.shadowsocksr.QUICK_SWITCH" />

<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".QuickToggleShortcut"
android:name="com.bige0.shadowsocksr.QuickToggleShortcut"
android:excludeFromRecents="true"
android:label="@string/quick_toggle"
android:launchMode="singleTask"
Expand All @@ -140,7 +140,7 @@
android:value="@integer/google_play_services_version" />

<receiver
android:name=".BootReceiver"
android:name="com.bige0.shadowsocksr.BootReceiver"
android:directBootAware="true"
android:enabled="false">
<intent-filter>
Expand All @@ -149,7 +149,7 @@
</intent-filter>
</receiver>
<receiver
android:name=".TaskerReceiver"
android:name="com.bige0.shadowsocksr.TaskerReceiver"
tools:ignore="ExportedReceiver">
<intent-filter>
<action android:name="com.twofortyfouram.locale.intent.action.FIRE_SETTING" />
Expand All @@ -164,10 +164,10 @@
android:process=":bg" />

<service
android:name=".ShadowsocksRunnerService"
android:name="com.bige0.shadowsocksr.ShadowsocksRunnerService"
android:exported="false" />
<service
android:name=".ShadowsocksVpnService"
android:name="com.bige0.shadowsocksr.ShadowsocksVpnService"
android:exported="false"
android:label="@string/app_name"
android:permission="android.permission.BIND_VPN_SERVICE"
Expand All @@ -177,7 +177,7 @@
</intent-filter>
</service>
<service
android:name=".ShadowsocksTileService"
android:name="com.bige0.shadowsocksr.ShadowsocksTileService"
android:icon="@drawable/ic_start_connected"
android:label="@string/quick_toggle"
android:permission="android.permission.BIND_QUICK_SETTINGS_TILE"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.github.shadowsocks.aidl;
package com.bige0.shadowsocksr.aidl;

import com.github.shadowsocks.aidl.IShadowsocksServiceCallback;
import com.bige0.shadowsocksr.aidl.IShadowsocksServiceCallback;

interface IShadowsocksService {
int getState();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.shadowsocks.aidl;
package com.bige0.shadowsocksr.aidl;

interface IShadowsocksServiceCallback {
oneway void stateChanged(int state, String profileName, String msg);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.shadowsocks
package com.bige0.shadowsocksr

import android.*
import android.app.*
Expand All @@ -11,8 +11,8 @@ import android.widget.*
import androidx.appcompat.app.*
import androidx.appcompat.widget.Toolbar
import androidx.recyclerview.widget.*
import com.github.shadowsocks.database.*
import com.github.shadowsocks.utils.*
import com.bige0.shadowsocksr.database.*
import com.bige0.shadowsocksr.utils.*
import java.util.*
import java.util.concurrent.atomic.*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.github.shadowsocks
package com.bige0.shadowsocksr

import android.app.*
import android.content.*
import android.os.*
import com.github.shadowsocks.aidl.*
import com.github.shadowsocks.database.*
import com.github.shadowsocks.utils.*
import com.bige0.shadowsocksr.aidl.*
import com.bige0.shadowsocksr.database.*
import com.bige0.shadowsocksr.utils.*
import okhttp3.*
import java.io.*
import java.net.*
Expand Down Expand Up @@ -297,7 +297,7 @@ abstract class BaseService : Service()
private fun updateTrafficTotal(tx: Long, rx: Long)
{
// avoid race conditions without locking
val profile = this.profile
val profile = profile
if (profile != null)
{
val p = ShadowsocksApplication.app.profileManager.getProfile(profile.id)
Expand Down Expand Up @@ -352,7 +352,7 @@ abstract class BaseService : Service()
return START_NOT_STICKY
}

protected fun changeState(s: Int, msg: String? = null)
private fun changeState(s: Int, msg: String? = null)
{
val handler = Handler(Looper.getMainLooper())
handler.post {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.github.shadowsocks
package com.bige0.shadowsocksr

import android.app.*
import android.content.*
import android.net.*
import android.os.*
import com.github.shadowsocks.aidl.*
import com.github.shadowsocks.database.*
import com.github.shadowsocks.utils.*
import com.bige0.shadowsocksr.aidl.*
import com.bige0.shadowsocksr.database.*
import com.bige0.shadowsocksr.utils.*
import okhttp3.*
import java.io.*
import java.net.*
Expand Down Expand Up @@ -330,7 +330,7 @@ abstract class BaseVpnService : VpnService()
private fun updateTrafficTotal(tx: Long, rx: Long)
{
// avoid race conditions without locking
val profile = this.profile
val profile = profile
if (profile != null)
{
val p = ShadowsocksApplication.app.profileManager.getProfile(profile.id)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.github.shadowsocks
package com.bige0.shadowsocksr

import android.content.*
import android.content.pm.*
import android.os.*
import androidx.core.content.*
import com.github.shadowsocks.ShadowsocksApplication.Companion.app
import com.github.shadowsocks.utils.*
import com.bige0.shadowsocksr.ShadowsocksApplication.Companion.app
import com.bige0.shadowsocksr.utils.*

class BootReceiver : BroadcastReceiver()
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package com.github.shadowsocks
package com.bige0.shadowsocksr

import android.util.*
import com.github.shadowsocks.utils.*
import com.bige0.shadowsocksr.utils.*
import java.io.*
import java.lang.System
import java.util.concurrent.*

class GuardedProcess(private val cmd: List<String>)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.shadowsocks
package com.bige0.shadowsocksr

import android.annotation.*
import android.app.*
Expand All @@ -20,14 +20,14 @@ import androidx.appcompat.widget.*
import androidx.appcompat.widget.Toolbar
import androidx.core.app.TaskStackBuilder
import androidx.recyclerview.widget.*
import com.bige0.shadowsocksr.aidl.*
import com.bige0.shadowsocksr.database.*
import com.bige0.shadowsocksr.network.ping.*
import com.bige0.shadowsocksr.network.request.*
import com.bige0.shadowsocksr.network.ssrsub.*
import com.bige0.shadowsocksr.utils.*
import com.bige0.shadowsocksr.widget.*
import com.github.clans.fab.*
import com.github.shadowsocks.aidl.*
import com.github.shadowsocks.database.*
import com.github.shadowsocks.network.ping.*
import com.github.shadowsocks.network.request.*
import com.github.shadowsocks.network.ssrsub.*
import com.github.shadowsocks.utils.*
import com.github.shadowsocks.widget.*
import com.google.android.material.snackbar.*
import net.glxn.qrgen.android.*
import java.nio.charset.*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.shadowsocks
package com.bige0.shadowsocksr

import android.app.*
import android.content.*
Expand All @@ -7,7 +7,7 @@ import android.os.*
import androidx.core.content.*
import androidx.core.content.pm.*
import androidx.core.graphics.drawable.*
import com.github.shadowsocks.utils.*
import com.bige0.shadowsocksr.utils.*

class QuickToggleShortcut : Activity()
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.shadowsocks
package com.bige0.shadowsocksr

import android.*
import android.app.TaskStackBuilder
Expand All @@ -9,7 +9,7 @@ import androidx.appcompat.app.*
import androidx.appcompat.widget.*
import androidx.core.app.*
import androidx.core.content.*
import com.github.shadowsocks.utils.*
import com.bige0.shadowsocksr.utils.*
import com.google.zxing.*
import me.dm7.barcodescanner.zxing.*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.github.shadowsocks
package com.bige0.shadowsocksr

import android.content.*
import android.os.*
import com.github.shadowsocks.aidl.*
import com.github.shadowsocks.utils.*
import com.bige0.shadowsocksr.aidl.*
import com.bige0.shadowsocksr.utils.*

open class ServiceBoundContext(base: Context) : ContextWrapper(base), IBinder.DeathRecipient
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.github.shadowsocks
package com.bige0.shadowsocksr

import android.app.*
import android.content.*
import android.os.*
import com.github.shadowsocks.aidl.*
import com.github.shadowsocks.utils.*
import com.bige0.shadowsocksr.aidl.*
import com.bige0.shadowsocksr.utils.*

abstract class ServiceBoundService : Service(), IBinder.DeathRecipient
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.shadowsocks
package com.bige0.shadowsocksr

import android.annotation.*
import android.app.*
Expand All @@ -12,12 +12,12 @@ import android.widget.*
import androidx.appcompat.app.*
import androidx.appcompat.widget.Toolbar
import androidx.core.content.*
import com.bige0.shadowsocksr.aidl.*
import com.bige0.shadowsocksr.database.*
import com.bige0.shadowsocksr.job.*
import com.bige0.shadowsocksr.network.request.*
import com.bige0.shadowsocksr.utils.*
import com.github.jorgecastilloprz.*
import com.github.shadowsocks.aidl.*
import com.github.shadowsocks.database.*
import com.github.shadowsocks.job.*
import com.github.shadowsocks.network.request.*
import com.github.shadowsocks.utils.*
import com.google.android.material.floatingactionbutton.*
import com.google.android.material.snackbar.*
import java.util.*
Expand Down
Loading

0 comments on commit c449b34

Please sign in to comment.