Commit Graph

293 Commits

Author SHA1 Message Date
M66B f9b178bdee Fixed sorting when no telephony
Fixes #188
2015-12-01 20:04:31 +01:00
M66B 2e8b841e65 More techinal info 2015-12-01 19:58:27 +01:00
M66B f54a8ac3b7 Reload on in service only 2015-12-01 17:42:38 +01:00
M66B f0d0e5a65c Refresh screen on phone state permission revoked 2015-12-01 17:28:13 +01:00
M66B d441b29234 Refresh screen after import 2015-12-01 17:25:07 +01:00
M66B 8bb0b9e256 Added phone state listener + permission checks 2015-12-01 17:14:22 +01:00
M66B 2c2480f052 Check runtime permissions (Android M) 2015-12-01 16:17:28 +01:00
M66B b412495a8c More technical/debug info 2015-12-01 15:57:19 +01:00
M66B 470c1288cd Simplifications, debug info for national roaming 2015-11-30 16:05:08 +01:00
M66B 722646102f Reload rules on national roaming change 2015-11-30 14:02:00 +01:00
M66B 966a2a30bb Donation terms & conditions 2015-11-30 13:08:51 +01:00
M66B b20770b995 Added setting to ignore national roaming 2015-11-30 12:57:50 +01:00
M66B e1ca35f6fb Fixed typo 2015-11-29 15:29:56 +01:00
M66B bdb6e4a09f Better support for devices without telephony (e.g. tablets) 2015-11-29 11:30:27 +01:00
M66B 59d887a739 Lollipop required 2015-11-29 09:01:24 +01:00
M66B 5efb3e18ba Prevent crash 2015-11-29 08:34:04 +01:00
M66B dbc5955260 Let the service manage the wakelocks 2015-11-28 16:15:55 +01:00
M66B 01dadb9801 Revert "Notify app added"
Closes #183
Refs #182

This reverts commit 97c38d1d0a.

Conflicts:
	app/build.gradle
2015-11-28 08:28:24 +01:00
M66B bdc6333af5 Workaround restart problems 2015-11-27 20:55:51 +01:00
M66B 97c38d1d0a Notify app added
Refs #182

Test version: http://netguard.me/NetGuard-v0.44-2015112702-release.apk
2015-11-27 19:59:00 +01:00
M66B bbb0232dee Add version code to debug info again 2015-11-27 13:55:09 +01:00
M66B 91843c9c2f Always update widget state
Refs #181
2015-11-27 13:48:48 +01:00
M66B 2e6bda828a Catch VPN prepare exceptions widget (2)
refs #181
2015-11-27 13:44:22 +01:00
M66B e0bcbf54ac Added prepared to logcat 2015-11-27 13:39:04 +01:00
M66B b6056df9ed Catch VPN prepare exceptions widget
Refs #181
2015-11-27 13:32:17 +01:00
M66B f00dc6a373 Disable NetGuard if VPN dialog fails 2015-11-27 09:26:34 +01:00
M66B 3291ecc501 Assume metered when no connectivity 2015-11-27 08:27:29 +01:00
M66B 88aca8be36 Update pending intents
Refs #181
2015-11-27 08:23:18 +01:00
M66B 5c50ab8fe1 Fixed cancelling logcat 2015-11-27 08:02:05 +01:00
M66B b9600233f0 Use storage framework to store logcat 2015-11-26 20:34:03 +01:00
M66B 84ba096715 Added IAB safe guards 2015-11-26 08:41:20 +01:00
M66B ed893c8329 Simplification 2015-11-26 08:34:33 +01:00
M66B 2f42e18b2e Show disconnected state 2015-11-25 21:09:00 +01:00
M66B a516cc0007 Low/highlight rule conditions too 2015-11-25 20:52:56 +01:00
M66B cf171d730e Highlight metered connection
Fixes #179
2015-11-25 20:05:17 +01:00
M66B b00a284cb7 Fixed sending feedback when IAB not available 2015-11-25 09:29:31 +01:00
M66B bbce9e14e9 Can it be more subtle?
Test version:
http://www.netguard.me/NetGuard-v0.41-release-subtle.apk
2015-11-25 08:41:24 +01:00
M66B ad3672bde6 Gray background for unchanged rules 2015-11-24 18:43:56 +01:00
M66B c5316320d0 Check if prepared for widget on 2015-11-24 16:33:18 +01:00
M66B 87769405f3 Upgrade after importing 2015-11-24 12:00:22 +01:00
M66B 34cc8e1951 Do not release wakelock on destroy
11-24 11:23:06.613 17818 17864 I NetGuard.Service: wakelock=false
11-24 11:23:28.191 17818 17818 I NetGuard.Main: Destroy

--- wakelocks are being released

