Ok this was a big problems for me because i love testing out sifferent rom but also have like 9 different emaisl accounts on my phone (NOT GMAIL) but email accounts.
And everytime i would tryout a new rom and i would do a wipe and then have to Start from scratch with my email accouts.
So i did some messing around with my phone and foudn out how to make a complete backup of all my account please read carfully
(I AM NOT RESPONSIABLE FOR ANY DAMAGES DOEN TO YOUR DEVICE)
Things Nedded
# 1. An Android Phone (Duhhhhhh)
# 2. A Rooted Phone (Must be rooted to do this)
# 3. Root Explorer
# 4. An SD Card with enough space to backup your accounts.
here is the procedure.
Before installing any new roms or just doing a wipe you must do the following to backup your accounts.
Open Root Explorer and browse to the following folder on your phone
data/data/com.android.email folder
in this folder should find the following folders
chache
database
files
lib
shared_prefs
now copy each folder and browse back into your sd card and paste them into a new folder on your SD card.
now your email setting are safe and you can wipe the data from your phone.
now once you have installed a new rom or did a master reset.
go into your email app and add 1 email account somthign simple like a gmail or aol etc....
install and run root explorer again,
browse to your SD card were you saved toye 5 email folders
copy them and then browse back to
data/data/com.android.email
make a new folder in the data/data/com.anroid.email folder
so now open the new created folder so you will be in data/data/com.android.email/new folder (or what ever you named the new folder)
now paste the 5 folders in this new folder
chache
database
files
lib
shared_prefs
now open each folder and copy all files inside 1 of the folders for instance data/data/com.android.email/new folder/database copy all files in this folder
now browse back to data/data/com.android.emal folder and open the database folder located here in data/data/com.android.email.
so now you will be in the following folder data/data/com.android.email/database
now paste your files in this folder. (Please Note you may ends up with 2 of the same files for instance) (webview.db & webview.db -copy) delete the webview.db file and keep the webview.db-copy file.
now rename the webview.db-copy file to webview.db and any additional file that may have the -COPY extension on it delete the orignal and rename the -COPY file as the original file name.
keep doing this process with all 5 folders.
once done if you go into your email.app you will only still see the emailaccount you created erlier this is normal.
Now reboot your phone (Full Reboot) power off then power on.
when you return to your email.app you will see that all your account have returened.
if you need any help let me know.
i will add screen shots later to help out
Hope this helps.
RinnyCoop121
Great tutorial! This has been driving me nuts for years.
Just tried it though and the copy process failed... I believe a file was in use. I went to the app manager and force stopped email, but it still failed in copying. It did get farther though.
Any idea what else I should force stop for succes?
My plan b is to boot into recovery and see if I can do the copy steps from TWRP. Seems like I saw a file manager in there before..
Thanks again!
Mike
---------- Post added at 08:39 AM ---------- Previous post was at 08:23 AM ----------
I did have success copying with TWRP. Now I just have to backup my current rig and see where this process gets me! Thanks!
Mike
Hey Guys an' Girls!
Anyway, so when I first learnt how to decompile, modify then recompile .apks I found it was a rather slow process and figured out a far faster way.I searched google and xda many times and couldn't find my method anywhere. So without further ado, let's go through an easy, simple, step by step guide on how to modify .apk files!
Step 1 - Getting the .apk
Firstly, of course, you will need to obtain the .apk file that you want to edit. There are two methods to do this:
a) If you have the recovery flashable zip for the rom you are currently on, simply open it up, navigate to the file you want to edit (in my case system -> app -> settings.apk) and drag the .apk file onto your desktop.
b) Using root browser or a similar app on your device, navigate to the .apk you wish to edit and copy it onto your sdcard. Then connect to your computer and copy the file from your phone to the computer.
Step 2 - Editing/Modifying your .apk
Now is the important part. Install Winrar by clicking the link. http://www.win-rar.com/download.html?&L=0 Then open the .apk by right clicking the file -> open with -> WinRar. Now you can look around the .apk file. Find a file inside the .apk you wish to edit. (In my case I'm going to navigate to res -> mipmap-hdpi -> ic_launcher_settings.png). Just drag the file from the .apk and edit to your liking.
NOTE: It is recommended never to completely take everything out of the .apk and then put it all back in. Just do one file at a time.
Then when your finished, select the old file in the .apk and press the delete button. Now drag in the new edited file into where you found it. Easy!
Step 3 - Putting the new .apk back where it belongs
Now of course, your going to have to put it back on your device to see the changes in effect, there's no point having it on your computer! There are two ways to go about this:
a) Open up your rom and navigate to the place where you took your .apk file from. Click on the old .apk file and press the delete button. Now drag your new edited .apk file into the zip. Then connect your device to your computer and drag the rom onto the sdcard and flash it via recovery. Now reboot the system and see your change/s in effect!
b) Copy your new .apk file from your computer to your device. Then, using Root browser or a similar app, navigate to the old .apk file and look at the permisions. (eg. RW--r--) Now delete the old file and replace with the new, but make sure to set the permissions the same as they were before. Now Simply reboot and see your change/s in effect!
NOTE: For some .apk files (eg. Framework-res.apk) there might be missing folders inside the .apk (eg. Values).
Just hit the thanks button, he doesn't bite your finger!
This is an easy way to edit the images only(icons,wallpaper,etc),not XML files,Smali's and such.I do this using the kitchen,easy way if you theme alot.
Diablo67 said:
This is an easy way to edit the images only(icons,wallpaper,etc),not XML files,Smali's and such.I do this using the kitchen,easy way if you theme alot.
Click to expand...
Click to collapse
You don't have to use this guide just for images. That was just the example. You can use it for almost any file inside an .apk. I was just saying that SOME folders aren't there.
Can you guide me to how do i keep same apps of diff versions.
i tried to modify a 3rd party app e.g whatsapp and when i tried installing i got an error which said "the app is not signed", may u kindly assist!
tendyfish said:
i tried to modify a 3rd party app e.g whatsapp and when i tried installing i got an error which said "the app is not signed", may u kindly assist!
Click to expand...
Click to collapse
You also have this tool
Easy Apk Dissassembler
http://forum.xda-developers.com/showthread.php?p=14049173
How do I use a flashable to get rid of .apks??? ₩
On the app I have here it returns 20 results that it scrapes from a website. I only want it to return 3 or 4. How do I get in there and change that value?
I want to change values on touchwiz launcher on my note 3, to use it in 440 dpi. When I use it there is so much margin on all sides, and I need to reduce. I need to add a new icon row as well. Can I do that just by modifying the app?
Sent from my GT-I9505 using Tapatalk
are the .xml files encrypted or something? when i try to edit them, it is a bunch of strange characters
Hi,
I would like to modify the tinychat.apk so that i can find how to change my device info/platform from android to something else, like pc or whatever. I dont want to be identified as using an android device. Is this possible?
Regards.
ksaul said:
are the .xml files encrypted or something? when i try to edit them, it is a bunch of strange characters
Click to expand...
Click to collapse
Yes, depending on what tool you use to decompile the apk files it may or may not decrypt them. I use apktool and it decrypts them just fine.
I think this method is no longer working for 4.3+
Modify JAR files
littlejoelgriffo said:
Hey Guys an' Girls!
Anyway, so when I first learnt how to decompile, modify then recompile .apks I found it was a rather slow process and figured out a far faster way.I searched google and xda many times and couldn't find my method anywhere. So without further ado, let's go through an easy, simple, step by step guide on how to modify .apk files!
Step 1 - Getting the .apk
Firstly, of course, you will need to obtain the .apk file that you want to edit. There are two methods to do this:
a) If you have the recovery flashable zip for the rom you are currently on, simply open it up, navigate to the file you want to edit (in my case system -> app -> settings.apk) and drag the .apk file onto your desktop.
b) Using root browser or a similar app on your device, navigate to the .apk you wish to edit and copy it onto your sdcard. Then connect to your computer and copy the file from your phone to the computer.
Step 2 - Editing/Modifying your .apk
Now is the important part. Install Winrar by clicking the link. http://www.win-rar.com/download.html?&L=0 Then open the .apk by right clicking the file -> open with -> WinRar. Now you can look around the .apk file. Find a file inside the .apk you wish to edit. (In my case I'm going to navigate to res -> mipmap-hdpi -> ic_launcher_settings.png). Just drag the file from the .apk and edit to your liking.
NOTE: It is recommended never to completely take everything out of the .apk and then put it all back in. Just do one file at a time.
Then when your finished, select the old file in the .apk and press the delete button. Now drag in the new edited file into where you found it. Easy!
Step 3 - Putting the new .apk back where it belongs
Now of course, your going to have to put it back on your device to see the changes in effect, there's no point having it on your computer! There are two ways to go about this:
a) Open up your rom and navigate to the place where you took your .apk file from. Click on the old .apk file and press the delete button. Now drag your new edited .apk file into the zip. Then connect your device to your computer and drag the rom onto the sdcard and flash it via recovery. Now reboot the system and see your change/s in effect!
b) Copy your new .apk file from your computer to your device. Then, using Root browser or a similar app, navigate to the old .apk file and look at the permisions. (eg. RW--r--) Now delete the old file and replace with the new, but make sure to set the permissions the same as they were before. Now Simply reboot and see your change/s in effect!
NOTE: For some .apk files (eg. Framework-res.apk) there might be missing folders inside the .apk (eg. Values).
Click to expand...
Click to collapse
That's very helpful thank you for sharing. Is there a way to modify JAR files the same way?
gilbertgk said:
That's very helpful thank you for sharing. Is there a way to modify JAR files the same way?
Click to expand...
Click to collapse
rename the jar to apk..after done,rename it back to jar
zamzameir said:
rename the jar to apk..after done,rename it back to jar
Click to expand...
Click to collapse
Can this work on my note 3 4.3 not rooted?
gilbertgk said:
Can this work on my note 3 4.3 not rooted?
Click to expand...
Click to collapse
idk..but you can try n report back
littlejoelgriffo said:
Hey Guys an' Girls!
Anyway, so when I first learnt how to decompile, modify then recompile .apks I found it was a rather slow process and figured out a far faster way.I searched google and xda many times and couldn't find my method anywhere. So without further ado, let's go through an easy, simple, step by step guide on how to modify .apk files!
Step 1 - Getting the .apk
Firstly, of course, you will need to obtain the .apk file that you want to edit. There are two methods to do this:
a) If you have the recovery flashable zip for the rom you are currently on, simply open it up, navigate to the file you want to edit (in my case system -> app -> settings.apk) and drag the .apk file onto your desktop.
b) Using root browser or a similar app on your device, navigate to the .apk you wish to edit and copy it onto your sdcard. Then connect to your computer and copy the file from your phone to the computer.
Step 2 - Editing/Modifying your .apk
Now is the important part. Install Winrar by clicking the link. http://www.win-rar.com/download.html?&L=0 Then open the .apk by right clicking the file -> open with -> WinRar. Now you can look around the .apk file. Find a file inside the .apk you wish to edit. (In my case I'm going to navigate to res -> mipmap-hdpi -> ic_launcher_settings.png). Just drag the file from the .apk and edit to your liking.
NOTE: It is recommended never to completely take everything out of the .apk and then put it all back in. Just do one file at a time.
Then when your finished, select the old file in the .apk and press the delete button. Now drag in the new edited file into where you found it. Easy!
Step 3 - Putting the new .apk back where it belongs
Now of course, your going to have to put it back on your device to see the changes in effect, there's no point having it on your computer! There are two ways to go about this:
a) Open up your rom and navigate to the place where you took your .apk file from. Click on the old .apk file and press the delete button. Now drag your new edited .apk file into the zip. Then connect your device to your computer and drag the rom onto the sdcard and flash it via recovery. Now reboot the system and see your change/s in effect!
b) Copy your new .apk file from your computer to your device. Then, using Root browser or a similar app, navigate to the old .apk file and look at the permisions. (eg. RW--r--) Now delete the old file and replace with the new, but make sure to set the permissions the same as they were before. Now Simply reboot and see your change/s in effect!
NOTE: For some .apk files (eg. Framework-res.apk) there might be missing folders inside the .apk (eg. Values).
Click to expand...
Click to collapse
Thnax for great guide but,my gopro app has a update and I have changed the icon on it but the app store dosent show me the update button. How to fix so I can update?
What do I need to change in an app to substitute it for another app?
OK so I've installed a new ROM and it comes with a kernel setting app preinstalled. This app has been integrated into the system settings portion of the ROM. I want to replace this kernel settings app with one of my choice but I want to be able to integrate it into the system settings like the original app is. I tried disguising the new app by changing the name of the app and .apk files but that didn't work. Closest I got was being able to convert my app to system app but even though I changed the name, the app, when installed goes back to it's original name. Or what permissions or files do I need to change to allow the integration of my app into the settings interface. Thanks ahead of time, it's appreciated.
Here are the steps to be followed:
The picture are attached in the post. I am new in this forum I can't post image and links
Step 1 :
Install any custom launcher. I installed Nova Launcher. Open the launcher and make it default.
Then clear Google Now launcher from Recents View.
Step 2 :
Install a Root explorer or file manager. Fx file manager worked for me. Also make sure you install its Root Ad-on for using root functionality.
Step 3 :
Download an older Google Search apk from the link below.
Search google for " Google Search-2.6.7.721924 ". I can't post link
Step 4 :
Rename the downloaded apk to Velvet.apk
Step 5 :
Go to Settings/Apps/All and scroll down to Google Search. Tap it and Clear data. This will remove all your settings for Google Now Launcher but let's not worry about it much.
Step 6 :
Open Fx File Manager. Tap on System(Root). Go to system/priv-app. Copy the Velvet folder and all its contents to Sd-card. Then go back to the system/priv-app/Velvet. Delete all the contents of that folder.
Step 7 :
Copy the Velvet.apk file you downloaded and renamed. Then paste it inside the system/priv-app/Velvet folder. Now Long press the Velvet.apk file and tap on Permissions. Make sure the permission is set to OCTAL : 0644 as shown in the picture below. You may be prompted to Mount Read-write, do that by tapping in the settings menu on top and select "Mount Read-write"
Step 8 :
Restart your device. Then open Google Search from app drawer. Then tap on Yes, I am In.
Step 9 :
Now open the Fx File Manager. Copy the contents of the Velvet folder you copied in Step 6.
Then go to system/priv-app/Velvet. Then paste the copied contents and overwrite the file. Then long-press the Velvet.apk file and go to permissions. Make sure the permission is set to OCTAL :0644 by modifying the permissions to look like the screenshot below. Likewise set the permission of 3 files in /velvet/lib/arm too OCTAL :0644. Then set permissions for folders(velvet,lib,arm) to OCTAL :0755.
Step 10 :
Restart your phone and Voilà! you now have Google Now enabled in your Android 5.0 Lollipop running device.
Source: thenepalidroidguy[dot]blogspot[dot]com/2014/11/how-to-enable-google-now-in-android-5.0-Lollipop-in-Nepal-and-every-other-countries-location-reporting-not-available-problem-solve-ROOT-Needed.html
is this valid in any country(eg. india) or only in google now available countries?? can i update google afterwards?
This is for those who wanted to have this function in their beast and yet no Note 5 rom is availble for their device , well smile..here you go
:good:Try at your own risk. I wont go in detail like step by step or what root explorer to use. You will have to figure it out. Im not trying to be mean but you will have to learn it =P
Your device must be rooted.
Download any rom that is made for Note 5 , custom or stock (make sure you ask for permission from the creator) , extract the folder "system/app/applicationspermissions"
and copy the folder (doesnt matter if is odex or deodexed) then paste it to your system/app/ and set the permission to the copied folder and the apk itself.
Then add the code below into your others.xml in you csc folder.
Code:
<!-- Smart Manager -->
<CscFeature_SmartManager_ConfigDashboard>dual_dashboard</CscFeature_SmartManager_ConfigDashboard>
<CscFeature_SmartManager_DisableAntiMalware>true </CscFeature_SmartManager_DisableAntiMalware>
<CscFeature_SmartManager_ConfigSubFeatures>roguepopup|autoclean|autorestart</CscFeature_SmartManager_ConfigSubFeatures>
Save , reboot and voila.
Bug
Nofitications - Block app notifications will FC.
Application Permissions - Sort by permission , will take some times to load the apps.
And it works , it does block what it offered.
Feel free to use
Thank you but nowhere i could got this foleder
system/app/applicationspermissions
can you please upload it.
Thanks in advance
SmartManager Dual dashboard
http://forum.xda-developers.com/note5/themes-apps/smartmanager-dual-dashboard-t3273609
Hello, this is my first post here ... (but that is not what matters now lol).
Well a few days ago, I was looking at some options in the "Link2SD" app and I was curious to test one of them, which was "transform the system app into a user app", and to do the test, I decided to choose the app system gallery app. And now it doesn't work anymore, every time I try to enter, it says "Gallery has stopped". And because of this I can't set up my background wallpapers to the *home and lock screen* How can I solve this? thanks for the attention
Please guys... I need some help with this
Here some information about my device:
-Stock ROM
-SpeedModev2.2 installed
-RZ Kernel-v3.5
-Baseband: G531HUBU0AQI1
Dann_44456 said:
Hello, this is my first post here ... (but that is not what matters now lol).
Well a few days ago, I was looking at some options in the "Link2SD" app and I was curious to test one of them, which was "transform the system app into a user app", and to do the test, I decided to choose the app system gallery app. And now it doesn't work anymore, every time I try to enter, it says "Gallery has stopped". And because of this I can't set up my background wallpapers to the *home and lock screen* How can I solve this? thanks for the attention
Click to expand...
Click to collapse
Hello! First of all excuse my English, I am using Google Translate.
So I hope you can at least understand me...
When you convert a system application to a user application the apk is saved in a root folder:
"/data/app/" so from there you can search the gallery folder and apk file, example: "/data/app/com.example.secgallery". copy that folder and paste it in "/system/app" or "system/priv-app" and restart the cell phone. Or you can create a folder too and paste the apk inside that folder in the system files. Cheers!
AguusOwo said:
Hello! First of all excuse my English, I am using Google Translate.
So I hope you can at least understand me...
When you convert a system application to a user application the apk is saved in a root folder:
"/data/app/" so from there you can search the gallery folder and apk file, example: "/data/app/com.example.secgallery". copy that folder and paste it in "/system/app" or "system/priv-app" and restart the cell phone. Or you can create a folder too and paste the apk inside that folder in the system files. Cheers!
Click to expand...
Click to collapse
Thanks dude :good:, I'll do the test. And don't you worry about the translation, I understood perfectly:laugh:
AguusOwo said:
Hello! First of all excuse my English, I am using Google Translate.
So I hope you can at least understand me...
When you convert a system application to a user application the apk is saved in a root folder:
"/data/app/" so from there you can search the gallery folder and apk file, example: "/data/app/com.example.secgallery". copy that folder and paste it in "/system/app" or "system/priv-app" and restart the cell phone. Or you can create a folder too and paste the apk inside that folder in the system files. Cheers!
Click to expand...
Click to collapse
In: system / priv-app, this folder already exists and contains the apk inside, there is also a folder called "lib", and in it, there are no files.
I also checked the directory: data/app/
and there is no com.sec.android.gallery3d folder
Should i move the folder:
com.sec.android.gallery3d...Which is at: system/priv-app to: system/app ?
Because in: "system/app" this folder doesn't exist