Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made changes #5

Open
wants to merge 33 commits into
base: master
Choose a base branch
from
Open

Made changes #5

wants to merge 33 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Feb 15, 2015

Supports more than one xml. Speed has been massively increased when porting xml file(s).

Unknown author added 30 commits February 14, 2015 22:50
- I have rewritten a good portion of the script for handling xml files.
- Script will no longer read entire xml file line by line.
- Script grabs only required info and reads to modify ONLY if applicable.
- INCREASE IN SPEED FOR PORTING HAS BEEN TAKEN TO ANOTHER LEVEL!!!!
- Supports more than one xml file.
- Add ability to change theme directory
- Add ability to change base resolution
- Add ability to change port resolution
- Updated quick selection check when choosing xml options
- Scripts searches for specific variables based on the TWRP Source.
- This update should eliminate the need to ask users about any given variable.
- This change speeds up the script for porting xml files.
- Made a change to how images are read which brings a slight increase in speed.
- Added option to automatically resize all TTF Fonts.
- TTF is supported in TWRP as of 2.8.1.0.
- Fixed typos made in version 4.2 and now variable tags are properly modified. Do not use 4.2.
- Bumped to version 4.3.1
- Porting the keyboard template is now supported. Full porting of the xml files is now supported.
- Updated ttf font resizing option to allow user to select the xml if more than one is present.
- Updated theme directory input to check for any "/" at the end and to remove it if it exists.
- Do not tell user that the keyboard template is being ported initially.
- Make some conditional checks first and if return is true then let user know.
- This update is necessary as to not report any misleading information should the conditional checks return as false.
- Bumped to version 4.4.1.
- The binary is not compiled as PIE.
- To allow NON-PIE binaries to work on Lollipop a simple hack is applied.
- The hack is a modified linker file which ignores conditional checks against binaries.
- By this method non-pie binaries are able to run on Lollipop.
- When you install GM for Lollipop then the original linker file is renamed to linker.mymind for safe keeping.
- You must select the option to uninstall GM in order to uninstall the hack and restore your original linker file.
- This hacking method is merely temporary until I or anyone else can compile a stable GM binary with PIE.
- Remove signature
- Remove alpha from sed
- Less needed commands
- Running a time test showed an increase in speed when resizing images.
- Quality of images were not affected.
- Reduce piping and calling additional external support
- Increases speed for resizing Images
- Remove unneeded commands while handling images.
- Cleanup portion of script which handles image's.
- Include ampersand when writing key variables so each 'if condition' can run together.
- Overall changes showed significant speed increase.
- Less calls for AWK thus increases speed.
- Fix up writing to certain files. Should file exist with previous content then write over it.
- TWRPUILOOP function simply reads all xml files based on count and then stores that info into an array.
- The function will loop through GOTOTWRPUI until all xml files counted for have been ran through properly.
- Cleaned up the script some more and went through to apply busybox touch where needed so no errors occur that files cannot be found or read.
- I do not fully understand why it must be done this way but this change is required to insure all applicable values are ported with one or more xml files and some are not overlooked.
- Never seen this funky result before so it has me a bit confused but nevertheless it fixes the issue at hand.
- Bumped to version 5.1.1.
- This version is currently stable and recommended above all other versions until future updates.
- A simple wrapper for running processes in parallel.
- Check for total number of processors on device and add one more.
- This speeds up resizing images pretty significantly.
- Speed improvements will vary on each device. Better the device then greater the speed.
- Speed varies on each device. Better the device then better the speed.
- Reverted back to using gm convert.
- Give a hint to the decoder that the image is going to be downscaled by a specific size allowing it to run faster by avoiding returning full-resolution images to GraphicsMagick for the subsequent resizing operation.
- Fastest option for sizing images that will obtain image quality.
- Fixed minor complaint that went unnoticed. Didn't harm anything in previous versions.
- Bumped to version 5.3.1
- Divide number by half and add one for running concurrent processes
- Time test on Materialized TWRP theme 2.8.6X_V1_720x1280 averaged 2 minutes and 30 seconds for scaling 1,305 image's on my HTC One SV (K2_CL) device.
- Example, if six CPU's are found then the script will concurrently scale images using four processes until all images are scaled.
- Bumped to version 5.3.2
- Build project allows the ability to compress necessary stuff to be appended to the TWRP script thus giving birth to TWRPPORTER
- See README.md in MasterMind dir for more info.
- Add arg for clean (development purposes)
- Bumped version to 5.3.3
- Add new option for installing pngcrush.
- Add new option for uninstalling pngcrush.
- Add new option to optimize PNG image's using pngcrush.
- Removed modified Lollipop linker and hack from script.
- Update GraphicsMagick to 1.3.21 stable release with 03 optimization.
- Static compiled GraphicsMagick and pngcrush binaries!!
- Bumped to version 5.4.

Make sure the Lollipop linker hack is uninstalled before using version 5.4 as it is no longer needed!!!!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants