Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatibility with the Samsung August patch #29

Closed
aryan-shetty opened this issue Sep 10, 2020 · 25 comments
Closed

Incompatibility with the Samsung August patch #29

aryan-shetty opened this issue Sep 10, 2020 · 25 comments
Labels
not a bug It isn't a bug or isn't our bug.

Comments

@aryan-shetty
Copy link

Hi, the app keeps crashing after I installed the latest software update on my galaxy A50. Used to work without any issues before. Tried re installing, still the same issue.

@krlvm
Copy link
Owner

krlvm commented Sep 10, 2020

I have updated my Samsung phone yesterday to the September patch and all is fine.
Could you share adb logcat?
Thanks in advance.

@aryan-shetty
Copy link
Author

OK so I had no idea what adb logcat was (I'm not a developer) and after pondering on the internet to learn about it, the command not working on my Windows 7 so upgrading to Windows 10, I finally was able to get the logcat and have attached the logcat.txt file which I hope is what you asked for.
Guess I learned something new today haha. Thanks for the help!
logcat.txt

@krlvm
Copy link
Owner

krlvm commented Sep 10, 2020

The error throws because the latest security update requested a new permission to start VPN - android.permission.INTERACT_ACROSS_USERS (why?):
Neither user 10229 nor current process has android.permission.INTERACT_ACROSS_USERS

I will push the fix within a 30 minutes!

Thank you!

@krlvm krlvm added the bug Something isn't working label Sep 10, 2020
@krlvm krlvm self-assigned this Sep 10, 2020
@krlvm
Copy link
Owner

krlvm commented Sep 10, 2020

After some searching, I figured out that it is a rare bug of a small amount of vendors, it should be fixed with the next software upgrade.

Do you have Samsung Secured Folder enabled?

I removed some stuff that could trigger the bug, this APK should work:
Version: v1.7.1-test-10-09-20
Commit: 2b0d5bca6b167b701ded38bcee552e16fd6bdf99
Download: PowerTunnel-v1.7.1-test.zip
Changelog since the latest release:

  • Optimized performance (commit)
  • Disabled package filtration (commit is not in the main branch)

@aryan-shetty
Copy link
Author

I don't have secure folder enabled, does having it enabled help?

The new APK doesn't crash now but I can't load any webpages while it's running.

@krlvm
Copy link
Owner

krlvm commented Sep 10, 2020

I don't have secure folder enabled, does having it enabled help?

No, it could be the cause of the problem (now we know it does not)

Check your PowerTunnel settings if the webpages can't load, and if you can't load even the government resources, please, upload a new logcat.

@aryan-shetty
Copy link
Author

aryan-shetty commented Sep 11, 2020

I was thinking if I should just grant the permission to the app using adb shell pm grant ru.krlvm.powertunnel.android android.permission.INTERACT_ACROSS_USERS I feel like this should fix the crash issue.

Edit: That doesn't work. Can you tell me a command to get logcat of only powertunnel? Whenever I use adb logcat it gives all the logs for my phone.

@krlvm
Copy link
Owner

krlvm commented Sep 11, 2020

This permission is available only for system apps, so it can't be granted without root.
The crash output is belongs to AndroidRuntime, so there is no way to filter the log I think.
Do you see the VPN key icon in the notification bar?

@aryan-shetty
Copy link
Author

Do you see the VPN key icon in the notification bar?

I see the vpn key next to the wifi symbol but there used to be a notification before as well from where I could disconnect from the notification bar, I don't see that now.

The settings are default which I used to use before and the webpages would load but now they don't with the same settings.

The crash output is belongs to AndroidRuntime, so there is no way to filter the log I think.

What command should I use then because adb logcat keeps running infinitely.

@krlvm
Copy link
Owner

krlvm commented Sep 11, 2020

You can use adb logcat > output.txt and then run PowerTunnel, after you've done, click Ctrl+C, the output will be saved in output.txt.

@aryan-shetty
Copy link
Author

Here you go. Ran powertunnel at 18:34
output.txt

@krlvm
Copy link
Owner

krlvm commented Sep 11, 2020

I see the cause of the crash is still the lack of the permission, but you said that the app is no longer crashes previously.

I will write a bug-report to Samsung, in the meantime you can configure PowerTunnel using proxy mode: enable "proxy mode" in PowerTunnel settings, and set the system proxy in WiFi settings if you're on WiFi, or on APN if you're using mobile connection, the default local proxy address is 127.0.0.1:8085.

@aryan-shetty
Copy link
Author

Cool no worries. Let me know when it's fixed.
Thanks for the help!
Cheers

@krlvm krlvm changed the title App keeps crashing Incompatibility with the latest Samsung firmware Sep 11, 2020
@krlvm krlvm added not a bug It isn't a bug or isn't our bug. and removed bug Something isn't working labels Sep 11, 2020
@krlvm
Copy link
Owner

krlvm commented Sep 11, 2020

I contacted the Samsung support, they admit the problem with the August patch and should release the fix with an upcoming September/October patch.

@aryan-shetty
Copy link
Author

Oh great. Thanks!

@krlvm
Copy link
Owner

krlvm commented Sep 12, 2020

PSA: Samsung told the issue is related to Dual Messenger feature, disabling it can resolve the issue before you've received the September patch.

@krlvm krlvm removed their assignment Sep 12, 2020
@krlvm krlvm changed the title Incompatibility with the latest Samsung firmware Incompatibility with the Samsung August patch Sep 12, 2020
@aryan-shetty
Copy link
Author

Unable to disable dual messenger but uninstalled the apps using dual messenger. Powertunnel still crashes.

@krlvm
Copy link
Owner

krlvm commented Sep 29, 2020

I see Samsung released an update for your device, can you check it?

@aryan-shetty
Copy link
Author

Yeah there was a small update few days ago but it didn't fix the problem.

@aryan-shetty
Copy link
Author

Alright so got the october patch a few days ago but the issue wasn't fixed

@krlvm
Copy link
Owner

krlvm commented Oct 26, 2020

Do other VPN apps crash when you are trying to connect?

@aryan-shetty
Copy link
Author

I've got proton vpn which doesn't crash

@krlvm
Copy link
Owner

krlvm commented Nov 12, 2020

Folks say this works with attached APK (v1.8.2-bootfix13-sam):
adb shell pm grant ru.krlvm.powertunnel.android android.permission.INTERACT_ACROSS_USERS

PowerTunnel-v1.8.2-bootfix13-sam.zip

@aryan-shetty
Copy link
Author

aryan-shetty commented Nov 12, 2020

Yup works now, thanks!

@krlvm
Copy link
Owner

krlvm commented Nov 12, 2020

Yup works now, thanks!

Thanks for the help!

@krlvm krlvm closed this as completed in 7d77b7d Nov 12, 2020
krlvm added a commit that referenced this issue Nov 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not a bug It isn't a bug or isn't our bug.
Projects
None yet
Development

No branches or pull requests

2 participants