[Q] Deleted System Apps - Defy Q&A, Help & Troubleshooting

Hello,
I was recently mucking around with custom recoveries on my Motorola Defy Mini XT320, and deleted some system applications to make some room on the /system directory. Unfortunately, one of those apps was the standard Clock app that came with the phone, and I'd become quite attached to that widget.
I was wondering, is there any way to restore deleted system apps/widgets after they've been deleted from the /system directory?
Cheers,
Welshie

Ext undelete
Undeletion on Ext3/Ext4 filesystem (the one your phone use) is not a trivial task and AFAIK there is nothing like this in recovery. You may always reflash your phone with the same version of the system formware you already have. This should not harm your data. Try do just wipe cache and Dalvik cache. Do not do factory reset, as it deletes /data where all the updates and personal data are. Also don't go between Slim/CM/Stock firmware as they probably have different partition layout so you loose your data anyway. So do nandroid backum in recovery first (your data, not the system). Then flash. You may restore your data then. Next time, do nandroid backup (in recovery) of the system before you make changes

Related

[Q] Will a factory reset or flashing a ROM erase my EMMC-files?

I'm thinking about wiping my Nook since I can't get WiFisleep to work anymore. But what will happen to all my books and comics stored on the EMMC then? I'm running cyanogen 7 from the internal memory with no traces of BN(the first thing you get when you boot is a small cyanogen logo). Do I have to back all those files up?
If you wipe data and Dalvik you most likely lose those files (depending on where you have stored this files to save). I would suggest backing them up to your uSD to be safe for now.
skeeterpro said:
If you wipe data and Dalvik you most likely lose those files (depending on where you have stored this files to save). I would suggest backing them up to your uSD to be safe for now.
Click to expand...
Click to collapse
Wiping Davlik will not delete those files. I wipe it every time I upgrade to a higher nightly. In fact, it is all that I wipe. The real question is will an update or reflash solve the problem? If it were me, I would flash an update using ROM Manager, wiping Davlik and including gaaps in the update. If that does not solve the issue I would then start from scratch since a system wipe will be needed. However, backing up the apps first using Titanium Backup (but not system settings) will get you back after the new flash.
pat is right, wipe Dalvik doesn't touch files but skeeter also right as wipe /data, everything most likely gone with the wind
votinh said:
pat is right, wipe Dalvik doesn't touch files but skeeter also right as wipe /data, everything most likely gone with the wind
Click to expand...
Click to collapse
Wiping /data will indeed wipe all downloaded applications and their associated settings but I think the OP is referring to media files stored on the emmc partition and this will not be touched by a data, system or cache wipe, just like SD card contents won't be touched.
I store some basic media files on internal emmc making use of about 4GB spare capacity. This gets scanned as well as the stuff stored on SD.

[REF] CWM - Clockworkmode menu options & Partitions– GENERAL KNOWLEDGE

