mirror of https://github.com/NekoX-Dev/NekoX.git
fix package names
This commit is contained in:
parent
9b83e63098
commit
66a2a32684
|
@ -15,7 +15,7 @@
|
|||
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
|
||||
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
|
||||
|
||||
<permission android:name="org.telegram.messenger.permission.MAPS_RECEIVE" android:protectionLevel="signature"/>
|
||||
<permission android:name="tw.nekomimi.nekogram.permission.MAPS_RECEIVE" android:protectionLevel="signature"/>
|
||||
|
||||
<application
|
||||
android:allowBackup="false"
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
<uses-permission android:name="android.permission.CALL_PHONE" />
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
||||
|
||||
<permission android:name="org.telegram.messenger.permission.MAPS_RECEIVE" android:protectionLevel="signature"/>
|
||||
<permission android:name="tw.nekomimi.nekogram.permission.MAPS_RECEIVE" android:protectionLevel="signature"/>
|
||||
|
||||
<application
|
||||
android:allowBackup="false"
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
|
||||
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
|
||||
|
||||
<permission android:name="org.telegram.messenger.permission.MAPS_RECEIVE" android:protectionLevel="signature"/>
|
||||
<permission android:name="tw.nekomimi.nekogram.permission.MAPS_RECEIVE" android:protectionLevel="signature"/>
|
||||
|
||||
<application
|
||||
android:allowBackup="false"
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
<uses-permission android:name="android.permission.CALL_PHONE" />
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
||||
|
||||
<permission android:name="org.telegram.messenger.permission.MAPS_RECEIVE" android:protectionLevel="signature"/>
|
||||
<permission android:name="tw.nekomimi.nekogram.permission.MAPS_RECEIVE" android:protectionLevel="signature"/>
|
||||
|
||||
<application
|
||||
android:allowBackup="false"
|
||||
|
|
|
@ -310,7 +310,7 @@ public class ContactsController {
|
|||
public void checkAppAccount() {
|
||||
AccountManager am = AccountManager.get(ApplicationLoader.applicationContext);
|
||||
try {
|
||||
Account[] accounts = am.getAccountsByType("org.telegram.messenger");
|
||||
Account[] accounts = am.getAccountsByType("tw.nekomimi.nekogram");
|
||||
systemAccount = null;
|
||||
for (int a = 0; a < accounts.length; a++) {
|
||||
Account acc = accounts[a];
|
||||
|
@ -343,7 +343,7 @@ public class ContactsController {
|
|||
readContacts();
|
||||
if (systemAccount == null) {
|
||||
try {
|
||||
systemAccount = new Account("" + UserConfig.getInstance(currentAccount).getClientUserId(), "org.telegram.messenger");
|
||||
systemAccount = new Account("" + UserConfig.getInstance(currentAccount).getClientUserId(), "tw.nekomimi.nekogram");
|
||||
am.addAccountExplicitly(systemAccount, "", null);
|
||||
} catch (Exception ignore) {
|
||||
|
||||
|
@ -356,7 +356,7 @@ public class ContactsController {
|
|||
try {
|
||||
systemAccount = null;
|
||||
AccountManager am = AccountManager.get(ApplicationLoader.applicationContext);
|
||||
Account[] accounts = am.getAccountsByType("org.telegram.messenger");
|
||||
Account[] accounts = am.getAccountsByType("tw.nekomimi.nekogram");
|
||||
for (int a = 0; a < accounts.length; a++) {
|
||||
Account acc = accounts[a];
|
||||
boolean found = false;
|
||||
|
@ -432,7 +432,7 @@ public class ContactsController {
|
|||
AndroidUtilities.runOnUIThread(() -> {
|
||||
AccountManager am = AccountManager.get(ApplicationLoader.applicationContext);
|
||||
try {
|
||||
Account[] accounts = am.getAccountsByType("org.telegram.messenger");
|
||||
Account[] accounts = am.getAccountsByType("tw.nekomimi.nekogram");
|
||||
systemAccount = null;
|
||||
for (int a = 0; a < accounts.length; a++) {
|
||||
Account acc = accounts[a];
|
||||
|
@ -450,7 +450,7 @@ public class ContactsController {
|
|||
|
||||
}
|
||||
try {
|
||||
systemAccount = new Account("" + UserConfig.getInstance(currentAccount).getClientUserId(), "org.telegram.messenger");
|
||||
systemAccount = new Account("" + UserConfig.getInstance(currentAccount).getClientUserId(), "tw.nekomimi.nekogram");
|
||||
am.addAccountExplicitly(systemAccount, "", null);
|
||||
} catch (Exception ignore) {
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<account-authenticator xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:accountType="org.telegram.messenger"
|
||||
android:accountType="tw.nekomimi.nekogram"
|
||||
android:icon="@drawable/ic_launcher_dr"
|
||||
android:smallIcon="@drawable/ic_launcher_dr"
|
||||
android:label="@string/AppName"
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
android:title="@string/AccountSettings"
|
||||
android:summary="">
|
||||
<intent android:action="org.telegram.messenger.OPEN_ACCOUNT"
|
||||
android:targetPackage="org.telegram.messenger"
|
||||
android:targetPackage="tw.nekomimi.nekogram"
|
||||
android:targetClass="org.telegram.ui.LaunchActivity"/>
|
||||
</PreferenceScreen>
|
||||
</PreferenceScreen>
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<sync-adapter xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:contentAuthority="com.android.contacts"
|
||||
android:accountType="org.telegram.messenger"/>
|
||||
android:accountType="tw.nekomimi.nekogram"/>
|
Loading…
Reference in New Issue