Skip to content

Commit

Permalink
Added Support for Snapchat 11.94.0.30 Beta
Browse files Browse the repository at this point in the history
Added Support for Snapchat 11.94.0.30 Beta
  • Loading branch information
RevealedSoulEven committed Aug 23, 2022
1 parent b9ecb42 commit d44c18c
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 38 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ android {
minSdk 24
targetSdk 32
versionCode 30
versionName "1.8.3"
versionName '1.8.4'

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down
Binary file modified app/libs/snapmod.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class PlainOption(

override fun createModel(key: String): Any = ActionPlain(
text,
0,
Func0.wrap(Func0.getMappedClass().createDelegate(context.classLoader) { _, _ ->
click(key)
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ private fun displayPreview(context: FeatureContext, param: XC_MethodHook.MethodH
if (messageList.isEmpty()) previewText.append("No messages available.")
else {
val numMessages =
Integer.min(context.config.getInt("preview_messages_count", 5), messageList.size)
Integer.min(context.config.getInt("preview_messages_count", 20), messageList.size)
previewText.append("Last ").append(numMessages).append(" messages:")
messageList.takeLast(numMessages)
.map(Message::wrap).forEach { m ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ class NetworkLogging(context: FeatureContext) : Feature(context) {
val hook = { it: XC_MethodHook.MethodHookParam -> XposedBridge.log(it.args[0].toString()) }

NetworkApi.submit.before(context, "log_network_requests", hook)
NetworkApi.submitToNetworkManagerDirectly.before(context, "log_network_requests", hook)
//NetworkApi.submitToNetworkManagerDirectly.before(context, "log_network_requests", hook)
}
}
1 change: 1 addition & 0 deletions app/src/main/res/values/arrays.xml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@
<item>STICKER</item>
<item>EXTERNAL_MEDIA</item>
<item>NOTE</item>
<item>SHARE</item>
</string-array>

<string-array name="default_resolutions">
Expand Down
50 changes: 15 additions & 35 deletions snap.ds
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ class PresenceSession expects com.snapchat.talkcorev3.PresenceSession$CppProxy {
class NetworkApi expects com.snapchat.client.network_api.NetworkApi$CppProxy {

void $submit(...)
void $submitToNetworkManagerDirectly(...)
}

[certain]
Expand Down Expand Up @@ -467,12 +466,10 @@ class ChatModelSavedSnap {
!MediaType mediaType;
[discard] Uri u0;
[discard] Uri u1;
!LiveSnapMedia media;

void $<init>(Context, !MessageDataModel, String, Map, boolean, ChatReactionsBelowMessageViewModel, boolean, int, int, !LiveSnapMedia, String, ...) {
.field !ChatLayouts->!SAVED_SNAP;
.method TimeUnit->toMillis;
.method Double->isNaN;
.method Context->getResources;
}
}
Expand All @@ -483,7 +480,7 @@ class ChatModelAudioNote extends !ChatModelBase {
[discard] java.lang.String s1;
[discard] boolean b0;

void $<init>(Context, !ChatLayouts, !MessageDataModel, *, java.lang.String, java.util.Map, boolean, ...)
void $<init>(Context, !MessageDataModel, *, java.lang.String, java.util.Map, boolean, ...)

Uri getUri()
}
Expand Down Expand Up @@ -1469,7 +1466,7 @@ class ArroyoMessageListDataProvider {
}
}

[late]
[certain]
class ExportItem {

String fileName;
Expand All @@ -1488,32 +1485,34 @@ class MediaExportControllerImpl {
.string "MediaExportControllerImpl";
}

Uri exportMedia(*, *, #ExportItem, ...) {
.string "mime_type";
Uri exportMedia(*,*,*) {
.string "_display_name";
.string "mime_type";
.string "_size";
.string "date_modified";
}
}


[late, discard, exact]
class NanoChatMessageArrayType {
static this[] ta0;
* o0;
int i0;
* o1;
* o0;

void $<init>(...)

int $computeSerializedSize()

* m0()
boolean m1()

int $computeSerializedSize()

MessageNano $mergeFrom(*)
void $writeTo(*)
}

[certain, exact]
[certain]
class NanoChatMessageContent {

[not] static *[] n0;
Expand Down Expand Up @@ -1582,7 +1581,6 @@ class FriendsRepository {
}

List selectFriendsByUserIds(List) {
.new !FriendRepositoryAction;
}
}

Expand Down Expand Up @@ -1628,26 +1626,6 @@ class ChatMessageActionBuilder {
}
}

[certain]
class AudioNotePlaySession {

double playbackSpeed;

void $<init>(...) {
.string "AudioNotePlaySession";
}
}

class AudioNoteViewBindingDelegate expects com.snap.messaging.chat.ui.viewbinding.delegate.AudioNoteViewBindingDelegate {

!AudioNotePlaySession session;

void bindSession(!ChatModelAudioNote, ...) {
.string "playbackSession";
.new !AudioNotePlaySession;
}
}

[certain, discard]
class SendToControllerActionSendHandler {

Expand Down Expand Up @@ -1682,6 +1660,8 @@ enum ChatCommandSource {
}
}



[certain]
class ArroyoConvertMessagesAction {

Expand All @@ -1697,7 +1677,7 @@ class ArroyoChatCommandsClient {
.string "ArroyoChatCommandsClient";
}

void saveMessage(String, boolean, !ChatCommandSource, boolean) {
void saveMessage(*, String, boolean, boolean, !ChatCommandSource, boolean) {
.string "ArroyoChatCommandsClient";
}
}
Expand Down Expand Up @@ -1962,7 +1942,7 @@ class ActionPlain {
class NestedActionMenuContext {

Context context;
!CompositeConfigurationProvider config;


static void display(this, String, List)
}
Expand Down Expand Up @@ -2180,4 +2160,4 @@ interface Func1 {
interface Func2 {

* invoke(*, *)
}
}

0 comments on commit d44c18c

Please sign in to comment.