Commit graph

259 commits

Author SHA1 Message Date
andrekir
1f60c4ddf4 move region logic out of service 2022-07-26 23:01:28 -03:00
andrekir
a598b50d40 handle updated wantConfig 2022-06-21 09:51:11 -03:00
andrekir
54f6112908 create LocalConfig DataStore 2022-06-11 18:36:57 -03:00
andrekir
ce83c84723 update configs to LocalConfig 2022-06-10 21:55:26 -03:00
andrekir
47793a2086 add shutdown & reboot admin commands 2022-06-06 17:29:09 -03:00
andrekir
875939931e add localonly & update apponly protobufs 2022-05-30 17:43:05 -03:00
andrekir
48fd657d8a update protobufs 2022-05-26 16:23:47 -03:00
Mike Cumings
5546e74b46 Extract RadioInterfaceService companion object functions
In preparation for replacing the `InterfaceFactory` with an
injectable form we need to convert static methods that call
`InterfaceFactory` into non-static, injected forms.

Also:
- Updated kotlin `-Xopt-in` to `-opt-in` to remove build
  time warnings.
- Removed some unused `RadioInterfaceService` code.
2022-05-20 14:27:39 -07:00
andrekir
6bda993851 move location service to repository 2022-05-20 09:13:59 -03:00
andrekir
d50e9e1644 meshservice cleanup 2022-05-20 09:12:55 -03:00
Mike Cumings
7cd1e7fc96 Mesh service needs to collect on Flow instances 2022-05-06 12:17:17 -07:00
Mike Cumings
9687fb7370 RadioInterfaceService is no longer an Android Service
Removes the AIDL and associated support for the `IRadioInterfaceService`.
This should give some performance benefit since radio data no longer
has to round-trip through the platform.
2022-04-22 17:40:01 -07:00
Mike Cumings
4f6357103b Move radio service code verbatim into repository/radio 2022-04-22 10:22:03 -07:00
andrekir
89811d4aa4 cleanup actionmode 2022-04-19 15:10:17 -03:00
Mike Cumings
dd41527bbc Initial step in refactoring RadioInterfaceService for dependency injection
Extracts USB device management into a `UsbRepository`.

In order for `SerialInterface to gain access to this prior to
the `RadioInterfaceService` being fully natively dependency
injected, all `InterfaceFactory` implementations needed
to be modified to accept the `UsbRepository` via argument.  This
will go away in a future PR.

Changed `assumePermission` constant to `false` as it was preventing
the request for permission from occurring, breaking serial connectivity.

Minor improvement: SerialInterface re-bonding by device name is
now supported.
2022-04-08 11:34:44 -07:00
andrekir
bcc46f36e6 only consider device sleep when isPowerSaving enabled 2022-04-07 23:31:43 -03:00
andrekir
78f7477c85 promote device metrics 2022-04-04 19:10:15 -03:00
andrekir
ba2a6e0573 add contacts 2022-04-03 11:25:50 -03:00
andrekir
7c1c449dd3 insert sent messages in Packet 2022-03-29 10:58:34 -03:00
andrekir
0c135c4502 handle received telemetry portnums 2022-03-28 15:50:33 -03:00
andrekir
291e54c275 use locationShareDisabled boolean 2022-03-26 17:09:05 -03:00
andrekir
b8b2a8a86c improve firmware update 2022-03-11 00:12:48 -03:00
Andre Kirchhoff
b6d90685c2
Merge pull request #389 from meshtastic/release
1.3.3
2022-03-08 10:35:52 -03:00
andrekir
0b0d82dc76 deleteMessage index by packet id 2022-03-02 11:21:43 -03:00
andrekir
27994ba2dd anonymize sendPosition 2022-02-28 16:54:16 -03:00
andrekir
141a0c67af update minFirmwareVersion to 1.3.0 2022-02-20 19:33:52 -03:00
andrekir
d016271d79 remove comment 2022-02-15 20:49:03 -03:00
andrekir
88b0415180 remove legacy MyNodeInfo.region 2022-02-15 20:47:54 -03:00
andrekir
c46039bb04 Remove hw_model_deprecated 2022-02-15 20:12:04 -03:00
Mike Cumings
654a32c01c Introduce Hilt dependency injection
Uses Hilt to get the database initialization off of the
main thread.

The initial introduction always has a disproportionate
fan-out of boilerplate. In this case, all entry points which
were using UIViewModel needed to be annotated in order to let
the code gen know that they needed to support it.

The PacketRepository is injected into things via the main
thread (e.g., the MeshService) but due to the lazy declaration,
the database isn't hydrated until the DAO is access while on an
IO thread.
2022-02-08 13:57:04 -08:00
Jackson Rosenthal
93e81e4639 Added delete all messages into the AlertDialog. 2022-01-31 19:11:32 -05:00
Jackson Rosenthal
e27a76633c Delete messages from view by long clicking. Looking into clearing "all messages" & menu for deleting individual messages 2022-01-29 14:31:08 -05:00
Andre Kirchhoff
852cd2ddc7
Merge pull request #354 from meshtastic/release
1.2.54
2022-01-26 22:58:46 -03:00
andrekir
10886a9c98 add MyNodeInfo channelUtilization & airUtilTx 2022-01-26 22:26:35 -03:00
andrekir
7a316928be update provideLocation feedback 2022-01-26 16:27:16 -03:00
andrekir
a097cc2f25 send position to local node (without broadcast) 2022-01-26 02:35:37 -03:00
Andre Kirchhoff
12f864bae3
fix restrictions to provide location to mesh 2022-01-14 18:49:08 -03:00
andrekir
2bc12fe9d6 update play-services-location 2022-01-09 23:22:47 -03:00
andrekir
2441e1bada add provideLocation service start/stop 2022-01-03 21:59:30 -03:00
Jm Casler
b91c54f8b6
Merge pull request #330 from meshtastic/processQueued
fix processing queued packets
2021-12-26 13:39:40 -08:00
andrekir
e093a29191 fix processing queued packets 2021-12-25 19:30:45 -03:00
Andre Kirchhoff
6a5fcbe9db
add lastHeard to installNodeInfo 2021-12-25 18:37:18 -03:00
Kevin Hester
e186abce79 fix autobug 2021-06-11 09:48:20 -07:00
Kevin Hester
5b069f93bc remove concept of "early received packets" we no longer need it 2021-06-11 09:45:04 -07:00
Kevin Hester
9c1316ea09 WIP - work with background location being optional 2021-06-10 10:58:45 -07:00
Kevin Hester
793b75b67b less logspam 2021-05-10 08:46:11 +08:00
Kevin Hester
1eb4bf43d4 fix leakage of (slightly) possibly PII data 2021-05-10 08:37:39 +08:00
Kevin Hester
59e430d30d WIP color fixes 2021-05-09 09:02:53 +08:00
Kevin Hester
c74ee428ed fix position overide problem with fixedPosition nodes thx @havealoha 2021-04-15 12:16:56 +08:00
Kevin Hester
0f384fc62f fix autobug with channels being only one entry long 2021-04-03 08:27:07 +08:00