Jump to content

Shex

Members
  • Posts

    4
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Shex's Achievements

Newbie

Newbie (1/14)

  1. I am using windows (don't judge...) All you need is jadx, notepad++, and apktool..
  2. I have updated my code to bypass the distance and height settings (using phone as controller) for the spark. You can now change the height and distance limits using fly_limit_distance and fly_limit_height in the params of assistant 2. Should work for the Mavic too, I just have to test my changes on the spark then I will pull out the mavic and try that as well. These changes should allow active track to move beyond the 100m from home point distance limit when using phone as a controller and allow a distance of up to 8000m.
  3. In the mean time, you want to show the code here to speed things up for the rest of us who are working on this?
  4. 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
×
×
  • Create New...