#1: We will have a thousand lines, like this one:
package:/data/app/~~0H1-2NstdUVjAZffiA36og==/com.wemagineai.voila-eUnm7DkWz754o5t0a88gdA==/base.apk=com.wemagineai.voila
What we need to do is get Windows batch to be able to give us:
/data/app/~~0H1-2NstdUVjAZffiA36og==/com.wemagineai.voila-eUnm7DkWz754o5t0a88gdA==/base.apk
How?
In desperation, here's a summary of the problem, in a nutshell:
a. I can't figure out how to turn a thousand lines like this:
package:/data/app/~~0H1-2NstdUVjAZffiA36og==/com.wemagineai.voila-eUnm7DkWz754o5t0a88gdA==/base.apk=com.wemagineai.voila
b. Into this (without knowing the name of the package ahead of time)
/data/app/~~0H1-2NstdUVjAZffiA36og==/com.wemagineai.voila-eUnm7DkWz754o5t0a88gdA==/base.apk
c. Can you?
To be clear, the Windows batch problem I'm running into is:
Maria Sophia <mariasophia@comprehension.com> wrote or quoted:
To be clear, the Windows batch problem I'm running into is:
Not sure if I got the problem right. But this example batch
here strips the initial "package:" and the final "= . . .":
@ECHO OFF
SETLOCAL enabledelayedexpansion
SET "mystring=package:mykey=myvalue=extradata"
IF /i "!mystring:~0,8!"=="package:" (
SET "mystring=!mystring:~8!"
)
:LOOP
IF "!mystring:~-1!"=="=" (
SET "mystring=!mystring:~0,-1!"
GOTO :DONE
)
SET "mystring=!mystring:~0,-1!"
IF NOT "!mystring!"=="" GOTO :LOOP
:DONE
ECHO Result: %mystring%
@REM Result: mykey=myvalue
PAUSE
However, it has not been tested for all edge cases.
Maria Sophia wrote:
In desperation, here's a summary of the problem, in a nutshell:
a. I can't figure out how to turn a thousand lines like this:
package:/data/app/~~0H1-2NstdUVjAZffiA36og==/com.wemagineai.voila-eUnm7DkWz754o5t0a88gdA==/base.apk=com.wemagineai.voila
b. Into this (without knowing the name of the package ahead of time)
/data/app/~~0H1-2NstdUVjAZffiA36og==/com.wemagineai.voila-eUnm7DkWz754o5t0a88gdA==/base.apk
c. Can you?
Just for the record, if parsing doesn't work on the command line,
then it won't work in batch either... (as that's even harder).
@ECHO OFF
SETLOCAL enabledelayedexpansion
SET "mystring=package:mykey=myvalue=extradata"
IF /i "!mystring:~0,8!"=="package:" (
SET "mystring=!mystring:~8!"
)
:LOOP
IF "!mystring:~-1!"=="=" (
SET "mystring=!mystring:~0,-1!"
GOTO :DONE
)
SET "mystring=!mystring:~0,-1!"
IF NOT "!mystring!"=="" GOTO :LOOP
:DONE
ECHO Result: %mystring%
@REM Result: mykey=myvalue
PAUSE
Thanks. I'll incorporate it into the script to scan for all
APKs on the system, list their contents, and look for Ad SDKs.
Note that can be used to look for anything but the original
goal is to find all the ad sdks on our system that "can" trigger.
The system cannot find the drive specified.
@echo off
You can remove the
@echo off
to get more context about where this message is coming from.
Stefan Ram wrote:
You can remove the
@echo off
to get more context about where this message is coming from.
Thanks Stefan, as this should run on anyone's Windows box with Android.
My Android is connected over Wi-Fi via the adb connect script.
I just saw this, so I'll just post my latest version, but it's still
saying "The system cannot find the drive specified" for some reason.
I just saw this, so I'll just post my latest version, but it's still
saying "The system cannot find the drive specified" for some reason.
Maria Sophia <mariasophia@comprehension.com> wrote or quoted:
I just saw this, so I'll just post my latest version, but it's still
saying "The system cannot find the drive specified" for some reason.
I assume "it" is "scanads.bat" on Windows.
Do you know which line in "scanads.bat" says,
"The system cannot find the drive specified"?
Stefan Ram wrote:. . .
. . .I assume "it" is "scanads.bat" on Windows.
Do you know which line in "scanads.bat" says,
"The system cannot find the drive specified"?
All I know is that the scanads.bat script doesn't have that line inside it.
Yesterday, the chain of events was such that:[snip]
1. Stefan Ram posted a warning that Android APKs can leak location
Message-ID: <locations-20260805220107@ram.dialup.fu-berlin.de>
2. I then showed how use Win10 to determine if any apps leaked recently
Message-ID: <1150g5v$1lsp$1@nnrp.usenet.blueworldhosting.com>
3. But I then spent hours trying to confirm if any of my APKs "can" leak
A. Windows can tell you if a device "has" leaked in the past time frame
B. And, Windows can tell you if a device "can" leak in the future...
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
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 76 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 54:03:59 |
| Calls: | 1,265 |
| Calls today: | 1 |
| Files: | 1,362 |
| D/L today: |
3 files (2,684K bytes) |
| Messages: | 285,448 |