soul-browser/app/smali/android/support/v4/media/session/IMediaSession$Default.smali
KaKi87 550ddb0413
Decompile and recreate Soul Browser v1.4.85 with APK CI builds (#1)
* Decompile and recreate Soul Browser v1.4.85 with APK CI builds

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Fix CI build: include bundled google.jks and remove PR trigger

The apktool build failed in CI because app/unknown/.../google.jks was
excluded by the *.jks gitignore rule. Whitelist app-bundled JKS files
and commit the missing resource.

Also remove the redundant pull_request workflow trigger.

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Change package ID to com.github.kaki87.soulbrowser

Rename the application ID so the rebuilt APK can be installed
alongside the original Soul Browser from Google Play.

- Update AndroidManifest package, permissions, providers, and actions
- Update R class references in smali (com/github/kaki87/soulbrowser/R)
- Update shortcuts.xml targetPackage
- Rename app label to "Soul Rebuild" for easy identification

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Fix install compatibility: remove split APK metadata and bundle native libs

The rebuilt APK still declared requiredSplitTypes and Play Store split
metadata, causing Android to reject standalone installs as incompatible.

- Remove requiredSplitTypes and split-related manifest meta-data
- Merge native libs from all ABI splits with uncompressed storage
- Page-align before signing for extractNativeLibs=false
- Add .so to apktool doNotCompress list

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Fix install failure: use apksigner v2/v3 and bundle arm64 native libs

Target SDK 36 requires APK Signature Scheme v2+, but jarsigner only
produces v1 signatures, causing Android to reject the install.

- Sign with apksigner (v1+v2+v3) instead of jarsigner
- Add arm64-v8a native libraries from universal Soul Browser 1.4.79
- Set extractNativeLibs=true for reliable sideload installs
- Commit stable debug keystore for consistent signatures across builds

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Add committed debug keystore for consistent APK signatures

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Fix startup crash: use original classes2.dex desugar libraries

Apktool recompiles smali_classes2 into a broken classes2.dex, causing
ClassNotFoundException for j$.com.android.tools.r8.a at ML Kit init.

Inject the original classes2.dex (Java 8+ desugar libs) after apktool
build instead of using the recompiled version.

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Fix missing drawable resources from density split APKs

The base APK is an app bundle module; density-specific drawables like
seek_thumb_nor_b live in config.xhdpi.apk and were missing after rebuild,
causing Resources$NotFoundException at runtime.

- Merge non-9-patch resources from split APKs before apktool build
- Sync public.xml IDs from R smali only when backing files exist
- Add 713 density-specific resource IDs to public.xml

Co-authored-by: KaKi87 <KaKi87@pm.me>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-08-10 16:07:14 +02:00

391 lines
6.3 KiB
Smali

.class public Landroid/support/v4/media/session/IMediaSession$Default;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Landroid/support/v4/media/session/IMediaSession;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroid/support/v4/media/session/IMediaSession;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "Default"
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
.line 3
.line 4
return-void
.end method
# virtual methods
.method public addQueueItem(Landroid/support/v4/media/MediaDescriptionCompat;)V
.locals 0
return-void
.end method
.method public addQueueItemAt(Landroid/support/v4/media/MediaDescriptionCompat;I)V
.locals 0
return-void
.end method
.method public adjustVolume(IILjava/lang/String;)V
.locals 0
return-void
.end method
.method public asBinder()Landroid/os/IBinder;
.locals 1
const/4 v0, 0x0
return-object v0
.end method
.method public fastForward()V
.locals 0
return-void
.end method
.method public getExtras()Landroid/os/Bundle;
.locals 1
const/4 v0, 0x0
return-object v0
.end method
.method public getFlags()J
.locals 2
const-wide/16 v0, 0x0
return-wide v0
.end method
.method public getLaunchPendingIntent()Landroid/app/PendingIntent;
.locals 1
const/4 v0, 0x0
return-object v0
.end method
.method public getMetadata()Landroid/support/v4/media/MediaMetadataCompat;
.locals 1
const/4 v0, 0x0
return-object v0
.end method
.method public getPackageName()Ljava/lang/String;
.locals 1
const/4 v0, 0x0
return-object v0
.end method
.method public getPlaybackState()Landroid/support/v4/media/session/PlaybackStateCompat;
.locals 1
const/4 v0, 0x0
return-object v0
.end method
.method public getQueue()Ljava/util/List;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Landroid/support/v4/media/session/MediaSessionCompat$QueueItem;",
">;"
}
.end annotation
const/4 v0, 0x0
return-object v0
.end method
.method public getQueueTitle()Ljava/lang/CharSequence;
.locals 1
const/4 v0, 0x0
return-object v0
.end method
.method public getRatingType()I
.locals 1
const/4 v0, 0x0
return v0
.end method
.method public getRepeatMode()I
.locals 1
const/4 v0, 0x0
return v0
.end method
.method public getSessionInfo()Landroid/os/Bundle;
.locals 1
const/4 v0, 0x0
return-object v0
.end method
.method public getShuffleMode()I
.locals 1
const/4 v0, 0x0
return v0
.end method
.method public getTag()Ljava/lang/String;
.locals 1
const/4 v0, 0x0
return-object v0
.end method
.method public getVolumeAttributes()Landroid/support/v4/media/session/ParcelableVolumeInfo;
.locals 1
const/4 v0, 0x0
return-object v0
.end method
.method public isCaptioningEnabled()Z
.locals 1
const/4 v0, 0x0
return v0
.end method
.method public isShuffleModeEnabledRemoved()Z
.locals 1
const/4 v0, 0x0
return v0
.end method
.method public isTransportControlEnabled()Z
.locals 1
const/4 v0, 0x0
return v0
.end method
.method public next()V
.locals 0
return-void
.end method
.method public pause()V
.locals 0
return-void
.end method
.method public play()V
.locals 0
return-void
.end method
.method public playFromMediaId(Ljava/lang/String;Landroid/os/Bundle;)V
.locals 0
return-void
.end method
.method public playFromSearch(Ljava/lang/String;Landroid/os/Bundle;)V
.locals 0
return-void
.end method
.method public playFromUri(Landroid/net/Uri;Landroid/os/Bundle;)V
.locals 0
return-void
.end method
.method public prepare()V
.locals 0
return-void
.end method
.method public prepareFromMediaId(Ljava/lang/String;Landroid/os/Bundle;)V
.locals 0
return-void
.end method
.method public prepareFromSearch(Ljava/lang/String;Landroid/os/Bundle;)V
.locals 0
return-void
.end method
.method public prepareFromUri(Landroid/net/Uri;Landroid/os/Bundle;)V
.locals 0
return-void
.end method
.method public previous()V
.locals 0
return-void
.end method
.method public rate(Landroid/support/v4/media/RatingCompat;)V
.locals 0
return-void
.end method
.method public rateWithExtras(Landroid/support/v4/media/RatingCompat;Landroid/os/Bundle;)V
.locals 0
return-void
.end method
.method public registerCallbackListener(Landroid/support/v4/media/session/IMediaControllerCallback;)V
.locals 0
return-void
.end method
.method public removeQueueItem(Landroid/support/v4/media/MediaDescriptionCompat;)V
.locals 0
return-void
.end method
.method public removeQueueItemAt(I)V
.locals 0
return-void
.end method
.method public rewind()V
.locals 0
return-void
.end method
.method public seekTo(J)V
.locals 0
return-void
.end method
.method public sendCommand(Ljava/lang/String;Landroid/os/Bundle;Landroid/support/v4/media/session/MediaSessionCompat$ResultReceiverWrapper;)V
.locals 0
return-void
.end method
.method public sendCustomAction(Ljava/lang/String;Landroid/os/Bundle;)V
.locals 0
return-void
.end method
.method public sendMediaButton(Landroid/view/KeyEvent;)Z
.locals 0
const/4 p1, 0x0
return p1
.end method
.method public setCaptioningEnabled(Z)V
.locals 0
return-void
.end method
.method public setPlaybackSpeed(F)V
.locals 0
return-void
.end method
.method public setRepeatMode(I)V
.locals 0
return-void
.end method
.method public setShuffleMode(I)V
.locals 0
return-void
.end method
.method public setShuffleModeEnabledRemoved(Z)V
.locals 0
return-void
.end method
.method public setVolumeTo(IILjava/lang/String;)V
.locals 0
return-void
.end method
.method public skipToQueueItem(J)V
.locals 0
return-void
.end method
.method public stop()V
.locals 0
return-void
.end method
.method public unregisterCallbackListener(Landroid/support/v4/media/session/IMediaControllerCallback;)V
.locals 0
return-void
.end method