
    ?j                        U d Z ddlmZ  ee      j	                         j
                  dz  Zi dddddd	d
d	ddddddddddddddddddddddd d!d"d!i d#d$d%d&d'd(d)d*d+d,d-d.d/d0d1d2d3d4d5d6d7d8d9d:d;d:d<d=d>d?d@dAZg dBZg dCZ	dDedEe
fdFZdEe
fdGZ e       Zej                         D  cg c]  \  } }|dH   dIk(  s| |dJ   f c}} Zeeee
f      edK<   ej                         D  cg c]  \  } }|dH   dLk(  s| |dJ   f c}} Zeeee
f      edM<   dPdHedEeeee
f      fdNZyOc c}} w c c}} w )QzDevice profiles for Google Play API authentication.

Loads Aurora Store .properties files from the profiles/ directory.
Profiles are rotated during token acquisition for reliability.
    )PathprofilesUserReadableNamezGeneric ARM64 DevicezBuild.HARDWAREqcomzBuild.RADIOunknownzBuild.BOOTLOADERzBuild.FINGERPRINTzDgoogle/sunfish/sunfish:13/TQ3A.230805.001/10316531:user/release-keyszBuild.BRANDgooglezBuild.DEVICEsunfishzBuild.VERSION.SDK_INT33zBuild.VERSION.RELEASE13zBuild.MODELzPixel 4azBuild.MANUFACTURERGooglezBuild.PRODUCTzBuild.IDzTQ3A.230805.001z
Build.TYPEuserz
Build.TAGSzrelease-keyszBuild.SUPPORTED_ABISzarm64-v8a,armeabi-v7a,armeabi	PlatformszScreen.Density440zScreen.Width1080zScreen.Height2340Localeszen-USSharedLibrariesa-  android.ext.shared,android.test.base,android.test.mock,android.test.runner,com.android.future.usb.accessory,com.android.location.provider,com.android.media.remotedisplay,com.android.mediadrm.signer,com.android.nfc_extras,com.google.android.gms,com.google.android.maps,javax.obex,org.apache.http.legacyFeaturesai  android.hardware.audio.output,android.hardware.bluetooth,android.hardware.bluetooth_le,android.hardware.camera,android.hardware.camera.autofocus,android.hardware.camera.flash,android.hardware.camera.front,android.hardware.faketouch,android.hardware.fingerprint,android.hardware.location,android.hardware.location.gps,android.hardware.location.network,android.hardware.microphone,android.hardware.nfc,android.hardware.screen.landscape,android.hardware.screen.portrait,android.hardware.sensor.accelerometer,android.hardware.sensor.compass,android.hardware.sensor.gyroscope,android.hardware.sensor.light,android.hardware.sensor.proximity,android.hardware.telephony,android.hardware.touchscreen,android.hardware.touchscreen.multitouch,android.hardware.touchscreen.multitouch.distinct,android.hardware.touchscreen.multitouch.jazzhand,android.hardware.usb.accessory,android.hardware.usb.host,android.hardware.wifi,android.hardware.wifi.direct,android.software.app_widgets,android.software.backup,android.software.home_screen,android.software.input_methods,android.software.live_wallpaper,android.software.print,android.software.webviewzGSF.version	223616055zVending.version82151710zVending.versionStringz21.5.17-21 [0] [PR] 326734551Roamingzmobile-notroamingTimeZonezAmerica/New_YorkCellOperator310260SimOperatorClientzandroid-googlez
GL.Version196610zGL.Extensionsaz  GL_OES_EGL_image,GL_OES_EGL_image_external,GL_OES_EGL_sync,GL_OES_vertex_half_float,GL_OES_framebuffer_object,GL_OES_rgb8_rgba8,GL_OES_compressed_ETC1_RGB8_texture,GL_EXT_texture_format_BGRA8888,GL_OES_texture_npot,GL_OES_packed_depth_stencil,GL_OES_depth24,GL_OES_depth_texture,GL_OES_texture_float,GL_OES_texture_half_float,GL_OES_element_index_uint,GL_OES_vertex_array_object)
PvD2eViqFjHEVPHbp6B1)XKGjIVGbfilepathreturnc                     i }t        |       5 }|D ]F  }|j                         }|s|j                  d      r(d|v s-|j                  dd      \  }}|||<   H 	 ddd       |S # 1 sw Y   |S xY w)z0Parse a Java-style .properties file into a dict.#=   N)openstrip
startswithsplit)r,   profileflinekeyvals         D/home/ubuntu/.local/lib/python3.12/site-packages/gplaydl/profiles.py_load_propertiesr<   Y   sy     G	h #1 	#D::<DDOOC0SD[::c1-S"		## N# Ns   A%A%A%A%%A/c                  >   i } t         j                         s| S t        t         j                  d            D ]c  }t	        |      }|j                  dd      }d|v rd}nd|v rd}n	d|v rd}nd	}|j                  d
|j                        ||d| |j                  <   e | S )z8Load every .properties file from the profiles directory.z*.propertiesr    z	arm64-v8aarm64zarmeabi-v7aarmv7x86r   r   )namearchr6   )PROFILES_DIRexistssortedglobr<   getstem)r   fpr6   	platformsrC   s        r;   load_all_profilesrL   e   s     "H \&&~67 
"2&KKR0	)#Di'DiDDKK 2BGG<

  O    rC   r?   r6   ARM64_PROFILESr@   ARMV7_PROFILESc                 B   | dk(  rt         t        }}nt        t        }}t	               }g }|D ]<  }|D ]5  \  }}||k(  s||vs|j                  ||f       |j                  |        < > |D ].  \  }}||vs|j                  ||f       |j                  |       0 |S )z4Return profiles ordered by reliability (best first).r@   )_PRIORITY_ARMV7rO   _PRIORITY_ARM64rN   setappendadd)rC   prioritypoolseenresultr9   pkeyr6   s           r;   get_priority_profilesr[      s    w(.$(.$UD%'F ! 	MD's{t4/tWo.		  gtMM4/*HHTN
 MrM   N)r?   )__doc__pathlibr   __file__resolveparentrD   FALLBACK_PROFILErR   rQ   dictr<   rL   _ALLitemsrN   listtuplestr__annotations__rO   r[   )kds   00r;   <module>rk      s   H~%%'..;F.FfF 9F 		F
 _F 8F IF TF TF :F (F YF !F &F .F  ;!F" 0#F$ e%F& F'F( V)F* w+F, 	,/F: 	#=Ff ;gFh ziFj <kFl "mFn "oFp HqFr 8sFt uFv (wFx 	%{F T O*	t 	 	4 0  #'**,*!Q!F)w2FQ)*U39%&  #'**,*!Q!F)w2FQ)*U39%& 
 $uS$Y7G2H **s   D?	D?E	E