I have an app on my phone that I want to hard reset proof not just the apk (which ive already done) but the settings also. ive tried using root explorers and changing the permissions for the /data/data folders but that doesnt help, ive tried converting the user app to a system app AFTER I set up all my options, hoping that would save all my settings, and I tried changing the permissions of my "system" app to prevent any changes. no luck. ive been researching like crazy and I hope im not posting in the wrong forum but can someone explain how to make my app and its settings master reset proof? thanks a bunch!
btw I have a rooted tmobile samsung galaxy s3 (sgh-t999) with the latest android (4.1.1 using the root66 rom), with supersu and busybox if that helps. and if it works for my s3, would the same steps work on my note 2?
Are you putting your app into /system/app ?
Hmm ...
careenprokop85 said:
...
btw I have a rooted tmobile samsung galaxy s3 (sgh-t999) with the latest android (4.1.1 using the root66 rom), with supersu and busybox if that helps. and if it works for my s3, would the same steps work on my note 2?
Click to expand...
Click to collapse
Have you tried in app info -> clear data? (also clear cache).
xclub_101 said:
Have you tried in app info -> clear data? (also clear cache).
Click to expand...
Click to collapse
Yes I have but why would I want that? I want to save the current settings not clear them
[email protected] said:
Are you putting your app into /system/app ?
Click to expand...
Click to collapse
yes the app is in my system/app and it does survive a master reset but the settings of the app don't. Would I have to build a custom rom after installing the app and getting the settings all set how I want? Then If it's master reset it should save the settings, right?
careenprokop85 said:
yes the app is in my system/app and it does survive a master reset but the settings of the app don't. Would I have to build a custom rom after installing the app and getting the settings all set how I want? Then If it's master reset it should save the settings, right?
Click to expand...
Click to collapse
Normally Android keeps app data under /data/data.
When you commit a hardreset, /data gets wiped. So all your app data gets removed.
You have to keep your app data under /system if you are the developer of that app
careenprokop85 said:
Yes I have but why would I want that? I want to save the current settings not clear them
...
Click to expand...
Click to collapse
OOPS. my mistake, I only read hard-reset, not the entire hard-reset-proof :
[email protected] said:
Normally Android keeps app data under /data/data.
When you commit a hardreset, /data gets wiped. So all your app data gets removed.
You have to keep your app data under /system if you are the developer of that app
Click to expand...
Click to collapse
but wouldnt that folder then need to be moved back to data/data after the master reset for it to work correctly?
careenprokop85 said:
but wouldnt that folder then need to be moved back to data/data after the master reset for it to work correctly?
Click to expand...
Click to collapse
Depends on who the developer of that app is.
If it's not you, yes you have move that folder after every hardreset.
If it's you, I suggest you to use /system as your app data folder.
unfortunately I'm not the apps developer. However, if I created a custom rom by installing whatever room I wanted, then setting up the app as I want it, then creating a custom rom from that, then flash it, would that solve the problem? Because (if im understanding things right lol) then someone could matter reset it and it would revert to how the chain rom was when I flashed it, correct?
Suppose I am the developer of the app.
How do set App Data folder to System?
SandeepEmekar said:
Suppose I am the developer of the app.
How do set App Data folder to System?
Click to expand...
Click to collapse
I'm already using a hardreset proof app on my note 2. It uses /etc folder to keep its app datas in a file. After hardreset it detects its data folder wiped, then restores settings from the backup file under /etc.
Of course your program will need root permission to do that.
[email protected] said:
I'm already using a hardreset proof app on my note 2. It uses /etc folder to keep its app datas in a file. After hardreset it detects its data folder wiped, then restores settings from the backup file under /etc.
Of course your program will need root permission to do that.
Click to expand...
Click to collapse
Can you give me the source code?
SandeepEmekar said:
Can you give me the source code?
Click to expand...
Click to collapse
Where did I say I'm the developer of the App?
[email protected] said:
Where did I say I'm the developer of the App?
Click to expand...
Click to collapse
LOL
I knew.
What's the name of the App you are using.
SandeepEmekar said:
LOL
I knew.
What's the name of the App you are using.
Click to expand...
Click to collapse
Avast Anti Theft
Init.d script to link /system/data/some.app to /data/app-data/some.app
Put apk to /system/app
This should work
GR0S said:
Init.d script to link /system/data/some.app to /data/app-data/some.app
Put apk to /system/app
This should work
Click to expand...
Click to collapse
can u describe how to do this in a bit more detail? Because I have an apk that I was able to put into the system/app folder, but would LOVE to save the settings so they are master-reset proof. I've contacted the developer but he was a bit of a jerk actually, saying I shouldn't need any reason to hard reset proof the apk..... ugh
From my experience, the avast! anti-theft app consist of 2 hard-reset proof part:
1. APK file in /system/app
2. Setting file (data) in /etc
Both survived hard reset...
The only way to get rid is via Aroma File Manager or flashing ROM.
Get titanium backup, backup all data of the app, and install the update. Then put the data back, if im correct settings would be copy pasted to this way. I use it for many system apps to get data back.
send from another universe, made possible by xda
If you are willing to learn how to script... it's all possible
I have done this before...
Use busybox commands...
Make a backup script that would back up all the user data in tar file.
Make a backup of apps you like to be restored on first boot of any rom.
on first boot let the script install the backed up apps, after install see if data exist for the package you just installed, get permission/owner of the package, restore data and apply permission to data.
i think is the basic
attached are the scripts i used to make this work on android 2.1
i even made a custom progress bar lol that used bootanimation as base...
.... copies custom bootanimation on start
.... copies custom boot sound...
.... restores wifi settings...
.... played music while restoring....
.... uses logcat as primary logging...
i am not sure if these scripts are the latest ones... but they worked at some point...
all was done in here...
http://forum.xda-developers.com/showthread.php?t=1465866
have fun...
Related
Yep, I I accidentally the whole thing. I clicked the wrong button in TIBU.
Anyways, I got the phone yesterday, updated it to 2.3.6, and rooted it, but otherwise left it alone. I just rooted so I could restore my apps from my previous phone with TIBU. I did not restore data. Today, I was trying to fix an issue I was having with accounts and sync, and I meant to freeze it, but I hit uninstall and wasn't paying attention to the prompts, so it uninstalled it. It was backed up, but I can't re-install it. I even found the app's .apk in system/app folder, and tried to re-install it but it will not, it just tries for like a second and then says "Not installed". The option is now missing from my settings menu.
I would really like a way to fix it without having to wipe and re-install the OS, but if I have to I can.
nb4 "did you search?" yes, I did. I couldn't find anything that helped.
Thanks in advance, everyone.
Download a rom for your phone thats2.3.6 and unzip it. Go into system/app and take the apk that u need. Push it to your system/app folder with root explore. Change permissions to the ones on the pic and reboot and u should be good.
Sent from my Nexus S 4G using xda premium
Esteway.619 said:
Download a rom for your phone thats2.3.6 and unzip it. Go into system/app and take the apk that u need. Push it to your system/app folder with root explore. Change permissions to the ones on the pic and reboot and u should be good.
Sent from my Nexus S 4G using xda premium
Click to expand...
Click to collapse
I pushed the file and changed permissions to exactly as shown in the picture, and it still came back with "application not installed"
Edit: DERP, big time derp, forgot to reboot. one minute.
Edit 2: changed permissions, rebooted, still would not install.
iamtheculprit said:
I pushed the file and changed permissions to exactly as shown in the picture, and it still came back with "application not installed"
Edit: DERP, big time derp, forgot to reboot. one minute.
Edit 2: changed permissions, rebooted, still would not install.
Click to expand...
Click to collapse
No u need to just copy paste to system/app change permissions then reboot. Don't try to install like a regular app
Sent from my Nexus S 4G using xda premium
Esteway.619 said:
No u need to just copy paste to system/app change permissions then reboot. Don't try to install like a regular app
Sent from my Nexus S 4G using xda premium
Click to expand...
Click to collapse
I did that, but the Applications and Sync option is not there.
If I did a recovery update to 2.3.6 again, would that fix it perhaps? or will it not let me update it that way since it's already on 2.3.6?
iamtheculprit said:
I did that, but the Applications and Sync option is not there.
If I did a recovery update to 2.3.6 again, would that fix it perhaps? or will it not let me update it that way since it's already on 2.3.6?
Click to expand...
Click to collapse
Actually, I did just that, and it fixed it! sigh. I wish I had thought of that right away. Now I'm back to my original problem that I was trying to fix, though. When i try to add my facebook account in accounts and sync, I click on add account, select the facebook icon, and it just goes back to the previous page without doing anything.
Oh well. At least I got the big problem fixed, thank you for helping.
iamtheculprit said:
I did that, but the Applications and Sync option is not there.
If I did a recovery update to 2.3.6 again, would that fix it perhaps? or will it not let me update it that way since it's already on 2.3.6?
Click to expand...
Click to collapse
reflash whatever rom you currently have, but don't wipe the data/factory reset. Since the file you need is in the system folder it'll rewrite.
crzdcole said:
reflash whatever rom you currently have, but don't wipe the data/factory reset. Since the file you need is in the system folder it'll rewrite.
Click to expand...
Click to collapse
I just ran the 2.3.6 update again. It fixed it, but it turns out that the problem I was trying to fix in the first place which led me to uninstall the app was not a problem at all, it was google locking out facebook sync on nexus S meh, whatever. I only did it for the pictures anyways. Thanks though!
Hi Guys,
Every ROM I flash I try to Freeze/Uninstall and remove from Boot Many, the YouTube App.
I don;t use it ever, but even if it says freezed successfully it still comes back after reboot.
What's so special about it and will it creat a problem if I delete it and main question is how?
Thank you
odeccacccp said:
Hi Guys,
Every ROM I flash I try to Freeze/Uninstall and remove from Boot Many, the YouTube App.
I don;t use it ever, but even if it says freezed successfully it still comes back after reboot.
What's so special about it and will it creat a problem if I delete it and main question is how?
Thank you
Click to expand...
Click to collapse
In my other android device experience, Nook Color / Simple Touch, YouTube is instrumental in the Google Apps authentication process. For instance to get market working on nooted versions of those devices you had to sign into YouTube first.
Why are you trying to get rid of it?
promiseofcake said:
In my other android device experience, Nook Color / Simple Touch, YouTube is instrumental in the Google Apps authentication process. For instance to get market working on nooted versions of those devices you had to sign into YouTube first.
Why are you trying to get rid of it?
Click to expand...
Click to collapse
Never used it, if I need to I can view it in the brother. Just another app that loads up on boot and sits there using the battery
odeccacccp said:
Never used it, if I need to I can view it in the brother. Just another app that loads up on boot and sits there using the battery
Click to expand...
Click to collapse
Fair enough. Why don't you give it a try? Make a nandroid backup and then delete the file via ADB in recovery mode (or move it to /data/local/tmp for easy restore). Clear Cache / Dalvik reboot and see if anything isn't working properly.
I would say you can delete via ADB in ICS but many people, myself included, are having issues mounting /system in ICS. It could be possible that this failure for /system to consistently mount could be why TiBu isn't freezing it properly.
Use root uninstaller, its how I have removed all system apps since my gb 2.3.1 days on my x10. A very effective method
Thank you for responces.
The proper way I found would be to transfer it to a User App and uninstall.
odeccacccp said:
Thank you for responces.
The proper way I found would be to transfer it to a User App and uninstall.
Click to expand...
Click to collapse
Just delete the .apk before you even put the zip on your phone
xcrazydx said:
Just delete the .apk before you even put the zip on your phone
Click to expand...
Click to collapse
What do you use to modify and save zip's, just WinRar will do?
odeccacccp said:
What do you use to modify and save zip's, just WinRar will do?
Click to expand...
Click to collapse
I use 7zip. open the archive and delete it, or add whatever .apk you desire. I always do this before I even flash a rom. Winrar should work fine, though.
i have a samsung galaxy s (gingerbread 2.3.3) and after doing some tweaking there was a problem with the google search widget. when i open it up it says: the application google search process com.google.android.googlequicksearchbox has stopped. i did manage to find a temporary fix for this by reinstalling the stock apk i found from a website. however every time i reboot the device the message appears again and then i have to reinstall it again to make it work. This is very annoying how can i fix this? is it some kind of autostart issue?Any help would be appreciated
DanTheMan62 said:
i have a samsung galaxy s (gingerbread 2.3.3) and after doing some tweaking there was a problem with the google search widget. when i open it up it says: the application google search process com.google.android.googlequicksearchbox has stopped. i did manage to find a temporary fix for this by reinstalling the stock apk i found from a website. however every time i reboot the device the message appears again and then i have to reinstall it again to make it work. This is very annoying how can i fix this? is it some kind of autostart issue?Any help would be appreciated
Click to expand...
Click to collapse
Quite likely. When you re-installed it, did you make it a system app?
yes i believe it it is a system app
Theonew said:
Quite likely. When you re-installed it, did you make it a system app?
Click to expand...
Click to collapse
it did say that its going to replace a system application but i believe it must be a bug in the autostart. is there anyway i can fix this?thx for your reply i appreciate it. you have earned a thx for caring
DanTheMan62 said:
it did say that its going to replace a system application but i believe it must be a bug in the autostart. is there anyway i can fix this?thx for your reply i appreciate it. you have earned a thx for caring
Click to expand...
Click to collapse
Try making it a system app. Right now its probably installed as an update to the system app, but its better if it remains by itself. This can be done in many ways. You could use Titanium Backup, or simply place the app in /system/app/ (and set the permissions).
dont work
Theonew said:
Try making it a system app. Right now its probably installed as an update to the system app, but its better if it remains by itself. This can be done in many ways. You could use Titanium Backup, or simply place the app in /system/app/ (and set the permissions).
Click to expand...
Click to collapse
i tryed to copy and paste it using es file explorer but it said that it failed. Any ways even if i do get past that how do i set the permissions ?
Or maybe delete the whole apk with titanium backup or a root explorer, reboot and install it again.
Happened to me with apex launcher and this solved the problem
DanTheMan62 said:
i tryed to copy and paste it using es file explorer but it said that it failed. Any ways even if i do get past that how do i set the permissions ?
Click to expand...
Click to collapse
Titanium Backup - Select the app in the list and choose "integrate update into ROM".
Manual Way - Use Root Explorer, etc. to copy and paste the file in /system/app/. Make sure you mount it as R/W first. Using Root Explorer, long press the file and choose permissions. It should be set to "rw-r--r--".
Reboot after either of these methods.
thx
Theonew said:
Titanium Backup - Select the app in the list and choose "integrate update into ROM".
Manual Way - Use Root Explorer, etc. to copy and paste the file in /system/app/. Make sure you mount it as R/W first. Using Root Explorer, long press the file and choose permissions. It should be set to "rw-r--r--".
Reboot after either of these methods.
Click to expand...
Click to collapse
thanks sorrry for the lack of replies but i will try it and inform u if it has worked
I would like to install 2 app skydrive with user data as different as I do?
Sometimes I happened to update an app and find myself two will look exactly alike, but installed 2 times
You might make your first install a system app with for example Titanium Backup, and then install it anew to make a user app version. I could see problems with the data being shared (thus enabling only one account), but you could try. Also, this will happen if one of the two has been signed differently, after which the system sees them as two different applications.
Thanks for the advice.
Can you show me the way to create user app through titanium backup?
MarkAndroid said:
Thanks for the advice.
Can you show me the way to create user app through titanium backup?
Click to expand...
Click to collapse
Make sure any filters have been disabled, long-press on the system app (skydrive, in this case), select (I believe) the second to last option ("Convert to user app"). The system app wil convert to a user app, and you might be able to then reflash the base ROM to reinstall the system app, or rip the apk out with Total Commander (there's an option called "Installd apps" on the main page) and set it up in the system app folder (I forgot which one that was, will look it up). If you're not too far from clean, a reflash might be less troublesome.
EDIT: verified to be /system/app/ -- didn't know for sure if this was the same as on ICS. </noob mode>
I can not flash or restore the original rom because I'm afraid of losing root.
Do I have to reflash a rom to put 2 apk?
I was thinking ...
If I create two google account and one I install with an account xxx and the other account yyy might work?
You could probably get away with unpacking the app, tweaking the manifest to change the app name, then repackaging. Essentially, different names and signatures on the app would prevent one from overwriting the other...
MarkAndroid said:
I can not flash or restore the original rom because I'm afraid of losing root.
Do I have to reflash a rom to put 2 apk?
I was thinking ...
If I create two google account and one I install with an account xxx and the other account yyy might work?
Click to expand...
Click to collapse
No, the latter option will just install the application as a user-app, and if you already have a user app, this will only overwrite your first installed copy (keeping the settings, fortunately).
If you want a user app AND a system app, you'll either have to reflash or copy it over by hand, as I already told you above. The only other option is in the end far more sustainable (although it will break Market updates for obvious reasons):
danger-rat said:
You could probably get away with unpacking the app, tweaking the manifest to change the app name, then repackaging. Essentially, different names and signatures on the app would prevent one from overwriting the other...
Click to expand...
Click to collapse
Yes, this would most definitely work. I strongly doubt if this is technically feasible for the OP at this moment in time, however -- no offence meant.
danger-rat said:
You could probably get away with unpacking the app, tweaking the manifest to change the app name, then repackaging. Essentially, different names and signatures on the app would prevent one from overwriting the other...
Click to expand...
Click to collapse
What program can I use to do this?
apktool would probably be a good place to start...
I try. THANKS
Hey guys, I sharing debloating script for those interested in a higly DEBLOATED LP installation, very slimmed down, battery friendly, faster, with less RAM comsuption etc
It will remove everything that is not important so before proceding be sure to backup full system
RESULT
As said at the top, you'll get a very slimmed down LP FW, battery friendly, very fast, with less RAM comsuption etc
Of course, everything is working great here, I mean all the features I need/use!
you are going to delete more than 160 packages in total with all relevant libs/stuff plus all applications automatically installed by Sony
HOW TO RESTORE SOMETHING
PS. of course I also removed from my FW all the stuff that can be easily downloaded from the Play Store (Gmail, etc)
below you will find the restoring instructions you need to follow to restore any package you may want back
According to what you want to restore, you have to follow two different procedures:
- all the APKs that are inside /system/__Backup/various/etc_custom_apps and /system/__Backup/various/etc_prod_apps are regular APKs that are going to be installed in /data, so you can just run them and then select "install" like a normal APK, easy. You will then see them in Settings > applications > downloaded
- instead, all the things in /system/__Backup/system_app and /system/
__Backup/system_priv-app folders can't be normally installed, but must be restored in the correct /system folders with correct permissions. To do this, see the step-by-step instructions below (in the following example, I am going to restore Chrome app in /system/app and Velvet (Google Search) in /system/priv-app, but of course you can restore how many things as you want at the same time)
Click to expand...
Click to collapse
- with a root file manager like ES, go to /system/__Backup/system_app and MOVE the whole "Chrome" folder to /system/app
- with a root file manager like ES, go to /system/__Backup/system_priv-app and MOVE the whole "Velvet" folder to /system/priv-app
- reboot
- done
Click to expand...
Click to collapse
PS. don't copy but MOVE things back, or permissions will get messed up and you are likely to end up in a bootloop!
Requirements:
- working recovery
- be on LP already, 5.0.2 or 5.1.1, doesn't matter
DISCLAIMER
If you apply my script again please take care I did a pretty massive debloat as I don't use a lot of stuff (social apps, small apps, many of the sony "addons"/special settings etc!!) and this is a working config for me, but for others some functionalities will be probably missing, so mind what you do before apply them! (but again you can restore anything anytime, if interested just go for it)
Click to expand...
Click to collapse
Installation:
1. full nandroid backup to eventually go back to previous any time
2. wipe data, cache and dalvik ***
3. flash debloating script
4. that's all! reboot/enjoy and hit thanks
Credits
Credits
Many THANKS @ondrejvaroscak and @Puffin617 for some very good advices, @mj084 for some packages descriptions and @moly82 for sharing this
It's fully working? No bugs?
Manolovini2000 said:
It's fully working? No bugs?
Click to expand...
Click to collapse
Yes.. I am using it bro..
Full work! M2 Aqua D2406
shago11 said:
Full work! M2 Aqua D2406
Click to expand...
Click to collapse
Thnkss for confirmation
does the internal storage gets formatted ??
Hellkid0 said:
does the internal storage gets formatted ??
Click to expand...
Click to collapse
No Nothing will happen only just blotware will removed like album, walkman , small apps, ar effects,and many more but u can restore any app any time
Successfully working on D2302.
Nice Work. @Grajatyadav
y4yash said:
Successfully working on D2302.
Nice Work. @Grajatyadav
Click to expand...
Click to collapse
Click the like button if u like my work
So as far as any external application goes, it would think this looks like a non custom rom.
There is a popular apk at the moment that denies working because you have a custom rom or if your rooted
furankum2 said:
so as far as any external application goes, it would think this looks like a non custom rom.
There is a popular apk at the moment that denies working because you have a custom rom or if your rooted
Click to expand...
Click to collapse
i cant understand what u want to say
Grajatyadav said:
i cant understand what u want to say
Click to expand...
Click to collapse
Pokémon Go knows if your phone is rooted or a custom rom and won't load.
Do I need to root my phone?
Is all that happens is that things are deleted and not a customisation?
furankuM2 said:
Pokémon Go knows if your phone is rooted or a custom rom and won't load.
Do I need to root my phone?
Is all that happens is that things are deleted and not a customisation?
Click to expand...
Click to collapse
I don't think this will happen.. Because it is not a custom rom and also this is not root.. This only need recovery to install and root to reinstall the apps..
Where do I find a working recovery that doesn't need root?
It's awesome!
furankuM2 said:
Where do I find a working recovery that doesn't need root?
Click to expand...
Click to collapse
Please answer!!!!
Can you publish the list of what is actually deleted please sir?
furankuM2 said:
Can you publish the list of what is actually deleted please sir?
Click to expand...
Click to collapse
Yeah I can try
furankuM2 said:
Please answer!!!!
Click to expand...
Click to collapse
Install recovery with root then unroot your phone.. Then u have recovery without root
furankuM2 said:
Can you publish the list of what is actually deleted please sir?
Click to expand...
Click to collapse
See screnshot.. Which app u can see in screnshot they will left only.. Other then them all system app will be mobe to __backup folder