[Guide] Survivng a Data Wipe / Update (Reduces Force Closes, too!) - G1 Android Development

Alright, this is a guide for everyone who has come to me saying "When I update, XXX.apk force closes" or "I hate doing a wipe every time I update"
What you will need:
Computer
Backup for Root Users
Google Account
SD Card
( Yes, this is written for idiots, )
What to do:
Power on your phone
Sync your google account
Run Backup for root users
Perform a data backup (first option)
Upon completion connect the phone to PC
Mount the sd card and open BackupRoot/data
delete everything related to the system
This is providers folders, htc.android folders, anything that isn't related to an app that you have installed
You should be left with just your program folders
These are things like nl.rogro.GScriptFull, and other INSTALLED programs
Do the update, wipe your phone, ect. (Whatever you had to do)
Run Backup for root users after opening any apps that have a EULA
These are things such as "Welcome, this program does some stuff" that appear when you first start the app and prevent data from being written until they have been accepted in full
Choose Restore Data (the option to the right of the first one you used)
Sync Google account
Congratulations, you have restored.
Now Backup for Root Users is a great app, but many people do not realize that when you back up all of your data, things like calendar and Mms may be different versions. Unlike installed apps that are meant to accept data from different versions of the same app, these programs may carry the same name but may read data differently. Things like calendar do not transport well, but by syncing your account you prevent losing anything because it is all reloaded by the sync.
Note: You will lose settings for Settings and Home Screen. These cannot be prevented and are the MOST COMMON cause of issue because the code for Launcher, Rosie, and the System are CONSTANTLY being changed. It's a small price to pay...

Great Advice!!! Thanks!

nice...added to thread index

LOL! My App in a guide on xda! LOL Again! XD

blackgin said:
LOL! My App in a guide on xda! LOL Again! XD
Click to expand...
Click to collapse
Ah, so you're the person behind this great app.
do you happen to have a thread/blog that explains what some of these backups do? I have a bit of a hard time decyphering some of them.

Correct me if i'm wrong regarding your tutorial twistedumbrella.
If the users are running apps2sd, shouldn't they run the second option of the backup "Backup Data2sd"?

As you requested I published an info page on my blog:
http://blackgins.wordpress.com/what-dobackup-for-root/

blackgin said:
LOL! My App in a guide on xda! LOL Again! XD
Click to expand...
Click to collapse
your app can't be pimped enough!

thanks for the tip and good job blackgin for creating this app.

blackgin said:
LOL! My App in a guide on xda! LOL Again! XD
Click to expand...
Click to collapse
Slightly off topic I suppose, but could you [Blackgin] give us an option when using your program (as I do) to automatically backup only the Application Data that Twisted mentions above. That would save us the step of going in and deleting all that other stuff. You could call it "Pre-Wipe Backup" or something.

stellarman said:
Slightly off topic I suppose, but could you [Blackgin] give us an option when using your program (as I do) to automatically backup only the Application Data that Twisted mentions above. That would save us the step of going in and deleting all that other stuff. You could call it "Pre-Wipe Backup" or something.
Click to expand...
Click to collapse
Easier said than done. You either have to index all apps and backup relative to that list (data is often a different name than the app) or index the system and skip that data (again variable by build). Honestly it would be a little too complicated unless you have set data lists just due to the variable nature of app name to data location.

Here is 1 more addition:
suppose u r gona have a wipe & dont want to do google account sign in again but want it to be automatically signed-in @ the first boot after updating,
Grab the attachment, extract & run bat file
It will backup google account database & will restore database:
Note: Backup When Phone Is running Means not in recovery mode
&
Restore after Updating/Wiping But in Recovery Mode Even restoring as soon as u update will do....

twistedumbrella said:
Easier said than done. You either have to index all apps and backup relative to that list (data is often a different name than the app) or index the system and skip that data (again variable by build). Honestly it would be a little too complicated unless you have set data lists just due to the variable nature of app name to data location.
Click to expand...
Click to collapse
Maybe it isn't so difficult, I'm trying..
EDIT: Done

So if I am on a build using aps2SD, I choose that option right? The first time nothing backed up/restored properly

For me on cyanogen build, it works also the normal apk backup..

I backed up my sms while using Cyanogen 3.4.6, and i just flash JACHero, can I restore those SMS or will I run into some errors?

