|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectzeroslackr.installer.iPodPatcher
public class iPodPatcher
iPodPatcher Class.
Use external ipodpatcher binary to install Loader2. Note that since ipodpatcher is written in C++, I may be able to port it over to Java later.
Licensed under GNU GPL (Version 3).
Sources: Rockbox's iPodPatcher wiki page, Rockbox's iPodPatcher SVN source code
Field Summary | |
---|---|
private File |
ipodpatcher
|
Constructor Summary | |
---|---|
iPodPatcher(String folder)
Constructor. |
Method Summary | |
---|---|
void |
backup(String path)
Backup iPod's firmware to an image. |
Process |
exec(String[] args)
Execute ipodpatcher binary with arguments. |
boolean |
exists()
Check if the ipodpatcher binary exists. |
private static String |
getErrOutput(Process p)
Get ipodpatcher's error stream for parsing. |
private static String |
getPath(String folder)
|
void |
install(String path)
Install Loader 2 from file. |
void |
restore(String path)
Restore iPod's firmware from an image. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private File ipodpatcher
Constructor Detail |
---|
public iPodPatcher(String folder)
folder
- Path to folder containing ipodpatcher binariesMethod Detail |
---|
private static String getPath(String folder)
folder
- Path to folder containing ipodpatcher binaries.
public boolean exists()
public Process exec(String[] args) throws IOException
IOException
private static String getErrOutput(Process p)
p
- ipodpatcher process.
public void backup(String path) throws IOException, InterruptedException, iPodPatcherFailureException
path
- Path to backup location.
IOException
InterruptedException
iPodPatcherFailureException
public void restore(String path) throws IOException, InterruptedException, iPodPatcherFailureException
path
- Path to backup location.
IOException
InterruptedException
iPodPatcherFailureException
public void install(String path) throws IOException, InterruptedException, iPodPatcherFailureException
path
- Path to loader.bin location.
IOException
InterruptedException
iPodPatcherFailureException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |