Cant get past setup wizard after factory reset? - G4 Q&A, Help & Troubleshooting

I am on a Verizon LGG4 VS986 rooted.
My hosts file is currently blocking google services because of an issue I had with the Freedom IAP cracker app. Before I knew that the hosts file was the issue, google play said that it was unable to connect as well as my youtube and my google drive so I decided to factory reset using recovery mode. After my factory reset and cache clear I was put in the setup wizard where I have been "Checking connection..." for the last hour. I think my hosts file is preventing me from finishing my setup wizard and I cant exit the setup. How do I edit or delete my hosts file without being able to get in my phone?
Things I've tried:
-factory reset
-return to stock (http://forum.xda-developers.com/g4/general/guide-lg-g4-stock-firmware-to-stock-kdz-t3107848) KDZ not TOT
-cache clear
Thanks for reading and I appreciate any help

Related

Android is updating - optimizing apps (every boot)

Yesterday I've received the OTA update to 4.3, I've forced deleting data from the google service framework and then I've searched updates in airplane mode, once downloaded it is installed but has blocked the start of the X for at least 15 minutes, so I removed the battery. As there is no verse that you reboot the Nexus (not even in recovery mode), I proceeded to flash the update manually, by following this guide (without losing data) http://goo.gl/KfPVig [SCENARIO 2]. I was able then to restart everything. But now I appear at every startup, the words "Upgrade to Android - optimizing apps." The files ODEX already have all the permissions rw-r-r-. With Link2SD I also cleaned the Dalvik (signaled some files as useless), but nothing, still displays the "error". What causes the problem? Someone can help me? I do not want to do a restore to factory settings losing everything.
Notes:
I have the root.
Unlocked bootloader.
I rom toolbox to block ads via the hosts file.

[Q] Need Help stuck in bootloop after flashing recovery

So just as the title says i decided to root my n7. Everything seemed to go smooth until my nexus 7 was stuck on the boot animation screen for about 20 minutes. I tried doing a factory reset in TWRP and it said wipe failed. I decided to flash CWM instead and do a factory reset but i couldn't. It said error mounting /data. I'm not sure what to do googling around didn't seem to work.
TWRP gave me a message saying SU is not installed after i installed the recovery so i clicked instal SU. I'm not sure if that contributed to my problem or not. Any help would be greatly appreciated.
Ok so i figured this out.
So for anyone who ever gets into an endless bootloop with the inability to wipe data you need to do the following.
1. Download the latest Factory image from google.
2. Exctract the files into your platform-tools folder an run the "flash-all" command this video illustrates it perfectly http://www.youtube.com/watch?v=bsss9e71bKo
3. And you're done! hopefully this helps someone out

Factory reset after root a bad idea?

Hello,
I have a VS985. Something went terribly wrong with my package installer--it won't let me install any apps (Google play store or downloaded apk's), and my application manager won't let me clear any cache's (see pictures).
I only have stock recovery so I can't sideload apps, and I obviously can't install any new apps to fix the problem. The only thing I can think to do is a factory reset.
I have rooted my phone, deleted around 40 apps including some of LG's add-ons (voice mate, lg keyboard, etc.). Is it still safe for me to factory reset, or is there another course of action to take?
very bad idea. thats what i did a couple days ago and i started boot looping . and now no os ..
Perhaps do a bump'd twrp install, if you have terminal emulator on your phone, then install a new set of system.IMG?
(Actually, if you have terminal emulator, you can probably directly install the system.IMG, by typing in the couple of commands. I'm twrp'd, so used it, but had asked if I could directly install the. IMG and it sounded positive. See:
http://forum.xda-developers.com/showthread.php?p=56491374 Substitute system.img and system for boot.img and boot. )

Factory Resetting doesn't work somehow after rooting with Magisk...

Dear Community,
My objective is to install Cerberus (an anti theft app) as a system app.
What I did and worked fine:
*Flash TWRP (latest version)
*Root using Magisk (latest version)
*Install Magisk Manager + Systemizer module
*Use Systemizer to install Cerberus apk in /System-priv apps folder
Now I wanted to test a Factory Reset (as a thief would do obviously):
Settings -> Backup & Reset -> Factory Data Reset
When I do that the phone reboots and TWRP opens and runs some OpenRecoveryScript
Then the phone restarts and nothing seems to have changed? All user installed apps are still there etc.
I'm running the latest available update for the Oneplus 5T.
Anyone has an idea why my phone behaves like this?
And any suggestion on how to make cerberus survive factory resets?
I just installed TWRP to make cerberus a system app, I plan on using custom recovery once everything is in place (cerberus as an unwipable system app)
Greetings,
Down...
Downloading123 said:
Dear Community,
My objective is to install Cerberus (an anti theft app) as a system app.
What I did and worked fine:
*Flash TWRP (latest version)
*Root using Magisk (latest version)
*Install Magisk Manager + Systemizer module
*Use Systemizer to install Cerberus apk in /System-priv apps folder
Now I wanted to test a Factory Reset (as a thief would do obviously):
Settings -> Backup & Reset -> Factory Data Reset
When I do that the phone reboots and TWRP opens and runs some OpenRecoveryScript
Then the phone restarts and nothing seems to have changed? All user installed apps are still there etc.
I'm running the latest available update for the Oneplus 5T.
Anyone has an idea why my phone behaves like this?
And any suggestion on how to make cerberus survive factory resets?
I just installed TWRP to make cerberus a system app, I plan on using custom recovery once everything is in place (cerberus as an unwipable system app)
Greetings,
Down...
Click to expand...
Click to collapse
You already have a custom recovery installed
Dazed No More said:
You already have a custom recovery installed
Click to expand...
Click to collapse
So if I reflash stock recovery I will be able to factory reset from the phone settings menu?
And Cerberus will be kept since it's a system app right?
Factory reset clears up the data partition and it needs the default recovery in order to work. You can flash it back if you don't need the TWRP anymore but if your phone is encrypted the thief would have a hard time getting into the TWRP without a password.
Squabl said:
You can flash it back if you don't need the TWRP anymore but if your phone is encrypted the thief would have a hard time getting into the TWRP without a password.
Click to expand...
Click to collapse
This is not correct, or needs clarification. TWRP, is NOT password protected. When you are encrypted it needs a password to decrypt the data, not a password to enter TWRP. You are free to enter TWRP by hitting cancel at the password screen. From that point the "thief" could wipe the phone and your data. He could not access your data though. If your phone was not encrypted, he could easily remove your pin codes, password, and finger prints, etc, and then boot your phone and use it. This is why encryption is important.
TWRP has stated they will never have password protection as there is no point it's easy to just flash a new recovery. As a thief would do even if you flash a stock recovery.
You can protect your data, but a thief that knows what they are doing is going to wipe the device pretty easily.
OhioYJ said:
This is not correct, or needs clarification. TWRP, is NOT password protected. When you are encrypted it needs a password to decrypt the data, not a password to enter TWRP. You are free to enter TWRP by hitting cancel at the password screen. From that point the "thief" could wipe the phone and your data. He could not access your data though. If your phone was not encrypted, he could easily remove your pin codes, password, and finger prints, etc, and then boot your phone and use it. This is why encryption is important.
TWRP has stated they will never have password protection as there is no point it's easy to just flash a new recovery. As a thief would do even if you flash a stock recovery.
You can protect your data, but a thief that knows what they are doing is going to wipe the device pretty easily.
Click to expand...
Click to collapse
Thanks for the reply because I learned a few thinks, now I know that factory reset doesn't work with a custom recovery!
But will a Factory Reset with Stock Recovery work normally? Will it keep my Cerberus app in System-priv folder?
Because I don't care about my data, I would just want to recover my phone .
An unknowing thief would simply reset the phone without checking if cerberus is present as a system app. That's why my question!
EDIT:
I uninstalled Magisk and restored stock recover. I rebooted and Cerberus was still on the phone (as a System App)
After that I did a Factory Reset (from phone settings) and after the reset Cerberus was gone...
So I suppose Android Oreo (Or OxygenOS) factory reset also resets the system apps?
If that's the case, how would I have an app survive factory reset?
(I remember on previous versions I could keep cerberus even after a factory reset)
By default Cerberus could not, it would not be in the play store if it would survive a factory reset. Things like that essentially get flagged "malware" in googles eyes whether it be for "good" reasons or not. Second for it to be able to do this, it would need to have root privileges which most users would not have. Second what you are after is going to stop dumb thieves, anyone who really flashes the thing, is going to wipe out what ever you have done anyways. Granted I guess most people aren't going to go grab a factory image, or the unbrick tool and reflash it, but perhaps I'm wrong, I'm not a phone thief, so I don't know what goes on in that world.
I take it you are moving it to a system folder using a root browser? I honestly don't know how to accomplish what you are trying to do.
OhioYJ said:
By default Cerberus could not, it would not be in the play store if it would survive a factory reset. Things like that essentially get flagged "malware" in googles eyes whether it be for "good" reasons or not. Second for it to be able to do this, it would need to have root privileges which most users would not have. Second what you are after is going to stop dumb thieves, anyone who really flashes the thing, is going to wipe out what ever you have done anyways. Granted I guess most people aren't going to go grab a factory image, or the unbrick tool and reflash it, but perhaps I'm wrong, I'm not a phone thief, so I don't know what goes on in that world.
I take it you are moving it to a system folder using a root browser? I honestly don't know how to accomplish what you are trying to do.
Click to expand...
Click to collapse
Well, it has been possible because I have done it in the past, I am wondering if it is possible to do it know.
I had Cerberus installed on the Galaxy S5 of my brother (as a system app). His phone got stolen, 3 months later it shows up again.
Phone had been reset but Cerberus was still working. So I went to the police and we recovered the phone (It was like a real police thriller ).
OhioYJ said:
I take it you are moving it to a system folder using a root browser? I honestly don't know how to accomplish what you are trying to do.
Click to expand...
Click to collapse
The way I tried (as stated in OP):
I moved Cerberus to a system folder using 'Systemizer' module from Magisk.
I tried browsing the source of the factory reset code here:
https://android.googlesource.com/platform/bootable/recovery/+/android-8.0.0_r36/recovery.cpp
I can see nothing that points to the /System partition getting reset aswell.
* FACTORY RESET
* 1. user selects "factory reset"
* 2. main system writes "--wipe_data" to /cache/recovery/command
* 3. main system reboots into recovery
* 4. get_args() writes BCB with "boot-recovery" and "--wipe_data"
* -- after this, rebooting will restart the erase --
* 5. erase_volume() reformats /data
* 6. erase_volume() reformats /cache
* 7. finish_recovery() erases BCB
* -- after this, rebooting will restart the main system --
* 8. main() calls reboot() to boot main system
Maybe it's a modification brought in OxygenOS?
This topic is getting interesting
Downloading123 said:
*Install Magisk Manager + Systemizer module
*Use Systemizer to install Cerberus apk in /System-priv apps folder
Click to expand...
Click to collapse
So out of curiosity I tried this on my phone with a different method, and different app. As an experiment, I just used a terminal emulator, and moved the entire folder to the system/app location using a root browser. Then factory reset my phone with TWRP, wiped cache, and dalvik, booted back up, didn't login to anything, and the terminal emulator was still there.
OhioYJ said:
So out of curiosity I tried this on my phone with a different method, and different app. As an experiment, I just used a terminal emulator, and moved the entire folder to the system/app location using a root browser. Then factory reset my phone with TWRP, wiped cache, and dalvik, booted back up, didn't login to anything, and the terminal emulator was still there.
Click to expand...
Click to collapse
Yes, that is what I had too... (read previous posts).
But this will NOT work if you put that app in system while rooted, uninstall magisk(aka unroot) and then put back STOCK RECOVERY (else factory reset won't work from phone settings).
If you reset TWRP then only data and cache are wiped, but if you use STOCK RECOVERY and reset from phone settings, app will be gone.

Question Stuck on "Pixel is starting"

Had to do a factory reset, and all was good. Using LSposed with Magisk and reinstalled several mondules. Upon reboot, the screen hangs at "Pixel is starting." So I rebooted into safe mode, knowing the Magisk modules would be disabled, but the same thing happens, even in safe mode. Booted again. I can access all my settings, and adb works fine. But I'm clueless as to what I should do, even with adb and settings access.
Will appreciate any help. Everything is backed up, I'm just trying to avoid the nuisance of having to factory reset again and all that entails.
Thanks.
You can try Official Google Android Flash Tool and uncheck the wipe data option (and don't force flash all partitions, either, which will also wipe), and don't forget to uncheck the option to re-lock the bootloader.
That official site has solved many weird issues where even manually flashing the full factory image hasn't solved the problem. Good luck, let us know if that's what you do and how it goes.
my old go-to for boot issues was last_kmsg. I recentlky found abou about boot-chart, which logs what happens during boot, and may log an error for you. You will have to run this in recovery if yopu are in a non-booting state
To enable it:
Code:
mkdir -p /data/bootchart;
touch /data/bootchart/enabled;
try a reboot, which fails. Reboot to recovery and retrieve the logs
init/grab-bootchart.sh - platform/system/core - Git at Google
I havent had to use it "in anger" yet, but it will be my tool of choice.

Categories

Resources