Hi mates,
When we are flashing a Custom Rom from the CWM, we are normally instructed by the Devs only to do few steps on CWM like “Wipe Data/Factory Data Reset, Wipe Cache etc.. which we simply follow, but most of the people don’t know, including me, what these options and many other options of CWM are really standing for.
When I googled, I could not find a thread which explains about these options in a single thread, so I would like to share with my friends about what I found the Common Options of the CWM here...
Obviously these are commonly applicable for all the devices which are having CWM, but I am always concern about my favorite Galaxy S II.
People who are completely new to Recovery and these options, I suggest them to read this thread first and give a thanks to it's author.
What Is Recovery & Download Mode?
The oder and segregation of the below items in the CWM menu may vary or some of them may be removed in different custom recoveries designed by respective Developer.
CLOCKWORKMODE BASED RECOVERY MENU
1) Reboot Menu :
reboot system now
This one is self-explanatory.
2) Install Menu :
choose zip from (internal/ external) sdcard /
Lets you install any zip file (with any name) from any location on your SD card. The file can be for a ROM, a kernel, an application, a theme or any mod as long as it is in recovery-flashable zip format.
apply /sdcard/update.zip
This one is essentially the same as the ‘apply update from sdcard’ option of the main menu. widely used option for installing a ROM that you have downloaded and copied to your SD card. Entering this option will bring up a screen that will allow you to browse your SD card for the zip file.
apply update from sdcard
This can be used for installation of any official or unofficial update, ROM, kernel, theme etc. that is in a zip format installable from recovery, as long as the file is named update.zip and it has been placed on the root of your SD card (i.e. not in any sub-folder). Selecting this option will bring up a rather annoying confirmation prompt but this has saved us on multiple occasions from a lot of trouble we would have been into due to accidental key presses.
toggle signature verification
Turns the signature verification on and off. When signature verification is on, you will not be able to install any custom ROMs that haven’t been signed by the developers (most custom ROMs aren’t signed). Switching it off skips the signature verification check and proceeds with the installation.
toggle script asserts
Seldom-used option for a vast majority of users. It simply turns script asserts on or off. If you don’t know about these (I don’t), it’s best not to change this option.
3) Wipe Menu
wipe data/factory reset
This option wipes all user data on the device as well as cache. Doing this will leave your phone in the state it was in when you bought it or when any custom ROM was first installed. It will also wipe any sd-ext partition that you might have setup. (see more about sd-ext below under partition)
wipe cache partition
This is a good practice to do this before flashing any ROM. The /cache partition just stores temporary files that are not critical to device operation and can be re-generated easily, this Wipes the cache partition of the device to clear all the data accumulated there over use. This is often used before installing a new ROM, app, kernel or any similar mod via recovery.
Wipe Dalvik Cache
Allows you to wipe the cache for the Dalvik virtual machine. The dalvik cache wipe is quite similar to cache wipe but it stores the post ran java applications. Since Android is JAVA based, it uses the same java virtual machine for compiling. The dalvik cache just stores post-compiled applications in order to speed up the system. Wiping this just forces the system to re-cache those application. It causes no problems but a slight hint of lag on first boot. This is required before most ROM installations and at other occasions too, for fixing some problems.
Wipe Battery Stats
Wipes the saved battery usage statistics and effectively recalibrates the battery. Useful in various scenarios when Android isn’t showing correct battery levels.
4) Nandroid menu
backup and restore Undoubtedly one of the most important features provided by a custom recovery, the backup and restore feature – also known as Nandroid backup – allows you to take a snapshot of your phone’s entire internal memory including all partitions, and save it on the SD card.
Backup
Takes a Nandroid backup, as explained above.
Restore
Lets you restore a previously taken backup. Entering this option presents you with a list of existing backups from the SD card that you can choose from for restoration.
Advanced Restore (new options are available separately to restore from external or internal SDcard in the latest CWM)
This option is similar to the Restore option but once a backup has been selected to be restored, this option allows you to choose what parts of it to restore. You can choose to restore the boot, system, data, cache and sd-ext partitions.
5) Storage menu
mounts and storage
Allows you to perform maintenance tasks on all the internal and external partitions of your android device
mount/unmount /system, /data, /cache, /sdcard, /emmc.
These options let you toggle between mounting or unmounting these respective partitions. Most users don’t need to change these options.
format system, data, cache, sdcard or sd-ext
These let you directly format any of these partitions. Take extreme care with this option as formatting any of these partitions will result in losing all data on them, especially the boot and system partitions. Formatting the system partition will remove your ROM and leave your phone without an operating system while wiping the boot partition may brick your phone unless you restore or flash another one before rebooting your device. See below more explanation about these partitions.
mount USB storage
Lets you enable USB mass storage mode for your SD card right from recovery so that you can connect it to your computer via USB and transfer any files to/from it without having to leave recovery.
6) Advanced
This section contains a few options most users will not require, Here are the options from this section:
Report Error
In case of errors, this feature can be used to save a log of recent ClockworkMod recovery operations on the SD card that you can later report from Android using ROM Manager.
Key Test
Lets you press any of the hardware keys to see if they are properly functioning, and to see their key codes.
Partition SD Card
This option gives you a no-frills way to partition your SD card properly for use with ROMs that support data2ext (a very handy hack for low internal memory devices that enables an /sd-ext partition on the SD card to be used as the internal user data storage i.e. as the /data partition). Once this option is selected, you will be given options to choose the sizes for the /sd-ext partition as well as an optional /swap partition on the SD card, and will then automatically format it for you, leaving the remaining space for normal SD card usage. This option will wipe all data from your SD card so use it with caution!
Fix Permissions
Fixes the file permissions for the internal memory partitions back to default. This is very useful as a fix for several errors and Force-Closes that start appearing after you or an application you installed and provided root access end up messing up the permissions of important files.
PARTITIONS :
The Android uses several partitions to organize files and folders on the device. Each of these partitions has a distinct role in the functionality of the device, but not many Android users know the significance of each partition and its contents. In this guide, we will take you on a tour of Android partitions, what they contain and what can be the possible consequences of modifying their content.
Let’s start with a list of standard internal memory partitions on Android phones and tablets. These are:
• /boot
• /system
• /recovery
• /data
• /cache
• /misc
In addition, there are the SD card partitions.
• /sdcard
• /sd-ext
Note that only /sdcard is found in all Android devices and the rest are present only in select devices. Let’s now take a look at the purpose and contents of each of these partitions.
/boot
This is the partition that enables the phone to boot, as the name suggests. It includes the bootloader and the kernel. Without this partition, the device will simply not be able to boot. Wiping this partition from recovery should only be done if absolutely required and once done, the device must NOT be rebooted before installing a new one, which can be done by installing a ROM that includes a /boot partition.
/system
This partition basically contains the entire operating system, other than the kernel and the bootloader. This includes the Android user interface as well as all the system applications that come pre-installed on the device. Wiping this partition will remove Android from the device without rendering it unbootable, and you will still be able to put the phone into recovery or bootloader mode to install a new ROM.
/recovery
The recovery partition can be considered as an alternative boot partition that lets you boot the device into a recovery console for performing advanced recovery and maintenance operations on it. We have already learnt about this partition and its contents above.
/data
Also called userdata, the data partition contains the user’s data – this is where your contacts, messages, settings and apps that you have installed go. Wiping this partition essentially performs a factory reset on your device, restoring it to the way it was when you first booted it, or the way it was after the last official or custom ROM installation. When you perform a wipe data/factory reset from recovery, it is this partition that you are wiping.
/cache
This is the partition where Android stores frequently accessed data and app components. Wiping the cache doesn’t effect your personal data but simply gets rid of the existing data there, which gets automatically rebuilt as you continue using the device.
/misc
This partition contains miscellaneous system settings in form of on/off switches. These settings may include CID (Carrier or Region ID), USB configuration and certain hardware settings etc. This is an important partition and if it is corrupt or missing, several of the device’s features will will not function normally.
/sdcard
This is not a partition on the internal memory of the device but rather the SD card. In terms of usage, this is your storage space to use as you see fit, to store your media, documents, ROMs etc. on it. Wiping it is perfectly safe as long as you backup all the data you require from it, to your computer first. Though several user-installed apps save their data and settings on the SD card and wiping this partition will make you lose all that data.
On devices with both an internal and an external SD card – devices like the Samsung Galaxy SII – the /sdcard partition is always used to refer to the internal SD card. For the external SD card – if present – an alternative partition is used, which differs from device to device. In case of Samsung Galaxy S series devices, it is /sdcard/External_sd while in many other devices, it is /sdcard2. Unlike /sdcard, no system or app data whatsoever is stored automatically on this external SD card and everything present on it has been added there by the user. You can safely wipe it after backing up any data from it that you need to save.
/sd-ext
This is not a standard Android partition, but has become popular in the custom ROM scene. It is basically an additional partition on your SD card that acts as the /data partition when used with certain ROMs that have special features called APP2SD+ or data2ext enabled. It is especially useful on devices with little internal memory allotted to the /data partition. Thus, users who want to install more programs than the internal memory allows can make this partition and use it with a custom ROM that supports this feature, to get additional storage for installing their apps. Wiping this partition is essentially the same as wiping the /data partition – you lose your contacts, SMS, market apps and settings.
Now whenever we install a ROM or mod that requires we to wipe certain partitions before the installation, we should be in a better position to know what we are losing and what not and thus, we’ll know what to backup and what not.
Best Regards
http://forum.xda-developers.com/showthread.php?t=1134290
Yep. Been done before a long time ago. Tho I do admire your initiative in putting the info together
Stifler69 said:
http://forum.xda-developers.com/showthread.php?t=1134290
Click to expand...
Click to collapse
No Doubt this one should be on the top of this thread,
What a simple and awesome explanation about the Recovery & Download mode, many thanks to pulser_g2
I know, majority of users only need the simple steps and shortcuts, they don’t care what’s happening internally and theoretically, but some are really curious to know…
Many thanks mate....
zaheedahmed said:
No Doubt this one should be on the top of this thread,
What a simple and awesome explanation about the Recovery & Download mode, many thanks to pulser_g2
I know, majority of users only need the simple steps and shortcuts, they don’t care what’s happening internally and theoretically, but some are really curious to know…
Many thanks mate....
Click to expand...
Click to collapse
Nah mate you do what you have to do. It is a good thread and provides good information. Nice work. Just wanted to show you Pulsers thread as well though because he has done something similar to yours long time ago..But anyway good work and if you need any help let me know
Thanks, will save later text in PDF and keep it on PC just to have one more tutorial about things
Awesome write up!! Brilliant!
As you are so knowledgeable about CWM, perhaps I can ask you a question?
When I do a backup, it says that no external SD card was found, so it skipped the external?
When I check under mounts, the only option for the external SD card is to UNmount.... This would suggest that the card is mounted, correct?
So how would I go about backing up the external card too?
Thanks!
Sent from my SGH-I727R using xda premium
Question, if i do nandroid backhp through CWM, i suppose it saves files that i dl such as apps/games, or i need to download later again 600mb+?
Sent by powaaaaah of GT-I9100 Taparatatatalk!
shaggyskunk said:
Awesome write up!! Brilliant!
As you are so knowledgeable about CWM, perhaps I can ask you a question?
When I do a backup, it says that no external SD card was found, so it skipped the external?
When I check under mounts, the only option for the external SD card is to UNmount.... This would suggest that the card is mounted, correct?
So how would I go about backing up the external card too?
Thanks!
Sent from my SGH-I727R using xda premium
Click to expand...
Click to collapse
Thank you for your appreciation,
I would like to express once again as I mentioned in the starting of the thread that this is only a humble effort of the undersigne that I searched for such information and combined at one place here....
As far as I know about your problem of SD card storage, this is a compatibility issiue which varries on one custom recovery to another, also one SD card to another. such issues are fixed by developers in their latest versions of recoveries.
I experienced once the same issue which was resolved when I changed my SD card.
And my current (touch) recovery of Redpill v1.3 allows me to Backup and restore from external SD card with all available options flowlessly.
Thanks
X-Plosiv said:
Question, if i do nandroid backhp through CWM, i suppose it saves files that i dl such as apps/games, or i need to download later again 600mb+?
Sent by powaaaaah of GT-I9100 Taparatatatalk!
Click to expand...
Click to collapse
Between CWM & Titanium, you should not have to download anything.
Sent From my Two Tin Cans & String Device on The Wookie Network
X-Plosiv said:
Question, if i do nandroid backhp through CWM, i suppose it saves files that i dl such as apps/games, or i need to download later again 600mb+?
Sent by powaaaaah of GT-I9100 Taparatatatalk!
Click to expand...
Click to collapse
Of course it backs up all your installed apps and system data along with the ROM, but it do not back up the additional data which is downloaded and stored in User's partition of your SD card by the applications, such data will remain on your SD card untill you format it, available to support your apps when you return to the previous ROM.
awsome eplanation
as above posts say awsome explinationculdnt b clearer now then all
zaheedahmed said:
Of course it backs up all your installed apps and system data along with the ROM, but it do not back up the additional data which is downloaded and stored in User's partition of your SD card by the applications, such data will remain on your SD card untill you format it, available to support your apps when you return to the previous ROM.
Click to expand...
Click to collapse
Yes, but when I do format/wipe all, I guess then it deletes all that is on SD card as well, such as game files and music? If so, I'd rather just copy paste it on my PC, then after doing all wipes and formats, just copy back from PC
Zaheed, you are far too humble! Your post was brilliant, informative & timely.
Sent From my Two Tin Cans & String Device on The Wookie Network
X-Plosiv said:
Yes, but when I do format/wipe all, I guess then it deletes all that is on SD card as well, such as game files and music? If so, I'd rather just copy paste it on my PC, then after doing all wipes and formats, just copy back from PC
Click to expand...
Click to collapse
When you do normal wipes (data/ factory reset, cache, dalvik) before installing/restoring ROM, it won't touch any data which is saved in your SD Card normally, but it is more safer if you back such application data to you PC which normally find in a folder "Android/ Data /xxx" in the root of SDcard
Thanks for info.
I have read a lot on this but am still nor clear whether a wipe data/factory reset includes a full cache wipe. Most rom install instructions tell you to do both, but it seems a wipe cache is redundant if you factory reset.
SimboXXX said:
Thanks for info.
I have read a lot on this but am still nor clear whether a wipe data/factory reset includes a full cache wipe. Most rom install instructions tell you to do both, but it seems a wipe cache is redundant if you factory reset.
Click to expand...
Click to collapse
Yes, you are right, I also understand the same, but the option for merely wiping cache is kept for using in some odd situations, like when we fingered to the ROM and got some error, then we got a no-wipe version of the existing ROM to reflash, such case we need only to wipe cache…. I have got an error recently on CWM when I reflashed my no-wipe Checkrom v6 without wiping anything, then I wiped only cache, problem solved…..
what ever may be the theory, do as the developers directed for their ROM…..NO RISK
shaggyskunk said:
Zaheed, you are far too humble! Your post was brilliant, informative & timely.
Sent From my Two Tin Cans & String Device on The Wookie Network
Click to expand...
Click to collapse
thanks mate...
Thanks for the thread, you can never know too much. On second thoughts, there's probably no danger of that.
What would be really good if you have the knowledge, is a detailed guide on CWM Edify scripting. I'm sure many people would find that useful, especially me. There doesn't seem to be a lot of good guides or information on the language, at least I can't find them yet. If you have any good links I'd definitely appreciate it as well.
Here's another bit of information, that answered a question I had....
In case anyone else has this question...
Here is the answer from:
http://android.stackexchange.com/qu...ter-no-sd-ext-found-skipping-backup-of-sd-ext
" This means you do not have an ext3/4 partition on your sdcard. This really ins't a big deal, this is like a legacy part of the nandroid backup process. CM doesn't "officially" support the sd-ext partition any more anyhow."
Hope it helps someone else... In the end, the answer is pretty straight forward.
Sent From my Two Tin Cans & String Device on The Wookie Network
Sent from Down The Rabbit Hole, using Tapatalk 2

