ADB Failure: Error: must either specify a package size or an APK file - terminal

I'm trying to install an apk via adb on a mac. It's not my mac, but they have adb and it sees the rooted phone correctly (verified using adb devices, so I know adb works, too).
However, when I try to install the app:
adb install [app_name].apk
I get the following message:
Performing Streamed Install
adb: failed to install [app_name].apk: Error: must either specify a package size or an APK file
I know the file is an apk, it is a good version (I've installed it successfully on other phones using other computers), it downloaded completely, and I am in the same directory as the file. It is also spelled correctly (I even tab-completed to be sure).
I can't seem to fine any real google results on this error, however. Does anyone know what might be causing it? How to fix it? Thanks in advance!

So the issue here appears to have been a file-format error. In this case, the apk didn't download all the way to the computer, even though it looked normal. Therefore, it wasn't registering as a true apk. By deleting the file and redownloading it to the computer, I was able to successfully install the app using adb.

Related

Launching Starlink GAIA on Mac OS: "developer cannot be verified" error

I'm trying to set up Starlink v2018A on Mac OS Monterey. I followed the install instructions on the Starlink website and so the installation seemed to go smoothly. However, now that Starlink is installed, whenever I try to launch gaia I get " "<file_name>" cannot be opened because the developer cannot be verified. ".
I know how to manually work around this for individual files, but when I fix it for one file, the error simply re-occurs for another file.
Has anyone else had this issue and know a quick fix? Or will I just have to manually approve each file?
Thanks!

Running OpenFOAM native compile on a non-admin Windows

I have downloaded and installed a Windows native compiled OpenFOAM from here. But when I try to run any of the OF commands (e.g., blockMesh, foamDictionary, ...) in the MSYS2 terminal I get the message:
path/to/folder/v2106/msys64/home/ofuser/OpenFOAM/OpenFOAM-v2106/platforms/win64MingwDPInt32Opt/bin/blockMesh.exe: error while loading shared libraries: libstdc++-6.dll: cannot open shared object file: No such file or directory
and in the cmd terminal, I get the error message:
System Error The code execution cannot proceed because msmpi.dll was not found. Reinstalling the program may fix this problem.
From here, I see that I might have to reinstall OpenFOAM in admin mode, which I don't have on this work machine. so I tried installing MSMPI using pacman -S msmpi as I used to do here. But I get the error message:
error: target not found: msmpi
My goal is to install and use the OpenFOAM software, doesn't matter which release, on this Windows machine without admin privileges. I would appreciate it if you could help me know how can I fix the above problems, or find another way around.
P.S.1. Searching the installation directory, I see that the libstdc++-6.dll file is in the path\to\folder\v2106\msys64\home\ofuser\OpenFOAM\OpenFOAM-v2106\platforms\win64MingwDPInt32Opt\bin. So I wonder I get the first error message. Maybe OF is not compiled properly against the library? Should I try removing the path\to\folder\v2106\msys64\usr\lib\gcc\x86_64-pc-msys\7.4.0\libstdc++.dll.a as suggested here?
P.S.2. I had written this post ages ago about different ways to install OpenFOAM on Windows. Sadly it is still a big effort to get it up and running.
P.S.3. A follow-up on this issue here on the MSYS2 Discord server.
P.S.4. Opened a new issue here on the OpenFOAM repository.
With OpenFOAM-v2112 it is now possible to install without windows admin permissions.
The original problem will still be evident with older OpenFOAM versions since they relied on installing msmpi separately.

iFuse to access iPhone files on Windows

Trying to use iFuse to access iPhone files on Windows but not getting anyway. Would appreciate if people can share instructions/steps on how to get this to work?
iFuse to access iPhone files on Ubuntu works well; therefore, I am confident the issue is on Windows.
Using https://github.com/hooby3dfx/ifuse/releases/tag/win-dokany-0.1
Unzip test.zip in the above link
make sure iTune is installed
Install the specified Dokan version; doesn't seem to work with the latest Dokan version
Open a command window in Admin mode to run the command (e.g. ifuse tmnt --container bundle ID)
While the command is still running in the Admin window, open another command window to list the mounted directory

How to know the apk version before installing it?

I have to scan the apk version before installing it using adb.
Is there an adb command which allow to know the version of an apk stored on my hard disk before installing it ?
I tried to see different adb command and i saw adb shell pm list packages
But it worked with a device not on the apk stored on my hard disk.
Yes you can do it using cmd.
SDK> build-tools>select any directory(use latest version)> open cmd here and type following line and hit enter
D:\SDK\build-tools\28.0.3> aapt dump badging apkname.apk
above command will gives you package name, VersionCode,VersionName and may more information
i have copied my apk in same location i.e in 28.0.3

Error when I try to install Cloud Foundry cli on Mac OSX?

I am trying to install the Cloud Foundry CLI from: https://github.com/cloudfoundry/cli
However, after I download the ZIP file, unzip it, and click on the installation .pkg (In the installers folder, under osx), I get this error: "The operation couldn’t be completed. (com.apple.installer.pagecontroller error -1.)"
I have Mac OSX 10.7.4, and this is a brand new laptop. A coworker of mine, with the same OSX, downloaded and installed it with no problem.
How can I fix this issue?
Thank you.
That error may depend on some files which needs to be moved, or it could be a file which needs to be converted into a mountable Disk Image file.
or as suggested on https://github.com/cloudfoundry/cli
If you are on OS X, you can also install the CLI with homebrew--run brew install cloudfoundry-cli
if thats not the problem then you should try to download it from Safari(if you aren't using it) or
"open the .mpkg file with Disk Utility and create an uncompressed read/write .dmg. Mount the dmg and run the .mpkg and all should be fine." (as quoted by a user that had a solution to not being able to run the downloader, but it might work with this one too.)
Good luck!
Source:
https://discussions.apple.com/thread/2628710?start=0&tstart=0
https://discussions.apple.com/message/22613031#22613031

Resources