11-24 11:23:28.213   792  9532 I ActivityManager: Killing 17818:eu.faircode.netguard/u0a500 (adj 16): remove task
11-24 11:23:28.271   792  2662 W ActivityManager: Scheduling restart of crashed service eu.faircode.netguard/.SinkholeService in 10300ms
11-24 11:23:28.920   792   805 I ActivityManager: Start proc 29215:eu.faircode.netguard/u0a500 for broadcast eu.faircode.netguard/.Widget
11-24 11:23:28.959 29215 29215 W System  : ClassLoader referenced unknown path: /data/app/eu.faircode.netguard-1/lib/arm
11-24 11:23:28.962 29215 29215 I NetGuard.App: Create version=0.40
11-24 11:23:28.963 29215 29215 I NetGuard.Widget: Received Intent { act=eu.faircode.netguard.APPWIDGET_ON flg=0x10000010 cmp=eu.faircode.netguard/.Widget bnds=[828,300][1044,549] }
11-24 11:23:28.976 29215 29215 I NetGuard.Service: Create
11-24 11:23:28.982 29215 29215 I NetGuard.Service: Restart
11-24 11:23:28.983 29215 29215 I NetGuard.Service: Start intent=Intent { cmp=eu.faircode.netguard/.SinkholeService (has extras) } command=start vpn=false

--- service is recreated

11-24 11:23:28.984 29215 29215 I NetGuard.Service: Start intent=Intent { cmp=eu.faircode.netguard/.SinkholeService (has extras) } command=start vpn=false
11-24 11:23:28.985 29215 29233 I NetGuard.Service: Executing intent=Intent { cmp=eu.faircode.netguard/.SinkholeService (has extras) } command=start vpn=false
11-24 11:23:29.000 29215 29233 I NetGuard.Service: Starting wifi=true metered=false/true roaming=false interactive=true
11-24 11:23:29.022 29215 29233 D NetGuard.Service: Predefined com.google.android.apps.adm blocked=false roaming=false
11-24 11:23:29.022 29215 29233 D NetGuard.Service: Relation com.android.vending related=com.google.android.gms,com.android.providers.downloads
11-24 11:23:29.022 29215 29233 D NetGuard.Service: Relation com.android.chrome related=com.android.providers.downloads
11-24 11:23:29.578 29215 29233 I NetGuard.Service: Allowed=9 blocked=164
11-24 11:23:29.597   792  2662 I Vpn     : Established by eu.faircode.netguard on tun0
11-24 11:23:29.610 29215 29233 I NetGuard.Service: wakelock=false

-- executing second start

11-24 11:23:29.610 29215 29233 I NetGuard.Service: Executing intent=Intent { cmp=eu.faircode.netguard/.SinkholeService (has extras) } command=start vpn=true
11-24 11:23:29.610 29215 29233 E NetGuard.Service: java.lang.RuntimeException: WakeLock under-locked NetGuard wakelock
11-24 11:23:29.610 29215 29233 E NetGuard.Service: java.lang.RuntimeException: WakeLock under-locked NetGuard wakelock
11-24 11:23:29.610 29215 29233 E NetGuard.Service: 	at android.os.PowerManager$WakeLock.release(PowerManager.java:1157)
11-24 11:23:29.610 29215 29233 E NetGuard.Service: 	at android.os.PowerManager$WakeLock.release(PowerManager.java:1128)
11-24 11:23:29.610 29215 29233 E NetGuard.Service: 	at eu.faircode.netguard.SinkholeService$ServiceHandler.handleMessage(SinkholeService.java:97)
11-24 11:23:29.610 29215 29233 E NetGuard.Service: 	at android.os.Handler.dispatchMessage(Handler.java:102)
11-24 11:23:29.610 29215 29233 E NetGuard.Service: 	at android.os.Looper.loop(Looper.java:148)
11-24 11:23:29.610 29215 29233 E NetGuard.Service: 	at android.os.HandlerThread.run(HandlerThread.java:61)

-- under locked, because wakelocks were released

11-24 11:23:34.070 12346 12346 D Finsky  : [1] AppCrashProxy.onCreate: Sending feedback for crashed eu.faircode.netguard to com.google.android.gms
11-24 11:23:37.810   792   805 E ActivityManager:  +0% 29215/eu.faircode.netguard: 0% user + 0%
11-24 11:24:41.708   792   805 E ActivityManager:   0.2% 29215/eu.faircode.netguard: 0.1% user + 0% kernel / faults: 9 minor
11-24 11:25:42.400 29215 29215 I NetGuard.Service: Received Intent { act=android.intent.action.SCREEN_OFF flg=0x50000010 }
11-24 11:25:42.402 29215 29215 W NetGuard.Service: Wakelock not held
11-24 11:25:42.404 29215 29215 I NetGuard.Service: Start intent=Intent { cmp=eu.faircode.netguard/.SinkholeService (has extras) } command=reload vpn=true
2015-11-24 11:32:58 +01:00
M66B 90598c2a79 Added some logging 2015-11-24 10:54:43 +01:00
M66B 6565938101 Refactoring 2015-11-24 10:44:02 +01:00
M66B 9010ac3dc3 Handle service restart 2015-11-24 10:42:45 +01:00
M66B 190a73aa49 Removed yields 2015-11-23 12:17:36 +01:00
M66B d240694797 Reload rules when comming from idle mode (Android M) 2015-11-23 11:44:59 +01:00
M66B fcac4fec03 Report IAB errors 2015-11-23 11:05:44 +01:00
M66B ab6d65152d Fixed log level 2015-11-23 11:05:16 +01:00
M66B ac637888e5 Prevent bug reporting from crashing NetGuard 2015-11-23 10:58:22 +01:00
M66B 84df549beb Disable NetGuard on start, reload, stop errors 2015-11-23 10:58:05 +01:00