Related
So unless I have missunderstood something, the recovery.img is what state the phone returns to when you do a factory reset. I would very much like to change this state to have a few apps installed and pre-configured.
The best solution would be to create a recovery-image from say nandroid-backup. Is this possible? Or are there any awesome guides out there that teaches how to create your own recovery-images?
Cheers,
edit: I found alot of good information in these threads, but I really cant find information on how to customize my recovery-image to have certain apps installed, and such. Im guessing there is no automated way to transfor a nandroid-backup to a recovery image
http://forum.xda-developers.com/showthread.php?t=443994
http://forum.xda-developers.com/showthread.php?t=575144
recovery image is the barebones boot up and options that allow you to wipe, nandroid, and such. when powering up and pressing home at the same time, this is the recovery image. what you are talking about is either creating your own update, with preinstalled apps, or creating a clean nandroid backup with some apps installed. hope this clears up a bit.
byt3b0mb said:
recovery image is the barebones boot up and options that allow you to wipe, nandroid, and such. when powering up and pressing home at the same time, this is the recovery image. what you are talking about is either creating your own update, with preinstalled apps, or creating a clean nandroid backup with some apps installed. hope this clears up a bit.
Click to expand...
Click to collapse
I see, thanks for the info. So maybe I should not change the recovery-image. But I want to change the state the phone returns to when I do a factory reset. I think atleast the recovery-image is loaded during factory reset, because I have managed to make factory reset not work by making a faulty recovery image that hangs the phone, lol.
Maybe this is what I should do: An update.zip that inclodes a ROM that has pre-installed apps. Is this what the phone returns to at a factory reset?
sandis84 said:
Maybe this is what I should do: An update.zip that inclodes a ROM that has pre-installed apps. Is this what the phone returns to at a factory reset?
Click to expand...
Click to collapse
Correct
ronni.rasmussen said:
Correct
Click to expand...
Click to collapse
I have tried creating an update.zip, but I have ran into some problems as specified in this thread:
http://forum.xda-developers.com/showthread.php?p=5101633#post5101633
However, I am still unsure on how this update.zip would work. It feels as if I should edit the data.img-file, since it contains the information in the data-folder (i.e. the apps and their state). But I have found no editor or guide to do this. However, this might only change the state of the phone directly after installing the update-zip? If I install an update.zip with modified data.img, is this really what the device will return to after a factory reset?
I.e, exactly from where does the phone load the state it returns to after a factory reset?
Cheers,
are you wanting to have all gmail and other things with passwords already done or simply install barebones rom with your little bits you want
if its the latter option thats easy
make an update zip with your apks wifi apn settings inside and flash stright after installing rom before a reboot
or open up your desired rom and drop the files in the correct folders re-sign and thats it
sitimber said:
are you wanting to have all gmail and other things with passwords already done or simply install barebones rom with your little bits you want
if its the latter option thats easy
make an update zip with your apks wifi apn settings inside and flash stright after installing rom before a reboot
Click to expand...
Click to collapse
Im not sure I understand, but here is a clarification of what I want: What I want to do is specifically to change the "factory reset state". I am trying to do this to make a personalized very noob-friendly ROM, where they can just make a factory reset and still keep their essential apps and settings. It is meant for people that for example arent technical enought to make a restore from nandroid or such stuff.
edit: To create an update.zip with certain apps and settings, is there a complete guide for doing that? I have found many guides that covers parts of it, but I always run into problems.
edit2: Nvm, I have nog managed to create an update.zip. So I just add some apk-files to the data/app-folder in the boot-img in the update? Well, Im going to give it a try... I'll report back in a while =)
Well, I have managed to create and install an update.zip, but the result is not showing up! I create my update, place it on the sdcard, start in recovery mode and run the update. Then i restart.
When I restart first i see the "phone out of box"-image for about half a second, then splashscreen. Then "phone out of box"-image for half a second again, and then it returns to the splash screen and boots normally.
When it has booted I check if my changes has applied. What i have done is I have tried to create several directories in the file system by adding three lines in the init.rc:
Code:
mkdir /sdcard 0000 system system
mkdir /system
[b]mkdir /test1[/b]
mkdir /data 0771 system system
mkdir /cache 0770 system cache
[b]mkdir /test2 0770 system cache[/b]
mkdir /sqlite_stmt_journals 01777 root root
[b]mkdir /test3 01777 root root[/b]
mount tmpfs tmpfs /sqlite_stmt_journals size=4m
But none of these directories has been created. Even worse, the lines I added are gone from init.rc! It seems as if the update was never applied. What could be wrong? Any help would be VERY appriciated, since I feel very very stuck at the moment.
hi,
i did a big mistake. I wanted to install some vpn apps, which requires write permission on /system. I downloaded root explorer und tried to set all permissions for the system folder. But the app stills lacks the wanted permissions, so i started root explorer again and additionally checked the checkboxes under "special permissions". After doing that android crashed, the "systemui" process crashed and restarted and crashed ...
I rebootet the device, but i only see "google" and then comes a reboot and the device boots into recovery (TWRP 2.6.3.4). I already tried the "fix permissions" under advanced, but it didn't helped.
Is there any way to fix whatever i did wrong and not lose any data?
Any help would be greatly appreciated
Greetings k1x1987
Reflash rom without wiping.
Sent from my Nexus 5 using Tapatalk
d
jyuuken said:
Reflash rom without wiping.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Thanks for your help. I don't want to miss something this time and complety brick my device. Could you/anybody tell me exactly what and how do flash to recover my device?
I did all the rooting stuff with the "Nexus Root Toolkit" program and followed strictly guides, except this time
Do i have to flash the rom with ADB? which file(s) should i flash system.img only? Or i have to flash more files?
A short noob guide would be really appreciated :good:
Greetings k1x1987
So you are just rooted on the stock setup? Then you should be able to flash a stock odexed rom that matches your current set up (4.4.1 or 4.4.2) and you should wipe, but just the caches. You'll likely need to adb push rom.zip /sdcard when in recovery. You probably could adb sideload as well, but not sure if that wipes anything else. Never had to mess with sideloading.
For future reference, once you are up and running, I think what you would need to change is the SELinux permissive state. There's an app do that. Then the most you would need is to hit the R/W button when you're in /system with Root Explorer. Or with the newer Root Explorer versions, once you try and make a change that needs R/W permissions, it'll stop and ask you if you want RE to switch it for you to complete the task.
es0tericcha0s said:
So you are just rooted on the stock setup? Then you should be able to flash a stock odexed rom that matches your current set up (4.4.1 or 4.4.2) and you should wipe, but just the caches. You'll likely need to adb push rom.zip /sdcard when in recovery. You probably could adb sideload as well, but not sure if that wipes anything else. Never had to mess with sideloading.
For future reference, once you are up and running, I think what you would need to change is the SELinux permissive state. There's an app do that. Then the most you would need is to hit the R/W button when you're in /system with Root Explorer. Or with the newer Root Explorer versions, once you try and make a change that needs R/W permissions, it'll stop and ask you if you want RE to switch it for you to complete the task.
Click to expand...
Click to collapse
Thanks for your help. Yes, i am complety stock besides root and franco kernel. I already downloaded factory image (4.4.2). Should i flash the zip, which contains all the system.img, userdata.img etc. (i think it was 5 files) or just specific ones? It would be n1 if my data dont get lost.
Thanks in advance.
k1x1987
k1x1987 said:
Thanks for your help. Yes, i am complety stock besides root and franco kernel. I already downloaded factory image (4.4.2). Should i flash the zip, which contains all the system.img, userdata.img etc. (i think it was 5 files) or just specific ones? It would be n1 if my data dont get lost.
Thanks in advance.
k1x1987
Click to expand...
Click to collapse
Just flash the system.img in fastboot.
Most devs recommend wiping /system first.
fastboot erase system
fastboot flash system system.img
I would also erase cache too.
fastboot erase cache
That will clear the cache, not the dalvik, but think that should be enough to get going.
...and once it is fixed, never change system permissions again.... Same a Linux, never change permissions at /root
.. phone works again
thanks at all for the help. But now i cant get any cell service. I looked under settings/about the phone/status and saw that my "IMEI" is "unkown". Could this be the problem? I read about restoring imei, should i try this and it this the cause for me not getting any service?
Thanks
k1x1987 said:
.. phone works again
thanks at all for the help. But now i cant get any cell service. I looked under settings/about the phone/status and saw that my "IMEI" is "unkown". Could this be the problem? I read about restoring imei, should i try this and it this the cause for me not getting any service?
Thanks
Click to expand...
Click to collapse
Using fastboot, flash the cache image from the factory image, fastboot flash cache cache.img
^ That should do the trick. If not, well, let's not go there yet. The cache should fix it. If that does, do yourself a favor and back up your EFS folder and save it somewhere safe. Either use TWRP or flash the EFS backup tool from here: http://forum.xda-developers.com/showthread.php?t=2514095
[My first post on xda, plz help!]
My N5, 4.4.4 not rooted, has faced those problems for about a month or two:
1.My gallery force stopped when I tried to use the default gallery photo editor (the little pencil button at the left corner of the screen) to edit a photo of any format, but luckily I still have Pixlr Express and Photoshop to edit photos, nevertheless, it is still uncomfortable to see. ?
2.My YouTube and YouTube studio app also force stopped when I tried to share a video. It is very troublesome to me as I need to share my videos for promotion! ?
3. My Instagram also force stopped when I tried to choose a picture from my gallery in the camera page of the app. However, when I go to the gallery and directly share the photo to Instagram, it works. It is kinda strange.
4. It is a terrible problem and limitation for android users, but still not the worst for me (you will see when you read the next bullet point). My phone can't install apks! I have no screen filter and the install page doesn't even completely show up as the package installer stopped message comes up ahead of it.
5. The worst problem of all... Settings is malfunctional, I can't force stop, or clear cache, or change default settings of the apps because when I go to the list of apps and tap one of them, "Unfortunately, Settings has stopped" message jumps out and I am never able to solve the problems of the apps above. What's more, when I go to "About Device" and keep tapping on the Android Version 4.4.4, the easter egg animation doesn't show up! ?????????
So, this is it. I plan to factory reset my phone but I am not free to back up my data yet, so would it help? Additionally, one more piece of information may help you guys find out the clue: I have a File Manager that can open folders over the sdcard folder (I am not pro so I can't explain well) so I can access to system folders containing things like system apps, boot animation, kernel etc. So is it abnormal for a unrooted phone?
Hope that some of you can help me. ???
Sent from my Nexus 5 using XDA Free mobile app
No... Its not abnormal for a file manager to view system folders... U can't edit the folder nor can you see contents of other folders... Actually just boot a custom recovery and wipe data without wiping the internal storage... It may solve the issue... To do that use towel root method of rooting flash the custom recovery using some app or unlock the boot loader using bootunlocker apk...
---------- Post added at 10:46 AM ---------- Previous post was at 10:44 AM ----------
Then in case you are a noob just go to boot loader after downloading the recovery image as well as adb drivers and use command fastboot boot name of your recovery.zip or fastboot flash recovery nameofrecovery.zip...
Sukrith said:
No... Its not abnormal for a file manager to view system folders... U can't edit the folder nor can you see contents of other folders... Actually just boot a custom recovery and wipe data without wiping the internal storage... It may solve the issue... To do that use towel root method of rooting flash the custom recovery using some app or unlock the boot loader using bootunlocker apk...
---------- Post added at 10:46 AM ---------- Previous post was at 10:44 AM ----------
Then in case you are a noob just go to boot loader after downloading the recovery image as well as adb drivers and use command fastboot boot name of your recovery.zip or fastboot flash recovery nameofrecovery.zip...
Click to expand...
Click to collapse
I would wipe everything and start over.
If you're on stock Android, I have a link to the images in my signature.
Aerowinder said:
I would wipe everything and start over.
If you're on stock Android, I have a link to the images in my signature.
Click to expand...
Click to collapse
This too... [emoji1]
Sukrith said:
No... Its not abnormal for a file manager to view system folders... U can't edit the folder nor can you see contents of other folders... Actually just boot a custom recovery and wipe data without wiping the internal storage... It may solve the issue... To do that use towel root method of rooting flash the custom recovery using some app or unlock the boot loader using bootunlocker apk...
---------- Post added at 10:46 AM ---------- Previous post was at 10:44 AM ----------
Then in case you are a noob just go to boot loader after downloading the recovery image as well as adb drivers and use command fastboot boot name of your recovery.zip or fastboot flash recovery nameofrecovery.zip...
Click to expand...
Click to collapse
you don't need to root your phone and flash a custom recovery to wipe data. 1. you can do it in stock recovery 2. you can do it in the main settings, backup and reset(factory reset).
simms22 said:
you don't need to root your phone and flash a custom recovery to wipe data. 1. you can do it in stock recovery 2. you can do it in the main settings, backup and reset(factory reset).
Click to expand...
Click to collapse
It'll wipe internal storage!!!
Never mind, I will backup
Sent from my Nexus 5 using XDA Free mobile app
Sukrith said:
It'll wipe internal storage!!!
Click to expand...
Click to collapse
why would a factory reset wipe internal storage?
simms22 said:
why would a factory reset wipe internal storage?
Click to expand...
Click to collapse
Because N5 doesn't have removable SD card... In phones with SD card also, the internal storage will be wiped and only the SD card is left alone as it gets unmounted on power off...
By the way, if I ignore these problems now and wait until the android L update, will they be solved after the update? I am. using stock android, no root.
Sent from my Nexus 5 using XDA Free mobile app
simms22 said:
why would a factory reset wipe internal storage?
Click to expand...
Click to collapse
Stock recovery.
Isthatjjk said:
By the way, if I ignore these problems now and wait until the android L update, will they be solved after the update? I am. using stock android, no root.
Click to expand...
Click to collapse
Just fix it. Pretending it doesn't exist and hoping an update fixes it gets you nowhere. Copy your SD card to a computer, and wipe it. Just do it. Stop putting up with this crap.
Thx, I fixed it now (temporarily) by turning to recovery mode and wipe data.
However, before I did so, I used the factory reset in settings and when it came to erase data, the 'erase all data' button had no response, it is weird. But anyway the problem has solved ?
Sent from my Nexus 5 using XDA Free mobile app
Isthatjjk said:
Thx, I fixed it now (temporarily) by turning to recovery mode and wipe data.
However, before I did so, I used the factory reset in settings and when it came to erase data, the 'erase all data' button had no response, it is weird. But anyway the problem has solved ?
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
FYI you could have used ADB to back up the phone data.
so, deleting data in the stock recovery did not wipe your storage?
Isthatjjk said:
Thx, I fixed it now (temporarily) by turning to recovery mode and wipe data.
However, before I did so, I used the factory reset in settings and when it came to erase data, the 'erase all data' button had no response, it is weird. But anyway the problem has solved ?
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
dude just reflash the factory image and be done with all the issues... that will actually solve everything:good:
Hello,
I've been trying to undo the mcs_heartbeat changes I've applied while my Nexus 5 was on KitKat, but the app Push Notification Fixer is not compatible with Lollipop, so I tried to directly uninstall Google Play services via Titanium Backup, to then have a clean reinstall and convert to system app again. In this last process however, TB seemed to become non responsive while it was converting it to system app, so I decided to force a reboot after 5~ mins.
Now every time it reboots after I see around 2 secs of the lock screen.
Tried to restart into safe mode, same thing. At this point, scared, I decided that I'd be willing to lose all the data if it meant have the phone working again, so I tried a format, but that seems to just not work, after a while it simply reboots normally to the same bootloop. It won't get past "Formatting /data..."
Another problem is that I usually keep USB debugging off because it makes winamp music transfer not work, so I don't have it. I'm really a beginner, so the solution might be simpler than I can imagine, but could anyone please help?
edit: formatting went through, but it clearly didn't solve the problem, as it now keeps rebooting as soon as a glimpse of status and navigation bar are seen (for 0.5s max, on a full black background).
halp, what do why doesn't formatting restore everything to how it should be?
1.Download factory image from google ,
2. download and install fastboot/adb drivers (there's a pack on this forum that only requires 3 clicks)
3. Unzip the factory image archive
4. connect phone to pc , reboot to bootloader ( press and hold volume down and power ) ,
4.a type in a command window , from the folder where u have fastboot.exe "fastboot devices" -quotes . If you get a long string of numbers everything is fine
4.b if your bootloader isn't unlocked , type in a command window
fastboot oem unlock
5. run the flash-all.bat from the folder where you unzipped the archive
6. wait
7. wait some more
8. phone should reboot full stock.
Factory reset doesn't touch your modification , nor does it restore corrupted files. All it does is delete your app storage , settings and cache.
Um, sorry if this sounds annoyingly silly, but if I do factory reset on my Nexus 5, will that delete all of my pictures, PDF document, videos, music, etc2?
I am aware that the app will be wiped clean like how the phone is first received, but I'm not sure if factory reset will also delete all of my stuffs I mentioned above.
I got stuck in boot because I think I have too much app on my phone.
dvdlesher said:
Um, sorry if this sounds annoyingly silly, but if I do factory reset on my Nexus 5, will that delete all of my pictures, PDF document, videos, music, etc2?
I am aware that the app will be wiped clean like how the phone is first received, but I'm not sure if factory reset will also delete all of my stuffs I mentioned above.
I got stuck in boot because I think I have too much app on my phone.
Click to expand...
Click to collapse
Yes it will
Sent from my Nexus 9 using XDA Free mobile app
Hello,
something went wrong during my Update from 7.1.0 (Europe, NDE63U, Nov 2016) to 7.1.1 (NMF26O, Dec 2016). My System UI behaves cracy. Examples:
- click on the Multitask Button doesn't pop up recent apps, does actually nothing
- long click on home shows the assistant icon but nothing happens
- I don't get any notification (Mail, SMS, Telegram, ...) nothing
- if I pull down to the notifications and quick settings I can change WLAN and BT.
-- if I click on Mobile Data it is always off although I seem to be connected.
-- if I clicked on mobile data quick tile and close / reopen the notifications area I still see the mobile data view
-- I can't pull down the notifications again to get the bigger setting toggles
- I tried Google Pixel Launcher as well as the Microsoft Arrow Launcher, both the same
Else the system behaves OK, I can start all Apps, they behave normally. Also the new dt2w or l2w work.
How can I reset my System UI without resetting the whole phone? I am bootloader unlocked and rooted (v2.78 SR3 without TWRP installed).
Thank you very much!
KobiP
Last the story how I reached that state:
- I updated from 7.1.0 to 7.1.1 by flasing the imgs manually. Something went wrong and I got stuck in a bootloop
- reflashed 7.1.1 again. This time it booted but I got a message that something is wrong and I should contact the vendor. I could not get any mobile connection, WIFI was working
- Nothing except reflashing 7.1.0 helped. With 7.1.0 I got already the behaviour described above
- Flashed again the 7.1.1 with the flash-all.bat (removed the -w parameter to keep my data). This time I could boot 7.1.1 and get cellular connection, no error message appeared. But still the cracy behaviour described above.
Get Google firmware package and flash all . You can chase your tail or spend 15 min to properly flash.
Sent from my Pixel using Tapatalk
maulich said:
Get Google firmware package and flash all . You can chase your tail or spend 15 min to properly flash.
Sent from my Pixel using Tapatalk
Click to expand...
Click to collapse
Hey,
I have used the flash all bat without the "-w" flag. Thats how I could get 7.1.1 running with the Cellular connection. Still cracy System UI behaviour.
This is slightly off topic, bit I'm going to throw it in here anyway.
I'm dual booting, stock with elementalX kernel on slot_a, rooted on slot_b. I have been using the altered flash all scripts in post 2 or3. It never works. The initial firing flashes only the bootloader and the radio, I have to copy the update command section from the .bat file and paste.it manually into fastboot for the system and vendor to update.
I don't know if others may have been copying the scripts and altering them to their own needs, but the final step in the batch file has never worked for me as is.
dtrud0h said:
This is slightly off topic, bit I'm going to throw it in here anyway.
I'm dual booting, stock with elementalX kernel on slot_a, rooted on slot_b. I have been using the altered flash all scripts in post 2 or3. It never works. The initial firing flashes only the bootloader and the radio, I have to copy the update command section from the .bat file and paste.it manually into fastboot for the system and vendor to update.
I don't know if others may have been copying the scripts and altering them to their own needs, but the final step in the batch file has never worked for me as is.
Click to expand...
Click to collapse
Hey,
you are using Linux? I could just run the script in Windows Batch and it was working smooth.
To fix the Issue I tried to clear the Data of the System UI, Settings, Google and loads of other Google Apps. Nothing helped. Then I realised that I could not even reach my Data via USB as I could not see the Notification where I can change between charging and data mode. So I made a Titanium Backup to Google Drive and reset my phone with the original flash-all.bat Script (with -w Parameter). It was working smooth, now my phone is reset and thanks to Titanium I have most of my stuff back.
Cheers