View Single Post
Old 04-26-2025, 02:43 PM   #874
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 45,226
Karma: 168808723
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by JollyRoger View Post
So you're using Kindle for android on Bluestacks. How do you get the book files from Bluestacks? Do you just use file manager to drag and drop them?
Under Windows, I am using a batch file to transfer the books from Bluestack's storage to a Windows directory. You do need to set the config file location and Bluestacks instance in the batch file and have installed the Android SDK Platform Tools to have adb. The rem before the @ECHO OFF can be removed once you have the file running happily.

Code:
rem @ECHO OFF
CLS
rmdir %userprofile%\BS_Export /S /Q
mkdir %userprofile%\BS_Export

REM Extracting all books from a Bluestacks instance with unknown port
REM Edit the following SET commands with your own file location and
REM BlueStacks instance name

SET BS_config_file=C:\ProgramData\Bluestacks_nxt\bluestacks.conf
SET BS_instance=Pie64_1

FOR /F "tokens=2 delims==" %%F IN ('findstr ".%BS_instance%.status.adb_port=" %BS_config_file%') DO SET ADB_PORT=%%F
C:\platform-tools\adb connect localhost:%ADB_PORT%
C:\platform-tools\adb -s localhost:%ADB_PORT% -a pull /sdcard/Android/data/com.amazon.kindle/files %userprofile%/BS_Export
C:\platform-tools\adb disconnect localhost:%ADB_PORT%

@PAUSE
Edit: I've attached the batch file to this message. Rename to remove the .txt before using.
Attached Files
File Type: txt BS_Fetch.cmd.txt (712 Bytes, 61 views)

Last edited by DNSB; 04-26-2025 at 02:54 PM. Reason: Attach batch file to message
DNSB is offline   Reply With Quote