splondike / polipoid

Android wrapper for the polipo proxy
GNU General Public License v3.0
35 stars 12 forks source link

Polipoid fails to start on Blackberry Priv #17

Closed afwang closed 6 years ago

afwang commented 7 years ago

Here is the stacktrace I see when I try launching on the Priv:

12-31 14:54:22.262: D/AndroidRuntime(12794): Shutting down VM
12-31 14:54:22.262: E/AndroidRuntime(12794): FATAL EXCEPTION: main
12-31 14:54:22.262: E/AndroidRuntime(12794): Process: com.polipoid, PID: 12794
12-31 14:54:22.262: E/AndroidRuntime(12794): java.lang.RuntimeException: Unable to create service com.polipoid.backend.ProxyWrapperService: java.lang.RuntimeException: Unhandled CPU architecture
12-31 14:54:22.262: E/AndroidRuntime(12794):    at android.app.ActivityThread.handleCreateService(ActivityThread.java:2887)
12-31 14:54:22.262: E/AndroidRuntime(12794):    at android.app.ActivityThread.access$1900(ActivityThread.java:150)
12-31 14:54:22.262: E/AndroidRuntime(12794):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1427)
12-31 14:54:22.262: E/AndroidRuntime(12794):    at android.os.Handler.dispatchMessage(Handler.java:102)
12-31 14:54:22.262: E/AndroidRuntime(12794):    at android.os.Looper.loop(Looper.java:148)
12-31 14:54:22.262: E/AndroidRuntime(12794):    at android.app.ActivityThread.main(ActivityThread.java:5417)
12-31 14:54:22.262: E/AndroidRuntime(12794):    at java.lang.reflect.Method.invoke(Native Method)
12-31 14:54:22.262: E/AndroidRuntime(12794):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:764)
12-31 14:54:22.262: E/AndroidRuntime(12794):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
12-31 14:54:22.262: E/AndroidRuntime(12794): Caused by: java.lang.RuntimeException: Unhandled CPU architecture
12-31 14:54:22.262: E/AndroidRuntime(12794):    at com.polipoid.backend.proxy.Installation.getPolipoBinary(Installation.java:362)
12-31 14:54:22.262: E/AndroidRuntime(12794):    at com.polipoid.backend.proxy.Installation.installBinary(Installation.java:197)
12-31 14:54:22.262: E/AndroidRuntime(12794):    at com.polipoid.backend.proxy.Installation.checkInstallation(Installation.java:184)
12-31 14:54:22.262: E/AndroidRuntime(12794):    at com.polipoid.backend.proxy.Installation.setup(Installation.java:51)
12-31 14:54:22.262: E/AndroidRuntime(12794):    at com.polipoid.backend.proxy.ProxyManager.<init>(ProxyManager.java:38)
12-31 14:54:22.262: E/AndroidRuntime(12794):    at com.polipoid.backend.ProxyWrapperService.onCreate(ProxyWrapperService.java:46)
13-31 14:54:22.262: E/AndroidRuntime(12794):    at android.app.ActivityThread.handleCreateService(ActivityThread.java:2877)
12-31 14:54:22.262: E/AndroidRuntime(12794):    ... 8 more

Here is the phone's build properties related to CPU ABIs and architectures:

ro.product.cpu.abi=arm64-v8a
ro.product.cpu.abilist=arm64-v8a,armeabi-v7a,armeabi
ro.product.cpu.abilist32=armeabi-v7a,armeabi
ro.product.cpu.abilist64=arm64-v8a

Is there any additional information the maintainers of this project would like for me to provide?

This occurs on Polipoid version 1.2.1 from the F-Droid repositories.

splondike commented 7 years ago

@afwang Thanks for the report, it looks like it's got everything I'd need in it.

Version 1.2.1 only ships with an x86 and arm32 binary and so my code checks CPU architectures and throws that exception if it doesn't see one of those. Perhaps the code is too strict; it may be possible to run arm32 binaries on arm64. If not, then I'd just have to add another one to the package.

splondike commented 6 years ago

Closing issue, the patch from June should have addressed it.