zhaarey 3 months ago
parent 4396e98f8c
commit 57355efab9
  1. 13
      Makefile
  2. 2
      README.md
  3. 265
      import.h
  4. 26
      main.cpp
  5. BIN
      rootfs/system/bin/linker64
  6. BIN
      rootfs/system/lib64/libBlocksRuntime.so
  7. BIN
      rootfs/system/lib64/libCoreADI.so
  8. BIN
      rootfs/system/lib64/libCoreFP.so
  9. BIN
      rootfs/system/lib64/libCoreFoundation.so
  10. BIN
      rootfs/system/lib64/libCoreLSKD.so
  11. BIN
      rootfs/system/lib64/libEGL.so
  12. BIN
      rootfs/system/lib64/libETC1.so
  13. BIN
      rootfs/system/lib64/libGLES_trace.so
  14. BIN
      rootfs/system/lib64/libGLESv1_CM.so
  15. BIN
      rootfs/system/lib64/libGLESv2.so
  16. BIN
      rootfs/system/lib64/libLLVM.so
  17. BIN
      rootfs/system/lib64/libOpenSLES.so
  18. BIN
      rootfs/system/lib64/libRS.so
  19. BIN
      rootfs/system/lib64/libRScpp.so
  20. BIN
      rootfs/system/lib64/libandroid.so
  21. BIN
      rootfs/system/lib64/libandroid_runtime.so
  22. BIN
      rootfs/system/lib64/libandroidappmusic.so
  23. BIN
      rootfs/system/lib64/libandroidfw.so
  24. BIN
      rootfs/system/lib64/libaudioutils.so
  25. BIN
      rootfs/system/lib64/libbacktrace.so
  26. BIN
      rootfs/system/lib64/libbcc.so
  27. BIN
      rootfs/system/lib64/libbcinfo.so
  28. BIN
      rootfs/system/lib64/libbinder.so
  29. BIN
      rootfs/system/lib64/libc++.so
  30. BIN
      rootfs/system/lib64/libc++_shared.so
  31. BIN
      rootfs/system/lib64/libc.so
  32. BIN
      rootfs/system/lib64/libcamera_client.so
  33. BIN
      rootfs/system/lib64/libcamera_metadata.so
  34. BIN
      rootfs/system/lib64/libcommon_time_client.so
  35. BIN
      rootfs/system/lib64/libcrypto.so
  36. BIN
      rootfs/system/lib64/libcurl.so
  37. BIN
      rootfs/system/lib64/libcutils.so
  38. BIN
      rootfs/system/lib64/libdaapkit.so
  39. BIN
      rootfs/system/lib64/libdispatch.so
  40. BIN
      rootfs/system/lib64/libdrmframework.so
  41. BIN
      rootfs/system/lib64/libeffects.so
  42. BIN
      rootfs/system/lib64/libexpat.so
  43. BIN
      rootfs/system/lib64/libft2.so
  44. BIN
      rootfs/system/lib64/libgabi++.so
  45. BIN
      rootfs/system/lib64/libgccdemangle.so
  46. BIN
      rootfs/system/lib64/libgui.so
  47. BIN
      rootfs/system/lib64/libhardware.so
  48. BIN
      rootfs/system/lib64/libhardware_legacy.so
  49. BIN
      rootfs/system/lib64/libharfbuzz_ng.so
  50. BIN
      rootfs/system/lib64/libhwui.so
  51. BIN
      rootfs/system/lib64/libicudata_sv_apple.so
  52. BIN
      rootfs/system/lib64/libicui18n.so
  53. BIN
      rootfs/system/lib64/libicui18n_sv_apple.so
  54. BIN
      rootfs/system/lib64/libicuuc.so
  55. BIN
      rootfs/system/lib64/libicuuc_sv_apple.so
  56. BIN
      rootfs/system/lib64/libimg_utils.so
  57. BIN
      rootfs/system/lib64/libinput.so
  58. BIN
      rootfs/system/lib64/libinputflinger.so
  59. BIN
      rootfs/system/lib64/libjpeg.so
  60. BIN
      rootfs/system/lib64/liblog.so
  61. BIN
      rootfs/system/lib64/libm.so
  62. BIN
      rootfs/system/lib64/libmedia.so
  63. BIN
      rootfs/system/lib64/libmedialibrarycore.so
  64. BIN
      rootfs/system/lib64/libmediaplatform.so
  65. BIN
      rootfs/system/lib64/libmemtrack.so
  66. BIN
      rootfs/system/lib64/libminikin.so
  67. BIN
      rootfs/system/lib64/libnativebridge.so
  68. BIN
      rootfs/system/lib64/libnativehelper.so
  69. BIN
      rootfs/system/lib64/libnbaio.so
  70. BIN
      rootfs/system/lib64/libnetd_client.so
  71. BIN
      rootfs/system/lib64/libnetutils.so
  72. BIN
      rootfs/system/lib64/libopus.so
  73. BIN
      rootfs/system/lib64/libpdfium.so
  74. BIN
      rootfs/system/lib64/libpng.so
  75. BIN
      rootfs/system/lib64/libpowermanager.so
  76. BIN
      rootfs/system/lib64/libprocessgroup.so
  77. BIN
      rootfs/system/lib64/libselinux.so
  78. BIN
      rootfs/system/lib64/libskia.so
  79. BIN
      rootfs/system/lib64/libsonivox.so
  80. BIN
      rootfs/system/lib64/libsoundtrigger.so
  81. BIN
      rootfs/system/lib64/libspeexresampler.so
  82. BIN
      rootfs/system/lib64/libsqlite.so
  83. BIN
      rootfs/system/lib64/libssl.so
  84. BIN
      rootfs/system/lib64/libstagefright.so
  85. BIN
      rootfs/system/lib64/libstagefright_avc_common.so
  86. BIN
      rootfs/system/lib64/libstagefright_enc_common.so
  87. BIN
      rootfs/system/lib64/libstagefright_foundation.so
  88. BIN
      rootfs/system/lib64/libstagefright_http_support.so
  89. BIN
      rootfs/system/lib64/libstagefright_omx.so
  90. BIN
      rootfs/system/lib64/libstagefright_yuv.so
  91. BIN
      rootfs/system/lib64/libstdc++.so
  92. BIN
      rootfs/system/lib64/libstlport.so
  93. BIN
      rootfs/system/lib64/libstoreservicescore.so
  94. BIN
      rootfs/system/lib64/libsync.so
  95. BIN
      rootfs/system/lib64/libui.so
  96. BIN
      rootfs/system/lib64/libunwind-ptrace.so
  97. BIN
      rootfs/system/lib64/libunwind.so
  98. BIN
      rootfs/system/lib64/libusbhost.so
  99. BIN
      rootfs/system/lib64/libutils.so
  100. BIN
      rootfs/system/lib64/libvorbisidec.so
  101. Some files were not shown because too many files have changed in this diff Show More

