Skip to content

Commit

Permalink
v1.1 - root added
Browse files Browse the repository at this point in the history
  • Loading branch information
CunningLogic committed Jan 7, 2018
1 parent 354cddc commit 753a325
Show file tree
Hide file tree
Showing 12 changed files with 335 additions and 231 deletions.
96 changes: 86 additions & 10 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file removed DUMLRacer.jar
Binary file not shown.
36 changes: 8 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,35 +16,9 @@ Amazon giftcards, plain thank yous or anything else -> [email protected]

Any donations in excess of the drone cost, will go to Special Olympics!

Donations:
Donations: $857 out of $899+tax

T.G. - $20

D.W. - $50

W.M. - $20

NLZ - $150

T.Z. - $5

N.C. - $25

G.T. - $50

G.S. - $30

M.P. - $25

S.M. - $5.8

K.I. - 0.01335496 BitconCash

W.S. - $15

V.P. - €2

A.T. - 327.40

Dear DJI, next time someone requests source code they are entitled to under the GPL, you shouldn’t tell them no. You should comply with the license you agreed to. Had you complied, or responded appropriately, this project would never have been public.

Expand Down Expand Up @@ -75,6 +49,10 @@ ToDo:


Change Log:
1.1:
Persistent root via adb
Massive re-write
More Reliable
1.0:
Initial release

Expand All @@ -95,8 +73,10 @@ Greetz/shouts/thank yous
@kdover
@hdnes
@diff
@jexxab
@jezzab
@jan2642
@coldflake
@hdnes
@b1n4ry

@bunch of ppl i left off because i need a break from pc
Binary file modified out/artifacts/DUMLRacer_jar/DUMLRacer.jar
Binary file not shown.
Binary file modified out/production/DUMLRacer/com/cunninglogic/dumlracer/CRC.class
Binary file not shown.
Binary file modified out/production/DUMLRacer/com/cunninglogic/dumlracer/Main.class
Binary file not shown.
Binary file modified out/production/DUMLRacer/resources/stage1.bin
Binary file not shown.
Binary file modified out/production/DUMLRacer/resources/stage2.bin
Binary file not shown.
12 changes: 11 additions & 1 deletion src/com/cunninglogic/dumlracer/CRC.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.cunninglogic.dumlracer;

import java.nio.ByteBuffer;

/**
* Created by jcase on 1/1/18.
*/
Expand Down Expand Up @@ -41,7 +43,6 @@ public class CRC {
0x7BC7, 0x6A4E, 0x58D5, 0x495C, 0x3DE3, 0x2C6A, 0x1EF1, 0x0F78,
};


public static int calc (byte[] packet) {
int j = seed;
int len = packet.length;
Expand All @@ -52,5 +53,14 @@ public static int calc (byte[] packet) {
return j;
}

public static byte[] pktCRC(byte[] packet) {
byte[] newPkt = new byte[packet.length + 2];
byte[] crc = ByteBuffer.allocate(2).putShort((short)CRC.calc(packet)).array();

newPkt[newPkt.length -2] = crc[1];
newPkt[newPkt.length -1] = crc[0];

System.arraycopy(packet,0,newPkt,0,packet.length);
return newPkt;
}
}
Loading

0 comments on commit 753a325

Please sign in to comment.