[Windows][ADB] Easy way to backup & restore your apps - Nexus 4 Themes and Apps

You need adb to run these files !
Download Android SDK , adb is one of its components.
Also you will need to have USB Debugging enabled on your phone and adb drivers instaled on PC.
( Many of you may already know that you can backup your applications in a nexus device through cmd commands. )
Feature is included in all roms and with one command you backup or restore all your apps.
Although it is easy i got tired of checking/writing the command everytime i need it.
So i made 2 ".bat" files to make my life easier.
It's a Windows executable file which runs the command with one click.
Just put the bat files in your user folder ( cmd default folder ) and double-click to backup/restore ur apps.
{
"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"
}

denpeirazei said:
Most of you already know that you can backup your applications in a nexus device through cmd.
Feature is included in all roms and with one command you backup or restore all your apps.
Although it is easy i got tired of checking/writing the command everytime i need it.
So i made 2 ".bat" files to make my life easier.
It's a Windows executable file which runs the command with one click.
Just put the bat files in your user folder ( cmd default folder ) and double-click to backup/restore ur apps.
Click to expand...
Click to collapse
Cool man.. and thanked you.
You made my ass more laaaazzzzyyyy..
Also can u please make it work on Win7 versions. :good:

you can also use airdroid with usb tether or wifi, and snappea

Rohit02 said:
Cool man.. and thanked you.
You made my ass more laaaazzzzyyyy..
Also can u please make it work on Win7 versions. :good:
Click to expand...
Click to collapse
It works in any windows version.

I usually add the -shared flag as well to b/u sd card contents.
ADB b/u is a great tool indeed.

thanks for this man...
BTW I made this simple batch file to install apk from windows pc using the command :
Code:
adb install <name of apk>
just drag and drop the apk on this install.bat file... make sure that install.apk is in the same folder as that of adb..
this might make your life even more easier..

Related

Open Cramfs image for JF1.51 CRB43-US using Cygwin

OPEN CRAMFS WITH
{
"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"
}
SHELL...
I have finally figured out how to open or make Cramfs images using Cygwin. And it is much more easier to use then my previous thread on How to Theme JF1.51 CRB43-US using Ubuntu. If you don't believe me, take a crack at it. Themers get on your grind. Your going to laugh when you see how easy it is to do. I would have not continued to explore Cygwin option for Cramfs if it wasn't for Binary100 100 and the others that had problems with the Ubuntu way, like bboy_201. I didn't forget about you...
I hope that all of you guy/gals that were having trouble with the Ubuntu way, suceed with this method.
Complete Setup in 7 steps
1)Download and install Cygwin.
2)When you reach the select package menu open Devel.
3)Scroll down to the Cramfs and select 1.1-1 26k.
4)Click next to finish the setup.
5)Right click on the Cygwin icon on your desktop and click on Open file location.
6)Open the home folder. You will see your name there. Make a shortcut of your name and place it on your desktop.
**Everytime you open Cygwin, this will be your default folder**. This is why we placed it on our desktop.
7)Open the shortcut folder and hide the .bash_profile, .bashrc,and .inputrc folders(right click-->properties-->click Hidden). This is so that you have a clean folder to work with. You can rename this folder to help you identify it later.
Your setup is completed!!!
Now what???
Download the Theme template !!!
You MUST use the ORIGINAL files from the framework and app's folders of CRB43-US to prevent problems/foreclosers!!!
To easily open an image, you:
Place the framework.cramfs from the template in your shortcut folder.
Run Cygwin Shell and simply type:
Code:
cramfsck -x framework framework.cramfs
Now look in your shortcut folder, you will see a folder called "open" with all the framework folder files inside.
Now you can edit the framework-res.apk, Xml's, jar,etc...
Making your custom image is just as simple, when your finished modifying ,type:
Code:
mkcramfs framework framework.cramfs
Your new custom cramfs image is in the shortcut folder ready to be placed in the Update.zip
RichieDaze you are the man, now working on Windows Server 2003!
Great tutorial now I can port my theme for more users thanks!
What a wonderful tool you have discovered! Finally I can edit the ROM I want to use.
I prefer to use the "Tmobile" stuff just in case problems arise. Have been using ADP.
Thanks again for the super info and tut!

[PC-APP] G-Tab Mod Tool - De/Recompile APK/JAR, Pull/Push files, Install/Remove Apps

