-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Snaggly/Remote_Service
v0.8
- Loading branch information
Showing
171 changed files
with
1,023 additions
and
4,202 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 |
---|---|---|
@@ -1,47 +1,53 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:sharedUserId="android.uid.system" | ||
package="com.snaggly.ksw_toolkit"> | ||
package="com.snaggly.ksw_toolkit" | ||
android:sharedUserId="android.uid.system"> | ||
|
||
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> | ||
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" /> | ||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" | ||
<uses-permission | ||
android:name="android.permission.WRITE_EXTERNAL_STORAGE" | ||
tools:ignore="ScopedStorage" /> | ||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/> | ||
<uses-permission android:name="android.permission.INTERNET"/> | ||
<uses-permission android:name="android.permission.WAKE_LOCK"/> | ||
<uses-permission android:name="android.permission.READ_LOGS" | ||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<uses-permission android:name="android.permission.WAKE_LOCK" /> | ||
<uses-permission | ||
android:name="android.permission.READ_LOGS" | ||
tools:ignore="ProtectedPermissions" /> | ||
<uses-permission android:name="android.permission.INJECT_EVENTS" | ||
<uses-permission | ||
android:name="android.permission.INJECT_EVENTS" | ||
tools:ignore="ProtectedPermissions" /> | ||
<uses-permission android:name="android.permission.WRITE_SETTINGS" | ||
<uses-permission | ||
android:name="android.permission.WRITE_SETTINGS" | ||
tools:ignore="ProtectedPermissions" /> | ||
<uses-permission | ||
android:name="android.permission.MODIFY_DAY_NIGHT_MODE" | ||
tools:ignore="ProtectedPermissions" /> | ||
|
||
<application | ||
android:allowBackup="false" | ||
android:icon="@mipmap/ic_launcher" | ||
android:label="@string/app_name" | ||
android:roundIcon="@mipmap/ic_launcher_round" | ||
android:supportsRtl="true" | ||
android:theme="@style/Theme.KSWToolKit"> | ||
<service android:name=".core.service.CoreService" android:enabled="true" android:exported="false" /> | ||
android:roundIcon="@mipmap/ic_launcher_round"> | ||
|
||
<service | ||
android:name=".core.service.CoreService" | ||
android:enabled="true" | ||
android:exported="true" | ||
tools:ignore="ExportedService" /> | ||
|
||
<receiver | ||
android:name=".boot.BootReceiver" | ||
android:directBootAware="true" | ||
android:enabled="true" | ||
android:exported="false" | ||
android:permission="android.permission.RECEIVE_BOOT_COMPLETED"> | ||
android:permission="android.permission.RECEIVE_BOOT_COMPLETED" > | ||
<intent-filter> | ||
<action android:name="android.intent.action.BOOT_COMPLETED" /> | ||
|
||
<category android:name="android.intent.category.DEFAULT" /> | ||
</intent-filter> | ||
</receiver> | ||
<activity android:name=".gui.MainActivity" android:screenOrientation="landscape"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
</application> | ||
|
||
</manifest> |
18 changes: 18 additions & 0 deletions
18
app/src/main/aidl/com/snaggly/ksw_toolkit/IKSWToolKitService.aidl
This file contains 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,18 @@ | ||
// IKSWToolKitService.aidl | ||
package com.snaggly.ksw_toolkit; | ||
|
||
import com.snaggly.ksw_toolkit.IMcuListener; | ||
|
||
interface IKSWToolKitService { | ||
boolean sendMcuCommand(int cmdType, in byte[] data); | ||
boolean changeBtnConfig(int btnType, int cmdType, String cmdValue); | ||
void setDefaultBtnLayout(); | ||
String getConfig(); | ||
boolean setOptions(in boolean[] allSettings); | ||
String[] getSettingsTypes(); | ||
boolean setMcuPath(String path); | ||
boolean registerMcuListener(IMcuListener listener); | ||
boolean unregisterMcuListener(IMcuListener listener); | ||
int getNightBrightnessSetting(); | ||
void setNightBrightnessSetting(int value); | ||
} |
This file contains 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,6 @@ | ||
// IMcuListener.aidl | ||
package com.snaggly.ksw_toolkit; | ||
|
||
interface IMcuListener { | ||
void updateMcu(String eventName, int cmdType, in byte[] data); | ||
} |
38 changes: 19 additions & 19 deletions
38
app/src/main/aidl/com/wits/pms/IPowerManagerAppService.aidl
This file contains 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 |
---|---|---|
@@ -1,22 +1,22 @@ | ||
package com.wits.pms; | ||
|
||
interface IPowerManagerAppService { | ||
/*1*/ boolean sendCommand(String str); | ||
/*2*/ boolean sendStatus(String str); | ||
/*3*/ void registerCmdListener(com.wits.pms.ICmdListener iCmdListener); | ||
/*4*/ void unregisterCmdListener(com.wits.pms.ICmdListener iCmdListener); | ||
/*5*/ void registerObserver(String str, com.wits.pms.IContentObserver iContentObserver); | ||
/*6*/ void unregisterObserver(com.wits.pms.IContentObserver iContentObserver); | ||
/*7*/ boolean getStatusBoolean(String str); | ||
/*8*/ int getStatusInt(String str); | ||
/*9*/ String getStatusString(String str); | ||
/*10*/ int getSettingsInt(String str); | ||
/*11*/ String getSettingsString(String str); | ||
/*12*/ void setSettingsInt(String str, int i); | ||
/*13*/ void setSettingsString(String str, String str2); | ||
/*14*/ void addIntStatus(String str, int i); | ||
/*15*/ void addBooleanStatus(String str, boolean z); | ||
/*16*/ void addStringStatus(String str, String str2); | ||
/*17*/ void saveJsonConfig(String str, String str2); | ||
/*18*/ String getJsonConfig(String str); | ||
} | ||
boolean sendCommand(String str); | ||
boolean sendStatus(String str); | ||
void registerCmdListener(com.wits.pms.ICmdListener iCmdListener); | ||
void unregisterCmdListener(com.wits.pms.ICmdListener iCmdListener); | ||
void registerObserver(String str, com.wits.pms.IContentObserver iContentObserver); | ||
void unregisterObserver(com.wits.pms.IContentObserver iContentObserver); | ||
boolean getStatusBoolean(String str); | ||
int getStatusInt(String str); | ||
String getStatusString(String str); | ||
int getSettingsInt(String str); | ||
String getSettingsString(String str); | ||
void setSettingsInt(String str, int i); | ||
void setSettingsString(String str, String str2); | ||
void addIntStatus(String str, int i); | ||
void addBooleanStatus(String str, boolean z); | ||
void addStringStatus(String str, String str2); | ||
void saveJsonConfig(String str, String str2); | ||
String getJsonConfig(String str); | ||
} |
This file contains 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
6 changes: 3 additions & 3 deletions
6
app/src/main/java/com/snaggly/ksw_toolkit/core/config/ConfigData.kt
This file contains 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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
package com.snaggly.ksw_toolkit.core.config | ||
|
||
import com.snaggly.ksw_toolkit.core.config.beans.EventManager | ||
import com.snaggly.ksw_toolkit.core.config.beans.SystemTweaks | ||
import com.snaggly.ksw_toolkit.core.config.beans.SystemOptions | ||
import com.snaggly.ksw_toolkit.util.list.eventtype.EventManagerTypes | ||
|
||
data class ConfigData( | ||
var systemTweaks: SystemTweaks, | ||
var eventManagers : HashMap<EventManagerTypes, EventManager> | ||
var systemOptions: SystemOptions, | ||
var eventManagers : HashMap<EventManagerTypes, EventManager> | ||
) |
This file contains 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
Oops, something went wrong.