twistedumbrella said:
......
Run Backup for root users
Perform a data backup (first option)
....
......
Run Backup for root users after opening any apps that have a EULA
These are things such as "Welcome, this program does some stuff" that appear when you first start the app and prevent data from being written until they have been accepted in full
Choose Restore Data (the option to the right of the first one you used)
.......
Click to expand...
Click to collapse
What options are there?
These are the options, see the images
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

It depends on what you are using (app2sd or not) and what you want to backup..
If you want to backup data without system one, chose data-sys (or that for app2sd).. If you want a full data backup chose backup data (or that for app2sd)

Backup for root users doesn't work for me.
When I start the application the first time I click on always allow permission.
Then I click on any buttons to save and nothing.
Just a message very fast "Performing Backup..."
On SD there is a directory "BackupRoot" and inside 2 Directories "dataNoSys" and "sd".
any idea?
I'm on custom ION r1

new release
Hi everybody,
Today I ve found a upgrade of BackupForRoot!
Always better! Good work Blackgin

Related

[Q] Unninstalled some system aplications by accident in Android

Hello, i have rooted my Samsung Galaxy Ace (S5830) mainly with the purpose of removing the tons of bloatware my operator so kindly put on my phone.
So yesterday downloaded Titanium backup, and did the backup and removed the following applications:
Code:
- All posts 1.0
- All Share 1.1.0
- Apoio a Cliente 1.0 (Custumer support)
- Google Talk 1.3
- Music Shop 5.0.15
- Social Hub 1.00.10.101
- Thinkfree Office 2.0.110222
The problem with unninstalling this was that a few system applications got unninstalled aswell, and even after recuperating all of the above programs with my backup they appear as uninstalled:
Code:
- com.android.audioTuning
- com.broadcom.bt.app
- com.sec.android.appGpsSetup2
- com.sec.android.app.samsungapps.una
- com.sec.app.OmaCP
- com.wipereceiver
- pl.com.samsung
My questions are as follow:
1) Is any of the files that got unninstalled accidentally important? And if so, how can i recuperate them.
2) How do i know exactly what i am unnisntaling in the future so i dont get any more surprises
Thank you in advance,
dpkPT
if any of your Frnds are using the same mobile with same os . First root that. Mobile and install titanium backup pro From black mart. And backup all the things you unfortunately deleted and send that backup files to your mobile via bluetooth and you also install that titanium backup pro . If you install titanium backup pro a folder will be created and move that files to that folder and install it . To solve this in future backup all the items using titanium backup pro
Sent from my GT-S5360 using xda app-developers app
i had thought of getting those files of some other phone. But the only friend that also has an Ace is a diferent model (s5839i wich uses andrid 2.3.6) than mine ( s5830 android 2.3.5). Will the files be compatible?
anyone?
I wouldn't install system files from a different version. You can hunt around and try to find a factory image for your model and use Odin to flash it. Then, start from scratch. Or, if there are any custom ROM's available for your phone, flash that and you won't have to worry about the system files. Rule of thumb for next time..if you don't know what it is, you probably shouldn't delete it!
In addition to that. One of the beauty things with Titanium Backup Pro is that you can "Freeze" apps to see if there is any detrimental effects by not having the run. If so, then you can "defrost" them. When in doubt, don't uninstall no matter how much you think it is bloat.
I am asking another RC to come in here that owns an Ace and see if he can help you. Could take a little time as he is on the other side of the world from me.
lowandbehold said:
I wouldn't install system files from a different version. You can hunt around and try to find a factory image for your model and use Odin to flash it. Then, start from scratch. Or, if there are any custom ROM's available for your phone, flash that and you won't have to worry about the system files. Rule of thumb for next time..if you don't know what it is, you probably shouldn't delete it!
Click to expand...
Click to collapse
I thought uninstalling bloatware was the same as unninstalling a normal aplication. I didnt unninstall anything i didnt know what it was, it just happened that those processes got unninstaled togheder with the bloatware without me even noticing. It would be nice if titanium backup would tell me all that is being unninstaled, so i dont get another surprise like this. Example: " You are unninstalling Crap Bloatware v2.0. Be warned that along with this the following processes will be unninstalled aswell: com.importantsystemthing, com.sec.blabla. Are you sure you want to continue?"
Woodrube said:
In addition to that. One of the beauty things with Titanium Backup Pro is that you can "Freeze" apps to see if there is any detrimental effects by not having the run. If so, then you can "defrost" them. When in doubt, don't uninstall no matter how much you think it is bloat.
I am asking another RC to come in here that owns an Ace and see if he can help you. Could take a little time as he is on the other side of the world from me.
Click to expand...
Click to collapse
Couldnt install titanium backup pro yet. Tells me my key is invalid.
Kinda learned my lesson. Leaving the rest of the bloatware in the phone. (Still get annoyed every time i look at it though ) Thanks! No prob with the time, so far i havent noticed any problem in my Ace from the lack of those processes.
dpkPT said:
I thought uninstalling bloatware was the same as unninstalling a normal aplication. I didnt unninstall anything i didnt know what it was, it just happened that those processes got unninstaled togheder with the bloatware without me even noticing. It would be nice if titanium backup would tell me all that is being unninstaled, so i dont get another surprise like this. Example: " You are unninstalling Crap Bloatware v2.0. Be warned that along with this the following processes will be unninstalled aswell: com.importantsystemthing, com.sec.blabla. Are you sure you want to continue?"
Couldnt install titanium backup pro yet. Tells me my key is invalid.
Kinda learned my lesson. Leaving the rest of the bloatware in the phone. (Still get annoyed every time i look at it though ) Thanks! No prob with the time, so far i havent noticed any problem in my Ace from the lack of those processes.
Click to expand...
Click to collapse
Hmm..I have never had issues with TB uninstalling anything that I didn't select. Just out of curiousity...what makes you think it is uninstalled?
dpkPT said:
Hello, i have rooted my Samsung Galaxy Ace (S5830) mainly with the purpose of removing the tons of bloatware my operator so kindly put on my phone.
So yesterday downloaded Titanium backup, and did the backup and removed the following applications:
Code:
- All posts 1.0
- All Share 1.1.0
- Apoio a Cliente 1.0 (Custumer support)
- Google Talk 1.3
- Music Shop 5.0.15
- Social Hub 1.00.10.101
- Thinkfree Office 2.0.110222
The problem with unninstalling this was that a few system applications got unninstalled aswell, and even after recuperating all of the above programs with my backup they appear as uninstalled:
Code:
- com.android.audioTuning
- com.broadcom.bt.app
- com.sec.android.appGpsSetup2
- com.sec.android.app.samsungapps.una
- com.sec.app.OmaCP
- com.wipereceiver
- pl.com.samsung
My questions are as follow:
1) Is any of the files that got unninstalled accidentally important? And if so, how can i recuperate them.
2) How do i know exactly what i am unnisntaling in the future so i dont get any more surprises
Thank you in advance,
dpkPT
Click to expand...
Click to collapse
1. It doesn't seem like your device is the ace. It must be the i version of the ace. Because i can see the com.broadcom.bt app in it. Broadcom hardware is present only in the 'i' variant.
2. Yes you have deleted some system apps like OmaPC server.
Now all what you can do is
1. Check the label below the battery for the correct version of your device.
2. I guess it will be the ace i. So download a stock firmware from sammobile.com
3. Flash it using odin. There are tons of guides the flashing process.
Just Google it.
Hope this helps. Incase you need more help and i fail to reply to this thread, pm me.
___________XDA Premium__________
Don't be a noob. Be a newbie..!!
Details here.
____________________________________
____________________________________
Titanium doesn't usually uninstall any extra apps that you haven't selected...weird that it did so for you
Anyways, if your phone starts acting weird, you could flash a stock rom using odin...
Instructions and everything else needed is available in the Galaxy Ace Sub-forums within xda...
lowandbehold said:
Hmm..I have never had issues with TB uninstalling anything that I didn't select. Just out of curiousity...what makes you think it is uninstalled?
Click to expand...
Click to collapse
This:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I only checked the end of the list (where that appeared) after unninstalling the bloatware i mentioned. So i have no idea if it was there before or not, i just assume it wasnt.
shaaan said:
1. It doesn't seem like your device is the ace. It must be the i version of the ace. Because i can see the com.broadcom.bt app in it. Broadcom hardware is present only in the 'i' variant.
2. Yes you have deleted some system apps like OmaPC server.
Now all what you can do is
1. Check the label below the battery for the correct version of your device.
2. I guess it will be the ace i. So download a stock firmware from sammobile.com
3. Flash it using odin. There are tons of guides the flashing process.
Just Google it.
Hope this helps. Incase you need more help and i fail to reply to this thread, pm me.
___________XDA Premium__________
Don't be a noob. Be a newbie..!!
Details here.
____________________________________
____________________________________
Click to expand...
Click to collapse
Rechecked it, still a S5830 Phone says the same:
a.cid said:
Titanium doesn't usually uninstall any extra apps that you haven't selected...weird that it did so for you
Anyways, if your phone starts acting weird, you could flash a stock rom using odin...
Instructions and everything else needed is available in the Galaxy Ace Sub-forums within xda...
Click to expand...
Click to collapse
It was like they "piggybacked" the bloatware and unninstalled with it :|

