Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file not found after run #5

Open
TarrahArshad opened this issue Aug 31, 2018 · 4 comments
Open

file not found after run #5

TarrahArshad opened this issue Aug 31, 2018 · 4 comments

Comments

@TarrahArshad
Copy link

// copy binaries to a path where we may execute it);
Tools.copyFile(this, abi + "/xmrig", privatePath + "/xmrig");
Tools.copyFile(this, abi + "/libuv", privatePath + "/libuv.so");
Tools.copyFile(this, "libc++.so", privatePath + "/libc++_shared.so");

@upost
Copy link
Owner

upost commented Nov 15, 2018

Check your abi. Propably there is currently no binary for it.
(The abi should be displayed in the logcat during start)

@QuantumLeaper
Copy link

QuantumLeaper commented Dec 19, 2018

Can confirm, the method of Tools.copyFile does not work on some phones.
Tested on: Galaxy s9+, Exynos 9810, arm64-v8a. For some reason the files do not get copied resulting in:
E/MiningSvc: exception: java.io.IOException: Cannot run program "./xmrig" (in directory "/data/user/0/de.ludetis.monerominer/files"): error=2, No such file or directory

Not seeing any errors regarding the file copy itself, which is odd.

@sadakura
Copy link

sadakura commented Apr 24, 2021

Can confirm, the method of Tools.copyFile does not work on some phones.
Tested on: Galaxy s9+, Exynos 9810, arm64-v8a. For some reason the files do not get copied resulting in:
E/MiningSvc: exception: java.io.IOException: Cannot run program "./xmrig" (in directory "/data/user/0/de.ludetis.monerominer/files"): error=2, No such file or directory

Not seeing any errors regarding the file copy itself, which is odd.

Same here on Samsung 10, will dig deeper and put out code if I Will be able to fix it.

@garrylachman
Copy link

This method is not works anymore. Im the dev of React Native XMRig. The workaround I found is to rename xmrig to xmrig.so and add the file as native lib. Only the files in lib folder are executable...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants