forked from vankos/StuffAround
-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/3 (integrate with OsmAnd active tracks, process a selected distance range, and export the result back to OsmAnd) #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
16722d2
issue #3, basic resolve
adbuker 87b63cc
issue #3, add readme
adbuker 9e47f85
issue #3, add readme 2
adbuker 8005110
issue #3, add readme 3
adbuker fd15618
Merge branch 'master' into feature/3
adbuker 0a49f0b
Potential fix for pull request finding
adbuker 9114e67
Potential fix for pull request finding
adbuker 326b213
Fix ServiceConnection instance mismatch in OsmAndConnection bind/unbind
Copilot c69b30c
Add missing Bundle and IBinder imports to IOsmAndAidlInterface.aidl
Copilot 12ffec4
Disable DTDs and external entities in GpxTrackParser to prevent XXE
Copilot e61573b
Validate non-negative start/end distances before extracting segment
Copilot eec3394
Unbind OsmAnd service when TrackCorridorScreen leaves composition
Copilot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,3 +18,5 @@ local.properties | |
| app/release/ | ||
| app/debug/ | ||
| app/build/ | ||
| .sdd/ | ||
| build/ | ||
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
204 changes: 204 additions & 0 deletions
204
app/src/main/aidl/net/osmand/aidlapi/IOsmAndAidlInterface.aidl
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,204 @@ | ||
| package net.osmand.aidlapi; | ||
|
|
||
| import android.os.Bundle; | ||
| import android.os.IBinder; | ||
| import net.osmand.aidlapi.gpx.ASelectedGpxFile; | ||
| import net.osmand.aidlapi.gpx.AGpxFile; | ||
| import net.osmand.aidlapi.gpx.ImportGpxParams; | ||
|
|
||
| interface IOsmAndAidlInterface { | ||
| // 1 | ||
| boolean addMapMarker(in Bundle params); | ||
| // 2 | ||
| boolean removeMapMarker(in Bundle params); | ||
| // 3 | ||
| boolean updateMapMarker(in Bundle params); | ||
| // 4 | ||
| boolean addMapWidget(in Bundle params); | ||
| // 5 | ||
| boolean removeMapWidget(in Bundle params); | ||
| // 6 | ||
| boolean updateMapWidget(in Bundle params); | ||
| // 7 | ||
| boolean addMapPoint(in Bundle params); | ||
| // 8 | ||
| boolean removeMapPoint(in Bundle params); | ||
| // 9 | ||
| boolean updateMapPoint(in Bundle params); | ||
| // 10 | ||
| boolean addMapLayer(in Bundle params); | ||
| // 11 | ||
| boolean removeMapLayer(in Bundle params); | ||
| // 12 | ||
| boolean updateMapLayer(in Bundle params); | ||
| // 13 | ||
| boolean importGpx(in ImportGpxParams params); | ||
| // 14 | ||
| boolean showGpx(in Bundle params); | ||
| // 15 | ||
| boolean hideGpx(in Bundle params); | ||
| // 16 | ||
| boolean getActiveGpx(out List<ASelectedGpxFile> files); | ||
| // 17 | ||
| boolean setMapLocation(in Bundle params); | ||
| // 18 | ||
| boolean calculateRoute(in Bundle params); | ||
| // 19 | ||
| boolean refreshMap(); | ||
| // 20 | ||
| boolean addFavoriteGroup(in Bundle params); | ||
| // 21 | ||
| boolean removeFavoriteGroup(in Bundle params); | ||
| // 22 | ||
| boolean updateFavoriteGroup(in Bundle params); | ||
| // 23 | ||
| boolean addFavorite(in Bundle params); | ||
| // 24 | ||
| boolean removeFavorite(in Bundle params); | ||
| // 25 | ||
| boolean updateFavorite(in Bundle params); | ||
| // 26 | ||
| boolean startGpxRecording(in Bundle params); | ||
| // 27 | ||
| boolean stopGpxRecording(in Bundle params); | ||
| // 28 | ||
| boolean takePhotoNote(in Bundle params); | ||
| // 29 | ||
| boolean startVideoRecording(in Bundle params); | ||
| // 30 | ||
| boolean startAudioRecording(in Bundle params); | ||
| // 31 | ||
| boolean stopRecording(in Bundle params); | ||
| // 32 | ||
| boolean navigate(in Bundle params); | ||
| // 33 | ||
| boolean navigateGpx(inout Bundle params); | ||
| // 34 | ||
| boolean removeGpx(in Bundle params); | ||
| // 35 | ||
| boolean showMapPoint(in Bundle params); | ||
| // 36 | ||
| boolean setNavDrawerItems(in Bundle params); | ||
| // 37 | ||
| boolean pauseNavigation(in Bundle params); | ||
| // 38 | ||
| boolean resumeNavigation(in Bundle params); | ||
| // 39 | ||
| boolean stopNavigation(in Bundle params); | ||
| // 40 | ||
| boolean muteNavigation(in Bundle params); | ||
| // 41 | ||
| boolean unmuteNavigation(in Bundle params); | ||
| // 42 | ||
| boolean search(in Bundle params, IBinder callback); | ||
| // 43 | ||
| boolean navigateSearch(in Bundle params); | ||
| // 44 | ||
| long registerForUpdates(in long updateTimeMS, IBinder callback); | ||
| // 45 | ||
| boolean unregisterFromUpdates(in long callbackId); | ||
| // 46 | ||
| boolean setNavDrawerLogo(in String imageUri); | ||
| // 47 | ||
| boolean setEnabledIds(in List<String> ids); | ||
| // 48 | ||
| boolean setDisabledIds(in List<String> ids); | ||
| // 49 | ||
| boolean setEnabledPatterns(in List<String> patterns); | ||
| // 50 | ||
| boolean setDisabledPatterns(in List<String> patterns); | ||
| // 51 | ||
| boolean regWidgetVisibility(in Bundle params); | ||
| // 52 | ||
| boolean regWidgetAvailability(in Bundle params); | ||
| // 53 | ||
| boolean customizeOsmandSettings(in Bundle params); | ||
| // 54 | ||
| boolean getImportedGpx(out List<AGpxFile> files); | ||
| // 55 | ||
| boolean getSqliteDbFiles(out List<Bundle> files); | ||
| // 56 | ||
| boolean getActiveSqliteDbFiles(out List<Bundle> files); | ||
| // 57 | ||
| boolean showSqliteDbFile(String fileName); | ||
| // 58 | ||
| boolean hideSqliteDbFile(String fileName); | ||
| // 59 | ||
| boolean setNavDrawerLogoWithParams(in Bundle params); | ||
| // 60 | ||
| boolean setNavDrawerFooterWithParams(in Bundle params); | ||
| // 61 | ||
| boolean restoreOsmand(); | ||
| // 62 | ||
| boolean changePluginState(in Bundle params); | ||
| // 63 | ||
| boolean registerForOsmandInitListener(IBinder callback); | ||
| // 64 | ||
| boolean getBitmapForGpx(in Bundle file, IBinder callback); | ||
| // 65 | ||
| int copyFile(in Bundle filePart); | ||
| // 66 | ||
| long registerForNavigationUpdates(in Bundle params, IBinder callback); | ||
| // 67 | ||
| long addContextMenuButtons(in Bundle params, IBinder callback); | ||
| // 68 | ||
| boolean removeContextMenuButtons(in Bundle params); | ||
| // 69 | ||
| boolean updateContextMenuButtons(in Bundle params); | ||
| // 70 | ||
| boolean areOsmandSettingsCustomized(in Bundle params); | ||
| // 71 | ||
| boolean setCustomization(in Bundle params); | ||
| // 72 | ||
| long registerForVoiceRouterMessages(in Bundle params, IBinder callback); | ||
| // 73 | ||
| boolean removeAllActiveMapMarkers(in Bundle params); | ||
| // 74 | ||
| boolean importProfile(in Bundle params); | ||
| // 75 | ||
| boolean executeQuickAction(in Bundle params); | ||
| // 76 | ||
| boolean getQuickActionsInfo(out List<Bundle> quickActions); | ||
| // 77 | ||
| boolean setLockState(in Bundle params); | ||
| // 78 | ||
| long registerForKeyEvents(in Bundle params, IBinder callback); | ||
| // 79 | ||
| Bundle getAppInfo(); | ||
| // 80 | ||
| boolean setMapMargins(in Bundle params); | ||
| // 81 | ||
| boolean exportProfile(in Bundle params); | ||
| // 82 | ||
| boolean isFragmentOpen(); | ||
| // 83 | ||
| boolean isMenuOpen(); | ||
| // 84 | ||
| int getPluginVersion(in Bundle params); | ||
| // 85 | ||
| boolean selectProfile(in Bundle params); | ||
| // 86 | ||
| boolean getProfiles(out List<Bundle> profiles); | ||
| // 87 | ||
| boolean getBlockedRoads(out List<Bundle> blockedRoads); | ||
| // 88 | ||
| boolean addRoadBlock(in Bundle params); | ||
| // 89 | ||
| boolean removeRoadBlock(in Bundle params); | ||
| // 90 | ||
| boolean setLocation(in Bundle params); | ||
| // 91 | ||
| boolean exitApp(in Bundle params); | ||
| // 92 | ||
| boolean getText(inout Bundle params); | ||
| // 93 | ||
| boolean reloadIndexes(); | ||
| // 94 | ||
| boolean setPreference(in Bundle params); | ||
| // 95 | ||
| boolean getPreference(inout Bundle params); | ||
| // 96 | ||
| long registerForLogcatMessages(in Bundle params, IBinder callback); | ||
| // 97 | ||
| boolean setZoomLimits(in Bundle params); | ||
| } | ||
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| package net.osmand.aidlapi.gpx; | ||
|
|
||
| parcelable AGpxFile; |
3 changes: 3 additions & 0 deletions
3
app/src/main/aidl/net/osmand/aidlapi/gpx/AGpxFileDetails.aidl
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| package net.osmand.aidlapi.gpx; | ||
|
|
||
| parcelable AGpxFileDetails; |
3 changes: 3 additions & 0 deletions
3
app/src/main/aidl/net/osmand/aidlapi/gpx/ASelectedGpxFile.aidl
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| package net.osmand.aidlapi.gpx; | ||
|
|
||
| parcelable ASelectedGpxFile; |
3 changes: 3 additions & 0 deletions
3
app/src/main/aidl/net/osmand/aidlapi/gpx/ImportGpxParams.aidl
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| package net.osmand.aidlapi.gpx; | ||
|
|
||
| parcelable ImportGpxParams; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.