Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
waicool20 committed Sep 8, 2019
1 parent c230b40 commit aee3f13
Showing 1 changed file with 29 additions and 17 deletions.
46 changes: 29 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,33 +13,45 @@ Currently the steps are very technical and might be complicated for the typical
Pre-requisites:
- [Java 8](https://www.oracle.com/java/technologies/jdk8-downloads.html)
- [MR2Tachiyomi Application Jar](https://github.com/waicool20/mr2tachiyomi/releases)
- [Compiled Binary of Helium_AB2Tar](https://github.com/floe/helium_ab2tar)

## Method 1: Using mangarock.db (Rooted devices only)

1. Find and copy the `mangarock.db` file on your android device to your PC
- For rooted devices it is as simple as navigating to `root:/data/data/com.notabasement.mangarock.android.lotus/databases`
and copying the `mangarock.db` file to your pc
- File is located in the directory `root:/data/data/com.notabasement.mangarock.android.lotus/databases`

- For non-rooted devices, the method of obtaining the `mangarock.db` will be more convoluted.
1. Backup MangaRock using [Helium Backup](https://play.google.com/store/apps/details?id=com.koushikdutta.backup&hl=en)
2. Copy the file
`sdcard:/carbon/com.notabasement.mangarock.android.lotus/com.notabasement.mangarock.android.lotus.ab`
to your pc
3. Use Helium_AB2Tar tool to convert the ab file into a tar archive
4. Open the archive using your favorite archive tool and navigate to `/apps/com.notabasement.mangarock.android.lotus/db/` and look for `mangarock.db`

2. Place the file `mangarock.db` in the same directory as the application jar on your PC and run it using java.
Double clicking the jar file or right clicking and choosing run with java should be enough to run it on windows, a simple GUI should pop up. Choose the button `Open` and select your `mangarock.db` file. Choose the `Run` button then choose a save location for the output file.
2. Run MR2Tachiyomi Application Jar (Double click the jar) and open the copied `mangarock.db` file.
Click `Run` and choose a save location for the output file.

Optionally for those wanting to use the command line instead of GUI:
> java -jar mr2tachiyomi.jar -i /path/to/mangarock.db -o /path/to/output.json
3. After running there will be a new file created which can be imported into Tachiyomi
using the backup restore feature in the settings menu. Note: MangaRock or other relevant Tachiyomi source extensions must be installed, or else
the import will fail.
using the backup restore feature in the settings menu.
Note: MangaRock or other relevant Tachiyomi source extensions must be installed, or else the import will fail.

## Method 2: Using Helium Backup (Both Non-Rooted or Rooted devices)

1. Backup MangaRock using [Helium Backup](https://play.google.com/store/apps/details?id=com.koushikdutta.backup&hl=en)

2. Copy the file
`sdcard:/carbon/com.notabasement.mangarock.android.lotus/com.notabasement.mangarock.android.lotus.ab`
to your pc

3. Run MR2Tachiyomi Application Jar (Double click the jar) and open the copied `com.notabasement.mangarock.android.lotus.ab` file.
Click `Run` and choose a save location for the output file.

Optionally for those wanting to use the command line instead of GUI:
> java -jar mr2tachiyomi.jar -i /path/to/androidbackup.ab -o /path/to/output.json
4. After running there will be a new file created which can be imported into Tachiyomi
using the backup restore feature in the settings menu.
Note: MangaRock or other relevant Tachiyomi source extensions must be installed, or else the import will fail.

## TODO

- Might re-implement helium_ab2tar into mr2tachiyomi
- CSV output
- Other sources that MangaRock uses
- Elaborate steps

## Credits

- Original C implementation for Android Backup to Tar algorithm: https://github.com/floe/helium_ab2tar

0 comments on commit aee3f13

Please sign in to comment.