How do I keep the backup of my apps when clearing data for a new rom?

Every time I clear the device to flash a new rom once the new rom is up, my Titanium backup of all the apps is gone. It's a huuuuuuge pain to keep installing apps one by one each time.
Titanium Backup is one way.
buffnutz1 said:
Every time I clear the device to flash a new rom once the new rom is up, my Titanium backup of all the apps is gone. It's a huuuuuuge pain to keep installing apps one by one each time.
Click to expand...
Click to collapse
Copying the backup folder to an otg usb stick, then copying back afterwards is one way to do it...
Sent from my Nexus 4 using xda premium
buffnutz1 said:
Every time I clear the device to flash a new rom once the new rom is up, my Titanium backup of all the apps is gone. It's a huuuuuuge pain to keep installing apps one by one each time.
Click to expand...
Click to collapse
Are you using TWRP, if so then...
In the latest version of TWRP for the nexus 4/7/10
(note that /sdcard is really /data/media in Android 4.x)
1. TWRP option to factory reset does NOT wipe /data/media (where photos, titanium backups etc are stored)
It does wipe /data (where apps are installed).
A factory reset from within the stock ROM does wipe /data/media and /data and leaves just /system (ROM) intact.
I would say that is a bit confusing to the end user as a factory reset can mean different things in this case.
2. TWRP option to wipe internal storage ONLY wipes /data/media (this will include all sub directories inc multiuser subdirs).
3. TWRP option to 'format data' wipes/formats /data and /data/media (so it ends up like it would after a stock ROM factory reset)
4. TWRP option to wipe system ONLY wipes /system (ie the actual ROM).
I would guess if anyone has had TWRP wipte /data/media when chosing the TWRP factory reset option then its maybe a bug at an older level.
The above is all much better explained in the links provided by an earlier posters, ie
http://teamw.in/whattowipe
http://teamw.in/DataMedia

