Good idea to setup a github. I have used your most recent apk and modified the default height limit for the Spark. Controlling the spark via your phone only allows a distance of 100m and 50m height. I set the height to 100m and just tested and it works perfectly. Working on setting the max distance now so that we no longer have the 100m distance limit (active track anyone?) Curious how far we can push the distances with the phone before RTH kicks in.
The change to 100m height was very simple (note it can not be edited from within the app yet, the text is still greyed out but displays correctly. I will update when we can set whatever height/distances we want in the app) This is my first time with android/java/smali so apologies for the ugly hack... but it works and has put me on the path to unlock as much as I can.
In file dji.pilot.publics.util.a (classes5) I changed 0x32 to 0x64 (The 'return 50' now is 'return 100')
Here is the java:
public static int a(boolean z, boolean z2, int i) {
if (z) {
return 30;
}
if (!z2 || i <= 50) {
return i;
}
return 50;
}
In the smali file I changed:
.method public static a(ZZI)I
.locals 1
.prologue
const/16 v0, 0x32
to:
.method public static a(ZZI)I
.locals 1
.prologue
const/16 v0, 0x64
Cheers