[Scripts] Update.zip maker, Backup/restore tool - Android Software/Hacking General [Developers Only]

Here are my two scripts that I have been working on.
1. Update.zip maker (Windows/Linux):
Get it here.
Usage is described in the comments at the bottom of the page.
Attached are the update scripts needed.
2. Backuptool (Windows):
Get it here.
Usage is at the bottom again. This has only been tested on a GSM HTC Hero so far.
This script is commented.
Please feel free to fork any of these. Please report any bugs you find here and I will try to fix them.
Thanks to daentech, AColWill, Tjh and pulser(_g2) for testing and helping write the scripts
Also, any ideas for a new script?

Related

[25/9/08] Tutorial - Make your ROMs SASHIMI-Compliant!

Hi all,
before I get started I would just like to say thank you to bengalih for
providing his excellent tools. All credit goes to him. Also, this method
would probably have been posted by him, but I think he's done enough
for us already
MODS: If this is in the wrong section, or should not be a thread, please
move it or delete it
So, this thread is basically dedicated to ROM chefs who would like to
make their ROMs compatible with the excellent SASHIMI tool which bengalih
has so graciously provided us with.
To get started, it's quite simple:
Download the attached OEM Package taken from bengalih's new ROM
Extract the Package in your OEM Packages folder (called Packages in KaiserChef and Kaiserkitchen
Cook it up!
What it does:
This OEM Package is actually quite simple. If you look at it, you'll see that it
includes Mortscript, which is used to trigger the .mscr script that is run by a
shortcut in startup, which checks for a SASHIMI folder every time the device
boots, and if there is one, it proceeds accordingly.
again, all credit goes to bengalih
enjoy
reserved.... (you never know)
reserved for changelog (if any)
I hate to ask seeing how bengalih has left, but is this all that is needed for SASHIMI compliance? I ask because the google cache of the tutorial states the use of a SASHIMI.xml file, which is not included in the package. I have not tested out your method, but will soon as I am trying to cook my own rom. I appreciate any help I can get on this as I waited too long before getting the package
this is the google cache here
evilvoice said:
I hate to ask seeing how bengalih has left, but is this all that is needed for SASHIMI compliance? I ask because the google cache of the tutorial states the use of a SASHIMI.xml file, which is not included in the package. I have not tested out your method, but will soon as I am trying to cook my own rom. I appreciate any help I can get on this as I waited too long before getting the package
this is the google cache here
Click to expand...
Click to collapse
See the official SASHIMI Compliance thread here

[UTILITY] Android Flasher v0.6 (25/06/2011) UPDATES THIS WEEK

Note : this is still in its beta stages, so if there are any problems, please ask in this thread and I will answer as soon as I can.
Extract the AndroidFlasher.zip into Applications Folder, and your all installed! you can then move the flashsplash.app wherever you want to, but leave the remainder of the folder intact else it will not work!
Current functions:
Recovery Flashing
Splash-Screen Flashing
APK installation
Push files
HBOOT flashing
To Do:
Allow multiple file push
Hope this helps,
any feedback will be appreciated
Enjoy
Changelog:
v0.6:
Slimmed down installation by using users SDK
Added Push file service
Added Flash HBOOT
Added Help screen
Improved GUI further
v0.5:
Added APK installation service
v0.4:
Improved GUI experience
v0.3:
Added Functionality of Recovery Flashing
v0.2:
Made Installation a lot easier
v0.1:
First created
is there a version of SDK that i must use?
Very nice and of great use to mac users love the existing windows version
Could i suggest adding "Mac version" or something similar to the thread title would help clarify the 2 different versions
Thanks I will do so now, and please tell me if there are any features that do not work, im currently not developing this further due to being on a long holiday, but will hopefully start again after the 26th August
Any updates?
Sent from my HTC Desire using XDA App
there will be updates soon, hopefully within the coming week, keep checking

[Dev] Output to CWM recovery via shell script (with sample) [Thanks Chainfire]

This is for developers, rom packers, etc.
When Rodderik was working on his sdboot partitioning script, I was told about a way to get a shell script run from recovery to output to the user using the ui_print command.
Since then, I have been curious if it is possible to report progress to CWM from a script as well.
I finally got around to doing some research and figured out how to get reporting progress working.
I used the sources found here to figure it out.
Then, while asking around where the ui_print stuff came from (so I can give credit) I was pointed to this post by Chainfire:
[TRICK/CWM3/EDIFY] Output to recovery UI from shell script
So it seems it had already been done (figures), but oh well, it's still good stuff!
I'm posting here so more people will see it and I've also attached a sample zip as a working example.
The example has been tested and is working in both Grape-Ape and Bonsai recovery.
Credits:
Chainfire for figuring this out to begin with.
chris41g for sharing it with Rodderik (and indirectly me) and for digging up the link to Chainfire's thread.
Rodderik for sharing it with me and creating a nice little sample for me (which exposed why my initial attempt wasn't working).
Note that, apparently, to get a nice full progress bar, the full value should be about "1.335".
Also my scripts are a little different than Chainfire's, but the basics are the same.
(Check the sources link if you want detailed descriptions of the commands.)
Enjoy.
=]
So much easier to skip the edify scripts and do everything from Sh scripts...
indeed much more flexibility doing it that way...i've been thinking about doing it this way myself from now on
Hi ive big problem.
I would try to convert the update-script to an shell script.
Its possible?
please help.
I use cwm 4.0.0.9 lg optimus speed.

Testers needed for new build.prop file!

ALWAYS make a databackup.img of your device BEFORE making changes to /system! I cannot stress this enough as any changes can cause ill effects and possible failures.
Please see the following post for details...
http://forum.xda-developers.com/showthread.php?t=1543991
If you have any problems, please report them to the original post.
This has NOT been tested or confirmed to work on any CDMA devices, which is why I need qualified testers to test it. If anything should go wrong, please restore your device using the databackup.img you made before testing this file.

[TOOL] Vox Remover

Team Voxive Presents: Vox Remover [DISCONTINUED]
[CROSS-POSTED from old Voxive GApps thread, some doesn't apply]
Long time no see, huh? Well, contrary to the Post title, I am back but it's different now! Why?
THESE GApps ARE NOW APART OF Open GApps!
I wanted to cover a few things about this package real quick though!
First, the source code has been moved and updated (the old actually was missing the newer releases!) onto GitLab. One note though is that the APKs themselves are managed using Git-Annex, so you will need that to "complete" your repo. Find the source code here: http://gitlab.com/TeamVoxive/vox_gapps/
Second, Open GApps includes a AROMA version too that will be easy for you guys to migrate over to!
Third, my other project, Vox Remover is on hiatus as it is semi-replaced by Open GApps as not only it includes more removals than the original PA/TK Gapps these were based on but it also includes the ability to remove ANY app (have to configure in config file).
Lastly, I want to mention my "other" project that I am still working on. Vox Variety is a 24-hour variety station playing a lot unique stuff!
You can find Open GApps at http://opengapps.github.io/opengapps/ with daily, auto-generated builds for 4.4x to 5.1x on arm(64) and x86(_64) with a ton of variants!
OLD OP BELOW!
Vox Remover, based on PA GApps Remover by @TKruzze, is a flashable script for rooted Android devices that allow you to remove some bloatware that may come with your ROM.
To use, just flash after your ROM of choice! It will walk you through making the file and it will then remove them. Finally, the Addon.d script will keep them removed across updates without a reflash!
REMOVABLE ITEMS
To see the list of items you can remove, visit this page on our GitHub Wiki.
DOWNLOAD AND FLASH
You will find detailed instructions how to flash and download links on this page on our GitHub Wiki.
SOURCE CODE
View the Source Code on GitHub! If you want to contribute, feel free!
CREDITS
@TKruzze for making the original PA GApps Remover
@Kiray1982 for the code to run the shell script remover inside the AROMA installer.​
XDA:DevDB Information
Vox Remover, Tool/Utility for all devices (see above for details)
Contributors
dotmaniac
Source Code: https://github.com/TeamVoxive/vox_remover
Version Information
Status: No Longer Updated
Current Stable Version: v5
Stable Release Date: 2014-12-26
Current Beta Version: v6.0.1
Beta Release Date: 2015-04-23
Created 2014-09-07
Last Updated 2015-06-27
CHANGELOG
Changelog
v5.1
Added CM AudioFX under the existing DSP option.
v5
Version Merge
The Major change in v5 is the fact that Lollipop and KitKat versions are no longer separate. This changes a few things behind the scenes but only one thing up front: A new Version selector dialog that let's you select KitKat or Lollipop! MAKE SURE YOU CHOOSE THE CORRECT ONE OR IT WON'T REMOVE!!
New Apps
I have added a couple of new apps also!
Euphoria Wallpapers
CyanogenMod's Eleven Music Player
These apps are most likely lollipop only but if you find a KitKat ROM with them, you should be able to remove them!
Other Fixes
Fixed Sorting of CyanogenMod and Other ROM items to be Alphabetical.
Spaces to TABS
NOTE
This is early days for the Mixed Installer and I need all the testing I can get! Please report your issues!
v4-kitkat and v2-lollipop
With v2, you can now restore from the config file so you don't have to edit it every time you flash!
Simply choose RESTORE when you flash to jump straight to the installer.
Want to edit your choices? Tap DON'T RESTORE and you will be greeted with the classic installer!
v3.3.1-kitkat and v1.1.1-lollipop
FIXES BUG IN v3.3-kitkat and v1.1-lollipop, see changelog below!
20141122 releases: v3.1/v3.2-kitkat/v3.3-kitkat and v1-lollipop/v1.1-lollipop
LOLLIPOP VERSION STILL NEEDS TESTING! PLEASE HELP!
NEW FEATURES
All versions
Thanks to a request on XDA, I have added support to remove the Boot Animation. Just select the new option and it will remove the animation, defaulting you back to the one built into the code.
v3.2+ and both Lollipop versions
Also, you can now separately remove Exchange Services so you can still use Exchange accounts in Gmail!
v3.3 and v1.1-lollipop versions
Finally, you can remove AOSPA's Lightbulb/Torch App.
BUGS
v3.3 and v1.1-lollipop versions
Fixed Git messing up EOL which made development tricky, didn't impact end users.
All versions
Wouldn't flash in some recoveries like the MultiROM one because it didn't have an updater script file. I added a dummy file and now it works.
All versions
When I based this project off of the PA GApps Easy Config script I was working on, I accidentally left some items in the config script named "aosp_prop" instead of "gapps_prop". To make it easier, I renamed both to just "prop".
CLEAN UP
All versions
I did some misc. cleanup including:
Changing the author name to my new username: "bgiesing"
In config script, fixed leftover PA GApps config name and replaced with Vox Remover.
In the Install Script, I removed some extra headers and the part that looks for your text file as it is always in the same place now.
v3
AROMA Installer: The zip is now using AROMA! That means that you can use a simple click interface to config your choices.
One ZIP! I figured out how to run the current script from AROMA and show output which means you don't need two ZIPs! Flash one for everything!
Added a request: PhotoPhase Live Wallpaper
Combined: Development and SpareParts into one entry as if you are going to remove one, you are most likely going to remove the other.
Fixed: Addon.d Script! In the older releases, there were two problems with the script. The first was the ZIP not installing it on your device which means it can't work at all. The second is that even if you copied over the script manually, the items to restore were in the "restore" section and not "pre-restore" and this caused things like AOSPA's script to not restore completely!
v2
Fix SlimIRC and PAC-Man apps not removing
First Public release
v1
BETA Release, Initial Release
Reserved
good
this looking helpful!
No instructions on how to install/flash? I understand you based your work on TKRuzze's GApps Remover but it might be wise to add instruction in your original post as to how and when to flash your zip and/or would it conflict with TKRuzze's and the likes of those kind of questions.
So far, I'm liking this project.
Rickav said:
No instructions on how to install/flash? I understand you based your work on TKRuzze's GApps Remover but it might be wise to add instruction in your original post as to how and when to flash your zip and/or would it conflict with TKRuzze's and the likes of those kind of questions.
So far, I'm liking this project.
Click to expand...
Click to collapse
There is instructions, it tells you how to make the text file and to flash, if you don't know how to flash, then you shouldn't be using custom ROMs!
As for possible conflicts, they both supplement each other, one removes GApps and the other removes stock apps! They are safe to use together!
dotmaniac said:
If you don't know how to flash, then you shouldn't be using custom ROMs.
Click to expand...
Click to collapse
If I didn't know how to flash, I couldn't use a custom ROM in the first place.
In any case, I must have missed the the "when to flash" bit in your OP and, on that front, this project looks even more promising.
Rickav said:
If I didn't know how to flash, I couldn't use a custom ROM in the first place.
In any case, I must have missed the the "when to flash" bit in your OP and, on that front, this project looks even more promising.
Click to expand...
Click to collapse
I agree with you, the OP didn't mentioned where we have to put the file etc...
For beginners (like me) it's not as easy as it could be for experienced people.
Please give us some advice
Sent from my One
splokow said:
I agree with you, the OP didn't mentioned where we have to put the file etc...
For beginners (like me) it's not as easy as it could be for experienced people.
Please give us some advice
Sent from my One
Click to expand...
Click to collapse
Read again:
dotmaniac said:
To use, make a text file named ".vox-remove", put it in the same folder as the ZIP or the /sdcard root, and put a keyword from the list below. The file should have no extension. Remove anything in BOLD. After making the file, flash normally anytime after flashing the ROM (before or after GApps, kernel, etc.)
Click to expand...
Click to collapse
dotmaniac said:
Read again:
Click to expand...
Click to collapse
Thank you for editing
Sent from my One
Okay guys, here is a little bit of a news update!
I am still working on this, I just need a suggestion on apps that you guys want removed!
Secondly, I am in contact with @osm0sis to make an AROMA zip that will create a file for the new AOSPA shell GApps! This will save people the trouble of figuring out how to correctly make the text file. Hopefully, I can also make one for the remover!
I just released an AROMA zip to make the text file for PA GApps remover, I am going to try to have one up for Vox remover eventually!
dotmaniac said:
Me, @hlxanthus, and @osm0sis have been working on an easy config tool for making the .gapps-remove (soon .gapps-config) file. @hlxanthus has already posted a few versions and now here is the next step.
Download pa_gapps_config-20140916b.zip
Compared to his versions, the interface is completely slimmed down and the ZIP is smaller. How? Well, I used my base which is categorized and has a better file structure. The ZIP is smaller thanks to a few things: One includes less words in script files. An example is resread instead of zipread. This allows you to not have to enter the full file path. Secondly, he added a Splash image and I ran it through a PNG compressor. Before it was 520 KB and is now 130 KB. Third, my base doesn't include extra themes and icons that make up most AROMA zips.
Thanks to @osm0sis and @hlxanthus for ideas, shell help, and AROMA help. Specifically @hlxanthus for the backup code and verification screens. Also @osm0sis for the grep -w flag hint and help for other projects I have done.
Click to expand...
Click to collapse
Suggestion
dotmaniac said:
Okay guys, here is a little bit of a news update!
I am still working on this, I just need a suggestion on apps that you guys want removed!
Secondly, I am in contact with @osm0sis to make an AROMA zip that will create a file for the new AOSPA shell GApps! This will save people the trouble of figuring out how to correctly make the text file. Hopefully, I can also make one for the remover!
Click to expand...
Click to collapse
1. Thank You!
2. Can you add the following Apps?
Cell Broadcast
CM Account
CM Video Editor
CM Home
3. What is the difference between (Development Extra dev tools & SpareParts Extra dev tools) ?
Thanks Again!
zakaziky said:
1. Thank You!
2. Can you add the following Apps?
Cell Broadcast
CM Account
CM Video Editor
CM Home
3. What is the difference between (Development Extra dev tools & SpareParts Extra dev tools) ?
Thanks Again!
Click to expand...
Click to collapse
CM Home, Cell Broadcast, and CM account are essential for device use, aka if you remove them, your device won't work.
There is no such thing as the CM Video Editor... The video editor included in CM is the AOSP Movie Studio.
Also, Spare parts and Development are two separate apps. They both are advanced tools for app development.
- Exchange services
- AOSP keyboard (?)
- Camera
- Black hole, Sun beam, Bubble
(Do basic live wallpapers include Nexus and Spectrum?)
PünchUp said:
- Exchange services
- AOSP keyboard (?)
- Camera
- Black hole, Sun beam, Bubble
(Do basic live wallpapers include Nexus and Spectrum?)
Click to expand...
Click to collapse
Exchange services are there.
The keyboard we don't allow to remove because if you don't install a keyboard, you will be unable to type!
Camera I'll have to think about.
The live wallpapers are there, they just may have different names. Black hole is actually called Galaxy4.
Basic live wallpapers (I think) include Nexus. Spectrum is a part of Visualization Wallpapers.
‘Email’ removes both Email and Exchange Services?
PünchUp said:
‘Email’ removes both Email and Exchange Services?
Click to expand...
Click to collapse
No... Email removes email and Exchange removes Exchange
PünchUp said:
‘Email’ removes both Email and Exchange Services?
Click to expand...
Click to collapse
Sorry, forgot... Email removes both.

Categories

Resources