forked from atlarge-research/measuring-the-metaverse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcleanup.ps1
33 lines (25 loc) · 825 Bytes
/
cleanup.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
param (
[Parameter(Mandatory=$true)][string]$apkPath
)
cd "C:\Users\joach\Desktop\measuring-the-metaverse"
#cd $MyInvocation.MyCommand.Path
Write-Host "Stopping VR monitor..."
# Stop-Job -Id $VrJob
Write-Host "Stopping host monitor..."
# Stop-Job -Id $HostJob
adb shell am force-stop com.AtlargeResearch.Opencraft2
$apkName = Split-Path $apkPath -LeafBase
$apkName = ".\measurements\" + $apkName
if(Test-Path $apkName){
rm -r $apkName
}
mkdir $apkName | Out-Null
echo $apkName
mv ./uptime.log $apkName\uptime.log
mv ./net_dev.log $apkName\net_dev.log
mv ./meminfo.log $apkName\meminfo.log
mv ./stat.log $apkName\stat.log
mv ./loadavg.log $apkName\loadavg.log
mv ./battery.log $apkName\battery.log
mv ./OVRRemoteService.log $apkName\OVRRemoteService.log
mv ./CompanionService.log $apkName\CompanionService.log