Skip to content

fix(Instagram): Resolve bytecode verifier crashes - #1600

Merged
swakwork merged 2 commits into
crimera:devfrom
naoverse06:fix/insta-3.9.0-dev1
Jul 27, 2026
Merged

fix(Instagram): Resolve bytecode verifier crashes#1600
swakwork merged 2 commits into
crimera:devfrom
naoverse06:fix/insta-3.9.0-dev1

Conversation

@naoverse06

@naoverse06 naoverse06 commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Fixes multiple issues occurring in instagram 439.0.0.37.89 patched with piko 3.9.0-dev.1. the inbox crash occurred because the action bar hook ran before CHECK_CAST established the register as an IgdsActionBar, causing the verifier to reject a View passed as a ViewGroup. the profile crash occurred because the friendship status patch skipped a required integer initialization, leaving a register typed as a String where an integer was expected. moves the inbox hook after the required type conversion and preserves the integer initialization before bypassing the internal badge checks. restores the profile action bar hook after instagram's action bar builder and validates the target method, required fields, parameters, and registers before injection. the profile action bar dependency and settings fallback behavior are also restored.

Testing

  • .\gradlew.bat :patches:check --rerun-tasks --console=plain
  • .\gradlew.bat :patches:clean :patches:buildAndroid --console=plain
  • Tested on Instagram 439.0.0.37.89 with Piko 3.9.0-dev.1
  • Tested on Samsung Galaxy S26

Closes #1592 , #1601

@swakwork

Copy link
Copy Markdown
Collaborator

Is it possible to separate the profile action bar fix as a different commit as it's a different fix. If it's not possible no worries

@naoverse06
naoverse06 marked this pull request as draft July 27, 2026 15:46
@naoverse06
naoverse06 force-pushed the fix/insta-3.9.0-dev1 branch from 696a4e6 to 5cf2a42 Compare July 27, 2026 17:06
@swakwork

Copy link
Copy Markdown
Collaborator

Good to merge ?

@naoverse06
naoverse06 marked this pull request as ready for review July 27, 2026 17:42
@swakwork
swakwork merged commit acdf708 into crimera:dev Jul 27, 2026
1 check passed
@naoverse06
naoverse06 deleted the fix/insta-3.9.0-dev1 branch July 27, 2026 19:04
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.

2 participants