Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.mobile.android > #154776
| From | Herbert Kleebauer <klee@unibwm.de> |
|---|---|
| Newsgroups | comp.mobile.android, alt.msdos.batch, alt.comp.os.windows-10 |
| Subject | Re: Need help getting Windows to list all files inside every APK and then look for advertising SDKs |
| Date | 2026-08-07 22:15 +0200 |
| Organization | A noiseless patient Spider |
| Message-ID | <1155edp$uuk1$1@dont-email.me> (permalink) |
| References | <1152p8r$eh8$1@nnrp.usenet.blueworldhosting.com> <1152qds$amb$1@nnrp.usenet.blueworldhosting.com> |
Cross-posted to 3 groups.
On 8/6/2026 10:22 PM, Maria Sophia wrote: > Specifically, how do we turn this: > package:/data/app/~~0H1-2NstdUVjAZffiA36og==/com.wemagineai.voila-eUnm7DkWz754o5t0a88gdA==/base.apk=com.wemagineai.voila > Into this (without knowing the name of the package ahead of time) > /data/app/~~0H1-2NstdUVjAZffiA36og==/com.wemagineai.voila-eUnm7DkWz754o5t0a88gdA==/base.apk That isn't a job for a batch program. Use a scriptable editor, PowerShell or even C code. If it has to be done in a batch, process the input file byte by byte: the following code skips anything including the first ":". Then outputs the following bytes till the 5. "=" and the skips the rest of the line. But it is extremely slow. @echo off setlocal enabledelayedexpansion set infile=in.txt set outfile=out.txt set tmp0=_tmp0.tmp if exist %tmp0% del %tmp0% call :fopen %infile% echo %infile% opened as input file ::::::::::::::::::::::::::::::::::::::::::::::::::::: set n=-1 :l1 set /a n=n+1 call :getc_hex char %n% if -1==%char% goto :end if not 3a==%char% goto :l1 set m=0 :l3 set /a n=n+1 call :getc_hex char %n% if -1==%char% goto :end if 3d==%char% set /a m=m+1 if %m%==5 goto :l2 echo %char%>>%tmp0% goto :l3 :l2 set /a n=n+1 call :getc_hex char %n% if -1==%char% goto :end if not 0a==%char% goto :l2 echo 0d 0a>>%tmp0% goto :l1 :end :: convert hexfile tmp1 to binary outfile certutil -f -decodehex %tmp0% %outfile% >nul if exist %tmp0% del %tmp0% call :fclose goto :eof ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :fopen ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: set tmp1=_tmp1.tmp set tmp2=_tmp2.tmp set fsize=%~z1 set cache=-1 certutil -f -encodehex %1 %tmp1% 4 >nul set n=0 if exist %tmp2% del %tmp2% for /f "tokens=1-16" %%a in (%tmp1%) do ( set /p =%%a%%b%%c%%d%%e%%f%%g%%h%%i%%j%%k%%l%%m%%n%%o%%p<nul >>%tmp2% set /a n=n+1 if !n!==64 echo.>>%tmp2% & set n=0) goto :eof ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :fclose ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: del %tmp1% del %tmp2% goto :eof ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :getc_hex ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: if %2 GEQ %fsize% set /a %1=-1 & goto :eof set /a i=%2/1024 & set /a j=2*(%2%%1024) if %i%==%cache% goto :skip echo read cache line %i% set cache=%i% set skip= if %i% GEQ 1 set skip="skip=%i%" for /f %skip% %%i in (%tmp2%) do ( set line=%%i & goto :skip) :skip call set %1=%%line:~%j%,2%% goto :eof
Back to comp.mobile.android | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Need help getting Windows to list all files inside every APK and then look for advertising SDKs Maria Sophia <mariasophia@comprehension.com> - 2026-08-06 20:02 +0000
Re: Need help getting Windows to list all files inside every APK and then look for advertising SDKs Maria Sophia <mariasophia@comprehension.com> - 2026-08-06 12:22 -0800
Re: Need help getting Windows to list all files inside every APK and then look for advertising SDKs Maria Sophia <mariasophia@comprehension.com> - 2026-08-06 12:26 -0800
Re: Need help getting Windows to list all files inside every APK and then look for advertising SDKs Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> - 2026-08-07 04:52 +0800
Re: Need help getting Windows to list all files inside every APK and then look for advertising SDKs ram@zedat.fu-berlin.de (Stefan Ram) - 2026-08-06 20:28 +0000
Re: Need help getting Windows to list all files inside every APK and then look for advertising SDKs Maria Sophia <mariasophia@comprehension.com> - 2026-08-06 12:40 -0800
Re: Need help getting Windows to list all files inside every APK and then look for advertising SDKs Maria Sophia <mariasophia@comprehension.com> - 2026-08-06 13:07 -0800
Re: Need help getting Windows to list all files inside every APK and then look for advertising SDKs Maria Sophia <mariasophia@comprehension.com> - 2026-08-06 13:27 -0800
Re: Need help getting Windows to list all files inside every APK and then look for advertising SDKs ram@zedat.fu-berlin.de (Stefan Ram) - 2026-08-06 21:32 +0000
Re: Need help getting Windows to list all files inside every APK and then look for advertising SDKs Maria Sophia <mariasophia@comprehension.com> - 2026-08-06 13:55 -0800
Re: Need help getting Windows to list all files inside every APK and then look for advertising SDKs Paul <nospam@needed.invalid> - 2026-08-07 00:17 -0400
Re: Need help getting Windows to list all files inside every APK and then look for advertising SDKs ram@zedat.fu-berlin.de (Stefan Ram) - 2026-08-07 11:08 +0000
Re: Need help getting Windows to list all files inside every APK and then look for advertising SDKs Maria Sophia <mariasophia@comprehension.com> - 2026-08-07 06:50 -0800
Re: Need help getting Windows to list all files inside every APK and then look for advertising SDKs ram@zedat.fu-berlin.de (Stefan Ram) - 2026-08-07 14:57 +0000
Re: Need help getting Windows to list all files inside every APK and then look for advertising SDKs Herbert Kleebauer <klee@unibwm.de> - 2026-08-07 22:15 +0200
Re: Need help getting Windows to list all files inside every APK and then look for advertising SDKs JJ <jj4public@gmail.com> - 2026-08-07 22:05 +0700
csiph-web