From cdb62dcd83202fb0fb77c3b86d5cdcd05d45f28f Mon Sep 17 00:00:00 2001 From: Mis012 Date: Thu, 19 Jan 2023 17:09:58 +0100 Subject: [PATCH] hacks: add a makefile and a README --- hacks/README.md | 15 +++++++++++++++ hacks/ctr2/Makefile | 5 +++++ 2 files changed, 20 insertions(+) create mode 100644 hacks/README.md create mode 100644 hacks/ctr2/Makefile diff --git a/hacks/README.md b/hacks/README.md new file mode 100644 index 00000000..beff5034 --- /dev/null +++ b/hacks/README.md @@ -0,0 +1,15 @@ +##### what's this? + +This contains examples of overriding classes inside the apk that you are launching, +currently for the purposes of avoiding having to make stuff not crash that we don't even +care about. (ideally we would figure out why it crashes and make sure it doesn't do that, +but it's hard to motivate oneself to do that when the issue is with something that has no +place being part of the app to begin with) + +##### how to apply the override? + +Currently, the way to apply an override is to use the `Makefile` to compile `classes3.dex`, +and then to add this file to the `api-impl.jar`, making it part of bootclasspath. +If it's enough to have it be part of classpath, then adding support for specifying multiple +classpath entries would also solve this issue; otherwise a way to specify additional +bootclasspath entries would be needed. diff --git a/hacks/ctr2/Makefile b/hacks/ctr2/Makefile new file mode 100644 index 00000000..ed86e7e6 --- /dev/null +++ b/hacks/ctr2/Makefile @@ -0,0 +1,5 @@ +all: + javac -source 7 -target 7 -cp ../../*/src/api-impl/hax.jar com/google/android/youtube/player/*.java + dx --dex --output=classes3.dex com/google/android/youtube/player/*.class +default: + all