Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove the splash #587

Open
wants to merge 44 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
c69b7cb
[TF] modify .gitignore
thermatk Nov 7, 2020
48e956a
[TF][JNI] remove native deps to be replaced
thermatk Feb 8, 2022
baefdf3
[TF][JNI][UPDATE] libwebp 1.2.0
thermatk Nov 7, 2020
1d4e654
[TF][JNI][UPDATE] BoringSSL from source (master)
thermatk Dec 22, 2021
d5cbb73
[TF][JNI] libvpx 1.11
thermatk Feb 8, 2022
cb683d0
[TF][JNI][KILL] libvpx binaries
thermatk Feb 8, 2022
83f1cc2
[TF][JNI][UPDATE] FFmpeg 4.3.3 from source
thermatk Feb 8, 2022
9de08d5
[TF][JNI][FIX] ffmpeg header included and patched
thermatk Feb 2, 2022
8fa8d66
[TF][JNI][FIX] ffmpeg include path
thermatk Aug 4, 2021
cc0b931
[TF] API keys
thermatk Sep 15, 2019
ea7639b
[TF] TravisCI support
thermatk Feb 9, 2022
6d18fe3
[TF] various build adjustments
thermatk Apr 18, 2021
1a692c2
[TF][FEATURE] Support installing APKs
thermatk Feb 9, 2019
0d61c34
[TF][KILL] Google Vision
thermatk Feb 8, 2022
9a420b1
[TF][KILL] Google Wallet and Android Pay
thermatk Jan 25, 2019
67cd2f2
[TF][KILL] remaining GMS(GCM, Wear, etc), except for Maps
thermatk Jan 25, 2019
372c480
[TF][CENSOR] PWN RKN without Firebase
thermatk Jan 25, 2019
98941d7
[TF][CENSOR] allow to set a proxy before login
thermatk Jan 3, 2020
fb4be2e
[TF][MAPS] force Telegram's static map previews
thermatk Jan 26, 2019
9ba5dcd
[TF][PUSH] push service adjustments
thermatk Jan 26, 2019
32fea44
[TF][PUSH] notification in foregroung on Oreo+
thermatk Jul 21, 2019
98135c8
[TF][PUSH] remove one of the confusing toggles
thermatk Mar 9, 2019
d7469a0
[TF][BRAND] Do not send to Google Play for update
thermatk Jan 23, 2019
5cbbda0
[TF][BRAND] Send invite link to F-Droid
thermatk May 2, 2020
30622b4
[TF][BRAND] AppName
thermatk May 2, 2020
62d5148
[TF][KILL] remove fusedlocationprovider
thermatk Oct 13, 2020
6ffdbdb
[TF][KILL] GMS SMS Receiver
thermatk Sep 15, 2019
4000859
[TF][KILL] Google Voice
thermatk Jan 4, 2020
2aaa029
[TF][FIX] missing viewpager dependency
thermatk Jan 11, 2020
bd3e925
[TF][MAPS] replace Google Maps with OSMDroid: LocationActivity
thermatk Apr 4, 2020
95a048b
[TF][MAPS] replace Google Maps with OSMDroid: ChatAttachAlertLocation…
thermatk May 2, 2020
0249b59
[TF][MAPS] support geo: intents
thermatk Jan 2, 2021
fb6d87a
[TF][MAPS] OSMDroid useragent and cache directory configuration
nekohasekai Apr 30, 2020
e8cbb6e
[TF][PUSH] default is true
thermatk Jan 12, 2020
7e39906
[TF][PUSH] Enable push in migration case
thermatk Jan 25, 2020
d758ee6
[TF][FIX] missing interpolator dependency
thermatk Oct 12, 2020
0ca5653
[TF][BRAND] in settings
thermatk Jul 26, 2020
e183dc6
[TF][FEATURE] no restrictions
thermatk Apr 19, 2021
1392767
[TF][FIX] the inverse color QR code scanned without vision
nekohasekai Jun 26, 2021
6ab8f01
[TF][FEATURE] replace Apple's emojis with twemoji
thermatk Aug 8, 2021
009f14c
[TF][KILL] Google Translate without MLKit
thermatk Feb 8, 2022
badc73f
[TF][FEATURE] QR login always on
thermatk Jan 26, 2022
d84d216
[TF] Readme + Changelog
thermatk Feb 8, 2022
67b7c1c
remove the splash
nikitasius Mar 8, 2022
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
Prev Previous commit
Next Next commit
[TF][CENSOR] PWN RKN without Firebase
  • Loading branch information
thermatk committed Feb 19, 2022
commit 372c48025520985bd79fb2ad6c54058bd1a930c8
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import android.util.Base64;

import com.google.android.exoplayer2.util.Log;
import com.google.firebase.remoteconfig.FirebaseRemoteConfig;

import org.json.JSONArray;
import org.json.JSONObject;
Expand Down Expand Up @@ -1294,66 +1293,22 @@ protected void onPostExecute(final NativeByteBuffer result) {
private static class FirebaseTask extends AsyncTask<Void, Void, NativeByteBuffer> {

private int currentAccount;
private FirebaseRemoteConfig firebaseRemoteConfig;

public FirebaseTask(int instance) {
super();
currentAccount = instance;
}

protected NativeByteBuffer doInBackground(Void... voids) {
try {
if (native_isTestBackend(currentAccount) != 0) {
throw new Exception("test backend");
}
firebaseRemoteConfig = FirebaseRemoteConfig.getInstance();
String currentValue = firebaseRemoteConfig.getString("ipconfigv3");
Utilities.stageQueue.postRunnable(() -> {
if (BuildVars.LOGS_ENABLED) {
FileLog.d("current firebase value = " + currentValue);
FileLog.d("failed to get firebase result");
FileLog.d("start dns txt task");
}

firebaseRemoteConfig.fetch(0).addOnCompleteListener(finishedTask -> {
final boolean success = finishedTask.isSuccessful();
Utilities.stageQueue.postRunnable(() -> {
if (success) {
firebaseRemoteConfig.activate().addOnCompleteListener(finishedTask2 -> {
currentTask = null;
String config = firebaseRemoteConfig.getString("ipconfigv3");
if (!TextUtils.isEmpty(config)) {
byte[] bytes = Base64.decode(config, Base64.DEFAULT);
try {
NativeByteBuffer buffer = new NativeByteBuffer(bytes.length);
buffer.writeBytes(bytes);
int date = (int) (firebaseRemoteConfig.getInfo().getFetchTimeMillis() / 1000);
native_applyDnsConfig(currentAccount, buffer.address, AccountInstance.getInstance(currentAccount).getUserConfig().getClientPhone(), date);
} catch (Exception e) {
FileLog.e(e);
}
} else {
if (BuildVars.LOGS_ENABLED) {
FileLog.d("failed to get firebase result");
FileLog.d("start dns txt task");
}
DnsTxtLoadTask task = new DnsTxtLoadTask(currentAccount);
task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, null, null, null);
currentTask = task;
}
});
}
});
});
} catch (Throwable e) {
Utilities.stageQueue.postRunnable(() -> {
if (BuildVars.LOGS_ENABLED) {
FileLog.d("failed to get firebase result");
FileLog.d("start dns txt task");
}
DnsTxtLoadTask task = new DnsTxtLoadTask(currentAccount);
task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, null, null, null);
currentTask = task;
});
FileLog.e(e);
}
DnsTxtLoadTask task = new DnsTxtLoadTask(currentAccount);
task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, null, null, null);
currentTask = task;
});
return null;
}

Expand Down