I'm working with someone who has a 1st generation Kindle Fire to test Amazon's in-app purchasing. According to Amazon's docs, we need to create a response file named /mnt/sdcard/amazon.sdktester.json on the device. My colleague prepared the .json file and tried to transfer it to the device via a USB connection. However, when he connects his device to his Mac, the root folder of the mounted device does not have a /mnt folder. He also tried mounting it on a virtual Windows machine on his Mac, with the same result.

I'm assuming that for some reason the Kindle Fire is mounted in a way that does not provide access to the root folder of the device. Can anyone recommend a way around this, or some other way to put a file into /mnt/sdcard/ on my colleague's Kindle Fire?

If there's a way to directly type in the file on his Kindle Fire, that would be acceptable; it's just a few lines of text. All suggestions are welcome.

有帮助吗?

解决方案 2

So we figured it out. The problem, as Nick Davis pointed out, is that the root folder is only visible when connecting through adb. My colleague does not have a development environment and does not want to install it.

Instead, he installed the Text Edit app on his device, mailed the text to himself, copied it into a new document and saved the file directly to /sdcard/android.sdktester.json (which is an alias for /mnt/sdcard/android.sdktester.json).

This was practical only because there wasn't a lot of text involved. For large files, I suppose he could have copied them to a different folder through the USB connection and used a file manager like @ssantos suggested in a comment to move it to the right folder.

其他提示

When you say "transfer via USB connection", do you mean that you mount the device like an external drive, or are you accessing it via ADB? You will need to access the device via adb to get to the root folders.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top