File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -240,6 +240,8 @@ extern int _ZNK23SVPlaybackAssetResponse13hasValidAssetEv(void *);
240240extern struct shared_ptr *_ZNK23SVPlaybackAssetResponse13playbackAssetEv (void *);
241241extern union std_string *_ZNK17storeservicescore13PlaybackAsset9URLStringEv (void *, uint8_t *);
242242
243+ extern union std_string *_ZNK17storeservicescore14RequestContext20storeFrontIdentifierERKNSt6__ndk110shared_ptrINS_6URLBagEEE (void *, void *, struct shared_ptr *);
244+
243245const char *const android_id = " dc28071e981c439e" ;
244246const char *const fairplayCert = " MIIEzjCCA7agAwIBAgIIAXAVjHFZDjgwDQYJKoZIhvcNAQEFBQAwfzELMAkGA1UEBhMCVVMxEz"
245247 " ARBgNVBAoMCkFwcGxlIEluYy4xJjAkBgNVBAsMHUFwcGxlIENlcnRpZmljYXRpb24gQXV0aG9y"
Original file line number Diff line number Diff line change @@ -586,6 +586,19 @@ static inline void *new_socket_m3u8(void *args) {
586586 }
587587}
588588
589+ char * get_account_storefront_id (struct shared_ptr reqCtx ) {
590+ union std_string * region = malloc (sizeof (union std_string ));
591+ struct shared_ptr urlbag = {.obj = 0x0 , .ctrl_blk = 0x0 };
592+ _ZNK17storeservicescore14RequestContext20storeFrontIdentifierERKNSt6__ndk110shared_ptrINS_6URLBagEEE (region , reqCtx .obj , & urlbag );
593+ const char * region_str = std_string_data (region );
594+ if (region_str ) {
595+ char * result = strdup (region_str );
596+ free (region );
597+ return result ;
598+ }
599+ return NULL ;
600+ }
601+
589602int main (int argc , char * argv []) {
590603 cmdline_parser (argc , argv , & args_info );
591604
You can’t perform that action at this time.
0 commit comments