This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# disable auto rotation | |
adb shell content insert --uri content://settings/system --bind name:s:accelerometer_rotation --bind value:i:0 | |
# force landscape | |
adb shell content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:1 | |
# back to portrait | |
adb shell content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:0 | |
# upside down |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[01:03:33] Begin /home/ivan/pi-gen | |
[01:03:33] Begin /home/ivan/pi-gen/stage0 | |
[01:03:33] Begin /home/ivan/pi-gen/stage0/prerun.sh | |
I: Retrieving InRelease | |
I: Checking Release signature | |
I: Valid Release signature (key id A0DA38D0D76E8B5D638872819165938D90FDDD2E) | |
I: Retrieving Packages | |
I: Validating Packages | |
I: Retrieving Packages | |
I: Validating Packages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.io.OutputStream; | |
import java.io.PrintWriter; | |
import java.util.Enumeration; | |
import java.util.TooManyListenersException; | |
import gnu.io.CommPortIdentifier; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.List; | |
import javax.usb.UsbConfiguration; | |
import javax.usb.UsbConst; | |
import javax.usb.UsbControlIrp; | |
import javax.usb.UsbDevice; | |
import javax.usb.UsbDeviceDescriptor; | |
import javax.usb.UsbEndpoint; | |
import javax.usb.UsbException; | |
import javax.usb.UsbHostManager; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*Realm incorrect nested managed RealmList BUG*/ | |
public class ProductOption extends RealmObject { | |
@PrimaryKey private String uniqueId; | |
private long id; | |
private String title; | |
private int format; | |
private Product product; | |
private RealmList<ProductSubOption> suboptions; | |
//Getters ans detters are here |