Related
birkoffsjunk's HD2 IMG2CWM Converter
A simple windows batch script to convert DAF builds to Clockwork Recovery ZIPs.
Originally designed for MDJ's Gingerbread NAND and posted here. Results may vary!
Instructions
Download DAF based NAND ROM
Download & Extract this script
Place Boot.img & System.img into the 'in' folder
Double click 'RunMe.cmd' (not as admin)
Manually make any changes you wish (when prompted)
Once done, update.zip will be in the same location as 'RunMe.cmd'
META-INF InfoHow to: Create Clockwork Recovery flash files
How to Create Android Update Zip Package
An updated updater-script (META-INF\com\google\android\updater-script) is required for various other Builds.
Downloadsv1 >>> here <<<
v1.1 attached (7z changed to 9.20 (ghostkid2010) & renamed out folder to temp)
v1.2 attached (Added error checking & support for system.img only)
v1.2.1 attached (Specified xcopy path & removed old 7z.exe)
v1.2.2 >>> here <<< (arif-ali's linux bash script)
Addonsarif-ali's NexusHD2-Gingerbread_V2.0 updater-script
TODO
Add error checking
Add support for system.img only
META-INF Information
Most importantly keep it simple
LicenseBSD License for the script not the tools
7zip is GNU LGPL
unyaffs is GNU GPL v2
same post from MDJ
Your script works great extracting the .img file. But it's not able to create zip file. Let me edit your script with the missing file/info.
Download this file and put in folder tools;
http://downloads.sourceforge.net/sevenzip/7za920.zip
change this line;
"%LOC%\tools\7z.exe" a "%LOC%\update.zip" "%LOC%\out\*"
to;
"%LOC%\tools\7za.exe" a "%LOC%\update.zip" "%LOC%\out\*"
and it should work. it will create a zip file.
Enjoy
how it works?
How does it use? What things do I have to put in the folder "IN"?
sathara said:
how it works?
Click to expand...
Click to collapse
let you extract system.img and boot.img from android build, once you extracted all the fill, it will put all the file into a zip file so you can load via CWM
VuNhatVan said:
How does it use? What things do I have to put in the folder "IN"?
Click to expand...
Click to collapse
boot.img & system.img
It has a function to edit apk. But how do you use that function and where do you add your own apk?
10507 said:
It has a function to edit apk. But how do you use that function and where do you add your own apk?
Click to expand...
Click to collapse
it does not have a function to edit apk (correct me if i'm wrong). once you extracted all the files, go into app and add your apk there.
ghostkid2010 said:
let you extract system.img and boot.img from android build, once you extracted all the fill, it will put all the file into a zip file so you can load via CWM
Click to expand...
Click to collapse
In the Build MDJ_FroYo_Revolution_v._2.2_NAND, there is only system.img, no boot.img. How could I have boot.img?
what a usefull tool, thank you!!
VuNhatVan said:
In the Build MDJ_FroYo_Revolution_v._2.2_NAND, there is only system.img, no boot.img. How could I have boot.img?
Click to expand...
Click to collapse
If there's no boot.img, it should still work. all the boot file is already in the system.img
Let me download that build and I can tell you for sure on how to do it.. I smell that a new version of this script will be out..
Yeah it's very much a work in progress, please feel free to attach updated versions... I'll add them to the first post with accreditation
ghostkid2010 said:
If there's no boot.img, it should still work. all the boot file is already in the system.img
Let me download that build and I can tell you for sure on how to do it.. I smell that a new version of this script will be out..
Click to expand...
Click to collapse
Is it work if there is only system.img?
drizztzou said:
Is it work if there is only system.img?
Click to expand...
Click to collapse
with a little bit of editing yes
ghostkid2010 said:
same post from MDJ
Your script works great extracting the .img file. But it's not able to create zip file. Let me edit your script with the missing file/info.
Download this file and put in folder tools;
http://downloads.sourceforge.net/sevenzip/7za920.zip
change this line;
"%LOC%\tools\7z.exe" a "%LOC%\update.zip" "%LOC%\out\*"
to;
"%LOC%\tools\7za.exe" a "%LOC%\update.zip" "%LOC%\out\*"
and it should work. it will create a zip file.
Enjoy
Click to expand...
Click to collapse
can u more detail about "change this line" location ? u mean u have done it already or i have to do it myself ? which file should i edit ?
ikkon said:
what a usefull tool, thank you!!
Click to expand...
Click to collapse
YEAH! Your not kidding man...i was stoked while playing with it...Id also like to know from here...Is there a similar script for SD->NAND bc my favbe ROM has always been CORECells builds of EVO/HD based...Gave me the best batttery of all SD except for the now current NAND builds. So i figure maybe itll be even better on NAND! TAHNKS again so much for your pos t BIRKOFF! ANYone know of the SD->NAND question?
psuser said:
can u more detail about "change this line" location ? u mean u have done it already or i have to do it myself ? which file should i edit ?
Click to expand...
Click to collapse
YOU have to add an "a" after the z in 7z WITHIN the RUNME script...you have to right click it and open with NOTEPAD on PC and add the "a"
psuser said:
can u more detail about "change this line" location ? u mean u have done it already or i have to do it myself ? which file should i edit ?
Click to expand...
Click to collapse
download the new version on page 1, its fixed
Really cool idea!! I gave it a shot, it just reboots after the MAGLDR screen showing the HTC logo over and over until you boot back into recovery. It flashed fine but just wouldn't boot.
VuNhatVan said:
In the Build MDJ_FroYo_Revolution_v._2.2_NAND, there is only system.img, no boot.img. How could I have boot.img?
Click to expand...
Click to collapse
Use the following "RunMetest.bat"
http://hotfile.com/dl/95408413/0c085bd/RunMetest.rar.html
I tested with different build, system.img only, both boot.img and system.img, it was able to create a zip with all the file.
I'm not uploading the whole folder since this was started by birkoffsjunk, I'm just helping
Test it out
I'm having real problems unzipping the above file to show the .img file. The error I keep getting is "Winzip only supports IMG files that are in the ISO format" I have tried to downloading Winrar and 7 Zip file manager but still cannot get it unzipped.
Please, can anybody help, i'm so frustrated!
Thanks
Matt:fingers-crossed:
Are you trying to open a img file with winrar for see the code/stuff into it?
Guich said:
Are you trying to open a img file with winrar for see the code/stuff into it?
Click to expand...
Click to collapse
Hi, I'm trying to put it in my drive so I can flash it, if that makes sense. Really sorry, I'm new to this!
The Mackem said:
Hi, I'm trying to put it in my drive so I can flash it, if that makes sense. Really sorry, I'm new to this!
Click to expand...
Click to collapse
Ah, you will extract this for put into adb/fastboot folder for flash
So, when you have the winrar windows, drop the file and put it into the folder or the desktop.
Now you can flash/use it
vywood which
Guich said:
Ah, you will extract this for put into adb/fastboot folder for flash
So, when you have the winrar windows, drop the file and put it into the folder or the desktop.
Now you can flash/use it
Click to expand...
Click to collapse
Hi, Guich, Am I actually trying to unzip the file to see to the image??? is this what I need to put it in the db/fastboot folder for flash :good:
I have tried that but I'm still getting the same error message!
The Mackem said:
Hi, Guich, Am I actually trying to unzip the file to see to the image??? is this what I need to put it in the db/fastboot folder for flash :good:
I have tried that but I'm still getting the same error message!
Click to expand...
Click to collapse
I can't do some screen now, however, it's strange.
Can you post a screen of your prob?
Guich said:
I can't do some screen now, however, it's strange.
Can you post a screen of your prob?
Click to expand...
Click to collapse
View attachment Book1.xlsx
Hope this helps??
The Mackem said:
Hi, Guich, Am I actually trying to unzip the file to see to the image??? is this what I need to put it in the db/fastboot folder for flash :good:
I have tried that but I'm still getting the same error message!
Click to expand...
Click to collapse
dude, the .img IS THE 'image' file. You don't need to unzip it or anything, just flash it through fastboot.
It's not a compressed .zip file -__-
The Mackem said:
View attachment 1997963
Hope this helps??
Click to expand...
Click to collapse
But the boot.img is in img already...
Now you have to flash it
tomascus said:
dude, the .img IS THE 'image' file. You don't need to unzip it or anything, just flash it through fastboot.
It's not a compressed .zip file -__-
Click to expand...
Click to collapse
Thank you, I'll give it a go.......................talk about totally frustrated!!!
GGGGGGGGGGGRRRRRRRRRRRRRR!! lol
:shakes head in a disappointed manner:
Really guys? REALLY?
Just help the OP out if you can, if not, move along.
Thread cleaned.
Hello,
Does this ROM support helium devices? Does anyone use it? On the hardware side, the helium hardware is also shown. (Snapdragon 652) I wanted to communicate with the maintainer, but i do not speak Chinese Can you help me with this?
https://download.mokeedev.com/?device=hydrogen
Yes u can install it in helium and I am replying from this ROM only.
svvv said:
Yes u can install it in helium and I am replying from this ROM only.
Click to expand...
Click to collapse
What about CPU one of them 650 and the other 652, my device may become unusable!
Just 2 extra cores in 652...apart from that both are same. So if u flash hydrogen rom in helium 2 cores will be always offline that's it...no other difference.
To enable 2 cores in hydrogen... just need to do small change in the boot.img
svvv said:
Just 2 extra cores in 652...apart from that both are same. So if u flash hydrogen rom in helium 2 cores will be always offline that's it...no other difference.
To enable 2 cores in hydrogen... just need to do small change in the boot.img
Click to expand...
Click to collapse
hi , do you know how enable the 2 cores? how change the boot.img?
ikaros80 said:
hi , do you know how enable the 2 cores? how change the boot.img?
Click to expand...
Click to collapse
You have to copy this file from helium boot.img "init.qcom.power.rc" . Use any boot image unpack/pack tool. Get the file from helium boot.img.
Unpack hydrogen boot.img and replace it and pack it. u can replace the kernel with the new one and flash it which will enable all the cores.
svvv said:
Just 2 extra cores in 652...apart from that both are same. So if u flash hydrogen rom in helium 2 cores will be always offline that's it...no other difference.
To enable 2 cores in hydrogen... just need to do small change in the boot.img
Click to expand...
Click to collapse
svvv said:
You have to copy this file from helium boot.img "init.qcom.power.rc" . Use any boot image unpack/pack tool. Get the file from helium boot.img.
Unpack hydrogen boot.img and replace it and pack it. u can replace the kernel with the new one and flash it which will enable all the cores.
Click to expand...
Click to collapse
do you know any link for kernel?
ikaros80 said:
do you know any link for kernel?
Click to expand...
Click to collapse
Use the same boot.img from mokee rom. I have attached init.qcom.power.rc here use it.
Also attached the modified boot.img file which I am using in helium for mokee. If u want u can directly flash the file from twrp image flash.View attachment init.qcom.power.rc.zip
View attachment image-new.img.zip
svvv said:
Use the same boot.img from mokee rom. I have attached init.qcom.power.rc here use it.
Also attached the modified boot.img file which I am using in helium for mokee. If u want u can directly flash the file from twrp image flash.View attachment 4132124
View attachment 4132126
Click to expand...
Click to collapse
must flash the 2 filies?
ikaros80 said:
must flash the 2 filies?
Click to expand...
Click to collapse
I have given this file init.qcom.power.rc so that if u want to flash any hydrogen rom in helium u can replace this file in boot.img to enable all cores.
The boot.img is already been modified with the above file u can just flash this file alone for mokee rom.
svvv said:
I have given this file init.qcom.power.rc so that if u want to flash any hydrogen rom in helium u can replace this file in boot.img to enable all cores.
The boot.img is already been modified with the above file u can just flash this file alone for mokee rom.
Click to expand...
Click to collapse
i just try to flash this MK71.2-hydrogen-201704290936-NIGHTLY.zip , but say is not for your model helium
ikaros80 said:
i just try to flash this MK71.2-hydrogen-201704290936-NIGHTLY.zip , but say is not for your model helium
Click to expand...
Click to collapse
Unzip the file...modify these lines in updater-script
Ro.product.device="helium"
Ro.build.product="helium"
Save and zip the files again and flash it
svvv said:
Unzip the file...modify these lines in updater-script
Ro.product.device="helium"
Ro.build.product="helium"
Save and zip the files again and flash it
Click to expand...
Click to collapse
i unzip the file, change the lines in this file, then zip again but the problem is the first zip before unzip is 425mb and the sexond after zip again 375mb
ikaros80 said:
i unzip the file, change the lines in this file, then zip again but the problem is the first zip before unzip is 425mb and the sexond after zip again 375mb
Click to expand...
Click to collapse
That's fine...you can flash it
You don´t need unzip the rom, just open zip with 7zip, extract updater-script file, delete original from zip, make a copy of original (just in case), edit the above mentioned lines with Notepadd++ and then put your edited file in the zip, just close your zip again
the same nightly work out of the box for my helium. Though it slowly removed the content of my memory card, all of my backups/music/photos is gone bit by bit and it had to reboot like 3 or 4 times at the first initial boot.
Welcome to my McLaren boot animation thread for the Oneplus 7t & 7t pro!
There is one for the Oneplus 7 and 7 pro aswell, you can check it out Here
Must have Magisk Installed.
Installation:
Flash .zip via Magisk v17.0+ (Open Magisk>Select Modules from the Side Panel> Press the + button>choose the zip that you downloaded)
If you want to return to stock boot animation, disable/ remove module via magisk and reboot:good:
Downloads:
Oneplus 7t: Link
Oneplus 7t pro: Link
Preview:
Troubleshoot:
- If you do not see the bootanimation or you see the stock boot animation, check if you have any other magisk bootanimations actiavated?
If you do, disable them all, reboot, and reflash.
- If that does not work work: Last resort, you can move the bootanimation.zip (located in the magisk module zip: system/media folder) manually to /system/media on your phone and set permissions to rw-r-r
If you end up using this method, remember to back up stock bootanimation by adding a .bak at the end of the file name.
Magisk not seeing it is grayed out
jaythenut said:
Magisk not seeing it is grayed out
Click to expand...
Click to collapse
When you press the + button use the side bar and use a different file manager to select the file... The stock file manager does that sometimes...
kitpop said:
When you press the + button use the side bar and use a different file manager to select the file... The stock file manager does that sometimes...
Click to expand...
Click to collapse
That worked thanks didn't know you could do that ?
Holy sh*t it looks fantastic on my 7T Pro
This looks amazing on my oneplus 7t....
Looks great on the 7T! would there be a way to remove the Mclaren text and just leave the honeycomb portion? or change the Mclaren text to just the OnePlus logo?
Can you deactivate or remove the module?? I can't...
morback said:
Can you deactivate or remove the module?? I can't...
Click to expand...
Click to collapse
You should be able to disable or remove it using the modules section in the sidebar in Magisk itself.
kitpop said:
You should be able to disable or remove it using the modules section in the sidebar in Magisk itself.
Click to expand...
Click to collapse
That's the point: it doesn't work. With either 20.1 and canary. But I think it's not the only module with I get this so it should come from my side. Can't understand where from though....
morback said:
That's the point: it doesn't work. With either 20.1 and canary. But I think it's not the only module with I get this so it should come from my side. Can't understand where from though....
Click to expand...
Click to collapse
Okay try this... Reboot to TWRP> mount system > go to advanced > file manager > then go to data/adb/modules > delete the McLaren folder and any other... This is the only other way I know to remove modules...
kitpop said:
Okay try this... Reboot to TWRP> mount system > go to advanced > file manager > then go to data/adb/modules > delete the McLaren folder and any other... This is the only other way I know to remove modules...
Click to expand...
Click to collapse
By any other folder I mean which ever module you want to remove just delete their respective folder..
kitpop said:
By any other folder I mean which ever module you want to remove just delete their respective folder..
Click to expand...
Click to collapse
I understood
But... Mount what? TWRP? OnePlus 7T and 7T pro => still no TWRP
Anyway I could access this folder through Solidexplorer and there is no McLaren folder or any other related to this module.... And yet there are the others from my other modules...
thank you very much it looks amazing
is it possible to change the bootanimation.zip inside this zip module to "flash" annother bootanimation.zip into my 7t pro ? or the other files are somehow tied to this one ?
sabnack said:
thank you very much it looks amazing
is it possible to change the bootanimation.zip inside this zip module to "flash" annother bootanimation.zip into my 7t pro ? or the other files are somehow tied to this one ?
Click to expand...
Click to collapse
Nope, that should work but other things and info will show up as McLaren bootanimation...
morback said:
I understood
But... Mount what? TWRP? OnePlus 7T and 7T pro => still no TWRP
Anyway I could access this folder through Solidexplorer and there is no McLaren folder or any other related to this module.... And yet there are the others from my other modules...
Click to expand...
Click to collapse
Same situation with me: cannot remove mclaren nor find it anywhere...:crying:
dorianstgt said:
Same situation with me: cannot remove mclaren nor find it anywhere...:crying:
Click to expand...
Click to collapse
Update your phone to 10.0.7 and your boot animation will be back to stock.
If you're already on 10.0.7, use the manual update function in settings, and choose the OOS file you're already on. Follow the tutorial which explains how to keep root after OTA (install OTA, DON'T REBOOT, got to magisk : install/install/direct install, then install it again but to inactive slot and you're ready to reboot). Module should still be in the list but at least your boot animation is back to stock ?
morback said:
Update your phone to 10.0.7 and your boot animation will be back to stock.
If you're already on 10.0.7, use the manual update function in settings, and choose the OOS file you're already on. Follow the tutorial which explains how to keep root after OTA (install OTA, DON'T REBOOT, got to magisk : install/install/direct install, then install it again but to inactive slot and you're ready to reboot). Module should still be in the list but at least your boot animation is back to stock ?
Click to expand...
Click to collapse
Thank you very much,but surprisingly the boot animation stays McLaren after update.
dorianstgt said:
Thank you very much,but surprisingly the boot animation stays McLaren after update.
Click to expand...
Click to collapse
? Well....
I copied the stock bootanimation.zip from my device but I can't replace the one in the module (file explorer says "system file is read only". I'll try to find a way to do it from my computer. Then you should be able to flash it upon the old one I guess, through magisk.
EDIT: I did it from my computer, try to install this module
https://framadrop.org/r/P2Dibr-hM5#tasiRIXLD/b6AA7tSCIXBP303/A2ZvanXGx5MD1TAB0=
morback said:
Well....
I copied the stock bootanimation.zip from my device but I can't replace the one in the module (file explorer says "system file is read only". I'll try to find a way to do it from my computer. Then you should be able to flash it upon the old one I guess, through magisk.
EDIT: I did it from my computer, try to install this module
https://framadrop.org/r/P2Dibr-hM5#tasiRIXLD/b6AA7tSCIXBP303/A2ZvanXGx5MD1TAB0=
Click to expand...
Click to collapse
Thank you very much, it works.
Greetings from Stuttgart, Germany.
Strange, that the module is not removable...
We are looking for the "marble.xml" file along the way.
/system/product/etc/device_features
Add lines.
<integer name="smart_fps_value">120</integer>
<integer-array name="fpsList">
<item>90</item>
<item>120</item>
<item>60</item>
</integer-array>
<integer name="defaultFps">60</integer>
Can you specify how to do it? Also does it need root?
stavrakas2007 said:
Can you specify how to do it? Also does it need root?
Click to expand...
Click to collapse
It's literally explained how to do it, and yes system changes that way need root
Arcent said:
It's literally explained how to do it, and yes system changes that way need root
Click to expand...
Click to collapse
Which app do we add those lines with? Via Mi text viewer? Or what? Also where do we paste them? On the finishing?
stavrakas2007 said:
Which app do we add those lines with? Via Mi text viewer? Or what? Also where do we paste them? On the finishing?
Click to expand...
Click to collapse
I recommend using the MT manager, it has its own text editor, to paste open the xml and look for 120, look for something related to hz and see if it will be necessary to add all the lines, or just the line related to 90hz
@Arcent I tried with multiple file managers (I have root permissions) but none of them allow editing or replacing the marble.xml file. Mt manager gives me error 'Remount RW failed /product'.
n4m3less said:
@Arcent I tried with multiple file managers (I have root permissions) but none of them allow editing or replacing the marble.xml file. Mt manager gives me error 'Remount RW failed /product'.
Click to expand...
Click to collapse
Just remount the partitions in r/w ( read write ) you can find recovery modules that do this
Arcent said:
We are looking for the "marble.xml" file along the way.
/system/product/etc/device_features
Add lines.
<integer name="smart_fps_value">120</integer>
<integer-array name="fpsList">
<item>90</item>
<item>120</item>
<item>60</item>
</integer-array>
<integer name="defaultFps">60</integer>
Click to expand...
Click to collapse
Can I do this via Recovery without root permission?
hydelezz said:
Can I do this via Recovery without root permission?
Click to expand...
Click to collapse
Unfortunately I won't be able to answer because I only do it via root, but you can try... At your own risk, the best thing would be to do it and then remove the root if you don't want to use it
Can you make magick module for that, because I can't edit system files with root too
Riyaz_Alpha said:
Can you make magick module for that, because I can't edit system files with root too
Click to expand...
Click to collapse
If the module does, you'll still need root lolz.
zelos156 said:
If the module does, you'll still need root lolz.
Click to expand...
Click to collapse
Yes bro I do have root and magisk installed.
But I can't edit system files with root
That's why I asked for magisk module.
Riyaz_Alpha said:
Yes bro I do have root and magisk installed.
But I can't edit system files with root
That's why I asked for magisk module.
Click to expand...
Click to collapse
Yes ... yes you can't r/w files in product partition, so it's not working
hydelezz said:
Yes ... yes you can't r/w files in product partition, so it's not working
Click to expand...
Click to collapse
Android getting complicated day by day