Commit b22c1b20 authored by Roumen Petrov's avatar Roumen Petrov

use build variable "Application Id" in manifest and code

parent ce753552
......@@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
package="com.termoneplus"
android:installLocation="auto"
android:sharedUserId="com.termoneplus">
android:sharedUserId="${applicationId}">
<uses-feature
android:name="android.hardware.touchscreen"
......@@ -18,21 +18,21 @@
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
<permission
android:name="com.termoneplus.permission.RUN_SCRIPT"
android:name="${applicationId}.permission.RUN_SCRIPT"
android:description="@string/permdesc_run_script"
android:label="@string/perm_run_script"
android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
android:protectionLevel="dangerous"/>
<!-- deprecated: pending removal -->
<permission
android:name="com.termoneplus.permission.APPEND_TO_PATH"
android:name="${applicationId}.permission.APPEND_TO_PATH"
android:description="@string/permdesc_append_to_path"
android:label="@string/perm_append_to_path"
android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
android:protectionLevel="signature"/>
<!-- deprecated: pending removal -->
<permission
android:name="com.termoneplus.permission.PREPEND_TO_PATH"
android:name="${applicationId}.permission.PREPEND_TO_PATH"
android:description="@string/permdesc_prepend_to_path"
android:label="@string/perm_prepend_to_path"
android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
......@@ -86,7 +86,7 @@
<activity
android:name="jackpal.androidterm.RunScript"
android:excludeFromRecents="true"
android:permission="com.termoneplus.permission.RUN_SCRIPT">
android:permission="${applicationId}.permission.RUN_SCRIPT">
<intent-filter>
<action android:name="com.termoneplus.RUN_SCRIPT"/>
......
......@@ -22,6 +22,8 @@
import android.content.Intent;
import android.os.Bundle;
import com.termoneplus.BuildConfig;
import java.text.Collator;
import java.util.Arrays;
import java.util.Locale;
......@@ -38,10 +40,11 @@
*/
@Deprecated
public class PathCollector {
private static final String ACTION_PATH_APPEND_BROADCAST = "com.termoneplus.broadcast.APPEND_TO_PATH";
private static final String ACTION_PATH_PREPEND_BROADCAST = "com.termoneplus.broadcast.PREPEND_TO_PATH";
private static final String PERMISSION_PATH_APPEND_BROADCAST = "com.termoneplus.permission.APPEND_TO_PATH";
private static final String PERMISSION_PATH_PREPEND_BROADCAST = "com.termoneplus.permission.PREPEND_TO_PATH";
// NOTE: use termoneplus development broadcasts!
private static final String ACTION_PATH_APPEND_BROADCAST = BuildConfig.APPLICATION_ID + ".broadcast.APPEND_TO_PATH";
private static final String ACTION_PATH_PREPEND_BROADCAST = BuildConfig.APPLICATION_ID + ".broadcast.PREPEND_TO_PATH";
private static final String PERMISSION_PATH_APPEND_BROADCAST = BuildConfig.APPLICATION_ID + ".permission.APPEND_TO_PATH";
private static final String PERMISSION_PATH_PREPEND_BROADCAST = BuildConfig.APPLICATION_ID + ".permission.PREPEND_TO_PATH";
private int pending;
private OnPathsReceivedListener callback;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment