You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a simple "REST" (I'm not so sure about that) service wrapper of [libimobiledevice](https://github.com/libimobiledevice/libimobiledevice) to communicate with services of Apple iOS devices using native
3
+
**java-http-libimobiledevice** is a simple "REST" (I'm not so sure about that) service wrapper of [libimobiledevice](https://github.com/libimobiledevice/libimobiledevice) to communicate with services of Apple iOS devices using native
4
4
protocols. This service works on Linux and macOS.
5
5
6
+
**libimobiledevice** is a cross-platform software library that talks the protocols to support iPhone®, iPod Touch®, iPad® and Apple TV® devices. Unlike other projects, it does not depend on using any existing proprietary libraries and does not require jailbreaking. It allows other software to easily access the device's filesystem, retrieve information about the device and it's internals, backup/restore the device, manage SpringBoard® icons, manage installed applications, etc.
* Place the **ios-service.config** configuration file in the folder where **ios-service-X.X.X.jar** is located.
45
+
* Place the **ios-service.config** configuration file in the folder where **java-http-libimobiledevice-X.X.X.jar** is located.
47
46
* Start service:
48
47
49
48
```bash
49
+
java -jar java-http-libimobiledevice-X.X.X.jar
50
+
```
51
+
52
+
## URL structure
53
+
54
+
The java-http-libimobiledevice API lives at [http://127.0.0.1:5050/api/v1/](http://127.0.0.1:5050/api/v1/), with particular endpoints following that prefix.
55
+
56
+
Responses are in **JSON**
57
+
58
+
## Example calls
59
+
60
+
API examples use [httpie](https://httpie.org), a command-line HTTP client.
50
61
51
-
sudo sudo service ios-service start
62
+
Gets information about the battery of an attached device.
63
+
64
+
**:serial** = Target specific device by its 40-digit device UDID.
We use [apiDoc](http://apidocjs.com/) in order to generate the [documentation](https://mobileboxlab.github.io/java-http-libimobiledevice/) for java-http-libimobiledevice’s HTTP API.
160
+
161
+
**apiDoc** creates a documentation from API annotations in your source code. Please check the documentation [here](http://apidocjs.com/#params)
162
+
163
+
The proyect come with a Maven task in order to generate the documentation from Maven without any pain, but FIRST you need install **apiDoc** of course:
164
+
165
+
```bash
166
+
npm install apidoc -g
167
+
```
168
+
169
+
And now we need execute the following command:
170
+
171
+
```bash
172
+
mvn exec:exec
173
+
```
174
+
175
+
The documentation is generated on the **doc** directory.
176
+
177
+
## Contribution
178
+
179
+
Any ideas are welcome. Feel free to submit any issues or pull requests.
0 commit comments