I made this tool originally for SonyEricsson Xperia X10, but have now modified it to work for our Galaxy Tab, best suited for deodexed ROMs. I hope it will make life a little easier when modifying files on the device. It uses ADB to pull and push files, so users don't need to remember long command prompt/terminal emulator commands anymore. It also has a nifty little application manager, which allows for quick installation, backup, and removal of both pre and self -installed software. It has a LogCat function to read and save logs on the go when investigating errors, as well as functionality to decompile/recompile, sign and zipalign APKs and JARs.
{
"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"
}
Instructions:
1. Extract archive.
2. Run GalaxyTabModTool.jar
Note: Make sure your phone is connected in debug mode, you have root privileges, and unsecured your device's shell. The application will try to unsecure your shell if you haven't already, but worst case scenario you might have to do this manually. Also, the manage ROMs functionality is still experimental and has therefore been disabled.
If you have problems, let me know and I will try to sort them out with you. Keep in mind that often when a modification goes wrong, you can simply push back the original files and reboot. So keep backups handy!
Reserved...
Looks good, won't run on Ubuntu though. Any chance it will?
Nice tool, thanks for sharing.
Unforunately i'm having a problem with the attached .apk, basicaly when i try to decompile it, your tool does stop.
Thanks for this. I've been wanting this functionality...
Thank you good sir.. Button pressed, download started... Will report back..
TheGrammarFreak said:
Looks good, won't run on Ubuntu though. Any chance it will?
Click to expand...
Click to collapse
Sorry no plans for this now at least.
af974 said:
Nice tool, thanks for sharing.
Unforunately i'm having a problem with the attached .apk, basicaly when i try to decompile it, your tool does stop.
Click to expand...
Click to collapse
Yeah you are correct. Some files need to have dependencies attached for APKTool to extract properly. I will try and implement this functionality in next version.
This is very useful and will definitely save a lot of time during post-flash setup
Thank you
hmm, any idea what driver i should use to get my pc recognize my tab when i connect it on usb?
i left my kies, so kies is not an option for me, any driver around?
its euro tab and for windows xp btw
thanks before
Justin^Tan said:
hmm, any idea what driver i should use to get my pc recognize my tab when i connect it on usb?
i left my kies, so kies is not an option for me, any driver around?
its euro tab and for windows xp btw
thanks before
Click to expand...
Click to collapse
http://lmgtfy.com/?q="Galaxy+Tab"+USB+driver

How can I backup my JB GN via USB

Hi mates, i've been trying to backup (to Windows 7) my JB GN via USB (MTP) unsucesfully, suddenly the backup process just shut itself and when I tried to backup via AirDroid just takes forever.
Is there an app or a way to backup my GN to my PC, the entire /sdcard content, my GN is not rooted.
Thanks in advance.
Enrique.
Piece by piece.
Or:
Code:
adb pull /data/media/ /SDCARD/
This will backup your SDcard to a SDCARD folder on your C:\ drive.
Well, I have installed JDK 7, Android SDK, downloaded tools for USB and set the $PATH env on Control Panel, yet I dont manage to get the 'adb' prompt from windows cmd, is there anything I'm missing or should I do an adiccional steps?
Thanks.
Jubakuba said:
Piece by piece.
Or:
Code:
adb pull /data/media/ /SDCARD/
This will backup your SDcard to a SDCARD folder on your C:\ drive.
Click to expand...
Click to collapse
[SOLVED] How can I backup my JB GN via USB
After installing the afore mentioned software, I closed the previously oppened windows prompt (duh! my fault!), created the folder 'SDCARD' in C: drive, and afterwards I executed the following command from the promt:
Code:
adb pull /storage/sdcard0/ /SDCARD/
Which from Astro File Manager I see its the location of my data; currently as I write I see the backup working.
SpecRek9 said:
Well, I have installed JDK 7, Android SDK, downloaded tools for USB and set the $PATH env on Control Panel, yet I dont manage to get the 'adb' prompt from windows cmd, is there anything I'm missing or should I do an adiccional steps?
Thanks.
Click to expand...
Click to collapse
Well, after proceeding as mentioned above I now check the sizes of my backup and of the sdcard0 partition at my GN and they are almost 1.4GB different, what does this mean? It's because of the 'formatting' space reduced (not sure if my english can explain what I meant) or what can it be?
Thanks all for your replies.
{
"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"
}

