Related
Hi,
I am trying to restore a couple of nandroid backups, but a Device Administrator app gone "quirky" seems to materialize no matter what I do. I did a CWM Wipe, restored the nandroid backup before the app went bad. However that did not work, the app was still misbehaving. So I wiped again, restored a nandroid backup from before I had installed the app. Still the app shows up again. It has in effect locked me out of the device.
Can anyone tell what can I do to get rid of the app?
Are these Device Admin app supposed to persist like this? Or am I doing something wrong?
Do I need to choose a different wipe mode (I chose the normal one, which wipes /data/, /cache etc). I did not try to wipe /cache separately, as the first wipe does that by itself. Neither did I wipe the dalvik cache, as I thought they are not relevant here. I don't see any relevant files in the sdcard either, though how the app reappears in the nandroid restore before it was installed is a mystery.
Should I mount more partitions before wiping, like the data/cache etc.
Since the wipes don't seem to make it go away, I am not even sure flashing a different ROM would get rid of this app either, however I can try that (since I was planning to anyway, before this mishap). If that doesn't work either, I might just have the most unusual case of bricking ever.
The XDA forum does not seem to be much info about device-admin apps and my search-fu is not good enough today to find anything directly relevant about the other stuff.
PS. btw the app actually modifies the lockscreen. So I don't actually see the files it has with the pre-app restore, however the lockscreen still comes up, perhaps because of some remanant of the app or because of a setting it left in there somewhere.
efs?
Just to add more info, I see some files in /efs, which look relevant to the lockscren/ They have file names like this "/efs/cryptoprop_lockscreen".
Would these files store the data this app stored. I fortunately have an EFS backup, should I consider restoring these files.
If someone doesn't know the answer, can they suggest which devs would be good to ask about this.
AnDruid said:
Hi,
I am trying to restore a couple of nandroid backups, but a Device Administrator app gone "quirky" seems to materialize no matter what I do. I did a CWM Wipe, restored the nandroid backup before the app went bad. However that did not work, the app was still misbehaving. So I wiped again, restored a nandroid backup from before I had installed the app. Still the app shows up again. It has in effect locked me out of the device.
Can anyone tell what can I do to get rid of the app?
Are these Device Admin app supposed to persist like this? Or am I doing something wrong?
Do I need to choose a different wipe mode (I chose the normal one, which wipes /data/, /cache etc). I did not try to wipe /cache separately, as the first wipe does that by itself. Neither did I wipe the dalvik cache, as I thought they are not relevant here. I don't see any relevant files in the sdcard either, though how the app reappears in the nandroid restore before it was installed is a mystery.
Should I mount more partitions before wiping, like the data/cache etc.
Since the wipes don't seem to make it go away, I am not even sure flashing a different ROM would get rid of this app either, however I can try that (since I was planning to anyway, before this mishap). If that doesn't work either, I might just have the most unusual case of bricking ever.
The XDA forum does not seem to be much info about device-admin apps and my search-fu is not good enough today to find anything directly relevant about the other stuff.
PS. btw the app actually modifies the lockscreen. So I don't actually see the files it has with the pre-app restore, however the lockscreen still comes up, perhaps because of some remanant of the app or because of a setting it left in there somewhere.
Click to expand...
Click to collapse
Do a CWM wipe, and turn off the phone when done by selecting "Power Off"
Now enter download mode, and ODIN flash a stock ROM.
Then re-root with CF-Root and install custom ROM if desired.
pulser_g2 said:
Do a CWM wipe, and turn off the phone when done by selecting "Power Off"
Now enter download mode, and ODIN flash a stock ROM.
Then re-root with CF-Root and install custom ROM if desired.
Click to expand...
Click to collapse
Thanks for the help pulser_g2. I am still concerned about the files i saw in /efs related to the lockscreen (see my second post). Would the stock ROM overwrite settings/configuration inside /efs (I guess since the IMEI etc are all in there, that might not be the case)?
Got through finally.
pulser_g2 said:
Do a CWM wipe, and turn off the phone when done by selecting "Power Off"
Now enter download mode, and ODIN flash a stock ROM.
Then re-root with CF-Root and install custom ROM if desired.
Click to expand...
Click to collapse
OK this worked.
However after I Odin flashed the stock rom and rebooted, I got this
1. First got a different kind of lockscreen.
2. I entered the wrong password five times (after trying the Device Admin alternate password, my Google password, a new 2-step auth password from google) .
3. it said something about wiping sd card. I couldn't catch it (I should probably have videoed this using my point and shoot camera, but this did not strike me then as it was 2am).
4. I was hoping that the stock ROM will boot, cause it stayed on the Samsung logo for too long. (I had already ordered my USB Jig on ebay anyway, but it could have taken time because of my being far off from the seller.). Finally I got the Android Welcome screen and I let out my breath.
In any case, things seem to ok right now. I feel a slight slowness in the rooted stock ROM from my earlier rooted stock ROM, but I am gonna flash a custom ROM later anyway. Thanks a lot for your help pulser.
Hello, I always find the people on this corner of xda very helpful. As usual, I think I know what I'm doing, but I'd like to check that I am proceeding in the right direction.
I've been using Mik's Cyanogen ROMs on my Optimus One. That's going well. But I need to SIM unlock my phone and I need to go back to a stock ROM to input the codes (please let me know if this is incorrect).
Before installing Mik's ROM, I performed a Nand backup. I have boot, cache, data, recovery and system img files. I think I can flash these through recovery and I should be back to stock.
Do I lose my apps and settings by doing this? Do I need to clear any caches?
What about returning to Cyanogen after I unlock my phone... Do I have to root my phone again or will I still be able to flash using recovery?
Using Clockwork, I just backed up my current ROM. I assume I will be able to restore from this later.
Is there anything else I should be aware of?
Thanks for answering my questions / clearing up my confusion.
Hello, I always find the people on this corner of xda very helpful. As usual, I think I know what I'm doing, but I'd like to check that I am proceeding in the right direction.
I've been using Mik's Cyanogen ROMs on my Optimus One. That's going well. But I need to SIM unlock my phone and I need to go back to a stock ROM to input the codes (please let me know if this is incorrect).
this is correct
Before installing Mik's ROM, I performed a Nand backup. I have boot, cache, data, recovery and system img files. I think I can flash these through recovery and I should be back to stock.
Do I lose my apps and settings by doing this? Do I need to clear any caches?
to revert back to stock, you must wipe data/factory reset, cache, and dalvik cache. you will lose your settings. as for your apps, you can back them up with titanium backup and restore them after you have restored your backup.
What about returning to Cyanogen after I unlock my phone... Do I have to root my phone again or will I still be able to flash using recovery?
when you restore your backup of the stock rom, you will still have root. i dont think unlocking your phone will cause you to lose root. your root access and custom recovery will still be intact
Using Clockwork, I just backed up my current ROM. I assume I will be able to restore from this later.
yes this is true
Is there anything else I should be aware of?
just to be on the safe side, please list the steps you are going to follow
Thanks for answering my questions / clearing up my confusion.
Thanks for the quick answer...
I on my sd card, I have a /clockwork directory with two subdirs. One is my original backup that I made before first installing Cyanogen. The other is the one I just made. Both contain boot, cache, data, recovery and system img files. The difference is that with my new backup the image files have an extra yaffs2 suffix: cache.img (stock) but cache.yaffs2.img (Cyanogen). Any problem here?
1. boot into recovery
2. restore stock from my sdcard using nandroid and wipe caches as you indicated
3. reboot, enter unlock code
4. reboot into recovery
5. restore current ROM from my sdcard using nandroid and again wipe the same caches
6. reinstall / restore apps (I'm not using Titanium, instead I backed up the list of installed apps)
Will I need to find and reinstall the GoogleApps (Market, etc) or will they come with the backup of my current ROM?
Pretty simple really. This make sense?
Thanks for the quick answer...
I on my sd card, I have a /clockwork directory with two subdirs. One is my original backup that I made before first installing Cyanogen. The other is the one I just made. Both contain boot, cache, data, recovery and system img files. The difference is that with my new backup the image files have an extra yaffs2 suffix: cache.img (stock) but cache.yaffs2.img (Cyanogen). Any problem here?
there might be a problem. what clockworkmod version did you use to make the backup of the stock rom? if i remember correctly, using cwm 3.x.x.x backs up a certain way (and also does not have the yaffs2 suffix) and using cwm 5.x.x.x backs up a different way (with the yaffs2 suffix) so backups may not be "inter"compatible (more info on that here). however, you can just flash back cwm 3.x.x.x right now (you can do it using rom manager), restore your stock rom backup, do the following steps, flash back cwm 5.x.x.x, then restore your backup
1. boot into recovery
2. restore stock from my sdcard using nandroid and wipe caches as you indicated (i recommend wipe first then restore)
3. reboot, enter unlock code
4. reboot into recovery
5. restore current ROM from my sdcard using nandroid and again wipe the same caches
(same here again, wipe first then restore)
6. reinstall / restore apps (I'm not using Titanium, instead I backed up the list of installed apps)
Will I need to find and reinstall the GoogleApps (Market, etc) or will they come with the backup of my current ROM?
i think you will have to flash gapps again
Pretty simple really. This make sense?
looks good (how sure am i? id say 80-90%. it definitely makes sense, but i have never done this before)
Good good. It's getting late so I'll tackle this tomorrow. Thanks for the detailed help... I'm glad I asked before going at it.
sweetnsour said:
looks good (how sure am i? id say 80-90%. it definitely makes sense, but i have never done this before)
Click to expand...
Click to collapse
I followed your instructions (I downgraded Clockwork before starting) and the 10-20% chance of you being wrong came true... but in a good way
Restoring from the backup brings everything back: apps, settings, contacts, SMSs etc. So it was actually even easier than you suggested since I didn't have to use my backups at all.
Thanks again for the tips!
bosth said:
I followed your instructions (I downgraded Clockwork before starting) and the 10-20% chance of you being wrong came true... but in a good way
Restoring from the backup brings everything back: apps, settings, contacts, SMSs etc. So it was actually even easier than you suggested since I didn't have to use my backups at all.
Thanks again for the tips!
Click to expand...
Click to collapse
glad it worked out for you i am assuming your phone is now unlocked right?
sweetnsour said:
glad it worked out for you i am assuming your phone is now unlocked right?
Click to expand...
Click to collapse
Yes... when I was back in stock I could access the unlock menu by entering 2945*#500# on my keypad. The SIM unlock code that I have worked fine. I haven't actually tested with another SIM card but the phone claimed to have been unlocked, so I should be good to go.
Hi all,
Was running CM9 rc1 with no problems then upgraded to RC2 then to CM9 nightly 20120804. Installed Siyah Kernel by flashing in CWM recovery and added a second ROM (winamlite). Now superuser says it is denied superuser permissions in CM9. It works fine in Winamlite though.
I have tried reflashing CM9 nightly which reinstalled the CM kernel which didn't help and then reflashed siyah kernel. Still no luck. Read quite a few posts and tried a lot but nothing does the trick (flashed latest superuser from CWM, wiped superuser data, tried to install root from within extweaks).
Can someone point me in the right direction to sort this please?
Thanks,
Max
emptybee said:
Hi all,
Was running CM9 rc1 with no problems then upgraded to RC2 then to CM9 nightly 20120804. Installed Siyah Kernel by flashing in CWM recovery and added a second ROM (winamlite). Now superuser says it is denied superuser permissions in CM9. It works fine in Winamlite though.
I have tried reflashing CM9 nightly which reinstalled the CM kernel which didn't help and then reflashed siyah kernel. Still no luck. Read quite a few posts and tried a lot but nothing does the trick (flashed latest superuser from CWM, wiped superuser data, tried to install root from within extweaks).
Can someone point me in the right direction to sort this please?
Thanks,
Max
Click to expand...
Click to collapse
Wipe cm9 completely, flash it again, flash Siyah kernel on cm9, and flash the same siyah zip for wanamlite
Try it and it should be working, I did something like this when I had this problem
Sent from my S II Monster
Nasty_z said:
Wipe cm9 completely
Click to expand...
Click to collapse
Do you mean factory wipe data/reset? Thought this might be the case and was trying to avoid it as had just got the phone set up how I want it. Saying that I am going to upgrade to the stable CM9 so now's as good a time as any.
If I am going to go through with this, is there a way to completely wipe ALL data from my phone? Everything from photos, emails, old app data etc. I have done a factory wipe before but it seemed to leave some files and folders on the phone. (or maybe my memory is failing me).
Looks like I have my weekend planned out for me then. If only the sun would bu99er off and let me geek out without the guilt...
Thanks for the help.
p.s. Sorry for posting this thread in the wrong place MODs and thanks for moving it.
emptybee said:
Do you mean factory wipe data/reset? Thought this might be the case and was trying to avoid it as had just got the phone set up how I want it. Saying that I am going to upgrade to the stable CM9 so now's as good a time as any.
If I am going to go through with this, is there a way to completely wipe ALL data from my phone? Everything from photos, emails, old app data etc. I have done a factory wipe before but it seemed to leave some files and folders on the phone. (or maybe my memory is failing me).
Looks like I have my weekend planned out for me then. If only the sun would bu99er off and let me geek out without the guilt...
Thanks for the help.
p.s. Sorry for posting this thread in the wrong place MODs and thanks for moving it.
Click to expand...
Click to collapse
So you wanna wipe your sdcard too? It's not necessary though it's of course possible. You gotta reboot in to recovery, wipe data/factory reset, go to mounts and storage, format /system, if you wanna wipe your sdcard, you click on Mount /sdcard and then click on format /sdcard.
After all that is done, now go to advanced and wipe dalvik cache and wipe battery stats.
Now your phone is completely wiped. Actually, wanamlite ROM would still stay. Like you said before, you've lost the ability to dual boot. That means that your kernel changed from siyah to cm9. To remove wanamlite too, you need to get siyah kernel (this can be done before doing the above or after doing the above) and then you need to boot in to recovery, dual boot options, remove 2nd ROM
Sent from my S II Monster
If you format /sdcard, 2nd ROM will not work since there are no data and cache images.
If you install WanamLite zip through dual-boot options, it will prevent from installing other kernel.
About wiping /data. After wiping, those folders will be created always when Android is running, cause they're necessary.
przemcio510 said:
If you format /sdcard, 2nd ROM will not work since there are no data and cache images.
If you install WanamLite zip through dual-boot options, it will prevent from installing other kernel.
About wiping /data. After wiping, those folders will be created always when Android is running, cause they're necessary.
Click to expand...
Click to collapse
Yeah I totally forgot to tell him that 2nd ROM won't be there if he wipes sdcard.
However, wiping /data will wipe the folders and again create the folders. It's true but the new folders won't have stuff from the previous ROM. So it's recommended when flashing a new ROM. Correct me if I'm wrong.
Sent from my S II Monster
Same delima
I am having the same problem.. When using siyah kernel n dual booting..
Primary Rom ressurection remix V2.5
Secondary Rom Salman Ics
now in the 2nd Rom.. It says superuser permmison denied.. Apparrntly no root access.. I instanlled EX TWEAKS.. N clicked "remove root" n then "auto install root at boot" so it should have installed root when i resarted but no luck..
Sumone plz help.. How to get root in the second rom?can i use one click root software?
I have never experienced this problem while dual booting.
You guys can try to Fix permissions of the affected ROM in recovery.
Swyped from my Samsung Galaxy SII
Hello,
I have a question. I backed up my stock rom before installing a custom rom. Now i want to install another rom, so this time do I also have to back up the rom or its already backed up as I did it once the first time? So now that if I want to move to a new rom, i just
Select Wipe Data/Factory Reset. Confirm on the next screen.
Select Wipe Cache. Confirm on the next screen.
Select Advanced and then select Wipe Dalvik Cache.
and I should be good to go? Any other steps?
Best wishes,
Marc
Nandroid makes a snapshot of your entire phone, so you can go back to the exact moment in time when you made it.
Unless you think you'll want to go back to the current custom ROM you are using then no, don't bother.
Factory reset won't wipe the system partition, you would be better off flashing Philz recovery which includes a wipe option for use between ROM's. It's a good idea to have the right modem & RIL for your country ready just in case your new ROM has the wrong modem included..
Make sure you have backed up the entire efs partition to your pc, dropbox etc.
boomboomer said:
Nandroid makes a snapshot of your entire phone, so you can go back to the exact moment in time when you made it.
Unless you think you'll want to go back to the current custom ROM you are using then no, don't bother.
Factory reset won't wipe the system partition, you would be better off flashing Philz recovery which includes a wipe option for use between ROM's. It's a good idea to have the right modem & RIL for your country ready just in case your new ROM has the wrong modem included..
Make sure you have backed up the entire efs partition to your pc, dropbox etc.
Click to expand...
Click to collapse
Thank you for your answer. I just have one more question. I did copy the efs folder, but when I open it in computer its just a blank folder. Does it have to be like that or did I copy it wrong?
marcothev said:
Thank you for your answer. I just have one more question. I did copy the efs folder, but when I open it in computer its just a blank folder. Does it have to be like that or did I copy it wrong?
Click to expand...
Click to collapse
Should contain a number of files .
jje
marcothev said:
Thank you for your answer. I just have one more question. I did copy the efs folder, but when I open it in computer its just a blank folder. Does it have to be like that or did I copy it wrong?
Click to expand...
Click to collapse
Just copying the folder across in explorer won't save you if you need to restore, use Mike Skip's SG3 tool, the app from market or again Philz recovery to snapshot the entire partition. I'd advise having at least one version you can flash via odin.
marcothev said:
Hello,
I have a question. I backed up my stock rom before installing a custom rom. Now i want to install another rom, so this time do I also have to back up the rom or its already backed up as I did it once the first time? So now that if I want to move to a new rom, i just
Select Wipe Data/Factory Reset. Confirm on the next screen.
Select Wipe Cache. Confirm on the next screen.
Select Advanced and then select Wipe Dalvik Cache.
and I should be good to go? Any other steps?
Best wishes,
Marc
Click to expand...
Click to collapse
It's not necessary, but you should always back up your ROM before flashing a new one.
It's a personal thing, but I only do so when I do a major leap, like from Sammy to cm or cm to Sammy or one of those to miui or something like that. Other wise I don't because I like having free space on my SD cards.
CyanogenModded Very China-like, from my Samsung Galaxy S III
LG Familyguy59/Beatsleigher
I noticed that after wiping data & cache and installing a new rom using CWM recovery, my device still knows my name. I have a US SGP5 (YP-G70) and I'm running the latest BeanStalk ROM. Is there a user friendly way to COMPLETELY wipe the device of all user data prior to installing a new or updated ROM ?
Thanks in advance for any suggestions/replies.
Why does it matter if it still knows your name?
Inquiring minds want to know
TheKryptonite said:
Why does it matter if it still knows your name?
Click to expand...
Click to collapse
Not sure that it does matter, but being a student and having the desire to learn about this stuff prompted me to ask the question. Also, I think it is counter intuitive that the device owners name and other user data (e.g. old alarm clock data) would still remain after instructing CWM to "wipe data".
The funny thing is that right after I posted this question, a newer release of BeanStalk came out, and I don't think my name was displayed upon initial boot after install, like it had been in previous versions of the ROM. I believe that data is still on the device, but just not shown.
So I think I figured out the answer...Wiping data/factory reset in CWM does NOT clear internal storage, and some user data is stored there.
So to rephrase the question, is there an easy way to clear internal storage? Is clearing internal storage an option in TWRP or PHILZ ?
In cwm, go to mounts and storage, and you can format everything from there
In TWRP, go to Wipe > Advanced Wipe, and select every everything