If your device gets stuck on the boot logo, boot into your device's stock recovery mode (usually by holding Power + Volume Down while powered off) and select Wipe Data/Factory Reset .
Since you’re installing an APK outside the Google Play Store: Root Android 7.1.1 Apk
Rooting is the process of gaining root access—or administrative control—over the Android operating system. By default, device manufacturers lock these privileges to prevent users from accidentally altering critical system files. Securing root access allows you to bypass these restrictions, offering total control over the software environment. Top APK Tools for Rooting Android 7.1.1 If your device gets stuck on the boot