removed "firmware" files in z1c-44-uk.system.flashable.zip?

i'm currently trying to make a flashable zip with my "own" firmware "D5503_14.3.A.0.681_EURO LTE"
when i compared the the content of systems.tgz from the file z1c-44-uk.system.flashable.zip with the system.sin file of my firmware i noticed a bunch of files are missing in the tgz file.
so i looked at D5503_14.3.A.0.681_Generic UK.ftf and noticed the firmware files are there.
Different files in system
D5503_14.3.A.0.681_EURO LTE vs 1c-44-uk.system.flashable.zip
{
"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"
}
D5503_14.3.A.0.681_EURO LTE vs D5503_14.3.A.0.681_Generic UK.ftf
D5503_14.3.A.0.681_Generic UK vs 1c-44-uk.system.flashable.zip
why were these files removed in the flashable zip?
Are you talking about the z1c-44-uk.system.flashable.zip from my guide here: http://forum.xda-developers.com/showthread.php?t=2688933 ?
I didn't remove any files, I built it directly from the system.sin (mounted it in ubuntu).
All those files in your last picture are inside my system.tgz.
zxz0O0 said:
Are you talking about the z1c-44-uk.system.flashable.zip from my guide here: http://forum.xda-developers.com/showthread.php?t=2688933 ?
I didn't remove any files, I built it directly from the system.sin (mounted it in ubuntu).
All those files in your last picture are inside my system.tgz.
Click to expand...
Click to collapse
your right, seems like they are symlinks and winrar does not unpack them on my pc unless you start it as admin ?!?
TQuest said:
your right, seems like they are symlinks and winrar does not unpack them on my pc unless you start it as admin ?!?
Click to expand...
Click to collapse
No idea. I recommend to not use windows for stuff like that anyway. Just set up a ubuntu vm with VirtualBox. You also don't need any extra tools there. Just unpack the system.sin to system.ext4 with flashtool and mount it under ubuntu.
zxz0O0 said:
No idea. I recommend to not use windows for stuff like that anyway. Just set up a ubuntu vm with VirtualBox. You also don't need any extra tools there. Just unpack the system.sin to system.ext4 with flashtool and mount it under ubuntu.
Click to expand...
Click to collapse
i agree with you, i was just using windows for a filecompare because i thought it was more conveniant.
for everything else i'm using the same setup as your are: virtualbox with ubuntu :good:

[GUIDE] Use TWRP through ADB Shell

Dear user, we hereby say that any damage or brick created by following this guide shall not give any fault on us. The requirements for this procedure are clarified and we take no responsibility for bad usage of this.
Click to expand...
Click to collapse
Dear XDA community,
Straight from the efforts of user @LastStandingDroid, here's a way to flash a zip file or some other operation in TWRP if you cant access some part of the touch screen due to it being broken and not detecting touch, for example.
Requirements:
A toaster wich can run Windows, MacOS or Linux. (joking on toaster part)
ADB Drivers (if needed, you can find something here) - this link is only for windows users.
TWRP installed (follow this guide for installation)
Minimal command knowledge
We will use as example, a flash of a zip file to get root on a Umidigi Z Pro:
Open command prompt;
From here, change directory to ADB Directory (cd path/to/adb)
Now type "adb shell twrp install path/to/zip", being the part path/to/zip the actuall path to the zip file you want to flash;
At this point, you should get a screen where every step of the flashing process will be shown, just like when flashing through TWRP. And that's it.
{
"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"
}
Credits:
All of them goes to @LastStandingDroid and @gersp for his tutorial thread.
Now lets heat up things...​
atarii said:
Atarii:
that handy to know
Click to expand...
Click to collapse
And I certainly agree with his statement (telegram) while there was almost no info about how to flash zip trough adb and the echo update command did seem to fail. Or maybe I did wrong I don't know. I find this great if the echo command fails
This made my root come back when something broke it
Sent from my GT-I9505 using Tapatalk
I have access to a super primitive recovery mode, in which twrp doesn't seems to boot.
When I use
# twrp anycommand
I get:
TWRP does not appear to be running. Waiting for TWRP to start . . .
Press CTRL + C to quit.
Is there a way to "start" twrp from adb shell ?
It's worked on my PH-1,thank u so much

Categories

Resources