Skip to content

Instantly share code, notes, and snippets.

View hkskoglund's full-sized avatar
💭
Hi!

Henning Skoglund hkskoglund

💭
Hi!
  • Tromsø, Norway
View GitHub Profile
@hkskoglund
hkskoglund / gist:cb60fb454ecb27951f4e4bea339f1f83
Created September 25, 2018 07:09
DJI GO Android app v4.3.0
Testing DJILocationManager (has GPS sensor enabled all the time...)
[henning@satellite ~]$ adb -e logcat --pid=$(adb shell pidof dji.go.v4) | grep -i DJILoc
09-25 09:04:03.692 516 722 I DJILocationManager: Attempting to get last known location from AMap Service Location Provider...
09-25 09:04:03.692 516 722 I DJILocationManager: AMapServiceLocationProvider: getSourceProvider()
09-25 09:04:03.734 516 722 I DJILocationManager: Attempting to get last known location from default providers...
09-25 09:04:03.783 516 516 I DJILocationManager: Configuration requires not to use Google Play Service, so skipping that step to AMap Service Location Provider
09-25 09:04:03.783 516 516 I DJILocationManager: Attempting to get location from AMap Service Location Provider...
09-25 09:04:03.783 516 516 I DJILocationManager: AMapServiceLocationProvider: getSourceProvider()
09-25 09:04:03.911 516 516 I DJILocationManager: Configuration requires not to use Google Play Service, so skipping that step to
@hkskoglund
hkskoglund / gist:cc8269c211806aa6207bd0e7a9f5b467
Created October 2, 2018 06:08
DJI Go Android app 4.3.2 - memory leak when analysing flight/flightlog
10-02 08:04:13.021 20843 20843 E InputEventReceiver: Exception dispatching input event.
10-02 08:04:13.026 20843 20843 D AndroidRuntime: Shutting down VM
10-02 08:04:13.037 20843 20843 E AndroidRuntime: FATAL EXCEPTION: main
10-02 08:04:13.037 20843 20843 E AndroidRuntime: Process: dji.go.v4, PID: 20843
10-02 08:04:13.037 20843 20843 E AndroidRuntime: java.lang.Error: std::bad_alloc
10-02 08:04:13.037 20843 20843 E AndroidRuntime: at com.mapbox.mapboxsdk.style.sources.GeoJsonSource.nativeSetFeatureCollection(Native Method)
10-02 08:04:13.037 20843 20843 E AndroidRuntime: at com.mapbox.mapboxsdk.style.sources.GeoJsonSource.setGeoJson(SourceFile:200)
10-02 08:04:13.037 20843 20843 E AndroidRuntime: at com.dji.mapkit.mapbox.a.b.a(Unknown Source:75)
10-02 08:04:13.037 20843 20843 E AndroidRuntime: at com.dji.mapkit.mapbox.map.c.a(Unknown Source:78)
10-02 08:04:13.037 20843 20843 E AndroidRuntime: at dji.gs.c.a.a(Unknown Source:9)
@hkskoglund
hkskoglund / gist:a54d8181c5e6c40b64eb0d4930ab12ce
Created October 3, 2018 08:57
DJI GO Android App v4.3.2 - tcp network connections in CLOSE_WAIT state
[henning@satellite ~]$ while true; do adb shell netstat -a -e -W -t | (head -2; grep a200); adb shell ps -w -k +TIME -T -u u0_a200 -l -O STIME -O RSS -O TCNT | (head -1; grep -i http); sleep 1; done
Active Internet connections (established and servers)
Proto Recv-Q Send-Q Local Address Foreign Address State User Inode
tcp6 0 0 ::ffff:192.168.0.140:41329 ::ffff:120.132.176.172:http ESTABLISHED u0_a200 8577882
tcp6 32 0 ::ffff:192.168.0.140:39496 ::ffff:47.88.66.155:https CLOSE_WAIT u0_a200 8004871
tcp6 32 0 ::ffff:192.168.0.140:39492 ::ffff:47.88.66.155:https CLOSE_WAIT u0_a200 7998088
tcp6 0 1 ::ffff:192.168.0.140:44219 ::ffff:192.168.1.1:19005 SYN_SENT
@hkskoglund
hkskoglund / gist:3f9c1c57f779cfd9040a0a9d0e80e097
Created October 31, 2018 16:58
Fix DJI Mavic Air 360 panorama for upload to google photo
exiv2 -M"set Xmp.GPano.CaptureSoftware DJI" -M"set Xmp.GPano.CroppedAreaImageHeightPixels 4096" -M"set Xmp.GPano.CroppedAreaImageWidthPixels 8192" -M"set Xmp.GPano.CroppedAreaLeftPixels 0" -M"set Xmp.GPano.CroppedAreaTopPixels 0" -M"set Xmp.GPano.FullPanoHeightPixels 4096" -M"set Xmp.GPano.FullPanoWidthPixels 8192" -M"set Xmp.GPano.ProjectionType equirectangular" ~/Bilder/DJI_0178.JPG