forked from sim1222-mirror/wrapper
init
This commit is contained in:
parent
4396e98f8c
commit
57355efab9
13
Makefile
Normal file
13
Makefile
Normal file
@ -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
|
||||
apple-music-wrapper
|
||||
All files from anonymous, No need for an Android emulator to decrypt alac
|
265
import.h
Normal file
265
import.h
Normal file
@ -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"
|
||||
"CqZ9IbMt0J0dTKQN4cUlfeQRY9bcnbnP95HFv9A16Yayh4xQzRLAQqVSmisZtBK2/nawZcDmcs"
|
||||
"+XapBojRb+jDM4Dzk6/Ygdqo8LoA+BE1zipVyalGLj8Y86hTC9QHX8i05oWNCDIlmabjjWvFBo"
|
||||
"EOk+ezOAPg8c0SET38x5u+TwIDAQABo4ICHzCCAhswHQYDVR0OBBYEFPP6sfTWpOQ5Sguf5W3Y"
|
||||
"0oibbEc3MAwGA1UdEwEB/wQCMAAwHwYDVR0jBBgwFoAUY+RHVMuFcVlGLIOszEQxZGcDLL4wge"
|
||||
"IGA1UdIASB2jCB1zCB1AYJKoZIhvdjZAUBMIHGMIHDBggrBgEFBQcCAjCBtgyBs1JlbGlhbmNl"
|
||||
"IG9uIHRoaXMgY2VydGlmaWNhdGUgYnkgYW55IHBhcnR5IGFzc3VtZXMgYWNjZXB0YW5jZSBvZi"
|
||||
"B0aGUgdGhlbiBhcHBsaWNhYmxlIHN0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mQvb3IgY2VydGlmaWNhdGlvbiBwcmFjdGljZSBzdGF0ZW1lbnRzLjAdBgNV"
|
||||
"HQ4EFgQU2RpCSSHFXeoZQQWxbwJuRZ9RrIEwDgYDVR0PAQH/BAQDAgUgMBQGCyqGSIb3Y2QGDQ"
|
||||
"EFAQH/BAIFADAjBgsqhkiG92NkBg0BBgEB/wQRAQAAAAMAAAABAAAAAgAAAAMwOQYLKoZIhvdj"
|
||||
"ZAYNAQMBAf8EJwG+pUeWbeZBUI0PikyFwSggL5dHaeugSDoQKwcP28csLuh5wplpATAzBgsqhk"
|
||||
"iG92NkBg0BBAEB/wQhAfl9TGjP/UY9TyQzYsn8sX9ZvHChok9QrrUhtAyWR1yCMA0GCSqGSIb3"
|
||||
"DQEBCwUAA4IBAQBNMzZ6llQ0laLXsrmyVieuoW9+pHeAaDJ7cBiQLjM3ZdIO3Gq5dkbWYYYwJw"
|
||||
"ymdxZ74WGZMuVv3ueJKcxG1jAhCRhr0lb6QaPaQQSNW+xnoesb3CLA0RzrcgBp/9WFZNdttJOS"
|
||||
"yC93lQmiE0r5RqPpe/IWUzwoZxri8qnsghVFxCBEcMB+U4PJR8WeAkPrji8po2JLYurvgNRhGk"
|
||||
"DKcAFPuGEpXdF86hPts+07zazsP0fBjBSVgP3jqb8G31w5W+O+wBW0B9uCf3s0vXU4LuJTAyww"
|
||||
"s2ImZ7O/AaY/uXWOyIUMUKPgL1/QJieB7pBoENIJ2CeJS2M3iv00ssmCmTEJ";
|
26
main.cpp
Normal file
26
main.cpp
Normal file
@ -0,0 +1,26 @@
|
||||
#include <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);
|
BIN
rootfs/system/bin/linker64
Normal file
BIN
rootfs/system/bin/linker64
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libBlocksRuntime.so
Normal file
BIN
rootfs/system/lib64/libBlocksRuntime.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libCoreADI.so
Normal file
BIN
rootfs/system/lib64/libCoreADI.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libCoreFP.so
Normal file
BIN
rootfs/system/lib64/libCoreFP.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libCoreFoundation.so
Normal file
BIN
rootfs/system/lib64/libCoreFoundation.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libCoreLSKD.so
Normal file
BIN
rootfs/system/lib64/libCoreLSKD.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libEGL.so
Normal file
BIN
rootfs/system/lib64/libEGL.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libETC1.so
Normal file
BIN
rootfs/system/lib64/libETC1.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libGLES_trace.so
Normal file
BIN
rootfs/system/lib64/libGLES_trace.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libGLESv1_CM.so
Normal file
BIN
rootfs/system/lib64/libGLESv1_CM.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libGLESv2.so
Normal file
BIN
rootfs/system/lib64/libGLESv2.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libLLVM.so
Normal file
BIN
rootfs/system/lib64/libLLVM.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libOpenSLES.so
Normal file
BIN
rootfs/system/lib64/libOpenSLES.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libRS.so
Normal file
BIN
rootfs/system/lib64/libRS.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libRScpp.so
Normal file
BIN
rootfs/system/lib64/libRScpp.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libandroid.so
Normal file
BIN
rootfs/system/lib64/libandroid.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libandroid_runtime.so
Normal file
BIN
rootfs/system/lib64/libandroid_runtime.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libandroidappmusic.so
Normal file
BIN
rootfs/system/lib64/libandroidappmusic.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libandroidfw.so
Normal file
BIN
rootfs/system/lib64/libandroidfw.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libaudioutils.so
Normal file
BIN
rootfs/system/lib64/libaudioutils.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libbacktrace.so
Normal file
BIN
rootfs/system/lib64/libbacktrace.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libbcc.so
Normal file
BIN
rootfs/system/lib64/libbcc.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libbcinfo.so
Normal file
BIN
rootfs/system/lib64/libbcinfo.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libbinder.so
Normal file
BIN
rootfs/system/lib64/libbinder.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libc++.so
Normal file
BIN
rootfs/system/lib64/libc++.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libc++_shared.so
Normal file
BIN
rootfs/system/lib64/libc++_shared.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libc.so
Normal file
BIN
rootfs/system/lib64/libc.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libcamera_client.so
Normal file
BIN
rootfs/system/lib64/libcamera_client.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libcamera_metadata.so
Normal file
BIN
rootfs/system/lib64/libcamera_metadata.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libcommon_time_client.so
Normal file
BIN
rootfs/system/lib64/libcommon_time_client.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libcrypto.so
Normal file
BIN
rootfs/system/lib64/libcrypto.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libcurl.so
Normal file
BIN
rootfs/system/lib64/libcurl.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libcutils.so
Normal file
BIN
rootfs/system/lib64/libcutils.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libdaapkit.so
Normal file
BIN
rootfs/system/lib64/libdaapkit.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libdispatch.so
Normal file
BIN
rootfs/system/lib64/libdispatch.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libdrmframework.so
Normal file
BIN
rootfs/system/lib64/libdrmframework.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libeffects.so
Normal file
BIN
rootfs/system/lib64/libeffects.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libexpat.so
Normal file
BIN
rootfs/system/lib64/libexpat.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libft2.so
Normal file
BIN
rootfs/system/lib64/libft2.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libgabi++.so
Normal file
BIN
rootfs/system/lib64/libgabi++.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libgccdemangle.so
Normal file
BIN
rootfs/system/lib64/libgccdemangle.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libgui.so
Normal file
BIN
rootfs/system/lib64/libgui.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libhardware.so
Normal file
BIN
rootfs/system/lib64/libhardware.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libhardware_legacy.so
Normal file
BIN
rootfs/system/lib64/libhardware_legacy.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libharfbuzz_ng.so
Normal file
BIN
rootfs/system/lib64/libharfbuzz_ng.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libhwui.so
Normal file
BIN
rootfs/system/lib64/libhwui.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libicudata_sv_apple.so
Normal file
BIN
rootfs/system/lib64/libicudata_sv_apple.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libicui18n.so
Normal file
BIN
rootfs/system/lib64/libicui18n.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libicui18n_sv_apple.so
Normal file
BIN
rootfs/system/lib64/libicui18n_sv_apple.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libicuuc.so
Normal file
BIN
rootfs/system/lib64/libicuuc.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libicuuc_sv_apple.so
Normal file
BIN
rootfs/system/lib64/libicuuc_sv_apple.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libimg_utils.so
Normal file
BIN
rootfs/system/lib64/libimg_utils.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libinput.so
Normal file
BIN
rootfs/system/lib64/libinput.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libinputflinger.so
Normal file
BIN
rootfs/system/lib64/libinputflinger.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libjpeg.so
Normal file
BIN
rootfs/system/lib64/libjpeg.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/liblog.so
Normal file
BIN
rootfs/system/lib64/liblog.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libm.so
Normal file
BIN
rootfs/system/lib64/libm.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libmedia.so
Normal file
BIN
rootfs/system/lib64/libmedia.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libmedialibrarycore.so
Normal file
BIN
rootfs/system/lib64/libmedialibrarycore.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libmediaplatform.so
Normal file
BIN
rootfs/system/lib64/libmediaplatform.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libmemtrack.so
Normal file
BIN
rootfs/system/lib64/libmemtrack.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libminikin.so
Normal file
BIN
rootfs/system/lib64/libminikin.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libnativebridge.so
Normal file
BIN
rootfs/system/lib64/libnativebridge.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libnativehelper.so
Normal file
BIN
rootfs/system/lib64/libnativehelper.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libnbaio.so
Normal file
BIN
rootfs/system/lib64/libnbaio.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libnetd_client.so
Normal file
BIN
rootfs/system/lib64/libnetd_client.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libnetutils.so
Normal file
BIN
rootfs/system/lib64/libnetutils.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libopus.so
Normal file
BIN
rootfs/system/lib64/libopus.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libpdfium.so
Normal file
BIN
rootfs/system/lib64/libpdfium.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libpng.so
Normal file
BIN
rootfs/system/lib64/libpng.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libpowermanager.so
Normal file
BIN
rootfs/system/lib64/libpowermanager.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libprocessgroup.so
Normal file
BIN
rootfs/system/lib64/libprocessgroup.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libselinux.so
Normal file
BIN
rootfs/system/lib64/libselinux.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libskia.so
Normal file
BIN
rootfs/system/lib64/libskia.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libsonivox.so
Normal file
BIN
rootfs/system/lib64/libsonivox.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libsoundtrigger.so
Normal file
BIN
rootfs/system/lib64/libsoundtrigger.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libspeexresampler.so
Normal file
BIN
rootfs/system/lib64/libspeexresampler.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libsqlite.so
Normal file
BIN
rootfs/system/lib64/libsqlite.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libssl.so
Normal file
BIN
rootfs/system/lib64/libssl.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libstagefright.so
Normal file
BIN
rootfs/system/lib64/libstagefright.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libstagefright_avc_common.so
Normal file
BIN
rootfs/system/lib64/libstagefright_avc_common.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libstagefright_enc_common.so
Normal file
BIN
rootfs/system/lib64/libstagefright_enc_common.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libstagefright_foundation.so
Normal file
BIN
rootfs/system/lib64/libstagefright_foundation.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libstagefright_http_support.so
Normal file
BIN
rootfs/system/lib64/libstagefright_http_support.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libstagefright_omx.so
Normal file
BIN
rootfs/system/lib64/libstagefright_omx.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libstagefright_yuv.so
Normal file
BIN
rootfs/system/lib64/libstagefright_yuv.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libstdc++.so
Normal file
BIN
rootfs/system/lib64/libstdc++.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libstlport.so
Normal file
BIN
rootfs/system/lib64/libstlport.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libstoreservicescore.so
Normal file
BIN
rootfs/system/lib64/libstoreservicescore.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libsync.so
Normal file
BIN
rootfs/system/lib64/libsync.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libui.so
Normal file
BIN
rootfs/system/lib64/libui.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libunwind-ptrace.so
Normal file
BIN
rootfs/system/lib64/libunwind-ptrace.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libunwind.so
Normal file
BIN
rootfs/system/lib64/libunwind.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libusbhost.so
Normal file
BIN
rootfs/system/lib64/libusbhost.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libutils.so
Normal file
BIN
rootfs/system/lib64/libutils.so
Normal file
Binary file not shown.
BIN
rootfs/system/lib64/libvorbisidec.so
Normal file
BIN
rootfs/system/lib64/libvorbisidec.so
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user