Related
After months of learning and digging deep inside the Atom Life, I think now it's time for a newer Rombuild.
Cooking the imgfs is not the problem, but I didn't understand the XIP from Atom Life.
We have 2 XIP parts, compressed in SRPX format.
Grabbing them is no problem with Scoter Kitchen Tool MSFLSHTOOL.exe.
The kitchen contains 2 tools to change from SRPX to XIP and reverse.
As I described in the Atom Life Kitchen thread, repacking the XIP.bin to SRPX causes a smaler file than the source file.
The cooked OS doesn't boot.
That's the first big problem.
The second one are the two XIP sections. The first one is bigger and contains some files, the second one didn't has.
But some files are existing in both sections with different sizes.
So cooking the Atom Life XIP seems more complicated than in other devices.
Here are the 2 XIP sections. Hope someone has an Idea, how we can work with these files:
http://rapidshare.com/files/79622471/LifeXIP.rar.html
Edit:
The first problem is solved. I have compared the original XIP part with the new one in a hexeditor.
I've simply hexedited the beginning and filled the end of the new file with FF to match the needed filesize.
After comparing both, now the new file is identical.
Maybe later, we can use the space of 300kb to encrease the memory of Atom Life .
I wonder, where all the ROM-Cookers for Atom Life devices are hidden.
Another positive aspect is, now we can change the Pagepool of the Atom Life.
After changing the PP from 8MB to 4 MB, my device has a total Program memory of 52.41 MB. After a fresh setup and some tweaking with SKTools, I have, after a softreset more than 29 MB free Programmemory.
I know someone who can handle these files,and he has cooked a 18538 rom for atom life,here is the link:http://www.pdaclan.com/forum-7-1.html, btw,can you tell how to change pageing pool of life?Thanks and sorry for my poor english,hope you can understand what i mean
qq108108108 said:
I know someone who can handle these files,and he has cooked a 18538 rom for atom life,here is the link:http://www.pdaclan.com/forum-7-1.html, btw,can you tell how to change pageing pool of life?Thanks and sorry for my poor english,hope you can understand what i mean
Click to expand...
Click to collapse
Thank you for the hint.
As I can see (or guess, because I can't chinese) there are some ROMs for Atom Life. Even some Pagepool changed.
You can change pagepool only, if you extraxt the XIP, edit it and cook the new ROM and flash it.
But if there are already some ROMs, there is no need to explain, just download the OS of your choise.
I wonder, why nobody of the Rom cooker offers his work for english speaking people ?
As I can't read chinese, please can you or someone else post download links to the Atom Life ROMs of this site ?
Thank you
I want to help you,First,you should log in,use account:qq108108 password:aaaaaaaa,when you log in,simply chick the post,you will see the download link, you would not miss it!I have a problem:when I use Atom Life Simplified Kitchen - Sdh, I got a wrong message:The output sign-buffer is to smal for encrypted signs.Encryption from Unicode (UTF-8) in dodgeposition System.Text.DecoderReplacementFalback." I wonder how to solve this problem and make my rom bootable,Have you have a MSN or something,maybe we can talk about how to make a bootable using the rom Kitchen !!
qq108108108 said:
I have a problem:when I use Atom Life Simplified Kitchen - Sdh, I got a wrong message:The output sign-buffer is to smal for encrypted signs.Encryption from Unicode (UTF-8) in dodgeposition System.Text.DecoderReplacementFalback."
Click to expand...
Click to collapse
Thank you for helping
That's the same problem, I have with my german XDA Comet ROM.
Unfortunatly I have no idea to fix it.
If I find further solutions, I 'll post it.
The Atom Life WWE ROM runns fine with the kitchen. So I'll use this ROM .
I will take o look at pdaclan. Maybe google translation gives me more informations.
Bye
So can you just tell me how to change the pp please?Thank you!!
Of course
Hope I can explain it that everybody can understand. Because it's hard for me to explain thinks in a foreign language.
1. You need an original Atom Life FLASH.dio
2. remove the 12 bytes header with a hexeditor and rename the file to AL1.dio (you don't need these step, if your file is already prepared for MiniSD card flashing. Only for original ROMs from official Updates)
3. download Scoter Romkitchen.
http://rapidshare.com/files/15460590/Scoter_Kitchen_1.0.exe.html
or http://www.megashare.com/107480
4. You need the SRPX tools from this kitchen.
5. put the ROM in the SRPX folder
6. in commandline change in SRPX folder and type:
Code:
msflshtool AL1.dio -d -p 1
7. You'll get a new file called AL1.dio.part1
8. Now type:
Code:
SRPX2XIP AL1.dio.part1 xip.bin
this will produce xip.bin
The SRPX compressed XIP will be changed in the regular XIP format.
9. Locate the following hexstring with an hexeditor:
Code:
FFFFFFFFFFFFFFFF9B4FFFFF64B00000
One line below, you will see:
Code:
00008000
That's the actual pagepool from 8 MB
10. change the value to:
Code:
00004000
or an other prefered pagepoolsize. Save the file first.
11. Now the tricky part, I don't know an easier way yet.
12. type:
Code:
XIP2SRPX xip.bin
You will get a new file called: xip.bin.xiporg
13. As you can see the new file is much smaller than the original one part1.
So you must fix it with the hexeditor. You must compare the original file with the new one.
14. the beginning of the new file should look like the original one, so you must edit the values in the new one till the word SRPX.
After I take a learning lesson by my "teacher" ferryboat, I found out that steps 15 - 17 are not neccessary !! Jump to 18.
(Will edit the howto, after further compare)
15. the old file is bigger and the end is filled with the value FF.
16. just copy the FF -block and paste it to the end of the new one. Save it.
17. Compare if the new file has the same size like the old one.
18. type
Code:
msflshtool AL1.dio -r xip.bin.xiporg -p 1
19. the new file will be written in the AL1.dio ROM image.
20. put the image to the MiniSD . Bring the Atom Life in bootloader-mode and flash it.
Done and ready
You can test several pagepool sizes.
CU
scorpio16v
Thank you!!!Now I have download the new 18538 rom,BUT the Programmemory only have 22MB free,So I need to do something to make it larger.Thanks for you great work!!If you need any help,just tell me!!!And pdaclan have a new rom kitchen for atom life too.
After reading your stuff,It seem that a little bit diffcult for me to understand,But since you explain so well,I think i can make it happen!!
qq108108108 said:
After reading your stuff,It seem that a little bit diffcult for me to understand,But since you explain so well,I think i can make it happen!!
Click to expand...
Click to collapse
You need only to copy and paste the quoted commands in commandline.
The whole procedure needs only about 10 minutest from editing the ROM till to the ready flashed device.
Even the hexeditor is included in Scoter Kitchen, so you have all tools that you need.
The hexeditor in Scoter Kitchen called XVI32. For editing, just open it twice and load the original SRPX.part1 in one and the edited in the other opened instance.
At the beginning of the file, you will see the difference. Only edit the values that are different, till the text "SRPX" (you'll see it).
To copy the "FF" block, just go to the end of the edited file, you'll see where the file ends.
At the original file, there is the beginning of the "FF" block.
Go to first "FF" value,
press CTRL+B , goto the last "FF" value, press CTRL+B again, you will see the block red marked.
Go to "copy to clipboard" button and push.
Now go to the end of the new file and press the "paste from clipboard" button and save.
Hope that some of the new ROMS, tools and knowledge from PDAClan find the way to XDA-Developers, because that'll be bring "life" in the Atom Life comunity.
Thank you for YOUR help.
I hope so,The one who made the 18538 atom life rom had ask you question before.If I meet him ,I will tell him to come here and teach both of us the method to port the xip!!
Done!!Thanks for your tutor!!
I don't understand what it's mean:"cut the 12 bytes header with a hexeditor and rename it to AL1.dio". Could you please explain it more? I'm a new with Atom Life. Thank so much Mr. scorpio16v.
nhathoa said:
I don't understand what it's mean:"cut the 12 bytes header with a hexeditor and rename it to AL1.dio". Could you please explain it more?
Click to expand...
Click to collapse
Sorry, but if you don't know what an hexeditor is and how you should use it and you even can't simply rename a file, it's not the right thing for you to do these job.
Sorry, I tried to make everything you told, rename Flash.dio to AL1.dio and put AL1.dio into SRPX tools folder, then run cmd with command: msflshtool AL1.dio -p 1. Final, it show: "the file is not msflsh50 format" ??? and there is no file "AL1.dio.part1" was generated in SRPX tool folder???
Maybe I don't undersatand "cut 12 bytes header"
nhathoa said:
Sorry, I tried to make everything you told, rename Flash.dio to AL1.dio and put AL1.dio into SRPX tools folder, then run cmd with command: msflshtool AL1.dio -p 1. Final, it show: "the file is not msflsh50 format" ??? and there is no file "AL1.dio.part1" was generated in SRPX tool folder???
Maybe I don't undersatand "cut 12 bytes header"
Click to expand...
Click to collapse
Just open the file with the hexeditor and cut the first 12 bytes to remove the header of the file. than save it.
For example:
XX XX XX XX XX XX XX XX XX XX XX XX E9 FD FF 00
You must delete the XX.
So the new file beginns now with E9.
Thats only an example, maybe your file looks different at the beginning, but you must cut the header.
(XX are only placeholder. You'll see other entries in Your file)
Okok just "remove" 12 bytes header, not "cut" 12 bytes header. Now I can do that. Thank you very much.
An idea: there is a simple tool to change papetool only for "Hermes". With this tool, just load Os.nbh and set 4/6/8/12 Mb, then you will get a new OS.nbh file with papepool you want. That's so easy... You will make a tool like that? I hope so, great man.
nhathoa said:
That's so easy... You will make a tool like that? I hope so, great man.
Click to expand...
Click to collapse
I'm not a programmer or IT expert. So someone other will do that.
I was told that the guy who made 18538 ROM would make a WWE 18538 rom for atom life.So you can just wait for the new rom.Also ,he told me that if we want to edit XIP part ,just need to edit the part1.
Is it possible for me to cook a personal ROM? I have tried alot of ROMs here but ever since HTC's new official ROM was out (asia) , I find it really good for me. One thing i hate from the ROM compared to cooked roms are that everything is disorganised. Everything is in 1 program file. In cooked Roms, the chefs have already taken the liberty to assign each app to their appropriate folders (apps,connection,multimedia, etc)
I would like to do the same , however it takes alot of time for me to do so but I can manage that. What i really want to do is, after organising the apps to their respected folders, and installing all of my needed softwares on the phone, how do i make a complete backup of the ROM, and then save it on my computer perhaps. So then i could flash my phone with the backup ROM and the next time i were to flash my phone, everything would be there (my apps, my organised folder).
Will it be possible (i'm sure it's possible, i just need the right software / app to do it)
You're going to need a Kitchen to cook your own ROM; assuming you have a Raphael device, have a look at this thread:
Useful Links Thread
http://forum.xda-developers.com/showthread.php?t=439783
Many folks use Da_G's Kitchen ... but there are other great Chefs that have made their Kitchens avalaible.
HTH,
Thank you for the link hilaireg. It's very helpful.
After reading the available tutorials, i have a question. Most of the kitchens are using pre-existing ROMS.
I would like to use a new official HTC ROM to start with. "-HTC Touch Pro-MRII-RUU_Raphael_hTC_Asia_WWE_5.07.707.2_Radio_Signed_Raphael_52.58.25.30_1.11.25.01_Ship"
I noticed that all the tutorial require a .nb file which they say comes in the package. However, when i extracted the .exe file , a few files were extracted alongside a .nbh file. But there is no .nb file. What do i do?
arvin2212 said:
Thank you for the link hilaireg. It's very helpful.
After reading the available tutorials, i have a question. Most of the kitchens are using pre-existing ROMS.
I would like to use a new official HTC ROM to start with. "-HTC Touch Pro-MRII-RUU_Raphael_hTC_Asia_WWE_5.07.707.2_Radio_Signed_Raphael_52.58.25.30_1.11.25.01_Ship"
I noticed that all the tutorial require a .nb file which they say comes in the package. However, when i extracted the .exe file , a few files were extracted alongside a .nbh file. But there is no .nb file. What do i do?
Click to expand...
Click to collapse
You need to have NBHextract Tool it will be in include in kitchen...me too trying to cook on same build with no results. It's no easy try try that's it...
krish_nank, Is this your first time building a ROM?
If so, we're on the same boat...
I tried using NBHextract Tool but when i run the .exe a pop up cmd window comes out and then dissappears. I added the program manually in cmd, and here is what it says , but it doesn't do anything although i have place my .nbh file in the same folder with it.
"
C:\Users\xda>C:\Users\xda\NBHextract.exe
=== NBHextract v1.0
=== Extract contents from HTC NBH files
=== (c)2007 xda-developers.com
=== by: pof & TheBlasphemer based on itsme perl scripts
Usage: C:\Users\xda\NBHextract.exe <nbh file> [-v]
C:\Users\xda>
"
arvin2212 said:
organising the apps to their respected folders, and installing all of my needed softwares on the phone
Click to expand...
Click to collapse
If you just want to organize your existing app then all you have to do is go to this folder,
\\\Windows\Start Menu
This folder has all the icons for the programs. So now you can arrange/ rearrange icons, create folder and move the links to the respective folders as you see fit. Total Commander can be used for this.
If you want a way to install apps after installing a new ROM, you can use UC you can read about it here
http://forum.xda-developers.com/showthread.php?t=366337
But if you just want to build custom ROM then the easiest kitchen is Da G's. If you want a fully loaded kitchen try At0mAng - Advance Kitchen - V2
nnkumar73 said:
If you just want to organize your existing app then all you have to do is go to this folder,
\\\Windows\Start Menu
This folder has all the icons for the programs. So now you can arrange/ rearrange icons, create folder and move the links to the respective folders as you see fit. Total Commander can be used for this.
If you want a way to install apps after installing a new ROM, you can use UC you can read about it here
http://forum.xda-developers.com/showthread.php?t=366337
But if you just want to build custom ROM then the easiest kitchen is Da G's. If you want a fully loaded kitchen try At0mAng - Advance Kitchen - V2
Click to expand...
Click to collapse
Both Da_g's & AtomAng kitchen or based on some OS build we ...we want to dump a ROM & Rebuild it on our own way we want.......
krish_nank said:
Both Da_g's & AtomAng kitchen or based on some OS build we ...we want to dump a ROM & Rebuild it on our own way we want.......
Click to expand...
Click to collapse
okay, my bad. Then I am sure you have seen the ROM reconstruct thread. Hope that thread helps you.
Have a look at the first three posts in the following thread:
[TUT] Sous-Chef's Guide to Da_G's Simple Kitchen
http://forum.xda-developers.com/showthread.php?t=490787
Essentially, once you unpack the "-HTC Touch Pro-MRII-RUU_Raphael_hTC_Asia_WWE_5.07.707.2_Radio_Signed_R aphael_52.58.25.30_1.11.25.01_Ship" executable, you run a script that performs the actions required to prepare the NBH file for custom cooking.
That should get you started.
HTH,
krish_nank said:
Both Da_g's & AtomAng kitchen or based on some OS build we ...we want to dump a ROM & Rebuild it on our own way we want.......
Click to expand...
Click to collapse
With my kitchen do this...
Backup the OEM and SYS folder...
If you have the NBH file already place it in the BaseROM folder
If you do not have the NBH file then run the EXE downloaded from HTC, let it go all the way to the first install screen and dont do anything yet, go to your temp folder on the computer, dig around the folders if there are many, you will see ruu_signed.NBH, copy and paste into the BaseROM folder of kitchen.
Once NBH is in the baserom folder start my kitchen
Select 2, 1, 1 and let it do its thing
When extraction is completed and you are back at main menu select option 8, move dumped OEM/SYS from Temp
When that is done select option 6 Copy Extracted ROM XIP from Temp
When that is done your new dumped ROM is ready to be built.
Delete or do not select any duplicate packages
Clean out the new OEM/SYS folders. There is a lot of junk in there that can be removed, welcome folder, do a search in the OEM/SYS folders for *.3gp and remove the welcome movie and blah blah blah...
If you take the time to look at the folder structure of the OEM and SYS folder you should be able to figure it out pretty quickly.
If you need further help you may ask in my kitchen thread.
Hope this is a start for you guys...
nnkumar73, Thank you for your suggestion but i already known about manually doing it from the start menu folder. However it's not practical as , i would have to do it everytime i reflash my phone. If there is a new rom available, and i were to try it and somehow wanted to go back with my older ROM, i would have to do all the moving etc all again.
hilaireg once again, thank you for the link..
At0mAng, Thank you very much as well. I will follow your steps and see how it goes. I appreciate your effort of posting the right steps for it. Thank you.
DELETED.......................
Just an addition to previous posts
arvin2212 said:
C:\Users\xda>C:\Users\xda\NBHextract.exe
Click to expand...
Click to collapse
I can see u missed out the command : nbhextract ruu_signed.nbh
arvin2212 said:
3.If you do not have the NBH file then run the EXE downloaded from HTC, let it go all the way to the first install screen and dont do anything yet, go to your temp folder on the computer, dig around the folders if there are many, you will see ruu_signed.NBH, copy and paste into the BaseROM folder of kitchen.
Click to expand...
Click to collapse
The easiest way is to use any packer apps like winrar. u can extract the nbh directly. if u r using total commander will be a lot easier. just press ctrl+pg dn & u can extract the file instantly.
Thanks to everyone's help especially At0mAng,
I finally extracted the ROM. I can see aloto of files in SYS and OEM folder.
What i would like to know now is, how do i create folders (icons are not neccessary for the folders) so that i can group installed apps in them according to category? Example is, A multimedia, navigation and games folder is created and , my apps are stored in the folders according to their functions. Like GPS tool goes into navigation and so on..
To simply copy files from \Windows to another directory, you can use an initflashfiles.txt in the OEM. Syntax is:
Directory("\Windows\Start Menu\Programs\Tools"):-File("Enable Proxy.lnk","\Windows\Enable Proxy.lnk")
If you are trying to just place Start Menu items in different folders, it's a bit more complicated. There are many places that this can happen.
1) In \OEM\OEM_Lang_0409\initflashfiles.dat
You can edit this file in Notepad if you remove the ReadOnly bit in Windows. Once you've edited it in Notepad and saved it, you need to re-open it in a Hex editor and delete the first 2 bytes "ff fe". Once you delete those first 2 bytes, save the file and reset the ReadOnly flag. In this file is where I define the Folders I want to use in my "Start Menu" folder like this:
; Start Menu contents
Directory("\Windows\Start Menu")ermDir("Programs")
Directory("\Windows\Start Menu")ermDir("Settings")
Directory("\Windows\Start Menu\Programs"):-Directory("Games")
Directory("\Windows\Start Menu\Programs"):-Directory("Navigation")
Directory("\Windows\Start Menu\Programs"):-Directory("Internet")
Directory("\Windows\Start Menu\Programs"):-Directory("Multimedia")
Directory("\Windows\Start Menu\Programs"):-Directory("Office")
Directory("\Windows\Start Menu\Programs"):-Directory("Phone")
Directory("\Windows\Start Menu\Programs"):-Directory("Tweaks")
Directory("\Windows\Start Menu\Programs"):-Directory("Tools")2) *.provxml files
You need to edit these files with a unicode editor. Personally I use EmEditor. You'll notice that in mose packages in \OEM and \SYS there is a _Lang_0409 dir that goes along with it. It's "usually" in this folder where you'll see a *.provxml file. If you open these in EmEditor you'll see that there are lots of file operations. You want to seach or the line containing the *.lnk. In that line you can set the patch of where you'd like the icon installed.
There may be other places that this happens as well, but that's just off the top of my head.
Good Luck!
-e
eras2r said:
To simply copy files from \Windows to another directory, you can use an initflashfiles.txt in the OEM. Syntax is:
Directory("\Windows\Start Menu\Programs\Tools"):-File("Enable Proxy.lnk","\Windows\Enable Proxy.lnk")
If you are trying to just place Start Menu items in different folders, it's a bit more complicated. There are many places that this can happen.
1) In \OEM\OEM_Lang_0409\initflashfiles.dat
You can edit this file in Notepad if you remove the ReadOnly bit in Windows. Once you've edited it in Notepad and saved it, you need to re-open it in a Hex editor and delete the first 2 bytes "ff fe". Once you delete those first 2 bytes, save the file and reset the ReadOnly flag. In this file is where I define the Folders I want to use in my "Start Menu" folder like this:
; Start Menu contents
Directory("\Windows\Start Menu")ermDir("Programs")
Directory("\Windows\Start Menu")ermDir("Settings")
Directory("\Windows\Start Menu\Programs"):-Directory("Games")
Directory("\Windows\Start Menu\Programs"):-Directory("Navigation")
Directory("\Windows\Start Menu\Programs"):-Directory("Internet")
Directory("\Windows\Start Menu\Programs"):-Directory("Multimedia")
Directory("\Windows\Start Menu\Programs"):-Directory("Office")
Directory("\Windows\Start Menu\Programs"):-Directory("Phone")
Directory("\Windows\Start Menu\Programs"):-Directory("Tweaks")
Directory("\Windows\Start Menu\Programs"):-Directory("Tools")2) *.provxml files
You need to edit these files with a unicode editor. Personally I use EmEditor. You'll notice that in mose packages in \OEM and \SYS there is a _Lang_0409 dir that goes along with it. It's "usually" in this folder where you'll see a *.provxml file. If you open these in EmEditor you'll see that there are lots of file operations. You want to seach or the line containing the *.lnk. In that line you can set the patch of where you'd like the icon installed.
There may be other places that this happens as well, but that's just off the top of my head.
Good Luck!
-e
Click to expand...
Click to collapse
Somehow, i am not able to find this file , initflashfiles.dat in my OEM_Lang_0409 folder. :?
Do you have Windows Explorer setup to view all system/hidden files? (Tools->Folder Options-->View)
If using a kitchen that supports it (mine does for sure) you can create a new, blank text file in a package folder, initflashfiles.txt
it uses the same format eras2r posted above, but gets appended to initflashfiles.dat during the cooking process
in this manner you can have initflashfiles.dat changed on a per-package basis, it's also easier because you don't have to worry about the first 2 bytes etc.
e.g. \Packages\beer\initflashfiles.txt
When cooking rom check box next to package "beer"
now the contents of \Packages\beer\initflashfiles.txt get appended to initflashfiles.dat automatically during cooking, don't get applied if box is not checked
similarly this initflashfiles.txt can go in any folder in \OEM and \SYS as well
eras2r, yes , it has already been configured to show hidden files & folders
Da_G, i get what you mean, roughly. What you're saying basically is that i can manually create a txt file for initflashfiles and leave it in the packages folder?
Also i am not sure about the syntax that eras2r posted. I find it alittle well above my level of knowledge. Maybe someone can guide / explain to me regarding this?
Right right, an initflashfiles.txt can go in any subfolder under \OEM \SYS or \Packages
You can create the file with notepad, no need to worry about removing things with a hex editor or otherwise using anything other than notepad.
The syntax is as follows:
using this example to create a directory:
Code:
Directory("\Windows\Start Menu\Programs"):-Directory("Tools")
Directory("\Path\to\create\directory\in\goes\here"):-Directory("Name_Of_Directory_To_create_in_path") - essentially you're saying "Switch to the folder named \Path\to\create\directory\in\goes\here and create a new folder named Name_Of_Directory_To_create_in_path inside of it.
similar syntax to copy a file from one directory to another:
Code:
Directory("\Windows\Start Menu\Programs\Tools\"):-File("Fieldtest.lnk","\Windows\Fieldtest.lnk")
Directory("\Path\to\copy\file\in\goes\here"):-File("destination_file_name.ext","\source\path\to\filename.ext") - here you're saying "navigate to \Path\to\copy\file\in\goes\here, copy file from source \source\path\to\filename.ext, rename it to destination_file_name.ext when copying (you can use the same filename here if you don't want it renamed, renaming is useful for files that might be indexed by windows media player, or the windows help system, etc.
That should clear it up a bit, let me know if it doesnt
Based on XDA_UC (by Noonski). I used it in my ROMs and the idea is just great.
But there are some issues that I want to fix and also I have some new ideas.
So I started new project.
1. XDA_UC is based on MortScript, and I use C#. This affects only engine. You can use your mscr files for customization =)
2. XDA_UC runs in background, it's almost silent. I want to add feedback to show what's happening now.
Official Russian forum is here.
This application will install all cab files, reg tweaks, provxmls, run mscr scripts, copy files (and more) from given folder. Use it after you upgraded your ROM to restore everything.
Information for Chef's updated 2010/07/07
UC_NET new feature - Using variables updated 2010/07/02
UC_NET new feature - Portable commands updated 2010/07/07
UC_NET tutorial - HOWTO create shortcuts updated 2010/07/02
Requirements: NetCF 3.5
Main features:
portable, supports localization, uses OS functions (if possible, for example for installing provxml), predictable - you can control order of everything, error reporting, full customization log.
Quick start:
1. create folders on your storage card
Code:
XDA_UC
XDA_UC\Manual
XDA_UC\Copy2Root
XDA_UC\Run
XDA_UC\Execute
"XDA_UC" is a place for all .cab, .reg, .mscr, .cer files that should be automatically installed to device.
"Manual" is a place for all cab files you want install in usual "visible" mode with all questions.
"Copy2Root" is a place for all files and folders that should be automatically copied to device.
"Run" is a place for you self-extracting archives.
"Execute" is a place for you self-extracting archives if you want to continue customization while them working.
2. run UC_NET.exe, select your XDA_UC folder and press customize button.
XDA_UC_NET features:
1. It runs with any ROM that has NETCF 3.5. You don't need to install or cook it. Just take exe and run it.
2. It searches for XDA_UC folders on your storages and then you can choose what folder you want to use for customization. And you can even select any other folder as a root for customization.
3. How it works. When you select folder and press "Customize!" program uses this algorithm:
Install MSCRs
RunWaitFiles - run apps from the Run folder and from coomand files UC_NET_Run
RunNoWaitFiles - run apps from the Execute folder and from coomand files UC_NET_Execute
Install XMLs ("*.*xml" from XDA_UC)
Install CERTs ("*.cer" from XDA_UC)
Install CABs silent to device memory ("*.cab" from XDA_UC)
Install CABs manual ("*.cab" from XDA_UC\Manual)
Install REGs ("*.reg" from XDA_UC, uses FS_TaskMgr.exe)
Install RGUs ("*.rgu" and "*.cereg" from XDA_UC, uses FS_TaskMgr.exe)
Copy Directories (see UC_NET_CopyDirectories)
Copy Files (see UC_NET_CopyFiles)
Move Files (see UC_NET_MoveFiles)
Delete Files (see UC_NET_DeleteFiles)
Create Shortcuts (see UC_NET_CreateShortcuts)
Install PIB (restore you contacts, uses last pib file and PPCPimBackup.exe)
if portable mode is disabled in menu, at the end of customization program will read arguments from registry and do these actions:
XDAUC_CopyDirectories (XDA_UC DirCopy feature)
XDAUC_DeletFiles (XDA_UC Delete feature)
XDAUC_CopyFiles (XDA_UC FileCopy feature)
XDAUC_CreateShortcuts (XDA_UC AutoShortCut feature)
4. FS_TaskMgr.exe and PPCPimBackup.exe are used for some actions, program will search for these files in current folder, in \Windows and in the selected XDA_UC folder. Both files are included.
5. Program logs every step – you can see what is happening right now. Errors are shown separately – you can see if something wrong happened.
6. All files processed in strict alphabetical order. For example, if you want to install SlideIT.cab before DanishPack.cab, you can just change names: 1_SlideIT.cab, 2_DanishPack.cab.
7. Program will first search and use XDA_UC\1, XDA_UC\2, … XDA_UC\99 folders (1-99 in alphabetical order), before using base XDA_UC. For example, you want to install some reg files before installing cab files, and you want to install first.cab right after installing these reg files. How to do this?
Go to XDA_UC folder, create subfolder "1" and move these reg files to XDA_UC\1.
Go to XDA_UC folder, create subfolder "2" and move this first.cab to XDA_UC\2.
8. You can structurize your setup folders by using Groups. Programm will show you menu and let to choose what you want to install. Read more here.
Ready!
Release history.
NETCFv35.Messages.EN.wm.cab - install it and you will see detailed descriptions of errors (if any)
If you want to translate program to your language - please follow instruction in included UC_NET_Localization_SRC.zip.
Update 2011/03/20 - new Fr and Sk localizations - http://forum.xda-developers.com/showpost.php?p=12231359&postcount=238
Information for Chef's
UC_NET v0.6
2010/07/07
option to run on any boot you like
you can configure wait timeout
you can set any folder as root folder (not only XDA_UC)
you can display your own Welcome Message in any language.
see attached readme.txt for more details
UC_NET v0.5
2010/07/02
put UC_NET_FirstBoot.lnk in your StartUp folder if you want run UC_NET.exe with these arguments
/CreateShortcuts
/CopyDirectories
/CopyFiles
/DeleteFiles
registry key
Code:
[HKEY_LOCAL_MACHINE\Software\XDA\Delete]
"Environment.SpecialFolder.Startup\\UC_NET_FirstBoot.lnk"=""
will delete this UC_NET_FirstBoot.lnk link after first boot.
registry key
Code:
[HKEY_LOCAL_MACHINE\Software\XDA\AutoShortCut]
"Environment.SpecialFolder.Programs\\UC_NET Customize.lnk"="\\Windows\\UC_NET.exe"
will create shortcut for users in programs menu.
command line parameters
/CreateShortcuts - creates shortcuts for all files listed under
HKLM\Software\XDA\AutoShortCut
/CopyDirectories- copies all directories (including all files and subfolders) listed under
HKLM\Software\XDA\DirCopy
/CopyFiles- copies all single files listed under
HKLM\Software\XDA\FileCopy
/Delete- deletes all files listed under
HKLM\Software\XDA\Delete
read more about XDA_UC commands format here:
http://forum.xda-developers.com/showthread.php?t=562568
UC_NET extends XDA_UC
You can use variables in your commands
and it will work with any localization of windows.
for example, this key will delete UC_NET_FirstBoot.lnk from Startup folder.
Code:
[HKEY_LOCAL_MACHINE\Software\XDA\Delete]
"Environment.SpecialFolder.Startup\\UC_NET_FirstBoot.lnk"=""
IMPORTANT - UC_NET doesn't show GUI to user if started with command line.
I think this is the most confusing part of original XDA_UC - your ROM depends on something that user will do on first (second) boot.
Therefor I disabled GUI - If user wants to use customization he will start it from start menu, and of course in this case user will know what's up. Correct me if I'm wrong.
Another difference from original XDA_UC - UC_NET will not install all cab files from windows folder. I can add this feature, but I don't know why Chef will put cab files into his "perfect" ROM. The same with reg files - what kind of chef needs to import reg files AFTER the ROM is ready? =)
please, post your comments and requests!
You can use these variables in you commands:
Microsoft Environment.SpecialFolder Enumeration members:
Code:
Environment.SpecialFolder.ApplicationData
- The directory that serves as a common repository for application-specific data for the current roaming user.
Code:
Environment.SpecialFolder.Favorites
- The directory that serves as a common repository for the user's favorite items.
Code:
Environment.SpecialFolder.Personal
- The directory that serves as a common repository for documents.
Code:
Environment.SpecialFolder.Programs
- The directory that contains the user's program groups.
Code:
Environment.SpecialFolder.StartMenu
- The directory that contains the Start menu items.
Code:
Environment.SpecialFolder.Startup
- The directory that corresponds to the user's Startup program group.
UC_NET v0.5 adds more variables
Code:
StorageManager.Profiles.SDMemory
- will be replaced in runtime with value of
HKLM\System\StorageManager\Profiles\SDMemory\Folder
Code:
StorageManager.Profiles.MoviNand
- will be replaced in runtime with value of
HKLM\System\StorageManager\Profiles\MoviNand\Folder
Code:
StorageManager.Profiles.INAND
- will be replaced in runtime with value of
HKLM\System\StorageManager\Profiles\INAND\Folder
UC_NET v0.9.4.2 adds more variables
Code:
ShellFolders.Windows
- value of HKLM\System\Explorer\Shell Folders\Windows
Code:
ShellFolders.StartUp
- value of HKLM\System\Explorer\Shell Folders\StartUp
Code:
ShellFolders.Recent
- value of HKLM\System\Explorer\Shell Folders\Recent
Code:
ShellFolders.Programs
- value of HKLM\System\Explorer\Shell Folders\Programs
Code:
ShellFolders.ProgramFiles
- value of HKLM\System\Explorer\Shell Folders\Program Files
Code:
ShellFolders.MyDocuments
- value of HKLM\System\Explorer\Shell Folders\My Documents
Code:
ShellFolders.Fonts
- value of HKLM\System\Explorer\Shell Folders\Fonts
Code:
ShellFolders.Favorites
- value of HKLM\System\Explorer\Shell Folders\Favorites
Code:
ShellFolders.Desktop
- value of HKLM\System\Explorer\Shell Folders\Desktop
Code:
ShellFolders.ApplicationData
- value of HKLM\System\Explorer\Shell Folders\Application Data
UC_NET extends XDA_UC with portable commands:
UC_NET_Magic_CreateShortcuts
UC_NET_CopyDirectories
UC_NET_CopyFiles
UC_NET_MoveFiles
UC_NET_CreateShortcuts
UC_NET_Delete
UC_NET_Run
UC_NET_Execute
UC_NET_BackupReg
Just create text file (UTF8 and Unicode supported), fill this file with command arguments and put it to any XDA_UC folder (to root, or to root\1 and so on).
UC_NET_Magic_CreateShortcuts, creates shortcuts for all exe files in given folder and its subfolders.
base filename UC_NET_Magic_CreateShortcuts format:
create_shortcuts_here=folder_with_exe_files
create_shortcuts_here=folder_with_exe_files
...
base filename UC_NET_CopyDirectories format:
to=from
to=from
...
base filename UC_NET_CopyFiles format:
to=from
to=from
new in v0.9.3.1 - You can use "*" and "?" wildcards in UC_NET_CopyFiles, (if you are using mask, destination parameter should be a folder name, as you cannot copy several files to one file)
...
base filename UC_NET_MoveFiles - new command v0.9.3.1, works exactly like UC_NET_CopyFiles, but moves files. You can use it to rename files as well.
to=from
to=from
...
base filename UC_NET_CreateShortcuts format:
link="target"
link="target" params
...
base filename UC_NET_Delete format:
file_to_delete
file_to_delete
directory_to_delete
...
You can use "*" and "?" wildcards in UC_NET_Delete -
for example
Code:
StorageManager.Profiles.SDMemory\_test_del\*.txt
will delete all txt files in my folder _test_del on storage card.
base filename UC_NET_Run format: - new command v0.9.3.1
each line of such file is a path to your application (or script, or anything that can run). UC_NET will start program and wait until it finishes. You can pass parameters to your program. In this case Use quotes around path and then place a parameters.
for example:
"notepad.exe" my_text_file.txt
this will start notepad.exe and pass my_text_file.txt as parameter.
base filename UC_NET_Execute format: - new command v0.9.3.1
works exactly like UC_NET_Run, but doesn't wait for complete and continue with next customization step.
UC_NET_BackupReg - new command v0.9.4.0, uses FS_TaskMgr.exe /regxpkey feature.
format for this command is
filepath=[regkey]
filepath2=[regkey2]
...
See attached examples. Tell me if it's not clear how to use this feature.
You can have more than one file with parameters - just add something to base filename. For example UC_NET_CreateShortcuts1.Settings.Advanced will be parsed as well as UC_NET_CreateShortcuts.txt
HOWTO create shortcuts
A shortcut is a small file containing the name of a target program file that the shortcut represents. The shortcut might additionally specify parameters to be passed to the target program when it is run. Shortcuts are very commonly placed on Start Menu.
option 1: UC_NET_Magic_CreateShortcuts protable command
use UC_NET to create shortcuts for all programs in given folder
Before you read remaining part of this tutorial you need to know
-the name of a folder with target programs (should be real folder you have on your device)
-name of folder for your new shortcuts (any name you like)
now download UC_NET_v0.5_portable_commands_example.zip from the first post and open UC_NET_Magic_CreateShortcuts.txt file.
There is a line in this file. It is a command, that will be processed by UC_NET when you press "Customize".
Code:
Environment.SpecialFolder.Programs\My Util=StorageManager.Profiles.SDMemory\MyPortableUtils
Format is:
<destination folder>=<source folder with target programs>
You can find '=' character and everything before it is a destination folder
Code:
Environment.SpecialFolder.Programs\My Util
Environment.SpecialFolder.Programs - is a variable, that points to the place where all Start Menu shortcuts are stored.
"My Util" - is a name for new folder under start menu where all new shortcuts created by this command will be stored.
For example, if you want create shortcuts for GPS utilities you can change this part to
Code:
Environment.SpecialFolder.Programs\GPS
everything after '=' character is folder with target programs
Code:
StorageManager.Profiles.SDMemory\MyPortableUtils
Replace this string with your path - folder with target programs, and you ready.
For example, if your GPS utilities are here
\Storage Card\util\gps you should change this part to
Code:
\Storage Card\util\gps
Save your file and put it in your XDA_UC folder.
Start UC_NET, choose this folder and perss [Customize!]
option 2: UC_NET_CreateShortcuts protable command
control and tune every shortcut for every program you want
Before you read remaining part of this tutorial you need to know
-the name of a target program file (should be real program you have on your device)
-name of your new shortcut (any name you like)
now download UC_NET_v0.5_portable_commands_example.zip from the first post and open UC_NET_CreateShortcuts1.txt file.
There are two lines in this file. Each line is a command, that will be processed by UC_NET when you press "Customize".
The second line shows an example how to create shortcut with parameters, it's a bit tricky and for now delete this second line. You can return to it later, when you understand simple shortcut creation.
Let take first line:
Code:
Environment.SpecialFolder.Programs\Test Portable.lnk="\Storage Card\_new_distrib\portable\LiteNote\LiteNote.exe"
format is
<shortcut name>="<target program file>"
You can find '=' character and everything before it is a shortcut name
Code:
Environment.SpecialFolder.Programs\Test Portable.lnk
Environment.SpecialFolder.Programs - is a variable, that points to the place where all Start Menu shortcuts are stored.
"Test Portable" is a name for my new shortcut - when I open Start menu I want to see this name. You can change it as you wish.
".lnk" - is a file extension, do not change it.
For example, if you want create shortcut for chess game you can change this part to
Code:
Environment.SpecialFolder.Programs\Chess.lnk
everything after '=' character is target program file
Code:
"\Storage Card\_new_distrib\portable\LiteNote\LiteNote.exe"
Replace this string with your target program file path and you ready.
Do not remove quotes.
For example, if your chess gameis here
\Storage Card\games\chess\chess.exe you should change this part to
Code:
"\Storage Card\games\chess\chess.exe"
Do this for all your shortcuts. (copy this line and edit it)
Save your file and put it in your XDA_UC folder.
Start UC_NET, choose this folder and perss [Customize!]
option 3: XDA_UC registry command AutoShortCut
UC_NET can read XDA_UC registry commands, you can use them as well.
These commands are not portable, and you should uncheck "Portable" option in menu or use command line switches. example:
Code:
[HKEY_LOCAL_MACHINE\Software\XDA\AutoShortCut]
"Environment.SpecialFolder.Programs\\GPS\\SeaSGEE.lnk"="\\Windows\\SeaSGEE.exe"
read more about this type of commands in XDA_UC thread.
And you can make these commands more portable if you use variables - replace \Storage Card with StorageManager.Profiles.SDMemory, this will work even if Storage Card has different name in new ROM.
How to create shortcut with parameters?
MSDN says
Place quotes around the target path so that SHCreateShortcut can correctly parse the target file from any following arguments.
Click to expand...
Click to collapse
example - creating shortcut to enable FileDialogChanger:
Code:
[HKEY_LOCAL_MACHINE\Software\XDA\AutoShortCut]
"Environment.SpecialFolder.Startup\\filedlgchgs.lnk"="\"ctlpnl.exe\" filedlgchg 1"
Hello...
...i am a german cook and im cooking ROMs for my Blackstoen (HD) ...
I love XDA_UC and i try your new version...
thanks for aour work !!!!!
Looks great, gonna try it out in my roms
Thanks!
This is nice If you could get away from using the FDCSoft task manager to import .reg files it would be perfect!
Idea looks great.
The only thing I'm missing here is;
*Quick lauch icons on the 3 home screens
-Would like to backup these icons in the exact order and every app should be installed, so each quick launch icon should referr to that perticular app.
After every install of any new energy ROM it is so much work to order and fill in the 3 home screens quick launch icons and apps
Kind Regards
[email protected]
ROM: Energy Dinik style 22nd June
Radio: 2.10.50.28_2
HSPL: 2.08 HSPL
History
[2010/11/02] UC_NET v 0.9.4.4
new command "Refresh Today screen" is added. Just create an empty file UC_NET_RefreshToday.txt in your folder, and the program will refresh today screen.
This command is executed after all other things in the folder, as a last step.
the program will show the message about cprog.exe if you run PPCPimBackup.exe, using UC_NET_Run command. It works exactly like it works when you are restoring pib file.
UC_NET_BackupReg is improved - the program now checks if registry keys exist, and doesn't create empty files if key doesn't exist.
UC_NET_Delete, UC_NET_Copy and UC_NET_Move are improved - all of them support masks now, and all these commands work with files and directories.
for example, now you can delete all files and directories in a folder with one UC_NET_Delete command, if you give it \myFolder\* as a parameter.
if you need a command that works only with files, add "Files" to its name (for example, UC_NET_CopyFiles)
if you need a command that works only with directories, add "Directories" to its name (for example, UC_NET_DeleteDirectories)
small bugfixes
Code:
[2010/10/22] UC_NET v 0.9.4.3
[LIST]
[*] Now the program uses safe code to control power during customization.
This version of UC_NET doesn't use registry keys related to power and back light to prevent device from sleep during customization.
Previous version, like original XDA_UC, used registry to keep back light "always on" - it's unsafe, because if your device was reset before the end of customization, these registry keys were not restored.
[*] Polish localization is updated (thanks to Bysio)
[*] UC_NET current version is added to log file.
[*] Sense SDK message boxes were replaced with standart message boxes to make program more stable (because there are no bugfixes for Sense SDK)
[/LIST]
[2010/10/14] UC_NET v 0.9.4.2
[LIST]
[*] new localizations were added:
Chinese (Simplified),zh-Hans
Polish, pl
Spanish, es-ES
[*] [Cancel] is added to the list of groups.
[*] [Pause] and [Resume] were added to customization window. You can use this to tell program you want to pause before next step of customization.
[*] New commandline parameter /base="path to your folder" - use it if you want to select any of your folders when UC_NET starts.
[*] "Create shortcut" is added to the main menu - use it to create shortcut in Start Menu, that will launch UC_NET and automatically select current folder.
[*] new variables:
"ShellFolders.Windows" - value of HKLM\System\Explorer\Shell Folders\Windows
"ShellFolders.StartUp" - value of HKLM\System\Explorer\Shell Folders\StartUp
"ShellFolders.Recent" - value of HKLM\System\Explorer\Shell Folders\Recent
"ShellFolders.Programs" - value of HKLM\System\Explorer\Shell Folders\Programs
"ShellFolders.ProgramFiles" - value of HKLM\System\Explorer\Shell Folders\Program Files
"ShellFolders.MyDocuments" - value of HKLM\System\Explorer\Shell Folders\My Documents
"ShellFolders.Fonts" - value of HKLM\System\Explorer\Shell Folders\Fonts
"ShellFolders.Favorites" - value of HKLM\System\Explorer\Shell Folders\Favorites
"ShellFolders.Desktop" - value of HKLM\System\Explorer\Shell Folders\Desktop
"ShellFolders.ApplicationData" - value of HKLM\System\Explorer\Shell Folders\Application Data
[*] log file now includes all variables for current ROM in the beginning
[*] errors and warnings summary are added to the end of log file.
[/LIST]
[2010/09/28] UC_NET v 0.9.4.0
[LIST]
[*] UC_NET_CopyFiles is fixed. (it was broken in 0.9.3.1, it always worked as move command).
[*] UC_NET_BackupReg - - new command, uses FS_TaskMgr.exe /regxpkey feature.
format for this command is
filepath=[regkey]
filepath2=[regkey2]
...
[*] system variables are now supported for Copy2Root folder.
see attached UC_NET_v0.9.4.0_test.zip
for example everithing from Copy2Root\Environment.SpecialFolder.StartMenu
will be copied to \Windows\Start Menu if you run 0409 localization of Windows Mobile.
[*] UC_NET_DeleteFiles is renamed to UC_NET_Delete as it can delete files and folders.
[/LIST]
[2010/09/27] UC_NET v0.9.3.1
[LIST]
[*] *.cereg files are supported
[*] program now uses last pib file, this allows you to keep several backups in the same folder and only the latest will be restored with PIMBackup.
[*] empty groups are hidden in the group list, especially root folder
[*] "*" and "?" masks are supported for UC_NET_CopyFiles command (if you are using mask, destination parameter should be a folder name, as you cannot copy several files to one file)
[*] same command files in a folder are processed in strict alphabetical order, (for ex. UC_NET_CopyFiles_0 comes first, then UC_NET_CopyFiles_8)
[*] UC_NET_MoveFiles - new command, works exactly like UC_NET_CopyFiles, but moves files. You can use it to rename files as well.
[*] UC_NET_Run - new command, each line of such file is a path to your application (or script, or anything that can run). UC_NET will start program and wait until it finishes. You can pass parameters to your program. In this case Use quotes around path and then place a parameters.
for example:
"notepad.exe" my_text_file.txt
this will start notepad.exe and pass my_text_file.txt as parameter.
[*] UC_NET_Execute - new command, works exactly like UC_NET_Run, but doesn't wait for complete and continue with next customization step.
[*] Run - special folder (like Copy2Root). You can create Run folder and place your your application (or script, or anything that can run) in this folder. UC_NET will try to execute everything from Run folder. It's good for self extracting archives for example.
UC_NET will wait for every program before it will start next (like UC_NET_Run command).
[*] Execute - special folder, works exactly like Run, but doesn't wait.
[*] Current version of Fr and De localizations are included.
[/LIST]
[2010/07/30] UC_NET v0.9.2.1
[LIST]
[*] Presets from v0.9.1 are replaced with [URL="http://forum.xda-developers.com/showpost.php?p=7413758&postcount=68"]more powerful Groups[/URL]. See attached QuickStart_XDA_UC_advanced_template.zip
[*] Dutch translation - thanks to [URL="http://forum.xda-developers.com/showpost.php?p=7412941&postcount=64"]webpatrick[/URL]
[/LIST]
[2010/07/27] UC_NET v0.9.1
[LIST]
[*] New presets system - more flexible customization.
You can sort you programs and tweaks and install only part of them! (And install another part later)
=) see included UC_NET_presets_template.zip for example.
[*] Arabic localization is ready ([URL="http://forum.xda-developers.com/showpost.php?p=7363890&postcount=51"]thanks to AbdullahSZ[/URL])
[*] Check if ROM security is relaxed (and fix it if needed)
[*] DisableFinalMessage - new option for Chefs. Use it if you want to disable "...Reset Now?" dialog.
[*] You can use comments in your portable commands. Any line that starts with a #, ; or // is a comment.
[*] Fixed bug with Copy Folders. (thanks to log file =)
[/LIST]
[2010/07/22] UC_NET v0.8.1
[LIST]
[*] (W)VGA improvements
[*] Russian localization ready, [URL="http://forum.xda-developers.com/showthread.php?t=709557"]read here to add more languages[/URL]
[*] for chefs - option to disable Exit in menu.
[*] you can add your own message to UC_NET_WelcomeMessage.txt and save put it to your folder. message will be shown when you select this folders. (For example, imagine you have one folder for games, one for GPS and so on).
[*] small tweaks here and there. =)
[/LIST]
[2010/07/19] UC_NET v0.7
[LIST]
[*] new GUI is created using [URL="http://forum.xda-developers.com/showthread.php?t=648906"]Sense Interface SDK v1.39[/URL].
[*] delete command now can delete the specified directory and any subdirectories and files in the directory.
[*] warning is displayed if pim.vol and PPCPimBackup are used at the same time
[/LIST]
[2010/07/07] UC_NET v0.6 new features
[LIST]
[*] for chefs - new option to run on any boot with any folder selected
[*] for chefs - new option to display given message in any language when program autoruns
[*] for users - wildcards are supported for Delete command. for example
[CODE]StorageManager.Profiles.SDMemory\_test_del\*.txt
will delete all txt files in my folder _test_del on storage card.
[/LIST]
[2010/07/02] UC_NET v0.5 new features
new portable command UC_NET_Magic_CreateShortcuts. example.
new variables for SDCards names
rgu files supported (as reg files)
you can open last log from menu now.
internal engine improvement - UC_NET detects ROM files in copy and replace operations.
[2010/06/29] UC_NET v0.4 new features
NEW - portable commands. Now you can put files with commands in your XDA_UC folders. I suggest to use this in-place of XDA_UC registry commands.
New - portable mode (active by default, see menu). "Portable" means no commands from registry will be used. This is good for users. UC_NET will just process selected folder and do not recreate shortcuts defined by Chef and so on. Tell me how do you like this new feature.
pim.vol copy to root is supported.
internal engine feature - delete locked files on next reboot.
[2010/06/26] UC_NET v0.3 new features
now you can use any folder on device as a root for customization.
command line params
/CreateShortcuts - creates shortcuts for all files listed under
HKLM\Software\XDA\AutoShortCut
/CopyDirectories- copies all directories (including all files and subfolders) listed under
HKLM\Software\XDA\DirCopy
/CopyFiles- copies all single files listed under
HKLM\Software\XDA\FileCopy
/Delete- deletes all files listed under
HKLM\Software\XDA\Delete
loacalization support - no more hardcoded strings like \Windows\Start Menu\Programs\, that depends on ROM locale. Use Environment.SpecialFolder Enumeration
for example, this key will delete UC_NET_FirstBoot.lnk from Startup folder.
Code:
[HKEY_LOCAL_MACHINE\Software\XDA\Delete]
"Environment.SpecialFolder.Startup\\UC_NET_FirstBoot.lnk"=""
Package for Chefs is released - tested it in my own ROM
[2010/06/25] UC_NET v0.2 new features
support XDA_UC Copy2Root feature - copy everything from Copy2Root folder to device, without any reg keys.
run MortScript files if any. MortScript must be installed or cooked (you can install using cab and UC_NET of course =).
you can run TaskManager right from UC_NET window.
save log as text file.
timestamps in log.
[2010/06/24] UC_NET v0.1 - first release, preview.[/CODE]
NRGZ28 said:
This is nice If you could get away from using the FDCSoft task manager to import .reg files it would be perfect!
Click to expand...
Click to collapse
UC_NET uses FDCSoft task manager in silent mode. It's almost invisible =)
Anyway, now I finished with most features, and will implement registry files parser. (It's strange, but there is no such thing in WinAPI).
Tried it today and it works perfect! Thanks for sharing! (You got the date wrong in v0.4 change log)
Where can I put folders and files to have automatically copied over. In SASHIMI, you put them in the Auto/Root folder
For example:
\Storage Card\SASHIMI\Auto\Root\Program Files
The folder and all it's sub-folders and contents would be copied to \Program Files
I tried naming a folder within the XDA_UC folder CopytoRoot and DirCopy and neither worked. What do I need to do?
name it Copy2Root
not CopyToRoot
I have an idea for next v0.5:
I see it's not very clear how to create shortcuts with XDA_UC.
Imagine this - you can create shortcuts for all *.exe files in folder (and its subfolders). Just
1. create text file named like UC_NET_Magic_CreateShortcuts.txt in your XDA_UC folder
2. add parameters to it
destination folder=source folder
destination folder 2=source folder 2
and so on.
for example if I add
Code:
Environment.SpecialFolder.Programs\My Utils=\Storage Card\MyPortableUtils
UC_NET will create folder My Utils in Start Menu and then it will create shortcuts for all programs from \Storage Card\MyPortableUtils in this folder.
What do you think? =)
[2010/07/02] UC_NET v0.5 new features
new portable command UC_NET_Magic_CreateShortcuts. example.
new variables for SDCards names
rgu files supported (as reg files)
you can open last log from menu now.
internal engine improvement - UC_NET detects ROM files in copy and replace operations.
Hi. I'd like to use yout app on my Omnia2 with Rapid's Sense 6.5, but there are some issues.
All I did was:
Copy the cabs in an XDA_UC named dir placed in my "install" folder on Storage Card.
Uncompressed the app, started the exe.
Selected the XDA_UC dir.
Pressed customize.
Then it installed MortScript.cab, and none of the others. Instead it says: [13:09:19][13:09:20][\Storage Card\install\XDA_UC][Install CABs silent][ERROR]\Storage Card\install\XDA_UC\cabname.CAB, Exception:wceload.exe returns -2147024891
for all of the cabs I want to install(cabname is always different ofc). Could you help me please?
wceload.exe returns -2147024891, "access denied", on you ROM.
Try this - install one of your cabs manually.
If installing cab by tapping on it, would normally display a security
warning for not being signed, then wceload.exe will fail in silent mode.
In this case you need to relax your ROM security.
This is in the Requirements of original XDA_UC:
"The Rom should have the security relaxed in HKLM\Security\Policies\Polices by setting the value 0000101a to a 1.
So unsigned installations and Mortscript do not give a security error."
Try to add this to your registry.
serfer222 said:
wceload.exe returns -2147024891, "access denied", on you ROM.
Try this - install one of your cabs manually.
If installing cab by tapping on it, would normally display a security
warning for not being signed, then wceload.exe will fail in silent mode.
In this case you need to relax your ROM security.
This is in the Requirements of original XDA_UC:
"The Rom should have the security relaxed in HKLM\Security\Policies\Polices by setting the value 0000101a to a 1.
So unsigned installations and Mortscript do not give a security error."
Try to add this to your registry.
Click to expand...
Click to collapse
I see, thanks. There is a registry app in which I can disable security. I'll do that.
Thanks agai and keep up the good work!
This is pretty awesome. Lightweight alternative to SASHIMI. It works great!
Does anyone have information or know the capabilities of the FM radio IC built in the HTC EVO series, do they use the same chip for all models, and are we exploiting all of its capabilities, like HD radio, etc. I see someone already has a hack for the HTC fm player that allows it to tune without an antenna/headphones. Nice, but I want more! if you have any info, i'll take whatever! Thanks!
Great forum on how to reverse engineer the HTC radio.apk
Follow here: http://forum.xda-developers.com/showthread.php?t=725870
TUTORIAL: Reverse engineering HTC FM Radio for noobs (on EVO 4G)
Okay, I'm writing this because I want to help any other newbies trying to learn how to reverse engineer. The technical details involved in this are extremely daunting, so the purpose of this tutorial is to first explain in layman terms exactly what you're trying to accomplish and what to expect. Then we'll go over the details. That way you're not completely blind going into this. I'm fairly new to the scene, so I'm not as knowledgeable as everyone else. If you see any errors in my post, let me know so I can change. I'm going to assume you know a little bit of Java, can find your way around a computer, and know nothing about Android. The techniques used should work with other Android phones. For this tutorial I'm using Windows 7, Cygwin, and my stock (not rooted) EVO 4G mobile phone.
The FM tuner for the Evo is run by a Broadcom chip: BCM4329. This chip is pretty amazing in that it does wireless, bluetooth, and it has an FM receiver/transmitter. We're interested in the FM receiver / transmitter.
Now, all android phones are based on a Linux kernel. Basically they're Linux running computers. The Android operating system is then installed onto the linux system. Every app is then run off of Android.
Android is based on Java but it is not a Java system. It uses a virtual machine called Dalvik. Google did this to get around licensing issues with Sun Microsystems. So they pretty much invented their own machine language (called byte code) for the Java language. This makes things complicated for the reverse engineer because from what I've read, once Java is converted into this machine language or byte code, it can't be converted back.
So let's rehash.
If you were programming strictly in Java, you would see these extensions:
Java source code = .java
Compiled Java source code = Java byte code = .class
Compressed file to package your program = .jar (Java Archive)
But since you're programming in Android and Dalvik, you will see these:
Java source code = .java
Compiled Java source code = Dalvik byte code = .dex
Compressed file to package your program = .apk
(I haven't mentioned this, but HTC further Optimizes their .dex code)
Optimized Dalvik byte code = .odex
I'm writing all of these down because it's very easy to get confused with all of the extensions. (for me at least!). remember how I said once you go dex, you can't go back to java? That's where JesusFreke comes in. He's a senior member of XDA, and he created "baksmali" and "smali", two programs that can convert the Dalvik code back into a human readable format. These files have extensions of .smali
Decompiled Dalvik byte code = .smali
But what can you do with .smali files? That's where this other senior member, brut.all comes in: He developed apktool. apktool takes JesusFreke's work to the next level. This program in conjunction with NetBeans, actually lets you trace through any program using the .smali code taken from JesusFreke's programs!
apktool does this by converting those .smali files into "fake" .java files that can be used by the NetBeans (program that compiles and makes java programs) IDE. I say "fake" because apktool embeds the .smali code into java files as comments. However, once you attach a debugger to NetBeans, you'll see that the debugger will follow line by line every execution statement found in the smali code!
So...... you can take the program you want, plug it into Net Beans using a debugger (using the default ddms command provided by Android SDK), and you can trace everything you do in the program. I have it connected to my phone, so whenever I push a button while running my HTC FMRadio app or unplug my headphones,I see the corresponding response to the HTCFMRadio code I have loaded in NetBeans. I can now see in real-time how the program operates from my own interactions... JAM.
Technical Aspects: How to get from ground zero to tracing HTCFMRadio?
1.) Download Android SDK - Go to google development site and follow instructions: Make sure to download the latest Java JDK. Once that is installed, download NetBeans 6.8. Unfortunately, smali debugging does not work with the lastest versions of NetBeans.
Download the "Java SE" version for minimal space
http://netbeans.org/downloads/6.8/index.html
You can follow the rest of Google walkthrough and download Eclipse and ADT plugin, but it's not pertinent to this. You're going to be using adb and ddms from the android SDK extensively, so make sure the path for </android SDK/tools> is included in the PATH variable in your ENVIRONMENT SETTINGS. To get here, right click My computer, click properties, Advanced Settings, ENVIRONMENT SETTINGS.
2.) Search for 7z and download it. It is an awesome and free compression tool that will be extremely useful. It can be used to "unzip" .jar, .apk, and other compressed formats.
3.) Get the Radio app. You can do this by going to "shipped-roms" website, downloading the latest Supersonic image, and following the directions in the unlockr tutorial for HTC kitchens at the unlockr website... (once you have extracted the files from the image, you can look in the system/app and system/framework directories to get the files listed below) or:
you can pull the following files from your phone:
Using the command prompt type (and with phone plugged in, and with USB debugging enabled on phone):
adb pull /system/app/HtcFMRadio.odex
adb pull /system/app/HtcFMRadio.apk
adb pull /system/framework ./framework
This will put HtcFMRadio.odex and HtcFMRadio.apk in the current directory and create a framework directory with more files. A couple of the files in the framework are needed for the HtcFMRadio app, but for simplicity, we're just going to pull the whole directory.
Now that we have the files, we have to make a few changes to make the app installable and to be viewable by the debugger. To do this we have to decompile the .odex format into a human readable format we can edit. That brings us to:
3.) Download baksmali and smali from Project Hosting on Google Code (google search smali).
Usually an Android application is made up of one file, an apk file. Inside the apk file is an AndroidManifest.xml file, a classes.dex file (compiled Java code for the program), and other folders. The other folders contain either graphics or other .xml files that tell the program how it should look to the user. We don't have to worry about those for now. This is important because APKTOOL only opens programs set up this way. But wait up? We didn't download one .apk file, we downloaded an .apk file and an .odex file! What gives? Well, if you right click the apk file and open it (using 7z), you'll see that it's missing the classes.dex file. The dex file for the app is actually the HtcFMRadio.odex file we downloaded. So, to make this system app more like a nominal app, we have to find a way to convert the HtcFMRadio.odex to a classes.dex file. That's easy with baksmali and smali!
Once you download goto command prompt and type:
java -jar baksmali-<version>.jar -d framework -x HtcFMRadio.odex
(Remember to match baksmali-<version>.jar with the filename of baksmali you downloaded)
If done correctly, you should see a newly created \out directory
This creates an out\com\htc\fm directory with many .smali files.
Now let's reverse the process and put it back as a dex file. Type at command prompt:
java -jar smali-<version>.jar out -o classes.dex
If done correctly you'll see a newly created classes.dex.
now, right click on HtcFMRadio.apk (select 7z and open). Drag classes.dex into the file. Say yes to the prompt. Now you have a normal apk file APKTOOL can read!
4.) Download APKTOOL from Project Hosting on Google Code and the helper apps for your OS. (If you're extracting files for windows OS you should have apktool.bat and aapt.exe). Extract (again using 7z, don't you love this program?) apktool.jar (keep it as a jar file, don't extract the stuff inside of it), apktool.bat, and aapt.exe to the directory you're working on. To make things neat, you can also delete HtcFMRadio.odex (you don't need it anymore) and classes.dex (make sure you put it in the HtcFMRadio.apk file first!)
If this is the first time you're using apktool, then you have to install the htc framework so apktool can baksmali the Radio app. You only have to do this once:
apktool if ./framework/com.htc.resources.apk
Alright, at the command prompt:
apktool d -d HtcFMRadio.apk
This extracts the contents of HtcFMRadio.apk and places them in the HtcFMRadio directory. However, there are two major differences between this content and the content created in step 3. If you go into the smali directory you'll see that instead of .smali files, you'll see .java files. And if you go back and edit the AndroidManifest.xml file, you will also see that it's in text! Android applications convert their xml files to binary format. Now that APKTOOL has converted everything to an IDE friendly format, we can use NetBeans to edit everything. The first thing we're going to do is edit AndroidManifest.xml (using notepad) and add the following:
android:debuggable="true" to the Application tag.
IT should now look like this:
<application android:theme="@android:style/Theme.Black.NoTitleBar" android:label="@string/fm_app_name" android:icon="@drawable/fm_radio" android:taskAffinity="android.task.fmradio" android:description="@string/htc_corp" android:allowTaskReparenting="true" android:debuggable="true">
This permission lets the debugger watch the program while it's running on the phone.
We are going to run into two problems if we try to install this program. One is that Android doesn't let you install more than one copy of a system app. The second issue is that if we change the signature of our system app, then we'll have to change the signatures of our other system apps as well! Ahh.... So, to get around that, we're going to trick Android into thinking we have a completely new program. We're going to do that by renaming the com.htc.fm class to com.htc.modradio class. Next step:
5.) Cygwin (or Linux virtual machine)
The easiest way that I can think of to replace strings in multiple files is by using linux. You can most definitely do it in WIndows, but I dont know how. If you let me know how, I can put it in this tutorial.
(update: you can use Notepad++ to easily find/replace strings in multiple files for Windows. You still, however, want to download Cygwin if you're going to develop with Android-NDK.)
For now, just search for Cygwin (Cygwin is a program that lets you run Linux commands from a command prompt using your Windows directories), and install it. Make sure to have the Perl option selected. You'll need Perl to make the following commands work.
Once you get Cygwin up and running
cd <to your HtcFMRadio directory>
in my case it's
cd /cygdrive/c/Users/Jerry/Desktop/HtcFMRadio
now type the following commands in this order:
this command changes all occurances of htc/fm to htc/modradio in your xml and .java files.
find ./ -type f | xargs perl -pi -e 's/htc\/fm/htc\/modradio/g'
this command changes all occurances of htc.fm to htc.modradio
find ./ -type f | xargs perl -pi -e 's/htc.fm/htc.modradio/g'
If you don't follow this order, your source code will get messed up.
If using cygwin, a bunch of .bak files will be created. Using windows search, find all .bak files in your HtcFMRadio directory, then select them all and delete them (Make sure they are only files with .bak!)
Now just rename the fm directory to modradio. It is located in HtcFMRadio/smali/com/htc
Now go to your windows command prompt and type:
apktool b -d .\HtcFMRadio modradio.apk
Now sign and install modradio.apk on your phone.
adb install modradio.apk
If you have never signed before, then you need to use keytool and jarsigner. These two files are in your JDK directory, so make sure you include your JDK directory in the PATH variable of your ENVIRONMENT SETTINGS. (To get here, right click on My Computer, click Properties, Advanced Settings, Environment Variables. Once you make change, open up a new COMMAND prompt to see changes).
cd to the directory which has modradio.apk
now type:
keytool -genkeypair
Answer all questions, then use the same password for all password prompts.
Next type:
jarsigner -verbose modradio.apk mykey
Type in the password you created in the above step. Your apk should now be signed.
Next install:
adb install modradio.apk
Success!
6.) Testing the app on phone
Go to your phone and you'll now see a new FMRadio icon next to your first. Click on it and watch it open. It should now be able to play music. Keep it open.
7.) Using Netbeans
Go into HtcFMRadio and delete the build directory created by APKTOOL.
Now open up Net Beans and click on File, New Project, Select Java Project with Existing Sources, click on Next
Select HtcFMRadio directory for Project Folder, rename Project Name to whatever you want. Let's type in ModRadio. click on Next
Next to "Source Package Folders" click on "Add Folder" and select the smali directory.
Click Finish. For a quick tutorial by Brut.all, search APKTOOL in youtube and click on: Apktool Demo 2 - Smali improvements
Right click on Libraries. Click on "Add Jar / Folder". You want to add Android.Jar. Since I have Android 2.1 loaded I went to /platforms/android-7 located in my android SDK directory.
Your project is now ready for editting!
8.) Running the Debugger to trace through program.
Next go back to Windows command prompt and type ddms. This runs the Dalvik Debug Monitor. A window should open up. In the left hand side you should see com.htc.modradio. That's our app! To the right you're going to see 2 numbers, you're interested in the one to the right, 4 cells away from com.htc.modradio. This number is a port number, and you're going to use it to communicate with NetBeans. (In my case it is 8603)
Go back to NetBeans and click on Debug, Attach Debugger.
In the host field type: localhost
In the Port field: type in the second number you saw. (8603)
If everything is working you'll see a bug appear next to com.htc.modradio in the Dalvik Debug Monitor. Look at the bottom bar of NetBeans for feedback. If you get errors make sure the numbers match, or try port 8700 and make sure you select com.htc.modradio in the Dalvik Debug Monitor. Port 8700 is the default port used for whatever program you select in Dalvik Debug Monitor.
9.) Setting a breakpoint
I'm making this a seperate step because it is completely arbitrary. When creating a break point be sure to follow this rule:
You must select line with some instruction, you can't set breakpoint on lines starting with ".", ":" or "#".
Rather than looking for a spot to breakpoint, though, I'll tell you where to put one so you can quickly see how the debugger traces through the code. You aren't "REQUIRED" to do the next step, but if you want to trace you have to put a breakpoint somewhere.
In Net Beans click on the Project tab, click on Source Packages, com.htc.modradio, and then doubleclick on BroadcomFMTuner.java
We're going to insert a breakpoint. Scroll down to line 3226 and on your keyboard press: CTRL-SHIFT-F8, select line in dropdown box and hit ok. (To keep it simple, I usually look for "invoke" instructions to set breakpoints at)
Now go to your phone and click on the physical "back" button on your phone. This will clear the radio,(you should still be able to listen to music). Drag your status bar down. You should see a radio icon. Click on it again. The radio backgroudn will appear, but you wont' see any text or anything. Now go back to your netbeans application. You should now see debug options highlighted! Click on Step Over (F8) to step through!
Great work on other HTC phones, not sure it applies here...
Sounds like HTC uses an all in one bluetooth/fm radio chipset... possibly broadcom, this fella has gotten somewhere!
follow here: http://forum.xda-developers.com/showthread.php?t=497977
APP:17FEB10:RDS FM Radio R&D: Get radio text, Alt Freqency, free TMC etc
Microsoft hasn't defined a tuner API for Windows Mobile platform (yet) and manufactures such as HTC do not publish their API for FM radio.
GFMAPI is an FM Radio interface that designed to be used on different models of Windows Mobile devices.
It makes all FM RDS based applications such as Radio players, Radio Alarm, TMC navigation works on different devices.
What's new?
Download EtenTest and GFMAPI 1.0.
Currently it works with M900 and M800, tested with PowerRadio and hyperGPS.
This is for Eten/Acer devices only.
End-User and application developers (Downloads)
User should try to use the GFMAPI in the application package because it may need to signed with privileged certificate and version of interface may be different.
App Developers can find FMAPI.h and a test application APITest in the GFMAPI for HTC devices 1.6. Source code is included to help your development.
The interface is defined in C language with sample code.
Thank for NetRipper made a .Net CF library for GFMAPI.
Note: the latest FMAPI.h is in GFMAK and the GFMAPI will be updated. They only has minor differences.
Supported Devices
* BRF6350 Chipset:
HTC Diamond, HTC Raphael (not CDMA), HTC Blackstone, HTC Polaris, HTC Topaz, SE Xperia X1
NOTE: if your X1 has new media panel that integrated with FM Radio function, you may have to disable this panel (I don't know how).
Download GFMAPI for HTC devices 1.6
* BCM432x Chipset:
HTC Rhodium, HTC Leo, HTC Mega
Supports radio functions if renaming FMSDKWrapper.dll to FMS_API.dll with the above driver. RDS data cannot be received.
We are working on this device. Related thread: FM Transmitter on HD2
* SI470X Chipset:
HTC Artemis: NOT supported.
Samsung Omnia: Samsung i9x0 Omnia
Samsung Omnia II: GFMAPI.dll for Omnia II and its Cab format This is an excellent work done by phjz.
Eten/Glofiish/Acer M800/M900/V900/X900/X650/S200: see "what's new". Please help me test it.
Device adaption developers
Generic FMAPI Adaption Kit will help you implement the driver for your device. Use APITest in the GFMAPI to test your driver.
Please read readme.txt in the package. Feel free to ask me if you need help.
If you have a device that is not supported by GFMAPI
I currently only have a HTC Raphael so I need your help to get your device supported.
First of all, you should Search in this Thread to check anybody posted it before.
Extract FM radio related files and upload to the forum.
Note: You cannot simply copy files from/to device. You need dump the ROM then extract files from the ROM. Search this forum to find how.
If you have good VC++ and IDA pro with ARM skills, please join us to discover FM Tuner API on those devices then make RDS application working on your device.
* HTC Rhodium/TP2, HTC Leo/HD2, HTC Mega/Touch2:
http://forum.xda-developers.com/show...&postcount=783
http://forum.xda-developers.com/show...&postcount=813
http://forum.xda-developers.com/show...&postcount=794
Rhodium Test
Current status: 6Fg8 identified that raw RDS data is in the Broadcomm BTTray process, not in the FmRadioSDK.DLL. Still not trace it down to function/module level.
* Artemis:
Artemis Test
Far far away from any progress and not many users.
BBCBBA uploaded FM radio related file for Gigabyte GSmart S1200. This device supports RDS by using deviceIoControl directly communicating with the driver. I can see it is possible to make a GFMAPI driver just need a lot of effort.
Applications based on GFMAPI
* FM TMC driver for navigation: Beember's HyperGPS.
* A powerful RDS FM Radio application: 6Fg8's Power Radio
This project focuses on RDS API now. TMC related topic has been moved to the TMC thread because it is too attractive and posts will flood the thread.
Origin research project
Many people ask questions related to FM radio in the forum have been solved by this project:
* Does FM Radio supports RDS text and traffic information?
* Does FM Radio supports more than 20 saved channels and give a friendly alias, such as "BB Radio 4" rather than 920.2MHz ?
* Does FM Radio supports automatically or manually change frequency when signal getting pool during traveling?
* Does FM Radio support RDS-TMC traffic information for navigation system?
The answer is yes. The Bluetooth/FM radio chip BRF6350 on your phone is very powerful but HTC FM radio only provides basic functionality.
Unfortunately HTC doesn't publish FM Service API to us.
So I disassembled FM player by using IDA pro and know usages of FMS api.
After a week sleepless night, I wrote my FM radio tool, xFMRadio, utilizes most functions provided by FMS API, provides RDS and other data for further research.
With help from this thread, we have exposed most secret of FM and RDS system on HTC devices and we can make useful applications now.
This application is written for research so that UI is not nice. It only works on BRF6350 based HTC devices.
Download xFM Radio v0.4
If doesn't have sound on your device, try xFM Radio v0.4B, which removed audio volume initialization.
Brief user guide for xFMRadio
Default settings: Audio Source: 1 (earphone), RDS =1, Verbose =1, AF = 1. ( but I don't know if automatic AF is working. have to verify during long distance traveling.)
Verbose: 0 -no log; 1 - status only; 2 - TMC raw data; 3 - all types of log
Row 1: Input argument. Set Frequency in KHz, AF list: alternative frequencies for the current station.
Row 2: Frequency, station name, Band: World/Japan - use this to listen police station etc
Row 3: Signal Strength, Stereo/Mono, UTC Date/Time (update once per min if supported)
Row 4: -100KHz, Previous Channel, Next Channel, +100Hz, Mute, Mono/Stereo
Row 5: Headset/Speaker, De-emphasis, Stereo blend
Row 6: Radio Text
Row 7: status such as Music/Speech, TP, TA, PTY, TMC etc
Check if the channel support TMC: ROW 7 should display [TMC]. You can see TMC data by setting the top left input box to 2, and click on Menu->Verbose.
The current xFMRadio v0.4 does not display RDS raw data anymore.
You can use Save log menu to save log data.
FMS API version is displayed in the About dialog. Mine is 1.2.
xFMRadio 1.4 Debug...
it does not support HD radio.
Solved...
Fair enough... I was getting that impression anyhow, especially with the lack of responses. One could only dream that with all the digital aspects of modern comunication (bluetooth, cell, etc), that they would throw in HD digital FM along side it... but as I can see, this only fits in well with every other aspect of modern lackluster industrial corporate innovation. Peace out!
This is your battery view when your device is turned off and plugged in.
This thread is Made for the S5 specifically (though these images can be used if rescaled to the right size.
The file can be known as Battery_scale.PNG
The file can be Located at. /res/images/charger
The file is a Multi surface image. Basically a zip png
To extract All the ".PNG" files use. https://github.com/Aaahh/Battery-Images-Replacer
Thanks to @Aaahh for making this a lot easier
Originally posted by cunha17 @ https://forum.xda-developers.com/showthread.php?t=1609059&page=5
Battery-Images-Replacer (forums.oneplus.net/threads/battery-charging-image-replacer.186460) is a way to easily change the battery boot animation. You can use Aaahh provided images or change them and make your own flashable zip. There are 2 problems in that solution, first it is directed to a specific platform (oneplus) and second, it does not work in Marshmallow (CM13).
I figured out a way to make Battery-Images-Replacer to work in Android 6 (Marshmallow) and problably in 5 (Lollipop). Just stating that I'm using CM13 in a Galaxy S3 (i9300) phone, but the code is the same one Aaahh provided with two minor changes:
The battery_?.png and battery_charge files are deprecared in 6.0, and replaced by battery_scale.png (multi surface image) with mandatory 6 frames (hardcoded in Android). To make Battery-Images-Replacer work with previous Android versions, the deprecated files are kept; and
The block device in anykernel.sh file needs to be generalized to work in i9300 (my case) and maybe others, so it was replaced at line 9 with: block=`find /dev/block/platform -name BOOT`;
Warning: be shure to do the 2nd step above, or the flashing will not work, but also, you may brick your phone!!!
But the catch is the creation of the new battery_scale.png file. In this case, we have the 6 single surface images (battery_?.png files) and want to make a "Multi Surface Image" file compliant with Android 6.0.
I made the following script (create_multi_surface_image.sh) that convert multiple PNG to a single "Multi Surface Image", you just need to change the FILES and SCALEFILE variables if needed. This script uses ImageMagick, exiftool and pngcrush to do the job. Just run the script where the battery_?.png files are.
create_multi_surface_image.sh
Once the battery_scale.png is created, you need to copy it to the Battery-Images-Replacer-ak-opo-anykernel/charger/ directory if you didn't run the script there. Go to the base directory (Battery-Images-Replacer-ak-opo-anykernel) and run "zip -r ../Battery-Images-Replacer.zip ." and you should get the flashable zip file at the parent directory.
Now transfer the zip file to your phone (adb push, usb file transfer, etc) and make shure that the file is available to TWRP ou CWM. Boot into recovery and flash the zip file. Turn off the phone and start charging. Enjoy your new battery animation.
I will attach the battery_surface.png file if you just want the final result using the source files (battery_?.png) provided by Aaahh and available at github.com/Aaahh/Battery-Images-Replacer.
Thanks Aaahh for the great job!
And what you have waited for
(Please note this is from my device which is running RR9.0)
(Edit will upload via computer as labs doesn't let edit an add images)