[Q] Moving from DroidKang to another ROM

Hello, I am quite new to the android scene as I have been an iOS user for quite a few years (No judging please )
Basically, I have DroidKang v10 as my ROM on my phone, and i am trying to switch to cataclysm, or in fact any other ROM, but everytime I change ROM and restore my DATA ONLY backup, I keep getting the "unfortunately com.android.phone has stopped working" or something along the lines of that, my guess is that its something to do with the back up and using different GAPPS,
Am i doing something wrong? any help would be appreciated
joeliomason said:
Hello, I am quite new to the android scene as I have been an iOS user for quite a few years (No judging please )
Basically, I have DroidKang v10 as my ROM on my phone, and i am trying to switch to cataclysm, or in fact any other ROM, but everytime I change ROM and restore my DATA ONLY backup, I keep getting the "unfortunately com.android.phone has stopped working" or something along the lines of that, my guess is that its something to do with the back up and using different GAPPS,
Am i doing something wrong? any help would be appreciated
Click to expand...
Click to collapse
you generally dont want to restore data from one rom to another, especially system spps. by doing so, you should expect issues.
simms22 said:
you generally dont want to restore data from one rom to another, especially system spps. by doing so, you should expect issues.
Click to expand...
Click to collapse
ah thats quite annoying, what if i were to use a different Gapps? am i just being a bit stupid now?? haha
joeliomason said:
ah thats quite annoying, what if i were to use a different Gapps? am i just being a bit stupid now?? haha
Click to expand...
Click to collapse
you can try. if you want data saved/restored, have you tried tbe default google save/restore data? main settings, backup and reset, backup my data..
simms22 said:
you can try. if you want data saved/restored, have you tried tbe default google save/restore data? main settings, backup and reset, backup my data..
Click to expand...
Click to collapse
haha i genuinely didnt know that was there!! ill give it a go and let you know the outcome
simms22 said:
you can try. if you want data saved/restored, have you tried tbe default google save/restore data? main settings, backup and reset, backup my data..
Click to expand...
Click to collapse
just wondering, how do i know when its done a backup? because there is no option or anything.. and what does it actually back up?? :S
joeliomason said:
just wondering, how do i know when its done a backup? because there is no option or anything.. and what does it actually back up?? :S
Click to expand...
Click to collapse
go to the main settings, accounts, google, press the top account(yours), make sure app data is checked, then manually sync it(or look at what time it was synced last. also, go back to backup and reset and make sure that automatic restore is enabled as well. it syncs/restores play store apps data and your system settings.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
lapainm her
simms22 said:
go to the main settings, accounts, google, press the top account(yours), make sure app data is checked, then manually sync it(or look at what time it was synced last. also, go back to backup and reset and make sure that automatic restore is enabled as well. it syncs/restores play store apps data and your system settings.
Click to expand...
Click to collapse
you are absolutely amazing!! I am about to put a new rom on my phone, so i will let you know how everything goes
simms22 said:
go to the main settings, accounts, google, press the top account(yours), make sure app data is checked, then manually sync it(or look at what time it was synced last. also, go back to backup and reset and make sure that automatic restore is enabled as well. it syncs/restores play store apps data and your system settings.
Click to expand...
Click to collapse
it went swimmingly thank you for your help!! everything works perfectly

data linked SD card in a new device, what happens?

Hi All,
I have gone beyond my tech capabilities this w/e to solve my storage/hanging problems by manually rooting my Galaxy Grand Duos and then partitioning the SD card to use Link2SD app effectively. A success!
My question is:-
If I buy a new device and put my SD card in it and restore from a back up (MObile Go - including app data) will all those links to app data/apk/dex still work? May sound silly but I need to know if there's more to the process of getting all my data back than inserting the card in a new phone and restoring from back up? I don't want any complex surprises!
Can anyone enlighten?
TIA
No. On older device usd titanium backup tonbackup all app data on ad card ans then insert the sd card in new phond. Install all apps normally. After doing that all install titanium backup on mew device and restore all titanium backup. After restoring you have all app data from older device to new device and then link data tonsd card using link2sd
Sent from my SM-G355H using XDA Free mobile app
droid_god said:
No. On older device usd titanium backup tonbackup all app data on ad card ans then insert the sd card in new phond. Install all apps normally. After doing that all install titanium backup on mew device and restore all titanium backup. After restoring you have all app data from older device to new device and then link data tonsd card using link2sd
Sent from my SM-G355H using XDA Free mobile app
Click to expand...
Click to collapse
Thank You Droid-God, I did install Titanium BackUp but found it so confusing I immediately un-installed it! It seems every single thing must be backed up separately with this app and I have no idea of knowing what's important and what's not Google searches for how to use it weren't helpful, is there a thread here you could point me to?
TIA
Shola
I will provide you screenshots for how to use it
Now follow in sequence
View attachment 3436384
Press ok and then
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Again press ok then
Tick the square and hit ok
Screen like above will appear and then you havd to go to top middle backup/restore option. You will get screen like below
Just dismiss that and move ahead
As above you will get liat of apps select apps whose data you have n older device. Be shure that app you are going to backup is not linked to sdcard usink link2sd. If its linked plz delink all the linked contents of that data before using titanium backup. Select any app in my case i use ea file ezplorer. Tap n it and screen like this will appear
Go to top and select backup and wait till it backup all data of that app. For checking what it has backuped goto file manager and find titanium backup like this.
These are the backup type for your app in titanium.
Install titanium backup on new device. Copy that whole folder to new device at same location. Install the app on new device before restoring app data. After you have installed app on new device open titanium and search for that app under backup/restore section. Click on that app and follow the pic below
You will have a backup showing in that tab and just click restore. Your data will be restored and after restoring data you can use link2sd on new device to link the data to sd card.
If this long guide helped you pleasd hit thanks.
For any douts
[email protected] is my id
Peace
Thanks so much that's super helpful, a few questions.
I've linked a lot of apps to SD card, so do I have to unlink them all PERMANENTLY to use Titanium Backup?
I don't understand what everything in the list is i.e 'com.sec.android 19082XXUB... etc etc', and many others like that, do I need to back all these things up one by one?
Can I batch back up everything? I don't see an option for this...
Thanks really appreciate your help!
droid_god said:
Now follow in sequence
View attachment 3436384
Press ok and then
View attachment 3436388
Again press ok then
View attachment 3436389
Tick the square and hit ok
View attachment 3436391
Screen like above will appear and then you havd to go to top middle backup/restore option. You will get screen like below
View attachment 3436393
Just dismiss that and move ahead
View attachment 3436394
As above you will get liat of apps select apps whose data you have n older device. Be shure that app you are going to backup is not linked to sdcard usink link2sd. If its linked plz delink all the linked contents of that data before using titanium backup. Select any app in my case i use ea file ezplorer. Tap n it and screen like this will appear
View attachment 3436397
Go to top and select backup and wait till it backup all data of that app. For checking what it has backuped goto file manager and find titanium backup like this.
View attachment 3436399
View attachment 3436400
These are the backup type for your app in titanium.
Install titanium backup on new device. Copy that whole folder to new device at same location. Install the app on new device before restoring app data. After you have installed app on new device open titanium and search for that app under backup/restore section. Click on that app and follow the pic below
View attachment 3436401
You will have a backup showing in that tab and just click restore. Your data will be restored and after restoring data you can use link2sd on new device to link the data to sd card.
If this long guide helped you pleasd hit thanks.
For any douts
[email protected] is my id
Peace
Click to expand...
Click to collapse
Just unlink them. Backup using titanium and relink them again.
You have to comletely unlink an app like delvic, data, app and all for one app.
droid_god said:
Just unlink them. Backup using titanium and relink them again.
You have to comletely unlink an app like delvic, data, app and all for one app.
Click to expand...
Click to collapse
Thank You! I've unlinked everything and have discovered the batch back up option, thank you so much for taking the time!
Its my pleasure

[FIX] Running out of room in /data, Problems Uninstalling Apps. Duplicates

I have no app for this, nor do I intend to make one, any Dev may feel free to do so. This appears to apply way more widely to any Android phone But I discovered this on the GS5
A Mod can move this thread as fit!
-------------------------------------------------------------
The Issue
Essentially I found many who dirty flash, use Titanium backup to restore or who knows what have faced odd issues of suddenly running out of room for apps when they shouldn't, or have trouble removing apps because they keep popping back up...
Well I found this in /data/app
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
This issue eats all of the space up... but why does this happen???
-------------------------------------------------------------
The Culprit
Duplicated apps clogging the data folder appears to be a permissions issue, where the permissions of 755 with the owner of system and group of system is ACTUALLY showing up as Owner root and group root, causing the playstore to duplicate apps with correct permissions as the playstore doesn't have root permission and gets denied access.
-------------------------------------------------------------
The Solution?
To fix, run in terminal emulator or adb shell(with root permissions of course)
Code:
su
chown -R system:system /data/app
Now Delete all the extra apps so there's only one of each, app, keep only the highest numbered app(you can renumber them to 1 if you'd like)
wipe cache and dalvik cache(just suggestions)
This Is just my finding and I saw no other threads about this
I've been meaning to make an app for this, but it just keeps getting set aside for other things in life lol. I'm glad you made a thread that puts everything in one spot. You are the man, @GeTex
CVertigo1 said:
I've been meaning to make an app for this, but it just keeps getting set aside for other things in life lol. I'm glad you made a thread that puts everything in one spot. You are the man, @GeTex
Click to expand...
Click to collapse
Cough woman...cough cough.
@CVertigo1 I recall you mentioning it, added this post for now to help those having issues
I have written the how to get rid of the duplicates in a bunch of threads, so it'll be nice to have a thread to link instead lol
Haha, cool
Just tried the code you posted and it gives this....
-R: unknown option
Edit...worked after I put in just su first and then the rest on next entry. Thanks for the info.
I'd like to add that you can use Root Explorer to change owner if you don't have a computer handy. Go into Root Explorer and long press app/data/ and tap change owner. Then set owner as system for all sub files. I don't have a rooted device handy, so I can't be certain if it says all sub files or directories or something else lol.
I'd like to add that I tested some of the causes for this previously, and it seems like Titanium Backup is the #1 cause. I went back to stock and rooted the phone, PB1 if that matters. When I looked, there were no /data/app directories with the owners set as root. Then I restored apps with Titanium Backup then recheck directory owners, and I found multiple instances of root as the owner. I assume Titanium has to change owner to have the ability to write, but it doesn't change permissions back when it is done. I wonder if the developer is aware.
I caused this simply by a dirtyflash
When I initially had this problem I factory reset my phone without actually fixing the problem. I did this because I couldn’t get the code from the linked thread to execute in terminal emulator. I also refused to pay for the app that was suggested. Lo and behold, the problem returned yesterday.
Today, I managed to fix the problem and would like to share my success in case anyone else needs assistance. Here are the steps I followed.
1. Back up apps in Titanium Backup
2. Back up SMS messages using SMS Backup & Restore
3. Screenshot the home screens
4. Factory reset phone
5. Install all apps from play store
6. Restore SMS messages
7. Setup home screens to match screenshots
8. Restore App DATA ONLY with Titanium Backup
9. Verify the Owner and Group settings were correct for the /data/app folder and sub folders.
When I opened TB for the first time, I got a message about the MOUNT NAMESPACE SEPERATION setting in Super SU potentially causing problems. I turned the setting off. I have seen no errors from turning this off and have left it so. When I restored apps & data with TB, TB failed to install apps that were already on the phone. After this happened twice, I proceeded to restore Data Only. Since I had installed all the apps from the play store before using TB, I ended up restoring DATA ONLY.
I then opened Root Browser in order to change owner & group settings for the folder /data/app. I found that the owner and group were already set to System. If this is due to the developer of TB updating the app, thanks much. If it’s due to the setting in Super SU, I’m passing this nugget along. If it’s dumb luck or because I didn’t install apps and did data only, I do not know. If you know, please share.
My hope is that this info helps others get past this annoying problem.
beavermjr said:
When I initially had this problem I factory reset my phone without actually fixing the problem. I did this because I couldn’t get the code from the linked thread to execute in terminal emulator. I also refused to pay for the app that was suggested. Lo and behold, the problem returned yesterday.
Today, I managed to fix the problem and would like to share my success in case anyone else needs assistance. Here are the steps I followed.
1. Back up apps in Titanium Backup
2. Back up SMS messages using SMS Backup & Restore
3. Screenshot the home screens
4. Factory reset phone
5. Install all apps from play store
6. Restore SMS messages
7. Setup home screens to match screenshots
8. Restore App DATA ONLY with Titanium Backup
9. Verify the Owner and Group settings were correct for the /data/app folder and sub folders.
When I opened TB for the first time, I got a message about the MOUNT NAMESPACE SEPERATION setting in Super SU potentially causing problems. I turned the setting off. I have seen no errors from turning this off and have left it so. When I restored apps & data with TB, TB failed to install apps that were already on the phone. After this happened twice, I proceeded to restore Data Only. Since I had installed all the apps from the play store before using TB, I ended up restoring DATA ONLY.
I then opened Root Browser in order to change owner & group settings for the folder /data/app. I found that the owner and group were already set to System. If this is due to the developer of TB updating the app, thanks much. If it’s due to the setting in Super SU, I’m passing this nugget along. If it’s dumb luck or because I didn’t install apps and did data only, I do not know. If you know, please share.
My hope is that this info helps others get past this annoying problem.
Click to expand...
Click to collapse
My code in the op must be executed in terminal emulator line by line with root permissions
GeTex said:
My code in the op must be executed in terminal emulator line by line with root permissions
Click to expand...
Click to collapse
Done. Although it didn't seem to do anything as the owner/group for the folder was already System. Am I missing something?
beavermjr said:
Done. Although it didn't seem to do anything as the owner/group for the folder was already System. Am I missing something?
Click to expand...
Click to collapse
nope, if it worked, then any folder with wrong permissions would be fixed, to test change permissions on any folder to test(set owner to root) and after running, owner will be system
Thanks a ton.

WhatsApp no longer starts

WhatsApp no longer starts since 07/05/2023, because it is not possible to update to the latest version as I am asked to log in to my Google account despite already being logged in !
I have tried the solutions suggested here, except the one that involves removing the accounts because the warning message suggests to me that the data may be lost.
Does anyone have any idea how to solve ?
Deleting an Google account is different from removing it from your device. When you delete your Google account, it gets deleted permanently from Google servers. So any data associated with your Google account will be lost.
Removing the Google account simply removes it from your phone. It’s like logging out of Google account. All your data associated with the account will stay on Google servers. You can add the account again on your phone or sign in from the web.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
As you suggested I've removed the Google account.
When I launch WhatsApp it detects the absence of the account and asks me to add one, but the problem remains the same.
I would like to try to uninstall WhatsApp and install it again, but I am afraid of losing all the data: if I make a backup of the WhatsApp folder that is in the filesystem under storage, then it may be enough to restore it in case of any problems ?
gldev said:
As you suggested I've removed the Google account.
When I launch WhatsApp it detects the absence of the account and asks me to add one, but the problem remains the same.
I would like to try to uninstall WhatsApp and install it again, but I am afraid of losing all the data: if I make a backup of the WhatsApp folder that is in the filesystem under storage, then it may be enough to restore it in case of any problems ?
Click to expand...
Click to collapse
WhatsApp now saves all it's files, including media, in the Android/ media folder.
Take a back-up of that folder, after creating a local backup from within WhatsApp.
If you don't do this, and uninstall WhatsApp, it will delete all your WhatsApp media too. By default, WhatsApp doesn't backup videos received in chats.
TheMystic said:
WhatsApp now saves all it's files, including media, in the Android/ media folder.
Click to expand...
Click to collapse
I would like to point out that the device in question is an older Samsung Galaxy Tab 3 8.0 SM-T311 with Android 4.4.2 purchased in 2014.
In my case the Android/media folder does not exist.
The Android/Data/com.whatsapp folder is present but it is empty.
All the data seems to be in Storage/Emulated/0/WhatsApp
TheMystic said:
Take a back-up of that folder, after creating a local backup from within WhatsApp.
Click to expand...
Click to collapse
This is not possible because WhatsApp does not start ...
gldev said:
This is not possible because WhatsApp does not start ...
Click to expand...
Click to collapse
IIRC then
1.
WhatsApp automatically makes a backup of all your chats every night at 4:00 / 2:00.
2.
This backup is then stored on the internal memory of your smartphone:
3.
On Android the chat backups of WhatsApp are stored on the internal memory in the folder "/sdcard/WhatsApp/Databases" and/or "/local/WhatsApp/Databases". There, in turn, the backups are in the form of so-called msgstore.db files. Currently, for example, there is msgstore.db.crypt12, which is the current backup. In addition, there are backups of the previous days, which also start with msgstore.db.crypt12 and have a date appended, i.e. something like msgstore-YYYY-MM-DD.db.crypt12.
4.
To backup the chat backups of Whatsapp open the file manager on your phone. If no file manager is installed, download MiXplorer. Navigate to the path "/sdcard/WhatsApp/Databases" and/or "/local/WhatsApp/Databases".
Here you will now find the file msgstore.db.crypt12. Move this file as a backup to another location, preferably to the SD-card - in any case outside the WhatsApp folder - and then use ADB to pull it to PC.
jwoegerbauer said:
WhatsApp automatically makes a backup of all your chats every night at 4:00 / 2:00.
Click to expand...
Click to collapse
If the device is powered off at that time, the backp is skipped or is this done the next time it is turned back on ?
jwoegerbauer said:
On Android the chat backups of WhatsApp are stored on the internal memory in the folder "/sdcard/WhatsApp/Databases" and/or "/local/WhatsApp/Databases". There, in turn, the backups are in the form of so-called msgstore.db files. Currently, for example, there is msgstore.db.crypt12, which is the current backup. In addition, there are backups of the previous days, which also start with msgstore.db.crypt12 and have a date appended, i.e. something like msgstore-YYYY-MM-DD.db.crypt12.
Click to expand...
Click to collapse
On my device all the data seems to be in Storage/Emulated/0/WhatsApp which in turn contains the Backup, Databases and Media folders.
The Databases folder contains the files msgstore.db.crypt14, msgstore-2023-02-03.1.db.crypt14 and msgstore-2023-02-06.1.db.crypt14
The most recent files in the Backup and Databases folders are from February 06, 2023.
gldev said:
This is not possible because WhatsApp does not start ...
Click to expand...
Click to collapse
Most probable reason is WhatsApp has stopped supporting your Android version or device.
gldev said:
If the device is powered off at that time, the backp is skipped or is this done the next time it is turned back on ?
Click to expand...
Click to collapse
Yes, backup would automatically run next time your device turns on.
gldev said:
The Databases folder contains the files msgstore.db.crypt14, msgstore-2023-02-03.1.db.crypt14 and msgstore-2023-02-06.1.db.crypt14
The most recent files in the Backup and Databases folders are from February 06, 2023.
Click to expand...
Click to collapse
Those are the last time WhatsApp backed up your chats. Didn't you use WhatsApp for the last 3 months?
You will be able to restore your chats on a newer device or device with a newer Android version.
TheMystic said:
Those are the last time WhatsApp backed up your chats. Didn't you use WhatsApp for the last 3 months ?
Click to expand...
Click to collapse
I used WhatsApp daily, but I always turned off the tablet at night.
Tonight I did a test and left the device on, and indeed in the Databases folder the files were updated to today's date, so it can be concluded that the backup is only performed at 02:00 if the device remains switched on.
In addition to Google Play Store, you can laso download the latest apk from the WhatsApp official website.
I forgot to point out that in the Android options, under Accounts, there is WhatsApp with contact synchronization enabled.
In any case, I'm pretty much sure that conversations are backed up on external servers, because when I access WhatsApp web I find the history of all old conversations ...
TheMystic said:
Most probable reason is WhatsApp has stopped supporting your Android version or device.
Click to expand...
Click to collapse
James_Watson said:
In addition to Google Play Store, you can laso download the latest apk from the WhatsApp official website.
Click to expand...
Click to collapse
As suggested, I tried to install WhatsApp by downloading the .Apk file, but I get the message 'Error while analysing the package'.
I also tried uninstalling WhatsApp, but it is then no longer possible to reinstall it from Google Play Store.
Although support for Android 4.4.2 officially ends on 24 October, my device is evidently no longer supported.
Never mind, I'll use the new devices I have, or maybe I'll try installing an unofficial rom to get Android 7.0 on this tablet.
gldev said:
As suggested, I tried to install WhatsApp by downloading the .Apk file, but I get the message 'Error while analysing the package'.
I also tried uninstalling WhatsApp, but it is then no longer possible to reinstall it from Google Play Store.
Although support for Android 4.4.2 officially ends on 24 October, my device is evidently no longer supported.
Never mind, I'll use the new devices I have, or maybe I'll try installing an unofficial rom to get Android 7.0 on this tablet.
Click to expand...
Click to collapse
The message, 'Error while analysing the package', likely means that the latest version of the APK no longer supports your old Android system.
gldev said:
As suggested, I tried to install WhatsApp by downloading the .Apk file, but I get the message 'Error while analysing the package'.
Click to expand...
Click to collapse
To fix this in app's AndroidManifest.xml explictly set the value of the android:exported value to true.
jwoegerbauer said:
To fix this in app's AndroidManifest.xml explictly set the value of the android:exported value to true.
Click to expand...
Click to collapse
I opened the AndroidManifest.xml file with AndroidStudio, but there are too many android:exported="true" entries in it.
I was thinking of limiting the change to the Activity tag that contains the android:name=".MainActivity" entry, as shown in your screenshot, but this entry is not present in the file ...

Categories

Resources