[Q] How the backup works?

Hi, I'm new to the android world. I read some tutorials about rooting switching custom roms and stuff, but one thing is not clear enogh.
If I'm using teamwin recovery and backing up the phone, where the backup is actually saved? How is that when I'm wiping the device the backup is not deleted with the other files on the device?
If I'm checking the data box and cache box what it saves?
Sorry for bad english..
Thanks!!
In recovery mode you will see " backup " and restore " , backup will create a save of your phone , in case you brick it or had a bad flash you can restore everything ( data , system... )
Sent from my GT-I9505 using XDA Free mobile app
/system is where the ROM is installed. You want to wipe that when installing ROMs.
/data if where apps you install from the Play Store are kept, and where your apps keep their data and settings and whatnot. If you don't wipe this when installing a newer version of the same ROM, then all your apps and data are kept. This is called a "dirty flash".
/cache is where apps and the Dalvik VM keep things temporarily to speed things up later. You can wipe this at any time without causing issues.
/sdcard is the "internal storage" for the user. This is where your camera stores it's pictures, where your media player stores music, where your downloads are kept. This is your storage. When installing ROMs, do *NOT* wipe this! If you do wipe it, you won't be able to install anything as there will be no files to read from!
/ext-sd is s folder that represents an external Micro SD card, if your phone supports that feature. Works similar to /sdcard.
So, to do a "clean install" or a "full wipe", you format /system, /data, and /cache.
To do a "dirty flash" you format just /system and /cache.
Typos courtesy of my Liquified LG G2 (D803).

Android 5.1.1 apps writing data no longer allowed

Hello everyone. . .
I realized by chance that for several months some apps do not write more of their data in the space reserved for them as Android. In detail of the problem that will just two applications happens that:
- Titanium Backup, backing up all user apps a pop-up states that there is not enough space in the device to write the data, even if it is just over 100 MB when the remaining space available is several GB
- Backup Partition, during the IMEI rescue and EFS nothing says, then if I go in the default folder in which I should find up (modem, modemst1, modemst2), the folder is empty.
Yesterday I made a full wipe (cache, system, Dalvik / ART cache, date) and clean re-installation of the official firmware via TWRP 3.0.0.2. After restoring from scratch apps from playstore The problem persists.
It seems that Android does not allow the writing of these data, but at this point, would cease the usefulness of most applications.
If there is an error, which can be?

Categories

Resources