View Single Post
Old 05-30-2023, 05:01 PM   #325
DuckieTigger
Wizard
DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.
 
DuckieTigger's Avatar
 
Posts: 4,763
Karma: 246906703
Join Date: Dec 2011
Location: USA
Device: Oasis 3, Oasis 2, PW3, PW1, KT
Quote:
Originally Posted by Hellioness View Post
Same, after a lot of trial and error I was finally able to get it to work. Does anyone know where Bluestacks saves the files locally? Using the built in Bluestacks file manager is taking forever to export the files, hoping there's a local folder so I can just drag and drop. Thanks!
There isn't a local folder. But you can easily make one yourself. Check the first post again, then go down to my step by step high resolution workaround. You don't need to do all that, but you can do step #7:
Quote:
for each book extract the .prc and .ast file (the quick and dirty way is to use "adb pull /sdcard/Android/data/com.amazon.kindle/files" - then traverse the files folder and drag and drop the .prc files into calibre)
Make sure you leave the ADB mode open on Bluestacks, then you can script pulling the files out. Normally you have to do some shenanigans, because if you leave the ADB connection and close Bluestacks, it will not remember the connection. Unless you disconnect first and reconnect. I created a batch file (for windows) to automate that. It will work even if you have multiple Bluestacks which may be connected to ADB. After you pulled all that, you can search the files folder for *.prc to get all the books in there, sort by date, drag and drop into calibre the newest batch you downloaded. Afterwards remove them from the Kindle app in Bluestacks. It assumes that you are not connected, and if you are and it fails, just run it again. You will need to edit the port number, which will be different on your computer.

My get.bat file:
Code:
%echo off
adb connect localhost:5605
adb -s localhost:5605 -a pull /sdcard/Android/data/com.amazon.kindle/files
adb disconnect localhost:5605
%pause
Make sure to put it in the location you want the files copied to.

UPDATE:the above get.bat only works with a static port assigned. If the port is dynamic (e.g. when Hyper-V is enabled), it needs to get extracted first. A slightly more complicated batch file can be found in post#362.

Last edited by DuckieTigger; 06-12-2023 at 10:35 PM.
DuckieTigger is offline   Reply With Quote