Skip to content

Derive runtime package names dynamically#867

Open
vibhor1102 wants to merge 1 commit into
Nain57:masterfrom
vibhor1102:feature/runtime-package-name-upstream
Open

Derive runtime package names dynamically#867
vibhor1102 wants to merge 1 commit into
Nain57:masterfrom
vibhor1102:feature/runtime-package-name-upstream

Conversation

@vibhor1102

@vibhor1102 vibhor1102 commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • derive package-sensitive runtime targets from the installed app package instead of hardcoding com.buzbuz.smartautoclicker
  • fix tutorial launch, notification settings routing, and notification action broadcast names for builds where the package name differs from vanilla
  • keep the change narrow and behavior-preserving for normal builds while improving support for obscured or otherwise renamed package variants

Why

This is meant to solve a possible issue with the obscured version and any other package name modifications.

In my personal fork with a modified package name, hardcoded app package usage caused crashes. The most noticeable case was opening the tutorial, which led to an instant crash because the app tried to start a component under the vanilla package name.

More generally, avoiding hardcoded app package names in these runtime paths is good hygiene and makes the app more robust to package renaming.

Fixes #925

Testing

  • hosted fork debug APK workflow passed for the equivalent patch on my fork
  • the resulting patched debug APK installed successfully on device after replacing an older debug install
  • this exact upstream branch/version has not been manually tested by me on device yet

@vibhor1102 vibhor1102 force-pushed the feature/runtime-package-name-upstream branch from b8fd5f5 to 9abd9e6 Compare June 24, 2026 14:14
@Nain57 Nain57 mentioned this pull request Jun 25, 2026
@Nain57 Nain57 added acknowledged-priority-low The bug has been reproduced, but due the minor impact, it is not an absolute priority to fix it. and removed acknowledged-priority-low The bug has been reproduced, but due the minor impact, it is not an absolute priority to fix it. labels Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

App crashes on opening tutorial in obscured or renamed package builds

2 participants