Repository navigation
Closed
Labels
L2 FewLikelihoodOS-androidIssues involving Tailscale for AndroidP6 Blocks buildPriority levelT8 CrashIssue type
Description
Android release 1.10.1, built last night, does not proceed past the loading screen on my Pixel 3a XL. Other user reports include:
- Pixel 4 XL running Android 11
- OnePlus 8T running Android 11
- vivo 1819 running Android 11 (email report)
adb logcat lines which mention "tailscale" while app is starting:
06-30 05:54:27.100 1666 5016 I ActivityTaskManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.tailscale.ipn/.IPNActivity bnds=[236,545][439,844]} from uid 10027
06-30 05:54:27.120 2137 2238 D StartingSurfaceDrawer: addSplashScreen com.tailscale.ipn: nonLocalizedLabel=null theme=7f0a0005 task= 19300
06-30 05:54:27.160 1666 1780 I ActivityManager: Start proc 7175:com.tailscale.ipn/u0a421 for pre-top-activity {com.tailscale.ipn/com.tailscale.ipn.IPNActivity}
06-30 05:54:27.196 7175 7175 E m.tailscale.ip: Not starting debugger since process cannot load the jdwp agent.
06-30 05:54:27.160 1666 1780 I ActivityManager: Start proc 7175:com.tailscale.ipn/u0a421 for pre-top-activity {com.tailscale.ipn/com.tailscale.ipn.IPNActivity}
06-30 05:54:27.196 7175 7175 E m.tailscale.ip: Not starting debugger since process cannot load the jdwp agent.
06-30 05:54:27.258 7175 7175 W m.tailscale.ip: Entry not found
06-30 05:54:27.260 7175 7175 W m.tailscale.ip: Entry not found
06-30 05:54:27.260 7175 7175 W m.tailscale.ip: Entry not found
06-30 05:54:27.260 7175 7175 W m.tailscale.ip: Entry not found
06-30 05:54:27.267 7175 7175 W m.tailscale.ip: JIT profile information will not be recorded: profile file does not exist.
06-30 05:54:27.267 7175 7175 W m.tailscale.ip: JIT profile information will not be recorded: profile file does not exist.
06-30 05:54:27.267 7175 7175 W m.tailscale.ip: JIT profile information will not be recorded: profile file does not exist.
06-30 05:54:27.267 7175 7175 W m.tailscale.ip: JIT profile information will not be recorded: profile file does not exist.
06-30 05:54:27.274 2957 2957 I GoogleInputMethodService: GoogleInputMethodService$10.getInputViewCoverNavigationHeight():3312 insetBottom=120
06-30 05:54:27.275 7175 7175 I TetheringManager: registerTetheringEventCallback:com.tailscale.ipn
06-30 05:54:27.310 7175 7175 V GraphicsEnvironment: ANGLE Developer option for 'com.tailscale.ipn' set to: 'default'
06-30 05:54:27.310 7175 7175 V GraphicsEnvironment: Neither updatable production driver nor prerelease driver is supported.
06-30 05:54:27.572 7175 7205 I com.tailscale.ipn: logtail started
06-30 05:54:27.572 7175 7210 I com.tailscale.ipn: goSetupLogs: success
06-30 05:54:27.570 7175 7175 W m.tailscale.ipn: type=1400 audit(0.0:61): avc: denied { bind } for scontext=u:r:untrusted_app:s0:c165,c257,c512,c768 tcontext=u:r:untrusted_app:s0:c165,c257,c512,c768 tclass=netlink_route_socket permissive=0 bug=b/155595000 app=com.tailscale.ipn
06-30 05:54:27.574 7175 7210 I com.tailscale.ipn: fatal error: runBackend: NewUserspaceEngineAdvanced: route ip+net: netlinkrib: permission denied
06-30 05:54:27.798 1666 5598 W InputManager-JNI: Input channel object 'e709352 Splash Screen com.tailscale.ipn (client)' was disposed without first being removed with the input manager!
06-30 05:54:27.805 1666 1758 I ActivityTaskManager: Displayed com.tailscale.ipn/.IPNActivity: +690ms
The fatal error: runBackend: NewUserspaceEngineAdvanced: route ip+net: netlinkrib: permission denied looks most relevant.
I'll build an APK locally and try to narrow it down further.
Metadata
Metadata
Assignees
Labels
L2 FewLikelihoodOS-androidIssues involving Tailscale for AndroidP6 Blocks buildPriority levelT8 CrashIssue type
Activity
bradfitz commentedon Jun 30, 2021
The latest build bumped the target SDK version from 29 to 30 iirc. On Android, higher SDK versions bring both more APIs but also more restrictions. Maybe 30 prohibits netlink.
Cc @eliasnaur
DentonGentry commentedon Jun 30, 2021
An APK built locally shows the same symptom, which is good as it makes it debuggable.
eliasnaur commentedon Jun 30, 2021
@bradfitz called it. I'm releasing a new build with target SDK 29.
DentonGentry commentedon Jun 30, 2021
Confirming that an APK built locally with
compileSdkVersionandtargetSdkVersionset to 29 is able to start and run normally.eliasnaur commentedon Jun 30, 2021
I've released a new version with the workaround. It's a workaround because the underlying issue is not fixed (netlink access denied) and is probably the root cause of #1965 if we assume that Android 12 enforces SDK 30 behaviour.
iball commentedon Jun 30, 2021
Looks like the new version has hit the Google App Store. Installed it and no more freeze, it's working just fine for me.
android: lower target SDK to 29
android: lower target SDK to 29