@ -0,0 +1,13 @@
all: handle.o main wrapper
handle.o: main.cpp
~/android-ndk-r23b/standalone/bin/clang++ -Wall -Werror -nostdlib -c -O3 -o handle.o main.cpp
main: handle.o test.c
~/android-ndk-r23b/standalone/bin/clang -DMyRelease -Wall -Werror -L ./rootfs/system/lib64 -landroidappmusic -lstoreservicescore -lmediaplatform -lc++_shared -O3 -Wall -o rootfs/system/bin/main handle.o test.c
wrapper: wrapper.c
clang -O3 -Wall -o wrapper wrapper.c
clean:
rm handle.o wrapper rootfs/system/bin/main

@ -1,2 +1,2 @@
# wrapper # wrapper
apple-music-wrapper All files from anonymous, No need for an Android emulator to decrypt alac

@ -0,0 +1,265 @@
#pragma once
struct shared_ptr {
void *obj;
void *ctrl_blk;
};
union std_string {
struct {
uint8_t mark;
char str[0];
};
struct {
size_t cap;
size_t size;
const char *data;
};
};
struct std_vector {
void *begin;
void *end;
void *end_capacity;
};
static inline union std_string new_std_string(const char *s) {
union std_string str = {
.cap = 1,
.size = strlen(s),
.data = s,
};
return str;
}
static inline const char *std_string_data(union std_string *str) {
if ((str->mark & 1) == 0) {
return str->str;
}
return str->data;
}
extern void _ZN20androidstoreservices30SVSubscriptionStatusMgrFactory6createEv(struct shared_ptr *);
extern void
_ZN20androidstoreservices27SVSubscriptionStatusMgrImpl33checkSubscriptionStatusFromSourceERKNSt6__ndk110shared_ptrIN17storeservicescore14RequestContextEEERKNS_23SVSubscriptionStatusMgr26SVSubscriptionStatusSourceE(
struct shared_ptr *, void *, struct shared_ptr *, int *);
extern void
_ZN17storeservicescore14RequestContext24setFairPlayDirectoryPathERKNSt6__ndk112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE(
void *, union std_string *);
extern void _resolv_set_nameservers_for_net(unsigned netid, const char **servers, int numservers, const char *domains);
extern void
_ZN14FootHillConfig6configERKNSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE(union std_string *);
extern void
_ZNSt6__ndk110shared_ptrIN17storeservicescore14RequestContextEE11make_sharedIJRNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEEES3_DpOT_(
struct shared_ptr *, union std_string *);
extern void _ZNSt6__ndk110shared_ptrIN20androidstoreservices28AndroidPresentationInterfaceEE11make_sharedIJEEES3_DpOT_(
struct shared_ptr *);
extern void
_ZN20androidstoreservices28AndroidPresentationInterface16setDialogHandlerEPFvlNSt6__ndk110shared_ptrIN17storeservicescore14ProtocolDialogEEENS2_INS_36AndroidProtocolDialogResponseHandlerEEEE(
void *, void (*)(long, struct shared_ptr *, struct shared_ptr *));
extern void
_ZN20androidstoreservices28AndroidPresentationInterface21setCredentialsHandlerEPFvNSt6__ndk110shared_ptrIN17storeservicescore18CredentialsRequestEEENS2_INS_33AndroidCredentialsResponseHandlerEEEE(
void *, void (*)(struct shared_ptr *, struct shared_ptr *));
extern void
_ZN17storeservicescore14RequestContext24setPresentationInterfaceERKNSt6__ndk110shared_ptrINS_21PresentationInterfaceEEE(
void *, struct shared_ptr *);
extern void
_ZNSt6__ndk110shared_ptrIN17storeservicescore16AuthenticateFlowEE11make_sharedIJRNS0_INS1_14RequestContextEEEEEES3_DpOT_(
struct shared_ptr *, struct shared_ptr *);
extern void _ZN17storeservicescore16AuthenticateFlow3runEv(void *);
extern struct shared_ptr *_ZNK17storeservicescore16AuthenticateFlow8responseEv(void *);
extern int _ZNK17storeservicescore20AuthenticateResponse12responseTypeEv(void *);
// storeservicescore::PlaybackLeaseSession::PlaybackLeaseSession(std::__ndk1::shared_ptr<storeservicescore::RequestContext>
// const&)
extern void
_ZN22SVPlaybackLeaseManagerC2ERKNSt6__ndk18functionIFvRKiEEERKNS1_IFvRKNS0_10shared_ptrIN17storeservicescore19StoreErrorConditionEEEEEE(
void *, void *, void *);
extern void _ZN22SVPlaybackLeaseManager25refreshLeaseAutomaticallyERKb(void *, uint8_t *);
extern void _ZN22SVPlaybackLeaseManager12requestLeaseERKb(void *, uint8_t *);
// storeservicescore::ProtocolDialogResponse::setSelectedButton(std::__ndk1::shared_ptr<storeservicescore::ProtocolButton>
// const&)
extern void
_ZN17storeservicescore22ProtocolDialogResponse17setSelectedButtonERKNSt6__ndk110shared_ptrINS_14ProtocolButtonEEE(
void *, struct shared_ptr *);
// storeservicescore::ProtocolDialog::title() const
extern union std_string *_ZNK17storeservicescore14ProtocolDialog5titleEv(void *);
// storeservicescore::ProtocolDialog::message() const
extern union std_string *_ZNK17storeservicescore14ProtocolDialog7messageEv(void *);
extern union std_string *_ZNK17storeservicescore18CredentialsRequest5titleEv(void *);
extern union std_string *_ZNK17storeservicescore18CredentialsRequest7messageEv(void *);
extern uint8_t _ZNK17storeservicescore18CredentialsRequest28requiresHSA2VerificationCodeEv(void *);
extern void
_ZN20androidstoreservices28AndroidPresentationInterface28handleProtocolDialogResponseERKlRKNSt6__ndk110shared_ptrIN17storeservicescore22ProtocolDialogResponseEEE(
void *, long *j, struct shared_ptr *);
// androidstoreservices::AndroidPresentationInterface::handleCredentialsResponse(std::__ndk1::shared_ptr<storeservicescore::CredentialsResponse>
// const&)
extern void
_ZN20androidstoreservices28AndroidPresentationInterface25handleCredentialsResponseERKNSt6__ndk110shared_ptrIN17storeservicescore19CredentialsResponseEEE(
void *, struct shared_ptr *);
extern void _ZN17storeservicescore22ProtocolDialogResponseC1Ev(void *);
// storeservicescore::CredentialsResponse::CredentialsResponse()
extern void _ZN17storeservicescore19CredentialsResponseC1Ev(void *);
// storeservicescore::CredentialsResponse::setUserName(std::__ndk1::basic_string<char,
// std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&)
extern void
_ZN17storeservicescore19CredentialsResponse11setUserNameERKNSt6__ndk112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE(
void *, union std_string *);
// storeservicescore::CredentialsResponse::setPassword(std::__ndk1::basic_string<char,
// std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&)
extern void
_ZN17storeservicescore19CredentialsResponse11setPasswordERKNSt6__ndk112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE(
void *, union std_string *);
// storeservicescore::CredentialsResponse::setResponseType(storeservicescore::CredentialsResponse::ResponseType)
extern void _ZN17storeservicescore19CredentialsResponse15setResponseTypeENS0_12ResponseTypeE(void *, int responseType);
// storeservicescore::AuthenticateFlow::response() const
extern struct shared_ptr *_ZNK17storeservicescore16AuthenticateFlow8responseEv(void *);
extern struct std_vector *_ZNK17storeservicescore14ProtocolDialog7buttonsEv(void *);
extern union std_string *_ZNK17storeservicescore14ProtocolButton5titleEv(void *);
// storeservicescore::DeviceGUID::instance()
extern void _ZN17storeservicescore10DeviceGUID8instanceEv(struct shared_ptr *);
// storeservicescore::DeviceGUID::configure(std::__ndk1::basic_string<char,
// std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&,
// std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>,
// std::__ndk1::allocator<char> > const&, unsigned int const&, bool const&)
extern void
_ZN17storeservicescore10DeviceGUID9configureERKNSt6__ndk112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_RKjRKb(
void *, void *, union std_string *, union std_string *, unsigned int *, uint8_t *);
// mediaplatform::DebugLogEnabledForPriority(mediaplatform::LogPriority)
extern uint8_t _ZN13mediaplatform26DebugLogEnabledForPriorityENS_11LogPriorityE();
extern void *_ZTVNSt6__ndk120__shared_ptr_emplaceIN17storeservicescore22ProtocolDialogResponseENS_9allocatorIS2_EEEE;
extern void *_ZTVNSt6__ndk120__shared_ptr_emplaceIN17storeservicescore19CredentialsResponseENS_9allocatorIS2_EEEE;
// vtable for
// std::__ndk1::__shared_ptr_emplace<storeservicescore::RequestContextConfig,
// std::__ndk1::allocator<storeservicescore::RequestContextConfig> >
extern void *_ZTVNSt6__ndk120__shared_ptr_emplaceIN17storeservicescore20RequestContextConfigENS_9allocatorIS2_EEEE;
// storeservicescore::RequestContextConfig::RequestContextConfig()
extern void _ZN17storeservicescore20RequestContextConfigC2Ev(void *);
extern void _ZN17storeservicescore20RequestContextConfig9setCPFlagEb(void *, uint8_t);
extern void
_ZN17storeservicescore20RequestContextConfig20setBaseDirectoryPathERKNSt6__ndk112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE(
void *, union std_string *);
// storeservicescore::RequestContextConfig::setClientIdentifier(std::__ndk1::basic_string<char,
// std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&)
extern void
_ZN17storeservicescore20RequestContextConfig19setClientIdentifierERKNSt6__ndk112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE(
void *, union std_string *);
extern void
_ZN17storeservicescore20RequestContextConfig20setVersionIdentifierERKNSt6__ndk112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE(
void *, union std_string *);
extern void
_ZN17storeservicescore20RequestContextConfig21setPlatformIdentifierERKNSt6__ndk112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE(
void *, union std_string *);
extern void
_ZN17storeservicescore20RequestContextConfig17setProductVersionERKNSt6__ndk112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE(
void *, union std_string *);
extern void
_ZN17storeservicescore20RequestContextConfig14setDeviceModelERKNSt6__ndk112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE(
void *, union std_string *);
extern void
_ZN17storeservicescore20RequestContextConfig15setBuildVersionERKNSt6__ndk112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE(
void *, union std_string *);
extern void
_ZN17storeservicescore20RequestContextConfig19setLocaleIdentifierERKNSt6__ndk112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE(
void *, union std_string *);
extern void
_ZN17storeservicescore20RequestContextConfig21setLanguageIdentifierERKNSt6__ndk112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE(
void *, union std_string *);
extern void
_ZN17storeservicescore20RequestContextConfig24setFairPlayDirectoryPathERKNSt6__ndk112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE(
void *, union std_string *);
extern void
_ZN17storeservicescore14RequestContext4initERKNSt6__ndk110shared_ptrINS_20RequestContextConfigEEE(void *, void *,
struct shared_ptr *);
extern void *_ZN21SVFootHillSessionCtrl8instanceEv();
extern void *_ZN21SVFootHillSessionCtrl7destroyEv();
extern void _ZN21SVFootHillSessionCtrl9cleanKeysERKNSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE(
void *, union std_string *);
extern void
_ZN21SVFootHillSessionCtrl16getPersistentKeyERKNSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEES8_S8_S8_S8_S8_S8_S8_(
struct shared_ptr *, void *, union std_string *, union std_string *, union std_string *, union std_string *,
union std_string *, union std_string *, union std_string *, union std_string *);
extern void
_ZN21SVFootHillSessionCtrl14decryptContextERKNSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEERKN11SVDecryptor15SVDecryptorTypeERKb(
struct shared_ptr *ret, void *sessCtrlInstance, union std_string *ckc);
extern void _ZNSt6__ndk110shared_ptrI18SVFootHillPContextED2Ev(struct shared_ptr *);
extern void **_ZNK18SVFootHillPContext9kdContextEv(void *);
extern long NfcRKVnxuKZy04KWbdFu71Ou(void *, uint32_t, void *, void *, size_t);
extern void _ZN8FootHillC2ERKNSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEES8_(void *,
union std_string *,
union std_string *);
extern void _ZN8FootHill24defaultContextIdentifierEv(void *);
// RequestContextManager::configure(std::__ndk1::shared_ptr<storeservicescore::RequestContext>
// const&)
extern void _ZN21RequestContextManager9configureERKNSt6__ndk110shared_ptrIN17storeservicescore14RequestContextEEE(
struct shared_ptr *);
const char *const android_id = "dc28071e981c439e";
const char *const fairplayCert = "MIIEzjCCA7agAwIBAgIIAXAVjHFZDjgwDQYJKoZIhvcNAQEFBQAwfzELMAkGA1UEBhMCVVMxEz"
"ARBgNVBAoMCkFwcGxlIEluYy4xJjAkBgNVBAsMHUFwcGxlIENlcnRpZmljYXRpb24gQXV0aG9y"
"aXR5MTMwMQYDVQQDDCpBcHBsZSBLZXkgU2VydmljZXMgQ2VydGlmaWNhdGlvbiBBdXRob3JpdH"
"kwHhcNMTIwNzI1MTgwMjU4WhcNMTQwNzI2MTgwMjU4WjAwMQswCQYDVQQGEwJVUzESMBAGA1UE"
"CgwJQXBwbGUgSW5jMQ0wCwYDVQQDDARGUFMxMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQ"
"CqZ9IbMt0J0dTKQN4cUlfeQRY9bcnbnP95HFv9A16Yayh4xQzRLAQqVSmisZtB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cstdio>
#include <exception>
#include <functional>
extern "C" void handle(int fd);
extern "C" uint8_t handle_cpp(int fd) {
try {
handle(fd);
return 1;
} catch (const std::exception &e) {
fprintf(stderr, "[!] catched an exception: %s\n", e.what());
return 0;
}
}
static void endLeaseCb(int const &c) {
fprintf(stderr, "[.] end lease code %d\n", c);
}
static void pbErrCb(void *) {
fprintf(stderr, "[.] playback error\n");
}
extern "C" std::function<void (int const&)> endLeaseCallback(endLeaseCb);
extern "C" std::function<void (void *)> pbErrCallback(pbErrCb);

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save