这是indexloc提供的服务,不要输入任何密码
Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.termux.x11"
applicationId "com.termux.wayland"
minSdkVersion 24
targetSdkVersion 28
versionCode 7
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.termux.x11"
package="com.termux.wayland"
android:installLocation="internalOnly"
android:sharedUserId="com.termux">

Expand All @@ -27,7 +27,7 @@
android:name=".LorieTestService"
android:enabled="true"
android:exported="true"
android:process="com.termux.x11.separated"/>
android:process="com.termux.wayland.separated"/>
<activity android:name=".MainActivity"
android:theme="@style/NoActionBar"
android:launchMode="singleInstance"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ITermuxService.aidl
package com.termux.x11;
package com.termux.wayland;

import android.view.Surface;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.termux.x11;
package com.termux.wayland;

import android.annotation.SuppressLint;
import android.content.Context;
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/termux/x11/KeyboardUtils.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.termux.x11;
package com.termux.wayland;

import android.app.Activity;
import android.graphics.Rect;
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/com/termux/x11/LoriePreferences.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.termux.x11;
package com.termux.wayland;

import android.content.SharedPreferences;
import android.inputmethodservice.Keyboard;
Expand Down Expand Up @@ -105,7 +105,7 @@ public boolean onPreferenceChange(Preference preference, Object newValue) {
.setTitle("Permission denied")
.setMessage("Android requires WRITE_SECURE_SETTINGS permission to change this setting.\n" +
"Please, launch this command using ADB:\n" +
"adb shell pm grant com.termux.x11 android.permission.WRITE_SECURE_SETTINGS")
"adb shell pm grant com.termux.wayland android.permission.WRITE_SECURE_SETTINGS")
.setNegativeButton("OK", null)
.create()
.show();
Expand Down
10 changes: 5 additions & 5 deletions app/src/main/java/com/termux/x11/LorieService.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.termux.x11;
package com.termux.wayland;

import android.annotation.SuppressLint;
import android.app.ActivityManager;
Expand Down Expand Up @@ -37,10 +37,10 @@
@SuppressLint({"ClickableViewAccessibility", "StaticFieldLeak"})
public class LorieService extends Service {

static final String ACTION_STOP_SERVICE = "com.termux.x11.service_stop";
static final String ACTION_START_FROM_ACTIVITY = "com.termux.x11.start_from_activity";
static final String ACTION_START_PREFERENCES_ACTIVITY = "com.termux.x11.start_preferences_activity";
static final String ACTION_PREFERENCES_CHAGED = "com.termux.x11.preferences_changed";
static final String ACTION_STOP_SERVICE = "com.termux.wayland.service_stop";
static final String ACTION_START_FROM_ACTIVITY = "com.termux.wayland.start_from_activity";
static final String ACTION_START_PREFERENCES_ACTIVITY = "com.termux.wayland.start_preferences_activity";
static final String ACTION_PREFERENCES_CHAGED = "com.termux.wayland.preferences_changed";

private static LorieService instance = null;
//private
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/termux/x11/LorieTestService.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.termux.x11;
package com.termux.wayland;

import android.app.Notification;
import android.app.NotificationChannel;
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/termux/x11/MainActivity.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.termux.x11;
package com.termux.wayland;

import android.app.Activity;
import android.content.SharedPreferences;
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/termux/x11/TouchParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.termux.x11;
package com.termux.wayland;

import android.annotation.SuppressLint;
import android.content.Context;
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/jni/lorie/backend/android/android-app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ void LorieBackendAndroid::layout_change_callback(char *layout) {
#define JNI_DECLARE_INNER(package, classname, methodname ) \
Java_ ## package ## _ ## classname ## _ ## methodname
#define JNI_DECLARE(classname, methodname) \
JNI_DECLARE_INNER(com_termux_x11, classname, methodname)
JNI_DECLARE_INNER(com_termux_wayland, classname, methodname)

#define WL_POINTER_MOTION 2

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/main_activity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

</FrameLayout>

<com.termux.x11.AdditionalKeyboardView
<com.termux.wayland.AdditionalKeyboardView
android:id="@+id/additionalKbd"
android:layout_width="match_parent"
android:layout_height="wrap_content"
Expand Down