Browse Source

Root detector added

master
preyearegmi 6 years ago
parent
commit
2b61c4d276
  1. BIN
      .idea/caches/build_file_checksums.ser
  2. 11
      app/src/main/java/com/gmeremit/online/gmeremittance_native/splash_screen/view/SplashScreen.java

BIN
.idea/caches/build_file_checksums.ser

11
app/src/main/java/com/gmeremit/online/gmeremittance_native/splash_screen/view/SplashScreen.java

@ -17,6 +17,8 @@ import android.widget.LinearLayout;
import android.widget.TextView;
import com.gmeremit.online.gmeremittance_native.R;
import com.gmeremit.online.gmeremittance_native.base.BaseActivity;
import com.gmeremit.online.gmeremittance_native.customwidgets.CustomAlertDialog;
import com.gmeremit.online.gmeremittance_native.homeV2.view.HomeActivityV2;
import com.gmeremit.online.gmeremittance_native.invite.view.InviteActivity;
import com.gmeremit.online.gmeremittance_native.loginV2.view.LoginV2Activity;
@ -36,7 +38,7 @@ import butterknife.OnClick;
* Created by FMI-LT-17 on 2/9/2018.
*/
public class SplashScreen extends AppCompatActivity {
public class SplashScreen extends BaseActivity {
@BindView(R.id.view_pager)
ViewPager view_pager;
@ -142,11 +144,12 @@ public class SplashScreen extends AppCompatActivity {
@Override
protected void onResume() {
super.onResume();
if (rootBeer.isRooted()&&rootBeer.isRootedWithoutBusyBoxCheck()) {
if (rootBeer.isRootedWithoutBusyBoxCheck()) {
//we found indication of root
Log.d("RootCheck","Rooted");
showPopUpMessage("Rooted devices are not supported", CustomAlertDialog.AlertType.ALERT,alertType -> {
exitView();
});
} else {
Log.d("RootCheck","NotRooted");
//we didn't find indication of root
if (persistenceStorageManager.getLoggedin() != null && persistenceStorageManager.getLoggedin().equals("HOME")) {
startActivity(new Intent(this, HomeActivityV2.class));

Loading…
Cancel
Save