(FOR PROGRAMMERS) Create a ROM apks' images resizing tool - Upgrading, Modifying and Unlocking

Hello Everybody , as i have seen this would apply to ALL android phones , so i posted it here !
I have searched over the xda , and couldn't see an apk resizing tool so it could fit on smaller devices more like hdpi to mdpi ... But it is easily possible with the script i am going to provide down ... I don't know if you heard about ImageMagick tools , a whole bunch of scripts almost capable of everything for editing pictures . These scripts contain a script called mogrify.c , this script can resize images in percentages , ratios , specific length and/or width ; but featuring a rare thing to find """RESPECT FOR ALPHA""" , yes it respects alpha = the transparent parts of the image are NOT filled with white instead of staying ...
USAGE :
So for the use of this script for example.png , if example.png was hdpi , we would type in for example "mogrify -resize 75% example.png" , and then example.png would be applicable to mdpi ... another example , but this time we have a bunch of pngs which need to be resized , so the command would be "mogrify -resize 125% *.png" and fastly they will be enlarged 25% each png in the specified folder ... and so on ... note that we can type in instead of 75% or 125% , 320x480 (but this will resize the image , not resolution , so only way for resizing from hdpi to mdpi using this script is by calculating ratios and percentages , and working on their basis ...
Ok so i was thinking one of the programmers could create a GUI for a proper use for ROMS , and this wouldn't be a hard task for programmers i guess , so what i want from the programmers to in this GUI is :
1-Extract every system apk except some(not at once , in alphabatical order) (if there was exceptions)
2-Run the script as wanted using percentages (from mdpi to hdpi , from xhdpi to mdpi etc ...)
3- XMLs are left to resize , so then include workspace.xml resizing or any other xmls (totally your job , i have no idea how it works)
4-Repack the apks and push them into a copy of the ROM
By that we could partially and most importantly ported a WHOLE rom to the desired device !!
The script is down , google for Mogrify if you needed a or wanted to know more info ! wish this stickies !
WARNING !! THIS TOOL DIDN'T WORK WELL FOR ME WHILE USING BATCHES (but worked pretty nice in normal cmd.exe) , TRY TO FIND AN ALTERNATIVE !!
PLEASE include me in the credits of it , I was very tiiirreeedd so i can find such an important script !!

How exactly do you run it? By making a batch file? I could definitely use this. Your OP is a bit confusing. But this does look promising.

hmm yeah forgot to tell how to run it , i will add it to OP ...

yes it looks prommising..let us know how to...gj

I am not a programmer myself , because of that i said [FOR PROGRAMMERS] , i am just a 14 year old student , but this GUI can be made like any other GUI , see like Virtous studio , it is a combination of many stuff all in one ! so this should be worth the hustle ! share it in your signitures , this will beautify the world of android !

any cotributions ??

Just came across this and first off thank you! I'm knee deep in a project that i need to convert a whole rom from hdpi to ldpi, this is a life saver. I will pass the word on to see if anyone wants to help you with the gui !
Sent from NS4G Pool Party

Thanks a lot , but actually i am NOT A PROGRAMMER , so i wished if i gave a headstart , the "guys" would continue the thing ! I can't do anything from now on , i gave what i had , and now its the programmers turn !

seaskyways said:
Thanks a lot , but actually i am NOT A PROGRAMMER , so i wished if i gave a headstart , the "guys" would continue the thing ! I can't do anything from now on , i gave what i had , and now its the programmers turn !
Click to expand...
Click to collapse
Yeah i got you, I'm going to see if any of my contacts want to take this on
Sent from my Sprint Galaxy Nexus
-Everything i post is opinion based on my experiences and should be taken a such.

any news ??

seaskyways said:
any news ??
Click to expand...
Click to collapse
you actually should stop in and talk to the guys who do TWRP i imagine a "one size fits all" theme zip would be awesome for them...

This is not meant for theming , this is for resizing a whole ROM apks ... so this is very important for the android devices , lets say the Sense 3.0 was given to the mdpi htc devices , wouldn't this be cool ??

seaskyways said:
This is not meant for theming , this is for resizing a whole ROM apks ... so this is very important for the android devices , lets say the Sense 3.0 was given to the mdpi htc devices , wouldn't this be cool ??
Click to expand...
Click to collapse
Trust me this is for themers too!
Sent from NS4G Pool Party

Yeah i know , I used this method to resize many things FOR THEMING , but i need help to spread it , I am not a recognized developer or even recognized user of anykind , so no one would look at this unless you guys spread it !

seaskyways said:
Yeah i know , I used this method to resize many things FOR THEMING , but i need help to spread it , I am not a recognized developer or even recognized user of anykind , so no one would look at this unless you guys spread it !
Click to expand...
Click to collapse
Believe me eyes are on this just be patient
Sent from NS4G Pool Party

Any updates ??

So I am the only one concerned about such a big project ??

seaskyways said:
So I am the only one concerned about such a big project ??
Click to expand...
Click to collapse
You made this rather confusing...
I see you attached some imagemajick code or something... But have you released something?
I don't understand from the OP if you've released something or written something, and there's no clear documentation of what's going on.

pulser_g2 said:
You made this rather confusing...
I see you attached some imagemajick code or something... But have you released something?
I don't understand from the OP if you've released something or written something, and there's no clear documentation of what's going on.
Click to expand...
Click to collapse
Dear Admin , No I haven't released anything , this is an Idea for the PC/Linux programmers... I have attached that file in there , so that I could make it easier for devs to accomplish what we all need , a tool to resize pngs without any loss of alpha data ... So if a Elite programmer could work on this , to decompile every apk in the system and resize all the pngs and xml files and recompile them into the ported system , then One Software would apply on all hdpi , mdpi , ldpi , xhdpi etc ! get it or still not yet clear ??

Hey OP - PM me, let's talk more. This sounds very doable to me, and I am a programmer. I just need some more details.

Related

Whole User Interface is Flash based... swf

Files taken from bada SDK... Language packs...
Rsrc_bada_S5250.rc1.org
Rsrc_bada_S8500.rc1.org
Extracted with:
http://forum.xda-developers.com/showpost.php?p=11101655&postcount=4
Thank you very much sebamix.
"Good news"...
Use Flash Decompiler and you can understand:
1.
Why black color Background is locked...
2.
Why only 10 sites for Apps and only 12 Icons each site...
3.
With Flash Decompiler very easily to modify.
And now the bad news...
RC1
I have no idea, If bada 2.0 brings more chance for customization, as I read something about Lock Screen. Btw. *.swf file...
Developer of User Interface came from Sweden... tata.
http://www.tat.se/
Best Regards
almost all samsung phones use a flash interface... so we just have to look how to edit those on bada....
i had a samsung star before and there everything was flash too so we maybe can change those files on wave too
great news , but we have to found a solution to replace the swf file .....
adfree , what is the original name of the file ?
so how will we change the menu background???
or it can't even be changed
i think i am so stupid when i see these things and donot figure them out
Many more *.swf and many other files are stored in RC1...
http://forum.xda-developers.com/showthread.php?t=928178
Between 100 and 140 MB... inclusive Fonts in TTF Format...
But again. No way at the moment to change something...
Best Regards
is that the 7mb file?
~MaX~ said:
almost all samsung phones use a flash interface... so we just have to look how to edit those on bada....
i had a samsung star before and there everything was flash too so we maybe can change those files on wave too
Click to expand...
Click to collapse
Now this explains why there are no native widgets. Posting to TamsBada, thank you!
Up:
http://tamsbada.tamoggemon.com/2011/03/30/bada-gui-is-flash-based/
TAMHAN said:
Now this explains why there are no native widgets. Posting to TamsBada, thank you!
Up:
h t t p : / / t a m s b a d a .t a m o g g e m o n . c o m / 2 0 1 1 / 0 3 / 3 0 / b a d a - g ui-is-flash-based /
Click to expand...
Click to collapse
Error 404 - Not Found
Sorry, the page that you are looking for does not exist.
You should delete these spaces
http://tamsbada.tamoggemon.com/2011/03/30/bada-gui-is-flash-based/
adfree would it be possible to make a custom application and replace the existing flash UI with it. I was thinking of Porting the enlightenment libs to bada and using them to create a community maintained, cross platform, UI.
something similar to: http://www.youtube.com/watch?v=lsw-_S7rZWg&feature=player_embedded
sabianadmin said:
adfree would it be possible to make a custom application and replace the existing flash UI with it. I was thinking of Porting the enlightenment libs to bada and using them to create a community maintained, cross platform, UI.
something similar to: http://www.youtube.com/watch?v=lsw-_S7rZWg&feature=player_embedded
Click to expand...
Click to collapse
That would be truly interesting... I think that if you get to replace it it should work...
At this time we stuck in some problems...
How to build valid RC1 or alternate way...
But work in progress.
Meanwhile you can study and extract self all files from your handset. Look at this:
http://forum.xda-developers.com/showthread.php?t=1010761
Best Regards
Hi,
I have to apologize - it was down as I enqueued the post with a bit of a delay.
Tam
Maybe new chance to mod Background in Mainmenu...
http://forum.xda-developers.com/showpost.php?p=25645157&postcount=11
I'm playing with Flash Decompiler...
But wow... so many black Pics...
No easy Background Color...
My knowledge about SWF and Flash is nearly 0 ...
Best Regards

[Q] Social Hub Premium for 525

I was wondering if we can enable social hub premium for low end devices?
Their are "minor" differences between S8500/S8530...
So without trying, no idea if success.
If more S5250 users contribute, we could try to find solution.
I have only S8500, so I can't check theory.
Best Regards
Hi,
I'm an Italian developper.
(sorry for my bad english )
With a small team we want to mod our S5250.
We have mod the menu background, adapted the wave spoofer and many other...
If you say me the "theory" we can try to make it
We have mod the menu background
Click to expand...
Click to collapse
You mean the swf ?
System\Rsrc\Flash\Menu\MainMenu.imswf
How? Maybe this work for others too:
http://forum.xda-developers.com/showthread.php?t=1052733
About SHP:
http://forum.xda-developers.com/showpost.php?p=11135222&postcount=60
Something like this.
Best Regards
No one SWF...
The Wave Lite have a different graphics' motor...
It use a RichUI
*Cut by TheZero*
The only problem is the font...
For the imswf...we have a LockScreen.imswf
to mod it you can rename it to .swf and open it with Trillix SWF Decompiler
and edit the image into the swf.
Good Modding and Good Luky
if you want some help...i'm here!
This sounds very interesting.
As "we" stuck into problem with *.rbm files.
I can't extract them... 32 Bit Colors...
Found only 16 Bit support Tools...
Hmmm. We have ColorTbl.rsb ...
Maybe here is it possible to play with colors... Check out QuB:
http://forum.xda-developers.com/showthread.php?t=1010761
Thank you very much for input.
Best Regards
Edit 1:
to mod it you can rename it to .swf and open it with Trillix SWF Decompiler
Click to expand...
Click to collapse
I know, but I can't write back into S8500...
http://forum.xda-developers.com/showthread.php?t=979796
We have already test Qub...
I have spoke with RusEm in 2010 for S5230 Modding
and Qub is programmed only for Nucleus Os based Samsung devices
Bada is Linux Kernel, Nucleus Structure and TouchWiz Graphics...
a MeltingPot!!
Yes you can write back swf...
Take the original swf and open it with HxDen or other Hex programm...
So you have to open the original RC1 with Hex Program...search the first 3 letters of swf
in Rc1 and you find the initial offset of SWF.
Now You can open the new swf with Hex and Put it into Rc1 from old offset
and over write the old...
If the old is bigger then new sobstitute the remain hex valute with 00
If the new is bigger then new you can't put into rc1
When Rc1 is saved you can flash with MultiLoader...
This is only the theory...you must test it
i Forgot to quote my team:
-Th3Zer0
-Zackron
and the samsungs5230[dot]tk forum
can any body explain how to change menu background colour in wave525
You have to make icons with color background.

[MOD]Transition Animation for all ROM (UNIVERSAL)

first of all , this is not my work , actually i saw it like years ago while back in MIUI 2.3 GB edge... so i really don't know who is the original author for this animation ...
today i see it again when i was looking for some theme , so i post here hope someone will like it.
secondly , the ZIP pack i use was simply delete and replace files inside of DOMINATION because i don't know how to make new one , hope Vertumus won't mind ... if so , i will remove this ASAP ...
i guess it's kinda pointless thing , but whatsoever , if it exists then it has its own use ...
can't really explain how it is with my poor english , but this video will tell you all.
i deliberately set animation scale to 10x to make the video clean , so , in real use it will be much faster ...
and yes, just simple replace some XML files under /res/ folder ...
i have done a quick test , nothing wrong so far.
i uploaded 2 flashable file , one for MOD and another one for restore .
as always , flash it at your own risk and be backed up before you flash it in case something went wrong.
ok , i don't know what i am doing here , if moderator see this is inappropriate , please kill this thread ...

Font Creation

Hi everyone
i want to create more fonts for LG G3 supports all languages but i don't have any idea how to do it. :crying:
i hope someone will help me.
i am not an expert so be easy on me
The font creation is standard, then u have to push it to your phone.
Try this:
http://ilovetypography.com/2007/10/22/so-you-want-to-create-a-font-part-1/
http://ilovetypography.com/2007/10/29/so-you-want-to-create-a-font-part-2/
...and good work
ok
Skin1980 said:
The font creation is standard, then u have to push it to your phone.
Try this:
...and good work
Click to expand...
Click to collapse
ok i finished my own designing, and want to install it , such as the font include int the lg smart world
is there any way to make it as .apk file , so i can install it?

[Guide][tip]adding text that appears while flashing a rom from cwm

Okay so this guide is for peoples (and everyone who are intrested) who requested me to demostrate how to manupulate the text that comes im cwm screen during flashing of a custom rom
****I AM NOT RESPONSIBLE FOR MESSING OF BRICKING YOUR PHONE SO PLEASE TRY ON YOUR OWN RISK****
First decompress the rom (you should know how to do that if you are trying to mod it or use search button )
For custom text, you have to edit updater-script
If you dont have any knowledge of updater-script then:
***DO NOT EDIT ANYTHING EXEPT WHAT I DO OR YOU MAY MESS UP YOUR ROM***
You may find the it here at:
META-INF/com/google/android/*here*
**do a Backup of the file first**
use ONLY but ONLY notepad++ for opening the updater-script or it may get currupted
Add this in given format::
ui_print("TEXT should be here");
(Note: you can add many lines in the given format if you want many lined texts while flashing)
Add your text start at top in tje format as mentioned and save the updater-script and replace it with original in the rom
Now compress the rom again and make a flashable zip...
And you're ready to see your custom text while flashing it via cwm
Credits: all xda dev who are amazing teachers..
Ps. Its my first thread so correct me if something is wrong
press THANKS if i helped you in any way
Cheers
Hritik154 said:
use ONLY but ONLY notepad++ for opening the updater-script or it may get currupted
Click to expand...
Click to collapse
lol
I use Notepad (not Notepad++) and it never gets corrupted. To be honest, any text editor will do, so long as you don't mess up in your editing.
NightRaven49 said:
lol
I use Notepad (not Notepad++) and it never gets corrupted. To be honest, any text editor will do, so long as you don't mess up in your editing.
Click to expand...
Click to collapse
Im generally recommending notepad++ for editing files..plus i said it MAY corrupt the file..its just a precaution for my future posts where you (in general) may want to edit xml files and opening with notepad will corrupt it...for example try opening build.prop next time with notepad you'll know what im talking about
Hritik154 said:
Im generally recommending notepad++ for editing files..plus i said it MAY corrupt the file..its just a precaution for my future posts where you (in general) may want to edit xml files and opening with notepad will corrupt it...for example try opening build.prop next time with notepad you'll know what im talking about
Click to expand...
Click to collapse
notepad++ have a good layout for editing a code
btw my friend kurotsugi already create this thread
and last...u must sign ure rom
Development in galaxy y is so fast now and i think no one is noob here
and why we are using Notepad++
becoz it has 3 formats for diff. operating system.
1.windows/DOS
2 unix/posix
3.mac
if u r writing code for linux than u choose 2nd one in EOL CONVERSION.
Becoz Android is linux based OS.
kartik verma said:
Development in galaxy y is so fast now and i think no one is noob here
and why we are using Notepad++
becoz it has 3 formats for diff. operating system.
1.windows/DOS
2 unix/posix
3.mac
if u r writing code for linux than u choose 2nd one in EOL CONVERSION.
Becoz Android is linux based OS.
Click to expand...
Click to collapse
Lol someone is spamming thread just cuz i pointed out error in his mod xD dunno how xda came to this point...anyyyway you already said no noobs here so i guess everyone knows its a linux based os and how to use notepad++ i said use it its upto you if you want to or not..and as i said its for precaution while editing xml files cuz they may get corrupted while using notepad..greets
Hritik154 said:
Lol someone is spamming thread just cuz i pointed out error in his mod xD dunno how xda came to this point...anyyyway you already said no noobs here so i guess everyone knows its a linux based os and how to use notepad++ i said use it its upto you if you want to or not..and as i said its for precaution while editing xml files cuz they may get corrupted while using notepad..greets
Click to expand...
Click to collapse
m not spamming ur thread
u r a free lancer and their is no error in my mod.
peoples like u who figuring out useless error in other mods which arent exist.
This is a thread , on the request of users.
u made thread like this.... XD
Why not u post about permissions in android ...??? They are more helpful than this plus.
kartik verma said:
m not spamming ur thread
u r a free lancer and their is no error in my mod.
peoples like u who figuring out useless error in other mods which arent exist.
This is a thread , on the request of users.
u made thread like this.... XD
Why not u post about permissions in android ...??? They are more helpful than this plus.
Click to expand...
Click to collapse
Please check your post or pm me if you wanna know something not related to this thread..its actually spamming just dont increase postcounts until or unless you have something to ask from this specific thread
Hritik154 said:
Please check your post or pm me if you wanna know something not related to this thread..its actually spamming just dont increase postcounts until or unless you have something to ask from this specific thread
Click to expand...
Click to collapse
no need to ask already learnt many thing which u are learning now.
and i dont want to increase post counts and i dont want likes , i never say other user to like maah post , i help u so hit thanks buttons.
like u who say "press thanks buttons"
kartik verma said:
no need to ask already learnt many thing which u are learning now.
and also want to increase post counts and i dont want likes , i never say other user to like maah like , i help u so hit thanks buttons.
like u who say "press thanks buttons"
Click to expand...
Click to collapse
Why do you have to be so irritating :/
Just simple to understand line:
DONT POST IF YOU DONT HAVE SOMETHING TO ASK RELATED TO THREAD
grow up guys
back to topic or malybru come here
The reason why you should use notepad++ is due to the way windows handles the return key (and other functions)
If you make a new line (ie press enter) windows and Linux handles this differently and may cause the script to fail unless using the way Linux interpretates it by using notepad++
Anyway there are plenty of threads in xda that go into far more detail & explain all the commands of the updater script so I suggest if you want more details please search

Categories

Resources