{
15 | ProgressDialog progDialog;
16 | Activity activity;
17 | private boolean result_status;
18 |
19 | public UninstallDHCPv6Client(Activity activity_arg) {
20 | activity = activity_arg;
21 | progDialog = new ProgressDialog(activity_arg);
22 | }
23 |
24 | @Override
25 | protected void onPreExecute() {
26 | super.onPreExecute();
27 | progDialog.setMessage("Uninstalling ...");
28 | progDialog.setIndeterminate(false);
29 | progDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);
30 | progDialog.setCancelable(false);
31 | progDialog.show();
32 | }
33 | @Override
34 | protected String doInBackground(String... aurl) {
35 | result_status = uninstall_dhcpv6();
36 | return null;
37 | }
38 | @Override
39 | protected void onPostExecute(String unused) {
40 | super.onPostExecute(unused);
41 | MsgBoxes msg_box = new MsgBoxes();
42 | if(result_status) {
43 | SharedPreferences shared_preferences = PreferenceManager.getDefaultSharedPreferences(activity);
44 | SharedPreferences.Editor editor = shared_preferences.edit();
45 |
46 | editor.putBoolean("is_installed", false);
47 | editor.putBoolean("is_installed_update", false);
48 | editor.commit();
49 |
50 | MainActivity.option_menu_main.findItem(R.id.action_unorinstall).setTitle(R.string.action_install);
51 | MainActivity.option_menu_main.findItem(R.id.action_invoke).setEnabled(false);
52 | MainActivity.option_menu_main.findItem(R.id.action_unorinstall).setIcon(R.mipmap.ic_install);
53 |
54 | AlertDialog success = (AlertDialog) msg_box.one_button(activity, "Success", activity.getString(R.string.success_uninstall), false);
55 | success.show();
56 | }else{
57 | AlertDialog error = (AlertDialog) msg_box.one_button(activity, "Error", activity.getString(R.string.failure_uninstall) , false);
58 | error.show();
59 | }
60 | progDialog.dismiss();
61 | }
62 |
63 | public boolean uninstall_dhcpv6() {
64 | try {
65 | SUCalls.mount_rw();
66 | SUCalls.uninstall_dhcpv6_client();
67 | SUCalls.mount_ro();
68 |
69 | return true;
70 | }catch (Exception e) {
71 | return false;
72 | }
73 | }
74 | }
75 |
--------------------------------------------------------------------------------
/app/src/main/java/org/daduke/realmar/dhcpv6client/util/IabBroadcastReceiver.java:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2014 Google Inc.
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package org.daduke.realmar.dhcpv6client.util;
17 |
18 | import android.content.BroadcastReceiver;
19 | import android.content.Context;
20 | import android.content.Intent;
21 |
22 | /**
23 | * Receiver for the "com.android.vending.billing.PURCHASES_UPDATED" Action
24 | * from the Play Store.
25 | *
26 | * It is possible that an in-app item may be acquired without the
27 | * application calling getBuyIntent(), for example if the item can be
28 | * redeemed from inside the Play Store using a promotional code. If this
29 | * application isn't running at the time, then when it is started a call
30 | * to getPurchases() will be sufficient notification. However, if the
31 | * application is already running in the background when the item is acquired,
32 | * a message to this BroadcastReceiver will indicate that the an item
33 | * has been acquired.
34 | */
35 | public class IabBroadcastReceiver extends BroadcastReceiver {
36 | /**
37 | * Listener interface for received broadcast messages.
38 | */
39 | public interface IabBroadcastListener {
40 | void receivedBroadcast();
41 | }
42 |
43 | /**
44 | * The Intent action that this Receiver should filter for.
45 | */
46 | public static final String ACTION = "com.android.vending.billing.PURCHASES_UPDATED";
47 |
48 | private final IabBroadcastListener mListener;
49 |
50 | public IabBroadcastReceiver(IabBroadcastListener listener) {
51 | mListener = listener;
52 | }
53 |
54 | @Override
55 | public void onReceive(Context context, Intent intent) {
56 | if (mListener != null) {
57 | mListener.receivedBroadcast();
58 | }
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/app/src/main/java/org/daduke/realmar/dhcpv6client/util/IabException.java:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2012 Google Inc.
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package org.daduke.realmar.dhcpv6client.util;
17 |
18 | /**
19 | * Exception thrown when something went wrong with in-app billing.
20 | * An IabException has an associated IabResult (an error).
21 | * To get the IAB result that caused this exception to be thrown,
22 | * call {@link #getResult()}.
23 | */
24 | public class IabException extends Exception {
25 | IabResult mResult;
26 |
27 | public IabException(IabResult r) {
28 | this(r, null);
29 | }
30 | public IabException(int response, String message) {
31 | this(new IabResult(response, message));
32 | }
33 | public IabException(IabResult r, Exception cause) {
34 | super(r.getMessage(), cause);
35 | mResult = r;
36 | }
37 | public IabException(int response, String message, Exception cause) {
38 | this(new IabResult(response, message), cause);
39 | }
40 |
41 | /** Returns the IAB result (error) that this exception signals. */
42 | public IabResult getResult() { return mResult; }
43 | }
--------------------------------------------------------------------------------
/app/src/main/java/org/daduke/realmar/dhcpv6client/util/IabResult.java:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2012 Google Inc.
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package org.daduke.realmar.dhcpv6client.util;
17 |
18 | /**
19 | * Represents the result of an in-app billing operation.
20 | * A result is composed of a response code (an integer) and possibly a
21 | * message (String). You can get those by calling
22 | * {@link #getResponse} and {@link #getMessage()}, respectively. You
23 | * can also inquire whether a result is a success or a failure by
24 | * calling {@link #isSuccess()} and {@link #isFailure()}.
25 | */
26 | public class IabResult {
27 | int mResponse;
28 | String mMessage;
29 |
30 | public IabResult(int response, String message) {
31 | mResponse = response;
32 | if (message == null || message.trim().length() == 0) {
33 | mMessage = IabHelper.getResponseDesc(response);
34 | }
35 | else {
36 | mMessage = message + " (response: " + IabHelper.getResponseDesc(response) + ")";
37 | }
38 | }
39 | public int getResponse() { return mResponse; }
40 | public String getMessage() { return mMessage; }
41 | public boolean isSuccess() { return mResponse == IabHelper.BILLING_RESPONSE_RESULT_OK; }
42 | public boolean isFailure() { return !isSuccess(); }
43 | public String toString() { return "IabResult: " + getMessage(); }
44 | }
45 |
46 |
--------------------------------------------------------------------------------
/app/src/main/java/org/daduke/realmar/dhcpv6client/util/Inventory.java:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2012 Google Inc.
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package org.daduke.realmar.dhcpv6client.util;
17 |
18 | import java.util.ArrayList;
19 | import java.util.HashMap;
20 | import java.util.List;
21 | import java.util.Map;
22 |
23 | /**
24 | * Represents a block of information about in-app items.
25 | * An Inventory is returned by such methods as {@link IabHelper#queryInventory}.
26 | */
27 | public class Inventory {
28 | Map mSkuMap = new HashMap();
29 | Map mPurchaseMap = new HashMap();
30 |
31 | Inventory() { }
32 |
33 | /** Returns the listing details for an in-app product. */
34 | public SkuDetails getSkuDetails(String sku) {
35 | return mSkuMap.get(sku);
36 | }
37 |
38 | /** Returns purchase information for a given product, or null if there is no purchase. */
39 | public Purchase getPurchase(String sku) {
40 | return mPurchaseMap.get(sku);
41 | }
42 |
43 | /** Returns whether or not there exists a purchase of the given product. */
44 | public boolean hasPurchase(String sku) {
45 | return mPurchaseMap.containsKey(sku);
46 | }
47 |
48 | /** Return whether or not details about the given product are available. */
49 | public boolean hasDetails(String sku) {
50 | return mSkuMap.containsKey(sku);
51 | }
52 |
53 | /**
54 | * Erase a purchase (locally) from the inventory, given its product ID. This just
55 | * modifies the Inventory object locally and has no effect on the server! This is
56 | * useful when you have an existing Inventory object which you know to be up to date,
57 | * and you have just consumed an item successfully, which means that erasing its
58 | * purchase data from the Inventory you already have is quicker than querying for
59 | * a new Inventory.
60 | */
61 | public void erasePurchase(String sku) {
62 | if (mPurchaseMap.containsKey(sku)) mPurchaseMap.remove(sku);
63 | }
64 |
65 | /** Returns a list of all owned product IDs. */
66 | List getAllOwnedSkus() {
67 | return new ArrayList(mPurchaseMap.keySet());
68 | }
69 |
70 | /** Returns a list of all owned product IDs of a given type */
71 | List getAllOwnedSkus(String itemType) {
72 | List result = new ArrayList();
73 | for (Purchase p : mPurchaseMap.values()) {
74 | if (p.getItemType().equals(itemType)) result.add(p.getSku());
75 | }
76 | return result;
77 | }
78 |
79 | /** Returns a list of all purchases. */
80 | List getAllPurchases() {
81 | return new ArrayList(mPurchaseMap.values());
82 | }
83 |
84 | void addSkuDetails(SkuDetails d) {
85 | mSkuMap.put(d.getSku(), d);
86 | }
87 |
88 | void addPurchase(Purchase p) {
89 | mPurchaseMap.put(p.getSku(), p);
90 | }
91 | }
92 |
--------------------------------------------------------------------------------
/app/src/main/java/org/daduke/realmar/dhcpv6client/util/Purchase.java:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2012 Google Inc.
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package org.daduke.realmar.dhcpv6client.util;
17 |
18 | import org.json.JSONException;
19 | import org.json.JSONObject;
20 |
21 | /**
22 | * Represents an in-app billing purchase.
23 | */
24 | public class Purchase {
25 | String mItemType; // ITEM_TYPE_INAPP or ITEM_TYPE_SUBS
26 | String mOrderId;
27 | String mPackageName;
28 | String mSku;
29 | long mPurchaseTime;
30 | int mPurchaseState;
31 | String mDeveloperPayload;
32 | String mToken;
33 | String mOriginalJson;
34 | String mSignature;
35 | boolean mIsAutoRenewing;
36 |
37 | public Purchase(String itemType, String jsonPurchaseInfo, String signature) throws JSONException {
38 | mItemType = itemType;
39 | mOriginalJson = jsonPurchaseInfo;
40 | JSONObject o = new JSONObject(mOriginalJson);
41 | mOrderId = o.optString("orderId");
42 | mPackageName = o.optString("packageName");
43 | mSku = o.optString("productId");
44 | mPurchaseTime = o.optLong("purchaseTime");
45 | mPurchaseState = o.optInt("purchaseState");
46 | mDeveloperPayload = o.optString("developerPayload");
47 | mToken = o.optString("token", o.optString("purchaseToken"));
48 | mIsAutoRenewing = o.optBoolean("autoRenewing");
49 | mSignature = signature;
50 | }
51 |
52 | public String getItemType() { return mItemType; }
53 | public String getOrderId() { return mOrderId; }
54 | public String getPackageName() { return mPackageName; }
55 | public String getSku() { return mSku; }
56 | public long getPurchaseTime() { return mPurchaseTime; }
57 | public int getPurchaseState() { return mPurchaseState; }
58 | public String getDeveloperPayload() { return mDeveloperPayload; }
59 | public String getToken() { return mToken; }
60 | public String getOriginalJson() { return mOriginalJson; }
61 | public String getSignature() { return mSignature; }
62 | public boolean isAutoRenewing() { return mIsAutoRenewing; }
63 |
64 | @Override
65 | public String toString() { return "PurchaseInfo(type:" + mItemType + "):" + mOriginalJson; }
66 | }
67 |
--------------------------------------------------------------------------------
/app/src/main/java/org/daduke/realmar/dhcpv6client/util/Security.java:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2012 Google Inc.
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package org.daduke.realmar.dhcpv6client.util;
17 |
18 | import android.text.TextUtils;
19 | import android.util.Base64;
20 | import android.util.Log;
21 |
22 | import java.security.InvalidKeyException;
23 | import java.security.KeyFactory;
24 | import java.security.NoSuchAlgorithmException;
25 | import java.security.PublicKey;
26 | import java.security.Signature;
27 | import java.security.SignatureException;
28 | import java.security.spec.InvalidKeySpecException;
29 | import java.security.spec.X509EncodedKeySpec;
30 |
31 | /**
32 | * Security-related methods. For a secure implementation, all of this code
33 | * should be implemented on a server that communicates with the
34 | * application on the device. For the sake of simplicity and clarity of this
35 | * example, this code is included here and is executed on the device. If you
36 | * must verify the purchases on the phone, you should obfuscate this code to
37 | * make it harder for an attacker to replace the code with stubs that treat all
38 | * purchases as verified.
39 | */
40 | public class Security {
41 | private static final String TAG = "IABUtil/Security";
42 |
43 | private static final String KEY_FACTORY_ALGORITHM = "RSA";
44 | private static final String SIGNATURE_ALGORITHM = "SHA1withRSA";
45 |
46 | /**
47 | * Verifies that the data was signed with the given signature, and returns
48 | * the verified purchase. The data is in JSON format and signed
49 | * with a private key. The data also contains the {@link PurchaseState}
50 | * and product ID of the purchase.
51 | * @param base64PublicKey the base64-encoded public key to use for verifying.
52 | * @param signedData the signed JSON string (signed, not encrypted)
53 | * @param signature the signature for the data, signed with the private key
54 | */
55 | public static boolean verifyPurchase(String base64PublicKey, String signedData, String signature) {
56 | if (TextUtils.isEmpty(signedData) || TextUtils.isEmpty(base64PublicKey) ||
57 | TextUtils.isEmpty(signature)) {
58 | Log.e(TAG, "Purchase verification failed: missing data.");
59 | return false;
60 | }
61 |
62 | PublicKey key = Security.generatePublicKey(base64PublicKey);
63 | return Security.verify(key, signedData, signature);
64 | }
65 |
66 | /**
67 | * Generates a PublicKey instance from a string containing the
68 | * Base64-encoded public key.
69 | *
70 | * @param encodedPublicKey Base64-encoded public key
71 | * @throws IllegalArgumentException if encodedPublicKey is invalid
72 | */
73 | public static PublicKey generatePublicKey(String encodedPublicKey) {
74 | try {
75 | byte[] decodedKey = Base64.decode(encodedPublicKey, Base64.DEFAULT);
76 | KeyFactory keyFactory = KeyFactory.getInstance(KEY_FACTORY_ALGORITHM);
77 | return keyFactory.generatePublic(new X509EncodedKeySpec(decodedKey));
78 | } catch (NoSuchAlgorithmException e) {
79 | throw new RuntimeException(e);
80 | } catch (InvalidKeySpecException e) {
81 | Log.e(TAG, "Invalid key specification.");
82 | throw new IllegalArgumentException(e);
83 | }
84 | }
85 |
86 | /**
87 | * Verifies that the signature from the server matches the computed
88 | * signature on the data. Returns true if the data is correctly signed.
89 | *
90 | * @param publicKey public key associated with the developer account
91 | * @param signedData signed data from server
92 | * @param signature server signature
93 | * @return true if the data and signature match
94 | */
95 | public static boolean verify(PublicKey publicKey, String signedData, String signature) {
96 | byte[] signatureBytes;
97 | try {
98 | signatureBytes = Base64.decode(signature, Base64.DEFAULT);
99 | } catch (IllegalArgumentException e) {
100 | Log.e(TAG, "Base64 decoding failed.");
101 | return false;
102 | }
103 | try {
104 | Signature sig = Signature.getInstance(SIGNATURE_ALGORITHM);
105 | sig.initVerify(publicKey);
106 | sig.update(signedData.getBytes());
107 | if (!sig.verify(signatureBytes)) {
108 | Log.e(TAG, "Signature verification failed.");
109 | return false;
110 | }
111 | return true;
112 | } catch (NoSuchAlgorithmException e) {
113 | Log.e(TAG, "NoSuchAlgorithmException.");
114 | } catch (InvalidKeyException e) {
115 | Log.e(TAG, "Invalid key specification.");
116 | } catch (SignatureException e) {
117 | Log.e(TAG, "Signature exception.");
118 | }
119 | return false;
120 | }
121 | }
122 |
--------------------------------------------------------------------------------
/app/src/main/java/org/daduke/realmar/dhcpv6client/util/SkuDetails.java:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2012 Google Inc.
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package org.daduke.realmar.dhcpv6client.util;
17 |
18 | import org.json.JSONException;
19 | import org.json.JSONObject;
20 |
21 | /**
22 | * Represents an in-app product's listing details.
23 | */
24 | public class SkuDetails {
25 | private final String mItemType;
26 | private final String mSku;
27 | private final String mType;
28 | private final String mPrice;
29 | private final long mPriceAmountMicros;
30 | private final String mPriceCurrencyCode;
31 | private final String mTitle;
32 | private final String mDescription;
33 | private final String mJson;
34 |
35 | public SkuDetails(String jsonSkuDetails) throws JSONException {
36 | this(IabHelper.ITEM_TYPE_INAPP, jsonSkuDetails);
37 | }
38 |
39 | public SkuDetails(String itemType, String jsonSkuDetails) throws JSONException {
40 | mItemType = itemType;
41 | mJson = jsonSkuDetails;
42 | JSONObject o = new JSONObject(mJson);
43 | mSku = o.optString("productId");
44 | mType = o.optString("type");
45 | mPrice = o.optString("price");
46 | mPriceAmountMicros = o.optLong("price_amount_micros");
47 | mPriceCurrencyCode = o.optString("price_currency_code");
48 | mTitle = o.optString("title");
49 | mDescription = o.optString("description");
50 | }
51 |
52 | public String getSku() { return mSku; }
53 | public String getType() { return mType; }
54 | public String getPrice() { return mPrice; }
55 | public long getPriceAmountMicros() { return mPriceAmountMicros; }
56 | public String getPriceCurrencyCode() { return mPriceCurrencyCode; }
57 | public String getTitle() { return mTitle; }
58 | public String getDescription() { return mDescription; }
59 |
60 | @Override
61 | public String toString() {
62 | return "SkuDetails:" + mJson;
63 | }
64 | }
65 |
--------------------------------------------------------------------------------
/app/src/main/res/animator/fade_in.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
--------------------------------------------------------------------------------
/app/src/main/res/animator/fade_out.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/about_fragment.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
14 |
15 |
23 |
24 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
12 |
13 |
14 |
18 |
19 |
20 |
24 |
25 |
26 |
27 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_settings_advanced.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
12 |
13 |
14 |
18 |
19 |
20 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_settings_advanced_add.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
12 |
13 |
14 |
18 |
19 |
20 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/custom_dhcpv6_fragment.xml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
13 |
19 |
20 |
29 |
30 |
34 |
35 |
36 |
43 |
44 |
45 |
46 |
53 |
54 |
63 |
64 |
69 |
70 |
71 |
78 |
79 |
91 |
92 |
100 |
101 |
102 |
103 |
104 |
105 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/custom_list_view_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
15 |
16 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/custom_list_view_seperator.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
16 |
17 |
22 |
23 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/main_fragment.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
14 |
15 |
20 |
21 |
22 |
23 |
28 |
29 |
33 |
34 |
41 |
42 |
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/nav_header.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
17 |
18 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/settings_activity.xml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/support_fragment.xml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/toolbar.xml:
--------------------------------------------------------------------------------
1 |
2 |
13 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/about_activity.xml:
--------------------------------------------------------------------------------
1 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/client_main.xml:
--------------------------------------------------------------------------------
1 |
56 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/custom_dhcpv6_menu.xml:
--------------------------------------------------------------------------------
1 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/settings_activity.xml:
--------------------------------------------------------------------------------
1 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/settings_advanced_add_menu.xml:
--------------------------------------------------------------------------------
1 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/settings_advanced_menu.xml:
--------------------------------------------------------------------------------
1 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/support_activity.xml:
--------------------------------------------------------------------------------
1 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/app_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-hdpi/app_icon.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/drawable_plus.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-hdpi/drawable_plus.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_about.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-hdpi/ic_about.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_donate.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-hdpi/ic_donate.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_home.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-hdpi/ic_home.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_install.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-hdpi/ic_install.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_invoke.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-hdpi/ic_invoke.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_menu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-hdpi/ic_menu.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_settings.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-hdpi/ic_settings.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_support.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-hdpi/ic_support.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_uninstall.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-hdpi/ic_uninstall.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/app_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-mdpi/app_icon.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/drawable_plus.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-mdpi/drawable_plus.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_about.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-mdpi/ic_about.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_donate.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-mdpi/ic_donate.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_home.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-mdpi/ic_home.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_install.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-mdpi/ic_install.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_invoke.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-mdpi/ic_invoke.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_menu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-mdpi/ic_menu.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_settings.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-mdpi/ic_settings.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_support.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-mdpi/ic_support.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_uninstall.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-mdpi/ic_uninstall.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/app_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-xhdpi/app_icon.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/drawable_plus.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-xhdpi/drawable_plus.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_about.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-xhdpi/ic_about.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_donate.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-xhdpi/ic_donate.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_home.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-xhdpi/ic_home.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_install.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-xhdpi/ic_install.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_invoke.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-xhdpi/ic_invoke.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_menu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-xhdpi/ic_menu.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_settings.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-xhdpi/ic_settings.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_support.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-xhdpi/ic_support.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_uninstall.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-xhdpi/ic_uninstall.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/app_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-xxhdpi/app_icon.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/drawable_plus.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-xxhdpi/drawable_plus.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_about.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-xxhdpi/ic_about.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_donate.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-xxhdpi/ic_donate.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_home.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-xxhdpi/ic_home.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_install.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-xxhdpi/ic_install.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_invoke.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-xxhdpi/ic_invoke.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_menu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-xxhdpi/ic_menu.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_settings.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-xxhdpi/ic_settings.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_support.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-xxhdpi/ic_support.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_uninstall.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-xxhdpi/ic_uninstall.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/app_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-xxxhdpi/app_icon.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/drawable_plus.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-xxxhdpi/drawable_plus.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_about.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-xxxhdpi/ic_about.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_donate.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-xxxhdpi/ic_donate.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_home.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-xxxhdpi/ic_home.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_install.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-xxxhdpi/ic_install.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_invoke.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-xxxhdpi/ic_invoke.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_menu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-xxxhdpi/ic_menu.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_settings.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-xxxhdpi/ic_settings.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_support.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-xxxhdpi/ic_support.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_uninstall.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/mipmap-xxxhdpi/ic_uninstall.png
--------------------------------------------------------------------------------
/app/src/main/res/raw/.no_delete:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/raw/.no_delete
--------------------------------------------------------------------------------
/app/src/main/res/raw/dhcpv6_base.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/raw/dhcpv6_base.zip
--------------------------------------------------------------------------------
/app/src/main/res/raw/dhcpv6_update.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/app/src/main/res/raw/dhcpv6_update.zip
--------------------------------------------------------------------------------
/app/src/main/res/values-w820dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 64dp
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | DHCPv6 Client
3 |
4 | Install
5 | Update
6 | Uninstall
7 | Settings
8 | About
9 | Donate
10 | Support
11 | Manually Invoke
12 | Home
13 | About
14 | Settings
15 | Donate
16 | Support
17 | Invoke
18 | Advanced Settings
19 | Advanced Settings
20 |
21 | Enable / Disable
22 | Interfaces to process
23 | Misc
24 | More Interfaces
25 | Custom
26 | Donate
27 | More
28 | Debug
29 |
30 | Enabled
31 | Disabled
32 |
33 | WiFi
34 | All Interfaces
35 |
36 | Debugging
37 |
38 | DHCPv6 client currently active
39 | DHCPv6 client currently not active
40 |
41 | Get an IPv6 address over WiFi
42 | Perform DHCPv6 on all available interfaces
43 |
44 | Show debugging messages
45 |
46 | Donate
47 | About
48 | Support
49 | Add Interfaces
50 | Add Interface
51 | pref_button_add_interface_key
52 | Advanced
53 |
54 | Donate
55 | Donate
56 | Donate
57 |
58 | Thank You!
59 |
60 | Custom Interface
61 | cust_interface_button
62 |
63 | Support me and the development :)
64 | About this app
65 | Get support
66 | Configure more interfaces on which you want to do DHCPv6
67 | More settings for experienced users
68 |
69 | Buy me an energy drink for full speed coding
70 | Buy me a sandwich to improve my cognitive ability
71 | Buy me a lunch
72 |
73 | for donating, this means a lot to me! You support my work and further development.\n\nNote: the original prices are in CHF (Swiss Francs)
74 |
75 | Run DHCPv6
76 | Manually Invoke
77 | Refresh
78 |
79 | This app is written and created by Anastassios Martakos\n\nWhat does this app do?\nThis app gets an IPv6 address over DHCPv6.\n\nIssue:\nAndroid currently only supports SLAAC (Stateless Address Autoconfiguration) in IPv6 networks and no DHCPv6. Read more: https://code.google.com/p/android/issues/detail?id=32621\nFor this reason I did some research and created this app.\n\nDetailed Explanation:\nFairphone (Enterprise) has a DHCPv6 client implementation in their Android ROM. I went through their source and took their DHCPv6 binary. Although Fairphone uses the wide-dhcpv6 client (http://wide-dhcpv6.sourceforge.net/), they have written their own scripts around the binary. Simply taking the source of wide-dhcpv6 and compiling it for arm won\'t work but it is possible to compile the binary and then using the scripts from Fairphone.\n\nWhat does this app do?\nThis app starts the Fairphones DHCPv6 client every time the phone connects to a WiFi network (or any network, you can configure this) and gets an IPv6 address over DHCPv6.\n\nCommunicating with the DHCPv6 Client binary\nThis app listens with a broadcast receiver to network changes. Every time you connect to a network (any network it is configurable through the advanced menu in the settings) it invokes a communicator binary (dhcp6ctl) to communicate with the master process (dhcp6c), this master process is automatically invoked by this app if it is not running, to get an IPv6 address using DHCPv6.\n\nDo I need this app?\nYes, if you want to access IPv6 networks with DHCP address distribution. This app makes you future-proof\n\nTroubleshooting:\nIt asks me if I want to install the DHCPv6 client every time I start the app - Update your busybox\nI dont get an IPv6 address - Verify that you have IPv6 available in your network, then disable and enable WiFi, reboot your phone\nThe app freezes for some time - Please report when und where, although it should continue working after a while\nOther issues - Open an isse on github: https://github.com/realmar/DHCPv6-Client-Android/issues\n\nCredits:\nAnastassios Martakos - Developing this app\nFairphone (https://www.fairphone.com/) - providing the source of their ROM\nGoogle - For their Android icon set (https://www.google.com/design/icons/index.html)\n\nUsed binaries (licences may apply):\nWIDE-DHCPv6 (http://wide-dhcpv6.sourceforge.net/) - Providing the source of their DHCP client\n\nSource Code: https://github.com/realmar/DHCPv6-Client-Android\n
80 |
81 | Support:\nPlease open an issue on github: https://github.com/realmar/DHCPv6-Client-Android/issues
82 | You can now manually run the DHCPv6 client for ONE TIME (invoke manually once) on the interfaces you specified above. For Automated invocation refer to the settings page. (The DHCPv6 client is invoked automatically as specified in the settings page)
83 |
84 | Thank you SO much for donating!
85 | There was an error with your purchase
86 |
87 | Open navigation drawer
88 | Close navigation drawer
89 |
90 | It seems that your phone is based on the armv8 architecture which has 64-bit support.\nAlthough the DHCPv6 SHOULD work anyway but there is a slight chance that it doesn\'t.\n\nThis is just a warning so you can ignore it because your system should be multiarch.string>
91 | It seems that your phone is based on a x86 or x86_64 architecture. This architecture is currently not supported.\nAlthough there is a slight chance that the DHCPv6 client might work, give it a try.string>
92 |
93 | Could not connect to Google Play Services.
94 | Please retry in a few seconds. Or reopen donation page.
95 | There was an error with your purchase:
96 | Thank you SO much for donating!
97 |
98 | Trying to get an IPv6 on:
99 |
100 | Failed to acquire root access
101 | It seems that you have no root permissions on your device, this software will not work without root. Only showing assigned IP addresses.
102 | Busybox not found
103 | It seems that you have Busybox not installed, this is a requirement
104 | Commands missing
105 | It seems that some required commands are missing. Please verify, that all commands mentioned at the bottom are available in /system/bin.\n\nYou can achieve this by using adb and standard unix command line tools.\n\nAlso you can reinstall busybox or try a different version of busybox.\n\nYou can also open an issue on github: https://github.com/realmar/DHCPv6-Client-Android/issues\nI\'m happy to help you there.\n\n
106 |
107 | Couldn\'t verify files, please try again or open an issue and describe your problem on github: https://github.com/realmar/DHCPv6-Client-Android/issues
108 | Couldn\'t create files, please try again or open an issue and describe your problem on github: https://github.com/realmar/DHCPv6-Client-Android/issues
109 | Couldn\'t copy files, please try again or open an issue and describe your problem on github: https://github.com/realmar/DHCPv6-Client-Android/issues
110 | Unexpected error in installation, please try again or open an issue and describe your problem on github: https://github.com/realmar/DHCPv6-Client-Android/issues
111 | It seems that an error occurred, try again or open an issue and describe your problem on github: https://github.com/realmar/DHCPv6-Client-Android/issues
112 |
113 | DHCPv6 Client update Available
114 | Touch here to update the DHCPv6 Client (This update is required in order for the client to work)
115 |
116 | The DHCPv6 client was successfully installed
117 | The DHCPv6 client update was successfully installed
118 |
119 | IP address copied to clipboard
120 |
121 | DHCPv6 Client Update
122 | It seems that you recently updated this app.\n\nWith this new version it is required to install additional binaries in order for the client to work.\nDo you want to install those binaries now?
123 | There is not enough space left on /system. Please delete some files which you don\'t need (eg. ringstones, apps, etc…) and try again
124 | Do you want to install the DHCPv6 client?
125 | Are you sure you want to uninstall the DHCPv6 client?
126 | \n\nDo you want to retry and download the required files from the internet?
127 | An active internet connection is required to download the files from the internet, please retry when you have an active and working internet connection.
128 |
129 | The DHCPv6 client was successfully uninstalled
130 | It seems that an Error occurred, restart application
131 |
132 |
--------------------------------------------------------------------------------
/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
9 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/app/src/main/res/xml/donate.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
10 |
11 |
14 |
15 |
18 |
19 |
20 |
21 |
24 |
25 |
28 |
29 |
--------------------------------------------------------------------------------
/app/src/main/res/xml/preferences.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
12 |
13 |
14 |
17 |
18 |
23 |
24 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/app/src/main/res/xml/preferences_advanced.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
12 |
13 |
14 |
17 |
18 |
23 |
24 |
25 |
26 |
29 |
30 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/app/src/main/res/xml/preferences_advanced_add_interfaces.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
7 |
--------------------------------------------------------------------------------
/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | }
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:2.3.2'
9 |
10 | // NOTE: Do not place your application dependencies here; they belong
11 | // in the individual module build.gradle files
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | jcenter()
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realmar/DHCPv6-Client-Android/d80e071040ca24e189a3014805f90e88b1a0bb19/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri May 12 19:46:22 CEST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
7 |
--------------------------------------------------------------------------------
/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
10 | DEFAULT_JVM_OPTS=""
11 |
12 | APP_NAME="Gradle"
13 | APP_BASE_NAME=`basename "$0"`
14 |
15 | # Use the maximum available, or set MAX_FD != -1 to use that value.
16 | MAX_FD="maximum"
17 |
18 | warn ( ) {
19 | echo "$*"
20 | }
21 |
22 | die ( ) {
23 | echo
24 | echo "$*"
25 | echo
26 | exit 1
27 | }
28 |
29 | # OS specific support (must be 'true' or 'false').
30 | cygwin=false
31 | msys=false
32 | darwin=false
33 | case "`uname`" in
34 | CYGWIN* )
35 | cygwin=true
36 | ;;
37 | Darwin* )
38 | darwin=true
39 | ;;
40 | MINGW* )
41 | msys=true
42 | ;;
43 | esac
44 |
45 | # For Cygwin, ensure paths are in UNIX format before anything is touched.
46 | if $cygwin ; then
47 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
48 | fi
49 |
50 | # Attempt to set APP_HOME
51 | # Resolve links: $0 may be a link
52 | PRG="$0"
53 | # Need this for relative symlinks.
54 | while [ -h "$PRG" ] ; do
55 | ls=`ls -ld "$PRG"`
56 | link=`expr "$ls" : '.*-> \(.*\)$'`
57 | if expr "$link" : '/.*' > /dev/null; then
58 | PRG="$link"
59 | else
60 | PRG=`dirname "$PRG"`"/$link"
61 | fi
62 | done
63 | SAVED="`pwd`"
64 | cd "`dirname \"$PRG\"`/" >&-
65 | APP_HOME="`pwd -P`"
66 | cd "$SAVED" >&-
67 |
68 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
69 |
70 | # Determine the Java command to use to start the JVM.
71 | if [ -n "$JAVA_HOME" ] ; then
72 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
73 | # IBM's JDK on AIX uses strange locations for the executables
74 | JAVACMD="$JAVA_HOME/jre/sh/java"
75 | else
76 | JAVACMD="$JAVA_HOME/bin/java"
77 | fi
78 | if [ ! -x "$JAVACMD" ] ; then
79 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
80 |
81 | Please set the JAVA_HOME variable in your environment to match the
82 | location of your Java installation."
83 | fi
84 | else
85 | JAVACMD="java"
86 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
87 |
88 | Please set the JAVA_HOME variable in your environment to match the
89 | location of your Java installation."
90 | fi
91 |
92 | # Increase the maximum file descriptors if we can.
93 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
94 | MAX_FD_LIMIT=`ulimit -H -n`
95 | if [ $? -eq 0 ] ; then
96 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
97 | MAX_FD="$MAX_FD_LIMIT"
98 | fi
99 | ulimit -n $MAX_FD
100 | if [ $? -ne 0 ] ; then
101 | warn "Could not set maximum file descriptor limit: $MAX_FD"
102 | fi
103 | else
104 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
105 | fi
106 | fi
107 |
108 | # For Darwin, add options to specify how the application appears in the dock
109 | if $darwin; then
110 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
111 | fi
112 |
113 | # For Cygwin, switch paths to Windows format before running java
114 | if $cygwin ; then
115 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
116 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
117 |
118 | # We build the pattern for arguments to be converted via cygpath
119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
120 | SEP=""
121 | for dir in $ROOTDIRSRAW ; do
122 | ROOTDIRS="$ROOTDIRS$SEP$dir"
123 | SEP="|"
124 | done
125 | OURCYGPATTERN="(^($ROOTDIRS))"
126 | # Add a user-defined pattern to the cygpath arguments
127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
129 | fi
130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
131 | i=0
132 | for arg in "$@" ; do
133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
135 |
136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
138 | else
139 | eval `echo args$i`="\"$arg\""
140 | fi
141 | i=$((i+1))
142 | done
143 | case $i in
144 | (0) set -- ;;
145 | (1) set -- "$args0" ;;
146 | (2) set -- "$args0" "$args1" ;;
147 | (3) set -- "$args0" "$args1" "$args2" ;;
148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
154 | esac
155 | fi
156 |
157 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
158 | function splitJvmOpts() {
159 | JVM_OPTS=("$@")
160 | }
161 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
162 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
163 |
164 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
165 |
--------------------------------------------------------------------------------
/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/install.sh:
--------------------------------------------------------------------------------
1 | #
2 | # Created by Anastassios Martakos on 22/09/2015
3 | #
4 |
5 | wget -O ./app/src/main/res/raw/dhcpv6_base.zip http://cmmn.realmar.net/dhcp/dhcpv6_base.zip
6 | wget -O ./app/src/main/res/raw/dhcpv6_update.zip http://cmmn.realmar.net/dhcp/dhcpv6_update.zip
7 |
8 | echo "Done."
9 | echo "You can verify ZIP files in ./app/src/main/res/raw/"
10 | echo "Remember to enter your public key in app/src/main/java/org/daduke/realmar/dhcpv6client/BillingPublicKey.java"
11 |
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------