If you facing the following error message when you try to access your device via adb ...
error: insufficient permissions for device: udev requires plugdev group membership
... then you might find the following tutorial helpful.
<?xml version="1.0" encoding="UTF-8"?> | |
<schedule> | |
<version>Bikinihaus</version> | |
<conference> | |
<acronym>34c3</acronym> | |
<title>34th Chaos Communication Congress</title> | |
<start>2017-12-27</start> | |
<end>2017-12-31</end> | |
<days>4</days> | |
<timeslot_duration>00:15</timeslot_duration> |
import com.squareup.moshi.Json; | |
import com.squareup.moshi.JsonAdapter; | |
import com.squareup.moshi.JsonReader; | |
import com.squareup.moshi.JsonWriter; | |
import java.io.IOException; | |
public final class EnumWithDefaultValueJsonAdapter<T extends Enum<T>> extends JsonAdapter<T> { | |
private final Class<T> enumType; | |
private final String[] nameStrings; | |
private final T[] constants; |
If you facing the following error message when you try to access your device via adb ...
error: insufficient permissions for device: udev requires plugdev group membership
... then you might find the following tutorial helpful.
GET /rest/sessions.json HTTP/1.1 | |
Host: droidcon.de | |
Connection: Keep-Alive | |
Accept-Encoding: gzip | |
User-Agent: okhttp/3.8.1 | |
If-None-Match: "1504612579-1" |
GET /rest/speakers.json HTTP/1.1 | |
Host: droidcon.de | |
Connection: Keep-Alive | |
Accept-Encoding: gzip | |
User-Agent: okhttp/3.8.1 | |
If-None-Match: "1504612578-1" |
GET /rest/rooms.json HTTP/1.1 | |
Host: droidcon.de | |
Connection: Keep-Alive | |
Accept-Encoding: gzip | |
User-Agent: okhttp/3.8.1 | |
If-None-Match: "1504612577-1" |
GET /eventfeed/0?start=2017-09-04&end=2017-09-05 HTTP/1.1 | |
Host: droidcon.de | |
Connection: Keep-Alive | |
Accept-Encoding: gzip | |
User-Agent: okhttp/3.8.0 |
adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > output.png |