Hans-Christoph Steiner e5334fd797 ignore crashes with WifiApControl in SwapService.onDestroy()
Instead of trying to figure out the state and what to do to properly shut
things down, this just executes the methods and catches any exception.

STACK_TRACE=java.lang.RuntimeException: Unable to stop service org.fdroid.fdroid.nearby.SwapService@2ff80b9: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])' on a null object reference
	at android.app.ActivityThread.handleStopService(ActivityThread.java:4136)
	at android.app.ActivityThread.access$1900(ActivityThread.java:219)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1896)
	at android.os.Handler.dispatchMessage(Handler.java:107)
	at android.os.Looper.loop(Looper.java:214)
	at android.app.ActivityThread.main(ActivityThread.java:7356)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:940)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])' on a null object reference
	at cc.mvdan.accesspoint.WifiApControl.invokeQuietly(WifiApControl.java:178)
	at cc.mvdan.accesspoint.WifiApControl.setWifiApEnabled(WifiApControl.java:250)
	at cc.mvdan.accesspoint.WifiApControl.setEnabled(WifiApControl.java:259)
	at cc.mvdan.accesspoint.WifiApControl.disable(WifiApControl.java:269)
	at org.fdroid.fdroid.nearby.SwapService.onDestroy(SwapService.java:454)
	at android.app.ActivityThread.handleStopService(ActivityThread.java:4116)
	... 8 more
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])' on a null object reference
	at cc.mvdan.accesspoint.WifiApControl.invokeQuietly(WifiApControl.java:178)
	at cc.mvdan.accesspoint.WifiApControl.setWifiApEnabled(WifiApControl.java:250)
	at cc.mvdan.accesspoint.WifiApControl.setEnabled(WifiApControl.java:259)
	at cc.mvdan.accesspoint.WifiApControl.disable(WifiApControl.java:269)
	at org.fdroid.fdroid.nearby.SwapService.onDestroy(SwapService.java:454)
	at android.app.ActivityThread.handleStopService(ActivityThread.java:4116)
	at android.app.ActivityThread.access$1900(ActivityThread.java:219)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1896)
	at android.os.Handler.dispatchMessage(Handler.java:107)
	at android.os.Looper.loop(Looper.java:214)
	at android.app.ActivityThread.main(ActivityThread.java:7356)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:940)
2021-09-10 17:40:15 +02:00
2021-02-23 17:53:33 +01:00
2021-08-26 13:09:00 +00:00
2021-09-03 17:32:21 +02:00
2020-07-14 14:10:21 +02:00
2021-09-03 17:32:21 +02:00
2016-09-28 22:15:00 +01:00
2015-08-24 10:35:55 -07:00

F-Droid Client

build status Translation status

Client for F-Droid, the Free Software repository system for Android.

Building with Gradle

./gradlew assembleRelease

Direct download

You can download the application directly from our site or browse it in the repo.

Contributing

See our Contributing doc for information on how to report issues, translate the app into your language or help with development.

IRC

We are on #fdroid and #fdroid-dev on OFTC. We hold weekly dev meetings on #fdroid-dev on Thursdays at 11:30h UTC, which usually last half an hour.

FAQ

  • Why does F-Droid require "Unknown Sources" to install apps by default?

Because a regular Android app cannot act as a package manager on its own. To do so, it would require system privileges (see below), similar to what Google Play does.

  • Can I avoid enabling "Unknown Sources" by installing F-Droid as a privileged system app?

This used to be the case, but no longer is. Now the Privileged Extension is the one that should be placed in the system. It can be bundled with a ROM or installed via a zip.

License

This program is Free Software: You can use, study share and improve it at your will. Specifically you can redistribute and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Some icons are made by Picol, Icomoon or Dave Gandy from Flaticon or by Google and are licensed by Creative Commons BY 3.0.

Other icons are from the Material Design Icon set released under an Attribution 4.0 International license.

Translation

Everything can be translated. See Translation and Localization for more info. translation status

Description
No description provided
Readme GPL-3.0 63 MiB
Languages
Kotlin 49.8%
Java 48.6%
Python 0.9%
Shell 0.5%
AIDL 0.1%