Compare commits
16 Commits
4c66fe906e
...
34fbc1d005
Author | SHA1 | Date | |
---|---|---|---|
34fbc1d005 | |||
b72049defc | |||
54f3cc84c4 | |||
7884358564 | |||
f24c9f99dc | |||
64b97c650d | |||
9daf4c4747 | |||
94f7936c4a | |||
02f7b642cf | |||
8d10bf05af | |||
8c0cee9589 | |||
6b23bd6733 | |||
1a60c88f35 | |||
3312d99177 | |||
ea01806915 | |||
36173f2fcb |
@ -11,8 +11,8 @@ android {
|
|||||||
compileSdkVersion 31
|
compileSdkVersion 31
|
||||||
buildToolsVersion '29.0.2'
|
buildToolsVersion '29.0.2'
|
||||||
useLibrary 'org.apache.http.legacy'
|
useLibrary 'org.apache.http.legacy'
|
||||||
versionCode 133
|
versionCode 136
|
||||||
versionName "1.7.17"
|
versionName "1.7.19"
|
||||||
|
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
}
|
}
|
||||||
@ -36,7 +36,7 @@ android {
|
|||||||
{
|
{
|
||||||
dimension "version"
|
dimension "version"
|
||||||
versionNameSuffix "-googlePlay"
|
versionNameSuffix "-googlePlay"
|
||||||
targetSdkVersion 31
|
targetSdkVersion 32
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -87,7 +87,7 @@
|
|||||||
<application
|
<application
|
||||||
android:allowBackup="true"
|
android:allowBackup="true"
|
||||||
android:allowClearUserData="true"
|
android:allowClearUserData="true"
|
||||||
android:icon="@drawable/gears"
|
android:icon="@drawable/ic_launcher"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
android:theme="@style/AppTheme"
|
android:theme="@style/AppTheme"
|
||||||
android:networkSecurityConfig="@xml/network_security_config">
|
android:networkSecurityConfig="@xml/network_security_config">
|
||||||
|
@ -85,7 +85,7 @@
|
|||||||
<application
|
<application
|
||||||
android:allowBackup="true"
|
android:allowBackup="true"
|
||||||
android:allowClearUserData="true"
|
android:allowClearUserData="true"
|
||||||
android:icon="@drawable/gears"
|
android:icon="@drawable/ic_launcher"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
android:theme="@style/AppTheme"
|
android:theme="@style/AppTheme"
|
||||||
android:networkSecurityConfig="@xml/network_security_config">
|
android:networkSecurityConfig="@xml/network_security_config">
|
||||||
|
@ -65,12 +65,11 @@
|
|||||||
<uses-permission android:name="com.wireguard.android.permission.CONTROL_TUNNELS"/>
|
<uses-permission android:name="com.wireguard.android.permission.CONTROL_TUNNELS"/>
|
||||||
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS"/>
|
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS"/>
|
||||||
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
|
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
|
||||||
<uses-permission android:name="android.permission.READ_CALL_LOG" />
|
|
||||||
|
|
||||||
<application
|
<application
|
||||||
android:allowBackup="true"
|
android:allowBackup="true"
|
||||||
android:allowClearUserData="true"
|
android:allowClearUserData="true"
|
||||||
android:icon="@drawable/gears"
|
android:icon="@drawable/crane"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
android:theme="@style/AppTheme"
|
android:theme="@style/AppTheme"
|
||||||
android:networkSecurityConfig="@xml/network_security_config">
|
android:networkSecurityConfig="@xml/network_security_config">
|
||||||
|
@ -10,6 +10,7 @@ import android.bluetooth.BluetoothAdapter;
|
|||||||
import android.bluetooth.BluetoothDevice;
|
import android.bluetooth.BluetoothDevice;
|
||||||
import android.bluetooth.BluetoothProfile;
|
import android.bluetooth.BluetoothProfile;
|
||||||
import android.content.ActivityNotFoundException;
|
import android.content.ActivityNotFoundException;
|
||||||
|
import android.content.ComponentName;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.media.AudioManager;
|
import android.media.AudioManager;
|
||||||
@ -1046,7 +1047,7 @@ public class Actions
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Intent externalActivityIntent;
|
Intent externalApplicationIntent;
|
||||||
|
|
||||||
if (!startByAction)
|
if (!startByAction)
|
||||||
{
|
{
|
||||||
@ -1059,15 +1060,15 @@ public class Actions
|
|||||||
|
|
||||||
Miscellaneous.logEvent("i", "StartOtherApp", "Starting app by activity: " + packageName + " " + className, 3);
|
Miscellaneous.logEvent("i", "StartOtherApp", "Starting app by activity: " + packageName + " " + className, 3);
|
||||||
|
|
||||||
externalActivityIntent = new Intent(Intent.ACTION_MAIN);
|
externalApplicationIntent = new Intent(Intent.ACTION_MAIN);
|
||||||
externalActivityIntent.addCategory(Intent.CATEGORY_LAUNCHER);
|
externalApplicationIntent.addCategory(Intent.CATEGORY_LAUNCHER);
|
||||||
|
|
||||||
// if(packageName.equals("dummyPkg"))
|
if(packageName.equals("dummyPkg"))
|
||||||
// externalActivityIntent.setAction(className);
|
externalApplicationIntent.setAction(className);
|
||||||
// else
|
|
||||||
externalActivityIntent.setClassName(packageName, className);
|
|
||||||
|
|
||||||
if (!Miscellaneous.doesActivityExist(externalActivityIntent, Miscellaneous.getAnyContext()))
|
externalApplicationIntent.setClassName(packageName, className);
|
||||||
|
|
||||||
|
if (!Miscellaneous.doesActivityExist(externalApplicationIntent, Miscellaneous.getAnyContext()))
|
||||||
Miscellaneous.logEvent("w", "StartOtherApp", "Activity not found: " + className, 2);
|
Miscellaneous.logEvent("w", "StartOtherApp", "Activity not found: " + className, 2);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -1075,25 +1076,32 @@ public class Actions
|
|||||||
// selected by action
|
// selected by action
|
||||||
Miscellaneous.logEvent("i", "StartOtherApp", "Starting app by action: " + param, 3);
|
Miscellaneous.logEvent("i", "StartOtherApp", "Starting app by action: " + param, 3);
|
||||||
|
|
||||||
externalActivityIntent = new Intent();
|
externalApplicationIntent = new Intent();
|
||||||
|
|
||||||
if (!params[0].equals(dummyPackageString))
|
if (!params[0].equals(dummyPackageString))
|
||||||
externalActivityIntent.setPackage(params[0]);
|
externalApplicationIntent.setPackage(params[0]);
|
||||||
|
|
||||||
externalActivityIntent.setAction(params[1]);
|
externalApplicationIntent.setAction(params[1]);
|
||||||
|
|
||||||
|
if (params[2].equals(ActivityManageActionStartActivity.startByServiceString) || params[2].equals(ActivityManageActionStartActivity.startByForegroundServiceString))
|
||||||
|
{
|
||||||
|
externalApplicationIntent.setComponent(new ComponentName(params[0], params[2]));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
externalActivityIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
externalApplicationIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||||
|
|
||||||
// Pack intents
|
// Pack intents
|
||||||
externalActivityIntent = packParametersIntoIntent(externalActivityIntent, params, 3);
|
externalApplicationIntent = packParametersIntoIntent(externalApplicationIntent, params, 3);
|
||||||
|
|
||||||
if (params[2].equals(ActivityManageActionStartActivity.startByActivityString))
|
if (params[2].equals(ActivityManageActionStartActivity.startByActivityString))
|
||||||
automationServerRef.startActivity(externalActivityIntent);
|
automationServerRef.startActivity(externalApplicationIntent);
|
||||||
if (params[2].equals(ActivityManageActionStartActivity.startByServiceString))
|
else if (params[2].equals(ActivityManageActionStartActivity.startByServiceString))
|
||||||
automationServerRef.startService(externalActivityIntent);
|
automationServerRef.startService(externalApplicationIntent);
|
||||||
|
else if (params[2].equals(ActivityManageActionStartActivity.startByForegroundServiceString) && Build.VERSION.SDK_INT >= 26)
|
||||||
|
automationServerRef.startForegroundService(externalApplicationIntent);
|
||||||
else
|
else
|
||||||
automationServerRef.sendBroadcast(externalActivityIntent);
|
automationServerRef.sendBroadcast(externalApplicationIntent);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
@ -29,6 +29,7 @@ import android.widget.CompoundButton;
|
|||||||
import android.widget.EditText;
|
import android.widget.EditText;
|
||||||
import android.widget.ListView;
|
import android.widget.ListView;
|
||||||
import android.widget.RadioButton;
|
import android.widget.RadioButton;
|
||||||
|
import android.widget.RadioGroup;
|
||||||
import android.widget.Spinner;
|
import android.widget.Spinner;
|
||||||
import android.widget.Toast;
|
import android.widget.Toast;
|
||||||
|
|
||||||
@ -48,17 +49,19 @@ public class ActivityManageActionStartActivity extends Activity
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
ListView lvIntentPairs;
|
ListView lvIntentPairs;
|
||||||
EditText etParameterName, etParameterValue, etPackageName, etActivityOrActionPath;
|
EditText etParameterName, etParameterValue, etPackageName, etActivityOrActionPath, etClassName;
|
||||||
Button bSelectApp, bAddIntentPair, bSaveActionStartOtherActivity, showStartProgramExamples;
|
Button bSelectApp, bAddIntentPair, bSaveActionStartOtherActivity, showStartProgramExamples;
|
||||||
Spinner spinnerParameterType;
|
Spinner spinnerParameterType;
|
||||||
|
RadioGroup rgAppStartupType;
|
||||||
boolean edit = false;
|
boolean edit = false;
|
||||||
ProgressDialog progressDialog = null;
|
ProgressDialog progressDialog = null;
|
||||||
RadioButton rbStartAppSelectByActivity, rbStartAppSelectByAction, rbStartAppByActivity, rbStartAppByBroadcast, rbStartAppByService;
|
RadioButton rbStartAppSelectByActivity, rbStartAppSelectByAction, rbStartAppByActivity, rbStartAppByBroadcast, rbStartAppByService, rbStartAppByForegroundService;
|
||||||
|
|
||||||
final String urlShowExamples = "https://server47.de/automation/examples_startProgram.html";
|
final String urlShowExamples = "https://server47.de/automation/examples_startProgram.html";
|
||||||
final static String startByActivityString = "0";
|
final static String startByActivityString = "0";
|
||||||
final static String startByBroadcastString = "1";
|
final static String startByBroadcastString = "1";
|
||||||
final static String startByServiceString = "2";
|
final static String startByServiceString = "2";
|
||||||
|
final static String startByForegroundServiceString = "3";
|
||||||
|
|
||||||
final static int requestCodeForRequestQueryAllPackagesPermission = 4711;
|
final static int requestCodeForRequestQueryAllPackagesPermission = 4711;
|
||||||
|
|
||||||
@ -72,6 +75,7 @@ public class ActivityManageActionStartActivity extends Activity
|
|||||||
lvIntentPairs = (ListView)findViewById(R.id.lvIntentPairs);
|
lvIntentPairs = (ListView)findViewById(R.id.lvIntentPairs);
|
||||||
etParameterName = (EditText)findViewById(R.id.etParameterName);
|
etParameterName = (EditText)findViewById(R.id.etParameterName);
|
||||||
etParameterValue = (EditText)findViewById(R.id.etParameterValue);
|
etParameterValue = (EditText)findViewById(R.id.etParameterValue);
|
||||||
|
etClassName = (EditText)findViewById(R.id.etClassName);
|
||||||
bSelectApp = (Button)findViewById(R.id.bSelectApp);
|
bSelectApp = (Button)findViewById(R.id.bSelectApp);
|
||||||
bAddIntentPair = (Button)findViewById(R.id.bAddIntentPair);
|
bAddIntentPair = (Button)findViewById(R.id.bAddIntentPair);
|
||||||
bSaveActionStartOtherActivity = (Button)findViewById(R.id.bSaveActionStartOtherActivity);
|
bSaveActionStartOtherActivity = (Button)findViewById(R.id.bSaveActionStartOtherActivity);
|
||||||
@ -84,13 +88,16 @@ public class ActivityManageActionStartActivity extends Activity
|
|||||||
rbStartAppByActivity = (RadioButton)findViewById(R.id.rbStartAppByActivity);
|
rbStartAppByActivity = (RadioButton)findViewById(R.id.rbStartAppByActivity);
|
||||||
rbStartAppByBroadcast = (RadioButton)findViewById(R.id.rbStartAppByBroadcast);
|
rbStartAppByBroadcast = (RadioButton)findViewById(R.id.rbStartAppByBroadcast);
|
||||||
rbStartAppByService = (RadioButton)findViewById(R.id.rbStartAppByService);
|
rbStartAppByService = (RadioButton)findViewById(R.id.rbStartAppByService);
|
||||||
|
rbStartAppByForegroundService = (RadioButton)findViewById(R.id.rbStartAppByForegroundService);
|
||||||
|
rgAppStartupType = (RadioGroup)findViewById(R.id.rgAppStartupType);
|
||||||
|
|
||||||
intentTypeSpinnerAdapter = new ArrayAdapter<String>(this, R.layout.text_view_for_poi_listview_mediumtextsize, ActivityManageActionStartActivity.supportedIntentTypes);
|
intentTypeSpinnerAdapter = new ArrayAdapter<String>(this, R.layout.text_view_for_poi_listview_mediumtextsize, ActivityManageActionStartActivity.supportedIntentTypes);
|
||||||
spinnerParameterType.setAdapter(intentTypeSpinnerAdapter);
|
spinnerParameterType.setAdapter(intentTypeSpinnerAdapter);
|
||||||
intentTypeSpinnerAdapter.notifyDataSetChanged();
|
intentTypeSpinnerAdapter.notifyDataSetChanged();
|
||||||
|
|
||||||
intentPairAdapter = new ArrayAdapter<String>(this, R.layout.text_view_for_poi_listview_mediumtextsize, intentPairList);
|
etClassName.setEnabled(false);
|
||||||
|
|
||||||
|
intentPairAdapter = new ArrayAdapter<String>(this, R.layout.text_view_for_poi_listview_mediumtextsize, intentPairList);
|
||||||
bSelectApp.setOnClickListener(new OnClickListener()
|
bSelectApp.setOnClickListener(new OnClickListener()
|
||||||
{
|
{
|
||||||
@Override
|
@Override
|
||||||
@ -228,17 +235,23 @@ public class ActivityManageActionStartActivity extends Activity
|
|||||||
|
|
||||||
if (rbStartAppSelectByActivity.isChecked())
|
if (rbStartAppSelectByActivity.isChecked())
|
||||||
parameter2 += etPackageName.getText().toString() + ";" + etActivityOrActionPath.getText().toString();
|
parameter2 += etPackageName.getText().toString() + ";" + etActivityOrActionPath.getText().toString();
|
||||||
else {
|
else
|
||||||
|
{
|
||||||
if (etPackageName.getText().toString() != null && etPackageName.getText().toString().length() > 0)
|
if (etPackageName.getText().toString() != null && etPackageName.getText().toString().length() > 0)
|
||||||
parameter2 += etPackageName.getText().toString() + ";" + etActivityOrActionPath.getText().toString();
|
parameter2 += etPackageName.getText().toString() + ";" + etActivityOrActionPath.getText().toString();
|
||||||
else
|
else
|
||||||
parameter2 += Actions.dummyPackageString + ";" + etActivityOrActionPath.getText().toString();
|
parameter2 += Actions.dummyPackageString + ";" + etActivityOrActionPath.getText().toString();
|
||||||
|
|
||||||
|
// if(etClassName.getText().toString().length() > 0)
|
||||||
|
parameter2 += ";" + etClassName.getText().toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rbStartAppByActivity.isChecked())
|
if (rbStartAppByActivity.isChecked())
|
||||||
parameter2 += ";" + startByActivityString;
|
parameter2 += ";" + startByActivityString;
|
||||||
else if(rbStartAppByService.isChecked())
|
else if(rbStartAppByService.isChecked())
|
||||||
parameter2 += ";" + startByServiceString;
|
parameter2 += ";" + startByServiceString;
|
||||||
|
else if(rbStartAppByForegroundService.isChecked())
|
||||||
|
parameter2 += ";" + startByForegroundServiceString;
|
||||||
else
|
else
|
||||||
parameter2 += ";" + startByBroadcastString;
|
parameter2 += ";" + startByBroadcastString;
|
||||||
|
|
||||||
@ -290,8 +303,10 @@ public class ActivityManageActionStartActivity extends Activity
|
|||||||
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked)
|
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked)
|
||||||
{
|
{
|
||||||
if(isChecked)
|
if(isChecked)
|
||||||
|
{
|
||||||
bSelectApp.setEnabled(isChecked);
|
bSelectApp.setEnabled(isChecked);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
rbStartAppSelectByAction.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener()
|
rbStartAppSelectByAction.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener()
|
||||||
@ -304,6 +319,23 @@ public class ActivityManageActionStartActivity extends Activity
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
rgAppStartupType.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener()
|
||||||
|
{
|
||||||
|
@Override
|
||||||
|
public void onCheckedChanged(RadioGroup radioGroup, int i)
|
||||||
|
{
|
||||||
|
if(rbStartAppByActivity.isChecked())
|
||||||
|
etClassName.setEnabled(false);
|
||||||
|
else if (rbStartAppByBroadcast.isChecked())
|
||||||
|
etClassName.setEnabled(false);
|
||||||
|
else if(rbStartAppByService.isChecked())
|
||||||
|
etClassName.setEnabled(true);
|
||||||
|
else if(rbStartAppByForegroundService.isChecked())
|
||||||
|
etClassName.setEnabled(true);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
Intent i = getIntent();
|
Intent i = getIntent();
|
||||||
if(i.hasExtra(ActivityManageRule.intentNameActionParameter1))
|
if(i.hasExtra(ActivityManageRule.intentNameActionParameter1))
|
||||||
loadValuesIntoGui(i);
|
loadValuesIntoGui(i);
|
||||||
@ -598,9 +630,19 @@ public class ActivityManageActionStartActivity extends Activity
|
|||||||
|
|
||||||
String[] params = input.getStringExtra(ActivityManageRule.intentNameActionParameter2).split(";");
|
String[] params = input.getStringExtra(ActivityManageRule.intentNameActionParameter2).split(";");
|
||||||
|
|
||||||
|
if(Miscellaneous.isNumeric(params[2])) // old configuration file
|
||||||
|
{
|
||||||
rbStartAppByActivity.setChecked(params[2].equals(startByActivityString));
|
rbStartAppByActivity.setChecked(params[2].equals(startByActivityString));
|
||||||
rbStartAppByBroadcast.setChecked(params[2].equals(startByBroadcastString));
|
rbStartAppByBroadcast.setChecked(params[2].equals(startByBroadcastString));
|
||||||
rbStartAppByService.setChecked(params[2].equals(startByServiceString));
|
rbStartAppByService.setChecked(params[2].equals(startByServiceString));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
rbStartAppByActivity.setChecked(params[3].equals(startByActivityString));
|
||||||
|
rbStartAppByBroadcast.setChecked(params[3].equals(startByBroadcastString));
|
||||||
|
rbStartAppByService.setChecked(params[3].equals(startByServiceString));
|
||||||
|
rbStartAppByForegroundService.setChecked(params[3].equals(startByForegroundServiceString));
|
||||||
|
}
|
||||||
|
|
||||||
int startIndex = -1;
|
int startIndex = -1;
|
||||||
|
|
||||||
@ -615,10 +657,11 @@ public class ActivityManageActionStartActivity extends Activity
|
|||||||
etPackageName.setText(params[0]);
|
etPackageName.setText(params[0]);
|
||||||
|
|
||||||
etActivityOrActionPath.setText(params[1]);
|
etActivityOrActionPath.setText(params[1]);
|
||||||
|
etClassName.setText(params[2]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (params.length >= 3)
|
if (params.length >= 4)
|
||||||
startIndex = 3;
|
startIndex = 4;
|
||||||
|
|
||||||
if(startIndex > -1 && params.length > startIndex)
|
if(startIndex > -1 && params.length > startIndex)
|
||||||
{
|
{
|
||||||
|
@ -12,11 +12,15 @@ import android.net.wifi.WifiConfiguration;
|
|||||||
import android.net.wifi.WifiManager;
|
import android.net.wifi.WifiManager;
|
||||||
import android.os.Build;
|
import android.os.Build;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
|
import android.text.Editable;
|
||||||
|
import android.text.TextWatcher;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
import android.view.KeyEvent;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.widget.AdapterView;
|
import android.widget.AdapterView;
|
||||||
import android.widget.ArrayAdapter;
|
import android.widget.ArrayAdapter;
|
||||||
import android.widget.Button;
|
import android.widget.Button;
|
||||||
|
import android.widget.CompoundButton;
|
||||||
import android.widget.EditText;
|
import android.widget.EditText;
|
||||||
import android.widget.RadioButton;
|
import android.widget.RadioButton;
|
||||||
import android.widget.Spinner;
|
import android.widget.Spinner;
|
||||||
@ -43,7 +47,7 @@ public class ActivityManageTriggerWifi extends Activity
|
|||||||
List<String> wifiList = new ArrayList<>();
|
List<String> wifiList = new ArrayList<>();
|
||||||
ArrayAdapter<String> wifiSpinnerAdapter;
|
ArrayAdapter<String> wifiSpinnerAdapter;
|
||||||
private final static int requestCodeLocationPermission = 124;
|
private final static int requestCodeLocationPermission = 124;
|
||||||
TextView tvWifiTriggerNameLocationNotice;
|
TextView tvWifiTriggerNameLocationNotice, tvWifiTriggerDisconnectionHint;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(@Nullable Bundle savedInstanceState)
|
protected void onCreate(@Nullable Bundle savedInstanceState)
|
||||||
@ -59,6 +63,9 @@ public class ActivityManageTriggerWifi extends Activity
|
|||||||
bTriggerWifiSave = (Button) findViewById(R.id.bTriggerWifiSave);
|
bTriggerWifiSave = (Button) findViewById(R.id.bTriggerWifiSave);
|
||||||
bLoadWifiList = (Button) findViewById(R.id.bLoadWifiList);
|
bLoadWifiList = (Button) findViewById(R.id.bLoadWifiList);
|
||||||
tvWifiTriggerNameLocationNotice = (TextView)findViewById(R.id.tvWifiTriggerNameLocationNotice);
|
tvWifiTriggerNameLocationNotice = (TextView)findViewById(R.id.tvWifiTriggerNameLocationNotice);
|
||||||
|
tvWifiTriggerDisconnectionHint = (TextView)findViewById(R.id.tvWifiTriggerDisconnectionHint);
|
||||||
|
|
||||||
|
tvWifiTriggerDisconnectionHint.setVisibility(View.GONE);
|
||||||
|
|
||||||
wifiSpinnerAdapter = new ArrayAdapter<String>(this, R.layout.text_view_for_poi_listview_mediumtextsize, wifiList);
|
wifiSpinnerAdapter = new ArrayAdapter<String>(this, R.layout.text_view_for_poi_listview_mediumtextsize, wifiList);
|
||||||
spinnerWifiList.setAdapter(wifiSpinnerAdapter);
|
spinnerWifiList.setAdapter(wifiSpinnerAdapter);
|
||||||
@ -101,6 +108,11 @@ public class ActivityManageTriggerWifi extends Activity
|
|||||||
public void onItemSelected(AdapterView<?> parent, View view, int position, long id)
|
public void onItemSelected(AdapterView<?> parent, View view, int position, long id)
|
||||||
{
|
{
|
||||||
etTriggerWifiName.setText(wifiList.get(position));
|
etTriggerWifiName.setText(wifiList.get(position));
|
||||||
|
|
||||||
|
if(etTriggerWifiName.getText().toString().length() > 0 && rbTriggerWifiDisconnected.isChecked())
|
||||||
|
tvWifiTriggerDisconnectionHint.setVisibility(View.VISIBLE);
|
||||||
|
else
|
||||||
|
tvWifiTriggerDisconnectionHint.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -118,6 +130,41 @@ public class ActivityManageTriggerWifi extends Activity
|
|||||||
loadWifis();
|
loadWifis();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
rbTriggerWifiDisconnected.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener()
|
||||||
|
{
|
||||||
|
@Override
|
||||||
|
public void onCheckedChanged(CompoundButton compoundButton, boolean b)
|
||||||
|
{
|
||||||
|
if(etTriggerWifiName.getText().toString().length() > 0 && b)
|
||||||
|
tvWifiTriggerDisconnectionHint.setVisibility(View.VISIBLE);
|
||||||
|
else
|
||||||
|
tvWifiTriggerDisconnectionHint.setVisibility(View.GONE);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
etTriggerWifiName.addTextChangedListener(new TextWatcher()
|
||||||
|
{
|
||||||
|
@Override
|
||||||
|
public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onTextChanged(CharSequence charSequence, int i, int i1, int i2)
|
||||||
|
{
|
||||||
|
if(etTriggerWifiName.getText().toString().length() > 0 && rbTriggerWifiDisconnected.isChecked())
|
||||||
|
tvWifiTriggerDisconnectionHint.setVisibility(View.VISIBLE);
|
||||||
|
else
|
||||||
|
tvWifiTriggerDisconnectionHint.setVisibility(View.GONE);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void afterTextChanged(Editable editable)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public void loadWifis()
|
public void loadWifis()
|
||||||
|
@ -456,6 +456,7 @@ public class ActivityPermissions extends Activity
|
|||||||
{
|
{
|
||||||
case activityDetection:
|
case activityDetection:
|
||||||
addToArrayListUnique(permissionNameGoogleActivityDetection, requiredPermissions);
|
addToArrayListUnique(permissionNameGoogleActivityDetection, requiredPermissions);
|
||||||
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q)
|
||||||
addToArrayListUnique(Manifest.permission.ACTIVITY_RECOGNITION, requiredPermissions);
|
addToArrayListUnique(Manifest.permission.ACTIVITY_RECOGNITION, requiredPermissions);
|
||||||
break;
|
break;
|
||||||
case airplaneMode:
|
case airplaneMode:
|
||||||
@ -705,7 +706,7 @@ public class ActivityPermissions extends Activity
|
|||||||
break;
|
break;
|
||||||
case startPhoneCall:
|
case startPhoneCall:
|
||||||
addToArrayListUnique(Manifest.permission.CALL_PHONE, requiredPermissions);
|
addToArrayListUnique(Manifest.permission.CALL_PHONE, requiredPermissions);
|
||||||
// addToArrayListUnique(Manifest.permission.SYSTEM_ALERT_WINDOW, requiredPermissions);
|
addToArrayListUnique(Manifest.permission.SYSTEM_ALERT_WINDOW, requiredPermissions);
|
||||||
break;
|
break;
|
||||||
case stopPhoneCall:
|
case stopPhoneCall:
|
||||||
addToArrayListUnique(Manifest.permission.ANSWER_PHONE_CALLS, requiredPermissions);
|
addToArrayListUnique(Manifest.permission.ANSWER_PHONE_CALLS, requiredPermissions);
|
||||||
@ -909,6 +910,8 @@ public class ActivityPermissions extends Activity
|
|||||||
case Manifest.permission.SYSTEM_ALERT_WINDOW:
|
case Manifest.permission.SYSTEM_ALERT_WINDOW:
|
||||||
for(String ruleName : getRulesUsing(Action.Action_Enum.startOtherActivity))
|
for(String ruleName : getRulesUsing(Action.Action_Enum.startOtherActivity))
|
||||||
usingElements.add(String.format(getResources().getString(R.string.ruleXrequiresThis), ruleName));
|
usingElements.add(String.format(getResources().getString(R.string.ruleXrequiresThis), ruleName));
|
||||||
|
for(String ruleName : getRulesUsing(Action.Action_Enum.startPhoneCall))
|
||||||
|
usingElements.add(String.format(getResources().getString(R.string.ruleXrequiresThis), ruleName));
|
||||||
break;
|
break;
|
||||||
case Manifest.permission.ANSWER_PHONE_CALLS:
|
case Manifest.permission.ANSWER_PHONE_CALLS:
|
||||||
for(String ruleName : getRulesUsing(Action.Action_Enum.stopPhoneCall))
|
for(String ruleName : getRulesUsing(Action.Action_Enum.stopPhoneCall))
|
||||||
|
@ -518,7 +518,12 @@ public class AutomationService extends Service implements OnInitListener
|
|||||||
builder.setContentTitle("Automation");
|
builder.setContentTitle("Automation");
|
||||||
|
|
||||||
if(Settings.showIconWhenServiceIsRunning)
|
if(Settings.showIconWhenServiceIsRunning)
|
||||||
|
{
|
||||||
|
if(BuildConfig.FLAVOR.equalsIgnoreCase(AutomationService.flavor_name_googleplay))
|
||||||
|
builder.setSmallIcon(R.drawable.crane);
|
||||||
|
else
|
||||||
builder.setSmallIcon(R.drawable.ic_launcher);
|
builder.setSmallIcon(R.drawable.ic_launcher);
|
||||||
|
}
|
||||||
|
|
||||||
builder.setCategory(Notification.CATEGORY_SERVICE);
|
builder.setCategory(Notification.CATEGORY_SERVICE);
|
||||||
builder.setWhen(System.currentTimeMillis());
|
builder.setWhen(System.currentTimeMillis());
|
||||||
@ -526,7 +531,7 @@ public class AutomationService extends Service implements OnInitListener
|
|||||||
|
|
||||||
Notification defaultNotification = builder.build();
|
Notification defaultNotification = builder.build();
|
||||||
|
|
||||||
defaultNotification.icon = R.drawable.ic_launcher;
|
defaultNotification.icon = R.drawable.crane;
|
||||||
defaultNotification.when = System.currentTimeMillis();
|
defaultNotification.when = System.currentTimeMillis();
|
||||||
|
|
||||||
// defaultNotification.defaults |= Notification.DEFAULT_VIBRATE;
|
// defaultNotification.defaults |= Notification.DEFAULT_VIBRATE;
|
||||||
@ -573,7 +578,12 @@ public class AutomationService extends Service implements OnInitListener
|
|||||||
builder.setOnlyAlertOnce(true);
|
builder.setOnlyAlertOnce(true);
|
||||||
|
|
||||||
if(Settings.showIconWhenServiceIsRunning)
|
if(Settings.showIconWhenServiceIsRunning)
|
||||||
|
{
|
||||||
|
if (BuildConfig.FLAVOR.equals(AutomationService.flavor_name_googleplay))
|
||||||
|
builder.setSmallIcon(R.drawable.crane);
|
||||||
|
else
|
||||||
builder.setSmallIcon(R.drawable.ic_launcher);
|
builder.setSmallIcon(R.drawable.ic_launcher);
|
||||||
|
}
|
||||||
|
|
||||||
// builder.setContentText(textToDisplay);
|
// builder.setContentText(textToDisplay);
|
||||||
// builder.setSmallIcon(icon);
|
// builder.setSmallIcon(icon);
|
||||||
|
@ -70,6 +70,7 @@ import java.io.InputStream;
|
|||||||
import java.io.InputStreamReader;
|
import java.io.InputStreamReader;
|
||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
import java.io.StringReader;
|
import java.io.StringReader;
|
||||||
|
import java.io.UnsupportedEncodingException;
|
||||||
import java.lang.Thread.UncaughtExceptionHandler;
|
import java.lang.Thread.UncaughtExceptionHandler;
|
||||||
import java.lang.reflect.InvocationTargetException;
|
import java.lang.reflect.InvocationTargetException;
|
||||||
import java.lang.reflect.Method;
|
import java.lang.reflect.Method;
|
||||||
@ -77,6 +78,8 @@ import java.math.BigDecimal;
|
|||||||
import java.math.RoundingMode;
|
import java.math.RoundingMode;
|
||||||
import java.net.HttpURLConnection;
|
import java.net.HttpURLConnection;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
|
import java.net.URLEncoder;
|
||||||
|
import java.nio.charset.StandardCharsets;
|
||||||
import java.security.DigestInputStream;
|
import java.security.DigestInputStream;
|
||||||
import java.security.KeyManagementException;
|
import java.security.KeyManagementException;
|
||||||
import java.security.KeyStore;
|
import java.security.KeyStore;
|
||||||
@ -708,7 +711,7 @@ public class Miscellaneous extends Service
|
|||||||
String notificationTitle = NotificationListener.getLastNotification().getTitle();
|
String notificationTitle = NotificationListener.getLastNotification().getTitle();
|
||||||
|
|
||||||
if (notificationTitle != null && notificationTitle.length() > 0)
|
if (notificationTitle != null && notificationTitle.length() > 0)
|
||||||
source = source.replace("[notificationTitle]", notificationTitle);
|
source = source.replace("[notificationTitle]", escapeStringForUrl(notificationTitle));
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
source = source.replace("[notificationTitle]", "notificationTitle unknown");
|
source = source.replace("[notificationTitle]", "notificationTitle unknown");
|
||||||
@ -729,7 +732,7 @@ public class Miscellaneous extends Service
|
|||||||
String notificationText = NotificationListener.getLastNotification().getText();
|
String notificationText = NotificationListener.getLastNotification().getText();
|
||||||
|
|
||||||
if (notificationText != null && notificationText.length() > 0)
|
if (notificationText != null && notificationText.length() > 0)
|
||||||
source = source.replace("[notificationText]", notificationText);
|
source = source.replace("[notificationText]", escapeStringForUrl(notificationText));
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
source = source.replace("[notificationText]", "notificationText unknown");
|
source = source.replace("[notificationText]", "notificationText unknown");
|
||||||
@ -760,7 +763,7 @@ public class Miscellaneous extends Service
|
|||||||
else
|
else
|
||||||
replacement = "unknownVariable";
|
replacement = "unknownVariable";
|
||||||
|
|
||||||
source = source.substring(0, pos1) + replacement + source.substring(pos2 +1);
|
source = source.substring(0, pos1) + escapeStringForUrl(replacement) + source.substring(pos2 +1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Miscellaneous.logEvent("i", "URL after replace", source);
|
// Miscellaneous.logEvent("i", "URL after replace", source);
|
||||||
@ -1164,7 +1167,12 @@ public class Miscellaneous extends Service
|
|||||||
builder.setOnlyAlertOnce(true);
|
builder.setOnlyAlertOnce(true);
|
||||||
|
|
||||||
if(Settings.showIconWhenServiceIsRunning && notificationChannelId.equals(AutomationService.NOTIFICATION_CHANNEL_ID_SERVICE))
|
if(Settings.showIconWhenServiceIsRunning && notificationChannelId.equals(AutomationService.NOTIFICATION_CHANNEL_ID_SERVICE))
|
||||||
|
{
|
||||||
|
if(BuildConfig.FLAVOR.equals(AutomationService.flavor_name_googleplay))
|
||||||
|
builder.setSmallIcon(R.drawable.crane);
|
||||||
|
else
|
||||||
builder.setSmallIcon(R.drawable.ic_launcher);
|
builder.setSmallIcon(R.drawable.ic_launcher);
|
||||||
|
}
|
||||||
else if(!notificationChannelId.equals(AutomationService.NOTIFICATION_CHANNEL_ID_SERVICE))
|
else if(!notificationChannelId.equals(AutomationService.NOTIFICATION_CHANNEL_ID_SERVICE))
|
||||||
builder.setSmallIcon(R.drawable.info);
|
builder.setSmallIcon(R.drawable.info);
|
||||||
|
|
||||||
@ -2034,4 +2042,28 @@ public class Miscellaneous extends Service
|
|||||||
//startActivity(refresh);
|
//startActivity(refresh);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static String escapeStringForUrl(String input)
|
||||||
|
{
|
||||||
|
String output;
|
||||||
|
|
||||||
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
output = URLEncoder.encode(input, String.valueOf(StandardCharsets.UTF_8));
|
||||||
|
}
|
||||||
|
catch (UnsupportedEncodingException e)
|
||||||
|
{
|
||||||
|
Miscellaneous.logEvent("e", "URLEncoder", "Error encoding string for URL. Leaving as it is. Error details: " + Log.getStackTraceString(e), 3);
|
||||||
|
output = input;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
output = Uri.encode(input);
|
||||||
|
}
|
||||||
|
|
||||||
|
return output;
|
||||||
|
}
|
||||||
}
|
}
|
@ -395,7 +395,7 @@ public class ReceiverCoordinator
|
|||||||
{
|
{
|
||||||
if(!HeadphoneJackListener.isHeadphoneJackListenerActive())
|
if(!HeadphoneJackListener.isHeadphoneJackListenerActive())
|
||||||
{
|
{
|
||||||
Miscellaneous.logEvent("i", "LocationProvider", "Starting HeadphoneJackListener because used in a new/changed rule.", 4);
|
Miscellaneous.logEvent("i", "HeadphoneJackListener", "Starting HeadphoneJackListener because used in a new/changed rule.", 4);
|
||||||
if(HeadphoneJackListener.getInstance().haveAllPermission())
|
if(HeadphoneJackListener.getInstance().haveAllPermission())
|
||||||
HeadphoneJackListener.getInstance().startListener(AutomationService.getInstance());
|
HeadphoneJackListener.getInstance().startListener(AutomationService.getInstance());
|
||||||
}
|
}
|
||||||
@ -404,7 +404,7 @@ public class ReceiverCoordinator
|
|||||||
{
|
{
|
||||||
if(HeadphoneJackListener.isHeadphoneJackListenerActive())
|
if(HeadphoneJackListener.isHeadphoneJackListenerActive())
|
||||||
{
|
{
|
||||||
Miscellaneous.logEvent("i", "LocationProvider", "Shutting down HeadphoneJackListener because not used in any rule.", 4);
|
Miscellaneous.logEvent("i", "HeadphoneJackListener", "Shutting down HeadphoneJackListener because not used in any rule.", 4);
|
||||||
HeadphoneJackListener.getInstance().stopListener(AutomationService.getInstance());
|
HeadphoneJackListener.getInstance().stopListener(AutomationService.getInstance());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -803,6 +803,8 @@ public class Trigger
|
|||||||
{
|
{
|
||||||
Miscellaneous.logEvent("i", Miscellaneous.getAnyContext().getResources().getString(R.string.ruleCheckOf), String.format("Wifi name specified, checking that.", this.getParentRule().getName()), 4);
|
Miscellaneous.logEvent("i", Miscellaneous.getAnyContext().getResources().getString(R.string.ruleCheckOf), String.format("Wifi name specified, checking that.", this.getParentRule().getName()), 4);
|
||||||
|
|
||||||
|
if(WifiBroadcastReceiver.lastConnectedState) //when connected
|
||||||
|
{
|
||||||
if (!WifiBroadcastReceiver.getLastWifiSsid().equals(this.getTriggerParameter2()) && !(Miscellaneous.isRegularExpression(this.getTriggerParameter2()) && WifiBroadcastReceiver.getLastWifiSsid().matches(this.getTriggerParameter2())))
|
if (!WifiBroadcastReceiver.getLastWifiSsid().equals(this.getTriggerParameter2()) && !(Miscellaneous.isRegularExpression(this.getTriggerParameter2()) && WifiBroadcastReceiver.getLastWifiSsid().matches(this.getTriggerParameter2())))
|
||||||
{
|
{
|
||||||
Miscellaneous.logEvent("i", Miscellaneous.getAnyContext().getResources().getString(R.string.ruleCheckOf), String.format(String.format(Miscellaneous.getAnyContext().getResources().getString(R.string.ruleDoesntApplyNotTheCorrectSsid), getParentRule().getName(), this.getTriggerParameter2(), WifiBroadcastReceiver.getLastWifiSsid()), this.getParentRule().getName()), 3);
|
Miscellaneous.logEvent("i", Miscellaneous.getAnyContext().getResources().getString(R.string.ruleCheckOf), String.format(String.format(Miscellaneous.getAnyContext().getResources().getString(R.string.ruleDoesntApplyNotTheCorrectSsid), getParentRule().getName(), this.getTriggerParameter2(), WifiBroadcastReceiver.getLastWifiSsid()), this.getParentRule().getName()), 3);
|
||||||
@ -811,6 +813,20 @@ public class Trigger
|
|||||||
else
|
else
|
||||||
Miscellaneous.logEvent("i", Miscellaneous.getAnyContext().getResources().getString(R.string.ruleCheckOf), String.format("Wifi name matches. Rule will apply.", this.getParentRule().getName()), 4);
|
Miscellaneous.logEvent("i", Miscellaneous.getAnyContext().getResources().getString(R.string.ruleCheckOf), String.format("Wifi name matches. Rule will apply.", this.getParentRule().getName()), 4);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (
|
||||||
|
!Settings.serviceStartDone
|
||||||
|
||
|
||||||
|
(!WifiBroadcastReceiver.getLastWifiSsidReal().equals(this.getTriggerParameter2()) && !(Miscellaneous.isRegularExpression(this.getTriggerParameter2()) && WifiBroadcastReceiver.getLastWifiSsidReal().matches(this.getTriggerParameter2()))))
|
||||||
|
{
|
||||||
|
Miscellaneous.logEvent("i", Miscellaneous.getAnyContext().getResources().getString(R.string.ruleCheckOf), String.format(String.format(Miscellaneous.getAnyContext().getResources().getString(R.string.ruleDoesntApplyNotTheCorrectSsid), getParentRule().getName(), this.getTriggerParameter2(), WifiBroadcastReceiver.getLastWifiSsidReal()), this.getParentRule().getName()), 3);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
Miscellaneous.logEvent("i", Miscellaneous.getAnyContext().getResources().getString(R.string.ruleCheckOf), String.format("Wifi name matches. Rule will apply.", this.getParentRule().getName()), 4);
|
||||||
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
Miscellaneous.logEvent("i", Miscellaneous.getAnyContext().getResources().getString(R.string.ruleCheckOf), String.format("No wifi name specified, any will do.", this.getParentRule().getName()), 4);
|
Miscellaneous.logEvent("i", Miscellaneous.getAnyContext().getResources().getString(R.string.ruleCheckOf), String.format("No wifi name specified, any will do.", this.getParentRule().getName()), 4);
|
||||||
}
|
}
|
||||||
|
@ -400,12 +400,12 @@ public class LocationProvider
|
|||||||
Miscellaneous.logEvent("i", "LocationProvider", this.getParentService().getResources().getString(R.string.applyingSettingsAndRules), 3);
|
Miscellaneous.logEvent("i", "LocationProvider", this.getParentService().getResources().getString(R.string.applyingSettingsAndRules), 3);
|
||||||
|
|
||||||
// *********** SETTING CHANGES ***********
|
// *********** SETTING CHANGES ***********
|
||||||
if(Settings.useWifiForPositioning && !WifiBroadcastReceiver.isWifiListenerActive())
|
if(Settings.useWifiForPositioning && !WifiBroadcastReceiver.isWifiListenerActive() || Rule.isAnyRuleUsing(Trigger_Enum.wifiConnection))
|
||||||
{
|
{
|
||||||
Miscellaneous.logEvent("i", "LocationProvider", "Starting WifiReceiver because settings now allow to.", 4);
|
Miscellaneous.logEvent("i", "LocationProvider", "Starting WifiReceiver because settings now allow to.", 4);
|
||||||
WifiBroadcastReceiver.startWifiReceiver(this);
|
WifiBroadcastReceiver.startWifiReceiver(this);
|
||||||
}
|
}
|
||||||
else if(!Settings.useWifiForPositioning && WifiBroadcastReceiver.isWifiListenerActive())
|
else if(!Settings.useWifiForPositioning && WifiBroadcastReceiver.isWifiListenerActive() && !Rule.isAnyRuleUsing(Trigger_Enum.wifiConnection))
|
||||||
{
|
{
|
||||||
Miscellaneous.logEvent("i", "LocationProvider", "Shutting down WifiReceiver because settings forbid to.", 4);
|
Miscellaneous.logEvent("i", "LocationProvider", "Shutting down WifiReceiver because settings forbid to.", 4);
|
||||||
WifiBroadcastReceiver.stopWifiReceiver();
|
WifiBroadcastReceiver.stopWifiReceiver();
|
||||||
|
@ -25,12 +25,20 @@ public class WifiBroadcastReceiver extends BroadcastReceiver
|
|||||||
public static LocationProvider parentLocationProvider;
|
public static LocationProvider parentLocationProvider;
|
||||||
public static Boolean wasConnected = false;
|
public static Boolean wasConnected = false;
|
||||||
protected static String lastWifiSsid = "";
|
protected static String lastWifiSsid = "";
|
||||||
|
protected static String lastWifiSsidReal = "";
|
||||||
public static boolean lastConnectedState = false;
|
public static boolean lastConnectedState = false;
|
||||||
protected static boolean mayCellLocationChangedReceiverBeActivatedFromWifiPointOfView = true;
|
protected static boolean mayCellLocationChangedReceiverBeActivatedFromWifiPointOfView = true;
|
||||||
protected static WifiBroadcastReceiver wifiBrInstance;
|
protected static WifiBroadcastReceiver wifiBrInstance;
|
||||||
protected static IntentFilter wifiListenerIntentFilter;
|
protected static IntentFilter wifiListenerIntentFilter;
|
||||||
protected static boolean wifiListenerActive=false;
|
protected static boolean wifiListenerActive=false;
|
||||||
|
|
||||||
|
final static String unknownSsidName = "<unknown ssid>";
|
||||||
|
|
||||||
|
public static String getLastWifiSsidReal()
|
||||||
|
{
|
||||||
|
return lastWifiSsidReal;
|
||||||
|
}
|
||||||
|
|
||||||
public static String getLastWifiSsid()
|
public static String getLastWifiSsid()
|
||||||
{
|
{
|
||||||
return lastWifiSsid;
|
return lastWifiSsid;
|
||||||
@ -42,8 +50,12 @@ public class WifiBroadcastReceiver extends BroadcastReceiver
|
|||||||
newWifiSsid = newWifiSsid.substring(1, newWifiSsid.length()-1);
|
newWifiSsid = newWifiSsid.substring(1, newWifiSsid.length()-1);
|
||||||
|
|
||||||
if(newWifiSsid.length() > 0)
|
if(newWifiSsid.length() > 0)
|
||||||
|
{
|
||||||
|
if(newWifiSsid.equals(unknownSsidName))
|
||||||
|
WifiBroadcastReceiver.lastWifiSsidReal = lastWifiSsid;
|
||||||
WifiBroadcastReceiver.lastWifiSsid = newWifiSsid;
|
WifiBroadcastReceiver.lastWifiSsid = newWifiSsid;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static boolean isWifiListenerActive()
|
public static boolean isWifiListenerActive()
|
||||||
{
|
{
|
||||||
|
@ -138,6 +138,7 @@ public class BatteryReceiver extends BroadcastReceiver implements AutomationList
|
|||||||
this.actionCharging(context);
|
this.actionCharging(context);
|
||||||
break;
|
break;
|
||||||
case BatteryManager.BATTERY_STATUS_DISCHARGING:
|
case BatteryManager.BATTERY_STATUS_DISCHARGING:
|
||||||
|
case BatteryManager.BATTERY_STATUS_NOT_CHARGING:
|
||||||
this.actionDischarging(context);
|
this.actionDischarging(context);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -94,12 +94,13 @@ public class BluetoothReceiver extends BroadcastReceiver implements AutomationLi
|
|||||||
@Override
|
@Override
|
||||||
public void onReceive(Context context, Intent intent)
|
public void onReceive(Context context, Intent intent)
|
||||||
{
|
{
|
||||||
// Miscellaneous.logEvent("i", "BluetoothReceiver", "Bluetooth event.", 4);
|
|
||||||
|
|
||||||
String action = intent.getAction();
|
String action = intent.getAction();
|
||||||
|
|
||||||
|
Miscellaneous.logEvent("i", "BluetoothReceiver", "Bluetooth event: " + action, 5);
|
||||||
|
|
||||||
BluetoothDevice bluetoothDevice = null;
|
BluetoothDevice bluetoothDevice = null;
|
||||||
|
|
||||||
if(action.equals(BluetoothDevice.ACTION_ACL_CONNECTED) | action.equals("android.bluetooth.device.action.ACL_CONNECTED"))
|
if(action.equals(BluetoothDevice.ACTION_ACL_CONNECTED) || action.equals("android.bluetooth.device.action.ACL_CONNECTED"))
|
||||||
{
|
{
|
||||||
bluetoothDevice = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
|
bluetoothDevice = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
|
||||||
lastAffectedDevice = bluetoothDevice;
|
lastAffectedDevice = bluetoothDevice;
|
||||||
@ -107,7 +108,7 @@ public class BluetoothReceiver extends BroadcastReceiver implements AutomationLi
|
|||||||
connectedDevices.add(bluetoothDevice);
|
connectedDevices.add(bluetoothDevice);
|
||||||
Miscellaneous.logEvent("i", "BluetoothReceiver", String.format(context.getResources().getString(R.string.bluetoothConnectionTo), bluetoothDevice.getName()), 3);
|
Miscellaneous.logEvent("i", "BluetoothReceiver", String.format(context.getResources().getString(R.string.bluetoothConnectionTo), bluetoothDevice.getName()), 3);
|
||||||
}
|
}
|
||||||
else if(action.equals(BluetoothDevice.ACTION_ACL_DISCONNECTED) | action.equals(BluetoothDevice.ACTION_ACL_DISCONNECT_REQUESTED) | action.equals("android.bluetooth.device.ACTION_ACL_DISCONNECTED") | action.equals("android.bluetooth.device.ACTION_ACL_DISCONNECT_REQUESTED"))
|
else if(action.equals(BluetoothDevice.ACTION_ACL_DISCONNECTED) || action.equals(BluetoothDevice.ACTION_ACL_DISCONNECT_REQUESTED) || action.equals("android.bluetooth.device.ACTION_ACL_DISCONNECTED") || action.equals("android.bluetooth.device.ACTION_ACL_DISCONNECT_REQUESTED"))
|
||||||
{
|
{
|
||||||
bluetoothDevice = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
|
bluetoothDevice = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
|
||||||
lastAffectedDevice = bluetoothDevice;
|
lastAffectedDevice = bluetoothDevice;
|
||||||
@ -115,7 +116,7 @@ public class BluetoothReceiver extends BroadcastReceiver implements AutomationLi
|
|||||||
connectedDevices.remove(bluetoothDevice);
|
connectedDevices.remove(bluetoothDevice);
|
||||||
Miscellaneous.logEvent("i", "BluetoothReceiver", String.format(context.getResources().getString(R.string.bluetoothDisconnectFrom), bluetoothDevice.getName()), 3);
|
Miscellaneous.logEvent("i", "BluetoothReceiver", String.format(context.getResources().getString(R.string.bluetoothDisconnectFrom), bluetoothDevice.getName()), 3);
|
||||||
}
|
}
|
||||||
else if(action.equals(BluetoothDevice.ACTION_FOUND) | action.equals("android.bluetooth.device.ACTION_FOUND"))
|
else if(action.equals(BluetoothDevice.ACTION_FOUND) || action.equals("android.bluetooth.device.ACTION_FOUND"))
|
||||||
{
|
{
|
||||||
bluetoothDevice = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
|
bluetoothDevice = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
|
||||||
lastAffectedDevice = bluetoothDevice;
|
lastAffectedDevice = bluetoothDevice;
|
||||||
|
@ -108,7 +108,7 @@ public class HeadphoneJackListener extends BroadcastReceiver implements Automati
|
|||||||
}
|
}
|
||||||
catch(Exception ex)
|
catch(Exception ex)
|
||||||
{
|
{
|
||||||
Miscellaneous.logEvent("e", "ActivityDetectionReceiver", "Error starting HeadsetJackListener: " + Log.getStackTraceString(ex), 3);
|
Miscellaneous.logEvent("e", "HeadsetJackListener", "Error starting HeadsetJackListener: " + Log.getStackTraceString(ex), 3);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BIN
app/src/main/res/drawable-hdpi/crane.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
app/src/main/res/drawable-ldpi/crane.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
app/src/main/res/drawable-mdpi/crane.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
app/src/main/res/drawable-v24/crane.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
app/src/main/res/drawable-xhdpi/crane.png
Normal file
After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 3.7 KiB |
BIN
app/src/main/res/drawable/crane.png
Normal file
After Width: | Height: | Size: 13 KiB |
@ -113,6 +113,7 @@
|
|||||||
android:text="@string/startAppStartType" />
|
android:text="@string/startAppStartType" />
|
||||||
|
|
||||||
<RadioGroup
|
<RadioGroup
|
||||||
|
android:id="@+id/rgAppStartupType"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content">
|
android:layout_height="wrap_content">
|
||||||
|
|
||||||
@ -135,6 +136,12 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/startAppByStartService" />
|
android:text="@string/startAppByStartService" />
|
||||||
|
|
||||||
|
<RadioButton
|
||||||
|
android:id="@+id/rbStartAppByForegroundService"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/startAppByStartForegroundService" />
|
||||||
|
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
|
|
||||||
</TableRow>
|
</TableRow>
|
||||||
@ -187,6 +194,25 @@
|
|||||||
|
|
||||||
</TableRow>
|
</TableRow>
|
||||||
|
|
||||||
|
<TableRow
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:text="@string/className" />
|
||||||
|
|
||||||
|
<EditText
|
||||||
|
android:id="@+id/etClassName"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:inputType="textMultiLine"
|
||||||
|
android:text=""
|
||||||
|
android:textAppearance="?android:attr/textAppearanceMedium" />
|
||||||
|
|
||||||
|
</TableRow>
|
||||||
|
|
||||||
<TableRow
|
<TableRow
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content">
|
android:layout_height="wrap_content">
|
||||||
|
@ -103,6 +103,14 @@
|
|||||||
|
|
||||||
</TableLayout>
|
</TableLayout>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tvWifiTriggerDisconnectionHint"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginVertical="@dimen/default_margin"
|
||||||
|
android:textColor="@color/red"
|
||||||
|
android:text="@string/wifiTriggerDisconnectionHint" />
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/bTriggerWifiSave"
|
android:id="@+id/bTriggerWifiSave"
|
||||||
android:layout_marginTop="@dimen/default_margin"
|
android:layout_marginTop="@dimen/default_margin"
|
||||||
|
@ -799,4 +799,5 @@
|
|||||||
<string name="intentParametersHint">Wenn Sie einen Parameter angeben möchten, müssen Sie auch auf \"Intent-Paar hinzufügen\" klicken. Andernfalls werden Ihre Änderungen nicht gespeichert.</string>
|
<string name="intentParametersHint">Wenn Sie einen Parameter angeben möchten, müssen Sie auch auf \"Intent-Paar hinzufügen\" klicken. Andernfalls werden Ihre Änderungen nicht gespeichert.</string>
|
||||||
<string name="languagePolish">Polnisch</string>
|
<string name="languagePolish">Polnisch</string>
|
||||||
<string name="languageChineseChina">Chinesisch (China)</string>
|
<string name="languageChineseChina">Chinesisch (China)</string>
|
||||||
|
<string name="wifiTriggerDisconnectionHint">Dieser Auslöser ist gültig, wenn Sie gerade die Verbindung zu dem oben angegebenen WLAN getrennt haben ODER während der Dienst noch gestartet wird und wenn Sie mit keinem WLAN verbunden sind. Wenn Sie möchten, dass der Auslöser nur ausgelöst wird, wenn Sie die Verbindung zu einem bestimmten WLAN explizit trennen, fügen Sie einen weiteren Auslöser hinzu: \"Der Dienst wird nicht gestartet\".</string>
|
||||||
</resources>
|
</resources>
|
@ -798,4 +798,5 @@
|
|||||||
<string name="intentParametersHint">Si desea especificar un parámetro, también debe hacer clic en \"Agregar par de intención\". De lo contrario, los cambios no se guardarán.</string>
|
<string name="intentParametersHint">Si desea especificar un parámetro, también debe hacer clic en \"Agregar par de intención\". De lo contrario, los cambios no se guardarán.</string>
|
||||||
<string name="languagePolish">Polaco</string>
|
<string name="languagePolish">Polaco</string>
|
||||||
<string name="languageChineseChina">Chino (China)</string>
|
<string name="languageChineseChina">Chino (China)</string>
|
||||||
|
<string name="wifiTriggerDisconnectionHint">Este activador será válido si acabas de desconectarte del wifi especificado anteriormente O mientras el servicio aún se está iniciando y si no estás conectado a ningún wifi. Si desea que el activador se active solo cuando se desconecte explícitamente de una determinada red WiFi, agregue otro activador \"el servicio no se está iniciando\".</string>
|
||||||
</resources>
|
</resources>
|
@ -798,4 +798,5 @@
|
|||||||
<string name="intentParametersHint">Si vous souhaitez spécifier un paramètre, vous devez également cliquer sur « Ajouter une paire d\'intentions ». Sinon, vos modifications ne seront pas enregistrées.</string>
|
<string name="intentParametersHint">Si vous souhaitez spécifier un paramètre, vous devez également cliquer sur « Ajouter une paire d\'intentions ». Sinon, vos modifications ne seront pas enregistrées.</string>
|
||||||
<string name="languagePolish">Polonais</string>
|
<string name="languagePolish">Polonais</string>
|
||||||
<string name="languageChineseChina">Chinois (Chine)</string>
|
<string name="languageChineseChina">Chinois (Chine)</string>
|
||||||
|
<string name="wifiTriggerDisconnectionHint">Ce déclencheur sera valide si vous venez de vous déconnecter du wifi spécifié ci-dessus OU alors que le service est encore en cours de démarrage et si vous n\'êtes connecté à aucun wifi. Si vous souhaitez que le déclencheur ne se déclenche que lorsque vous vous déconnectez explicitement d\'un certain wifi, ajoutez un autre déclencheur « le service ne démarre pas ».</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -799,4 +799,5 @@
|
|||||||
<string name="intentParametersHint">Se si desidera specificare un parametro è necessario fare clic anche su \"Aggiungi coppia intento\". In caso contrario, le modifiche non verranno salvate.</string>
|
<string name="intentParametersHint">Se si desidera specificare un parametro è necessario fare clic anche su \"Aggiungi coppia intento\". In caso contrario, le modifiche non verranno salvate.</string>
|
||||||
<string name="languagePolish">Polacco</string>
|
<string name="languagePolish">Polacco</string>
|
||||||
<string name="languageChineseChina">Cinese (Cina)</string>
|
<string name="languageChineseChina">Cinese (Cina)</string>
|
||||||
|
<string name="wifiTriggerDisconnectionHint">Questo trigger sarà valido se ti sei appena disconnesso dal Wi-Fi specificato sopra OPPURE mentre il servizio è ancora in fase di avvio e se non sei connesso a nessuna rete Wi-Fi. Se vuoi che il trigger si attivi solo quando ti stai disconnettendo esplicitamente da una determinata rete Wi-Fi, aggiungi un altro trigger \"il servizio non si avvia\".</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -797,5 +797,6 @@
|
|||||||
<string name="intentParametersHint">Als u een parameter wilt opgeven, moet u ook op \"Intentiepaar toevoegen\" klikken. Anders worden uw wijzigingen niet opgeslagen.</string>
|
<string name="intentParametersHint">Als u een parameter wilt opgeven, moet u ook op \"Intentiepaar toevoegen\" klikken. Anders worden uw wijzigingen niet opgeslagen.</string>
|
||||||
<string name="languagePolish">Pools</string>
|
<string name="languagePolish">Pools</string>
|
||||||
<string name="languageChineseChina">Chinees (China)</string>
|
<string name="languageChineseChina">Chinees (China)</string>
|
||||||
|
<string name="wifiTriggerDisconnectionHint">Deze trigger is geldig als je net de verbinding met de hierboven gespecificeerde wifi hebt verbroken OF terwijl de service nog aan het starten is en als je niet verbonden bent met wifi. Als je wilt dat de trigger alleen wordt geactiveerd wanneer je expliciet de verbinding met een bepaalde wifi verbreekt, voeg dan nog een trigger toe \"service start niet\".</string>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -896,4 +896,5 @@
|
|||||||
<string name="languageFrench">Francuski</string>
|
<string name="languageFrench">Francuski</string>
|
||||||
<string name="languagePolish">Polski</string>
|
<string name="languagePolish">Polski</string>
|
||||||
<string name="languageChineseChina">Chiński (Chiny)</string>
|
<string name="languageChineseChina">Chiński (Chiny)</string>
|
||||||
|
<string name="wifiTriggerDisconnectionHint">Ten wyzwalacz będzie prawidłowy, jeśli właśnie rozłączyłeś się z Wi-Fi określonym powyżej LUB gdy usługa jest nadal uruchomiona i jeśli nie masz połączenia z żadną siecią Wi-Fi. Jeśli chcesz, aby wyzwalacz uruchamiał się tylko wtedy, gdy jawnie rozłączasz się z określoną siecią Wi-Fi, dodaj kolejny wyzwalacz \"usługa nie uruchamia się\".</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -856,4 +856,5 @@
|
|||||||
<string name="intentParametersHint">Если вы хотите указать параметр, вам также нужно нажать «Добавить пару намерений». В противном случае ваши изменения не будут сохранены.</string>
|
<string name="intentParametersHint">Если вы хотите указать параметр, вам также нужно нажать «Добавить пару намерений». В противном случае ваши изменения не будут сохранены.</string>
|
||||||
<string name="languagePolish">Польский</string>
|
<string name="languagePolish">Польский</string>
|
||||||
<string name="languageChineseChina">Китайский (Китай)</string>
|
<string name="languageChineseChina">Китайский (Китай)</string>
|
||||||
|
<string name="wifiTriggerDisconnectionHint">Этот триггер будет действителен, если вы только что отключились от Wi-Fi, указанного выше, ИЛИ во время запуска службы и если вы не подключены ни к одному Wi-Fi. Если вы хотите, чтобы триггер срабатывал только тогда, когда вы явно отключаетесь от определенного Wi-Fi, добавьте еще один триггер «сервис не запускается».</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -797,4 +797,5 @@
|
|||||||
<string name="languagePolish">波兰语</string>
|
<string name="languagePolish">波兰语</string>
|
||||||
<string name="languageChineseChina">中文(中国)</string>
|
<string name="languageChineseChina">中文(中国)</string>
|
||||||
<string name="intentParametersHint">若要指定一个参数,还必须点击“添加 Intent 对”,否则更改不会保存。</string>
|
<string name="intentParametersHint">若要指定一个参数,还必须点击“添加 Intent 对”,否则更改不会保存。</string>
|
||||||
|
<string name="wifiTriggerDisconnectionHint">如果您刚刚断开了与上面指定的 wifi 的连接,或者在服务仍在启动并且您没有连接到任何 wifi,则此触发器将有效。 如果您希望触发器仅在您明确断开与某个 wifi 的连接时触发,请添加另一个触发器\"服务未启动\"。</string>
|
||||||
</resources>
|
</resources>
|
@ -422,7 +422,7 @@
|
|||||||
<string name="noDataChangedReadingAnyway">It appears no data change has been saved. However there may have been changes in memory that need to be rolled back. Rereading file.</string>
|
<string name="noDataChangedReadingAnyway">It appears no data change has been saved. However there may have been changes in memory that need to be rolled back. Rereading file.</string>
|
||||||
<string name="bluetoothConnection">Bluetooth connection</string>
|
<string name="bluetoothConnection">Bluetooth connection</string>
|
||||||
<string name="bluetoothConnectionTo">Bluetooth connection to %1$s</string>
|
<string name="bluetoothConnectionTo">Bluetooth connection to %1$s</string>
|
||||||
<string name="bluetoothDisconnectFrom">Bluetooth connection to %1$s torn</string>
|
<string name="bluetoothDisconnectFrom">Bluetooth connection from %1$s torn</string>
|
||||||
<string name="bluetoothDeviceInRange">Bluetooth device %1$s in range.</string>
|
<string name="bluetoothDeviceInRange">Bluetooth device %1$s in range.</string>
|
||||||
<string name="bluetoothDeviceOutOfRange">Bluetooth device %1$s out of range.</string>
|
<string name="bluetoothDeviceOutOfRange">Bluetooth device %1$s out of range.</string>
|
||||||
<string name="anyDevice">any device</string>
|
<string name="anyDevice">any device</string>
|
||||||
@ -882,8 +882,11 @@
|
|||||||
<string name="wifiMonitoringAlsoRequiresThis">This permission is also required if the trigger is using the current wifi connection.</string>
|
<string name="wifiMonitoringAlsoRequiresThis">This permission is also required if the trigger is using the current wifi connection.</string>
|
||||||
<string name="copyTextToClipboard">Copy text to clipboard</string>
|
<string name="copyTextToClipboard">Copy text to clipboard</string>
|
||||||
<string name="textToCopy">Text to copy</string>
|
<string name="textToCopy">Text to copy</string>
|
||||||
<string name="android.permission.SYSTEM_ALERT_WINDOW">Draw over other apps</string>
|
<string name="android.permission.SYSTEM_ALERT_WINDOW">Display over other apps</string>
|
||||||
<string name="overlayPermissionHint">After clicking OK you\'ll be sent to a system dialog. Please select Automation there and allow "draw over other apps".</string>
|
<string name="overlayPermissionHint">After clicking OK you\'ll be sent to a system dialog. Please select Automation there and allow "Display over other apps".</string>
|
||||||
<string name="variablesOnlyForTypes">Variables are only available for parameter types String and URI</string>
|
<string name="variablesOnlyForTypes">Variables are only available for parameter types String and URI</string>
|
||||||
<string name="intentParametersHint">If you want to specify a parameter you also have to click \"Add intent pair\". Otherwise your changes will not be saved.</string>
|
<string name="intentParametersHint">If you want to specify a parameter you also have to click \"Add intent pair\". Otherwise your changes will not be saved.</string>
|
||||||
|
<string name="wifiTriggerDisconnectionHint">This trigger will be valid if you just disconnected from the wifi specified above OR while the service is still starting and if you\'re not connected to any wifi. If you want the trigger to fire only when you\'re explicitly disconnecting from a certain wifi, add another trigger \"service is not starting\".</string>
|
||||||
|
<string name="className">Class full name</string>
|
||||||
|
<string name="startAppByStartForegroundService">by startForegroundService()</string>
|
||||||
</resources>
|
</resources>
|
2
fastlane/metadata/android/de-DE/changelogs/135.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
* Geändert: Symbol in Play store Version
|
||||||
|
* Geändert: targetSdk mußte in Google Play Version auf 32 erhöht werden. Falls das Fehler verursacht, denken Sie darüber nach zur F-Droid oder APK version zu wechseln.
|
5
fastlane/metadata/android/de-DE/changelogs/136.txt
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
* Behoben: Overlay-Berechtigung für Start-Telefonanruf-Aktion hinzugefügt
|
||||||
|
* Behoben: Der Auslöser "Akku wird geladen" wurde nur einmal ausgelöst und nicht nach dem Trennen und Anschließen des Ladegeräts
|
||||||
|
* Behoben: WLAN-Auslöser wurde beim Trennen der Verbindung nicht zuverlässig ausgelöst
|
||||||
|
* Behoben: Auf Api-Level <=28 wurde eine Berechtigung für ActivityDetection angefordert, die nicht erteilt werden konnte
|
||||||
|
* Behoben: Die Aktion "Andere Anwendung starten" startete einen Dienst nicht immer korrekt
|
2
fastlane/metadata/android/en-US/changelogs/135.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
* Change: Icon changed in Play store version
|
||||||
|
* Change: Was forced to raise targetSdk to 32 for Google Play version. If that should break something, consider switching to the F-Droid or APK version.
|
5
fastlane/metadata/android/en-US/changelogs/136.txt
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
* Fixed: Added overlay permission for start-phone-call action
|
||||||
|
* Fixed: Trigger "battery is charging" would only fire once and not after disconnecting and connecting charger
|
||||||
|
* Fixed: Wifi trigger would not reliably fire upon disconnection
|
||||||
|
* Fixed: On Api level <=28 a permission was requested for ActivityDetection that could not be granted
|
||||||
|
* Fixed: Start other application action did not always start a service correctly
|
2
fastlane/metadata/android/es-ES/changelogs/135.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
* Cambio: Icono cambiado en la versión de Play Store
|
||||||
|
* Cambio: Se ha forzado a subir targetSdk a 32 para la versión de Google Play. Si eso rompe algo, considere cambiar a la versión F-Droid o APK.
|
5
fastlane/metadata/android/es-ES/changelogs/136.txt
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
* Corregido: Se agregó permiso de superposición para la acción de inicio de llamada telefónica
|
||||||
|
* Corregido: El disparador "la batería se está cargando" solo se disparaba una vez y no después de desconectar y conectar el cargador
|
||||||
|
* Corregido: el disparador de Wifi no se disparaba de forma fiable tras la desconexión
|
||||||
|
* Corregido: En el nivel de API <=28 se solicitaba un permiso para ActivityDetection que no se podía conceder
|
||||||
|
* Corregido: Iniciar otra acción de aplicación no siempre iniciaba un servicio correctamente
|
2
fastlane/metadata/android/fr-FR/changelogs/135.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
* Changement : Icône modifiée dans la version Play Store
|
||||||
|
* Changement : Été forcé d'augmenter targetSdk à 32 pour la version Google Play. Si cela devait casser quelque chose, envisagez de passer à la version F-Droid ou APK.
|
5
fastlane/metadata/android/fr-FR/changelogs/136.txt
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
* Corrigé : Ajout d'une autorisation de superposition pour l'action de démarrage d'un appel téléphonique
|
||||||
|
* Résolu : La gâchette « la batterie est en charge » ne se déclenchait qu'une seule fois et non après avoir débranché et connecté le chargeur
|
||||||
|
* Résolu : Le déclencheur Wifi ne se déclenchait pas de manière fiable lors de la déconnexion
|
||||||
|
* Résolu : Au niveau d'API <=28, une autorisation était demandée pour ActivityDetection qui ne pouvait pas être accordée
|
||||||
|
* Résolu : L'action Démarrer une autre application ne démarrait pas toujours correctement un service
|
2
fastlane/metadata/android/it-IT/changelogs/135.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
* Modifica: l'icona è cambiata nella versione del Play Store
|
||||||
|
* Modifica: è stato forzato aumentare targetSdk a 32 per la versione di Google Play. Se questo dovesse rompere qualcosa, prendi in considerazione l'idea di passare alla versione F-Droid o APK.
|
5
fastlane/metadata/android/it-IT/changelogs/136.txt
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
* Risolto: aggiunta l'autorizzazione di sovrapposizione per l'azione di avvio della chiamata telefonica
|
||||||
|
* Risolto: il trigger "la batteria è in carica" si attivava solo una volta e non dopo aver scollegato e collegato il caricabatterie
|
||||||
|
* Risolto: il trigger Wi-Fi non si attivava in modo affidabile alla disconnessione
|
||||||
|
* Risolto: al livello Api <=28 è stata richiesta un'autorizzazione per ActivityDetection che non poteva essere concessa
|
||||||
|
* Risolto: l'avvio di un'altra azione dell'applicazione non sempre avviava correttamente un servizio
|
2
fastlane/metadata/android/nl-NL/changelogs/135.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
* Wijziging: pictogram gewijzigd in Play Store-versie
|
||||||
|
* Wijziging: Werd gedwongen om targetSdk te verhogen naar 32 voor de Google Play-versie. Als dat iets kapot zou maken, overweeg dan om over te schakelen naar de F-Droid- of APK-versie.
|
5
fastlane/metadata/android/nl-NL/changelogs/136.txt
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
* Opgelost: overlay-toestemming toegevoegd voor start-telefoongesprek-actie
|
||||||
|
* Opgelost: trigger "batterij wordt opgeladen" ging maar één keer af en niet na het loskoppelen en aansluiten van de oplader
|
||||||
|
* Opgelost: wifi-trigger ging niet betrouwbaar af bij het verbreken van de verbinding
|
||||||
|
* Opgelost: op API-niveau <=28 werd een toestemming gevraagd voor ActivityDetection die niet kon worden verleend
|
||||||
|
* Opgelost: andere applicatieactie starten startte een service niet altijd correct
|
2
fastlane/metadata/android/pl-PL/changelogs/135.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
* Zmiana: Ikona zmieniona w wersji sklepu Play
|
||||||
|
* Zmiana: Został zmuszony do podniesienia targetSdk do 32 dla wersji Google Play. Jeśli to powinno coś zepsuć, rozważ przejście na wersję F-Droid lub APK.
|
5
fastlane/metadata/android/pl-PL/changelogs/136.txt
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
* Naprawiono: Dodano uprawnienie nakładki do akcji start-phone-call
|
||||||
|
* Naprawiono: Wyzwalacz "bateria się ładuje" uruchamiał się tylko raz, a nie po odłączeniu i podłączeniu ładowarki
|
||||||
|
* Naprawiono: Wyzwalacz Wi-Fi nie uruchamiał się niezawodnie po rozłączeniu
|
||||||
|
* Naprawiono: Na poziomie interfejsu API <=28 zażądano uprawnienia do wykrywania aktywności, którego nie można było udzielić
|
||||||
|
* Naprawiono: Akcja Uruchom inną aplikację nie zawsze poprawnie uruchamiała usługę
|
2
fastlane/metadata/android/ru-RU/changelogs/135.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
* Изменение: Иконка изменена в версии Play Store
|
||||||
|
* Изменение: Было вынуждено поднять targetSdk до 32 для версии для Google Play. Если это что-то сломает, подумайте о переходе на версию F-Droid или APK.
|
5
fastlane/metadata/android/ru-RU/changelogs/136.txt
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
* Исправлено: Добавлено разрешение оверлея для запуска телефонного звонка
|
||||||
|
* Исправлено: Триггер "батарея заряжается" срабатывал только один раз, а не после отключения и подключения зарядного устройства.
|
||||||
|
* Исправлено: триггер Wi-Fi не срабатывал при отключении.
|
||||||
|
* Исправлено: На уровне Api <=28 запрашивалось разрешение для ActivityDetection, которое не могло быть предоставлено.
|
||||||
|
* Исправлено: Действие «Запуск другого приложения» не всегда корректно запускало службу
|
2
fastlane/metadata/android/zh-CN/changelogs/135.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
* 更改:Play商店版本中的图标已更改
|
||||||
|
* 更改:Google Play 版本被迫将 targetSdk 提高到 32。如果这会破坏某些东西,请考虑切换到 F-Droid 或 APK 版本。
|
5
fastlane/metadata/android/zh-CN/changelogs/136.txt
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
* 修复:新增启动电话呼叫操作的覆盖权限
|
||||||
|
* 修复:"电池正在充电"触发器仅触发一次,断开和连接充电器后不会触发
|
||||||
|
* 修复:Wifi触发器在断开连接时无法可靠地触发
|
||||||
|
* 已修复:在 API 级别
|
||||||
|
* 修复:启动其他应用程序操作并不总是正确启动服务
|