[-]
Who's Online
There are currently no members online.

[-]
Latest Threads
Need ROM for Q223_MB_V41
Last Post: aamm065065
2024-05-13 00:34
» Replies: 0
» Views: 596
K107-MB-V4.2
Last Post: Alby
2024-04-24 00:37
» Replies: 0
» Views: 239
[ROM] NEED ROM ZH960-MB-V5.0 MTK 6592
Last Post: sendycat2
2024-04-21 08:57
» Replies: 0
» Views: 224
ZH960 Tablet Bricked
Last Post: luis mar que
2024-03-20 19:52
» Replies: 14
» Views: 9840
Thanks, I've been looking for this for a...
Last Post: StevenRip
2024-02-25 05:00
» Replies: 0
» Views: 187
[SOLVED] Need ROM for ZH960-MB-V4.1
Last Post: ery1988
2024-02-21 08:59
» Replies: 0
» Views: 287
NEED ROM ZH960-MB-V4.1
Last Post: ery1988
2024-02-21 08:53
» Replies: 18
» Views: 13740
Budget phone choice help needed
Last Post: sabir7272
2024-02-10 06:52
» Replies: 4
» Views: 4283
ZH960-MB-V3.1 SOLVE
Last Post: Pranav1
2023-12-20 20:22
» Replies: 74
» Views: 33860
Need ROM for SONIM XP7S Android 5.1.1
Last Post: Alpa
2023-11-29 22:17
» Replies: 0
» Views: 193
Need rom for X101 Mt6592
Last Post: carencell
2023-11-24 21:30
» Replies: 3
» Views: 2180
Gizbeat 101: Get your MTK6589 MTK6577 MT...
Last Post: Alexia78
2023-11-13 11:28
» Replies: 8
» Views: 22341
Need rom for a tablet with board id "K10...
Last Post: oliver2
2023-10-24 20:23
» Replies: 6
» Views: 5545
How to Connect open public wifi
Last Post: oliverben45
2023-10-24 16:03
» Replies: 11
» Views: 8916
I NEED FILE FOR ITEL MOBILE PHONE AND TO...
Last Post: Meghnad45
2023-10-22 02:38
» Replies: 1
» Views: 1443
NEED Help Bricked my phone.
Last Post: Meghnad45
2023-10-22 02:36
» Replies: 4
» Views: 4855
Introduction
Last Post: ezrahidaya
2023-10-14 14:38
» Replies: 2
» Views: 1354
Needs help to root a china tablet brand ...
Last Post: ezrahidaya
2023-10-14 14:37
» Replies: 1
» Views: 236
Any tips to stay awake?
Last Post: ezrahidaya
2023-10-14 14:35
» Replies: 6
» Views: 5940
Need ROM for china TAb MT6797
Last Post: ezrahidaya
2023-10-14 14:34
» Replies: 1
» Views: 423
need this stock firmware for my tablet M...
Last Post: ramzii888
2023-10-14 02:20
» Replies: 4
» Views: 4644
Encryption Unsuccessful - Reset Android
Last Post: Aakriti
2023-10-13 16:51
» Replies: 3
» Views: 12441
betools
Last Post: egdeim
2023-09-21 12:41
» Replies: 4
» Views: 5060





Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[EXPLORE]Your recovery image
#1
WARNINGS
#########
I am not an Andoid expert so try at own risk
Plus the Apache license says the same thing.

Credits
########
vampirefo for his advice on adb and dumchar_info
Bruno Martins for his perl scripts
Android dev team for mkbootimg

Devices known to work
#####################
MT6516
MT65x3 (MT6513 and MT6573)
MT65x5 (MT6515 and MT6575)
MT6577
MT65x2 (MT6572 and MT6582)
MT6589
MT83xx (MT8377 and MT8389)

System requirements
##################
Perl v5.14+

Compressors for repack
cpio
gunzip (gz)

Unpack errors
If you see "Error: the input file does not appear to be supported or valid"
You may need more compression software to download
Consider:
lzma, lzop, xz


Software to download = the downloads (not the compression software)
####################
repack-MT65xx.pl, unpack-MT65xx.pl from
[Only registered and activated users can see links Click here to register]
repack-MT65xx.pl, unpack-MT65xx.pl
which both have the following copyright
Quote:* Copyright © 2012 Bruno Martins (bgcngm@XDA)
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* [Only registered and activated users can see links Click here to register]
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* You may not distribute nor sell this software or parts of it in
* Source, Object nor in any other form without explicit permission obtained
* from the original author.
Note that you are doing the download from upstream site so no breach occurs for me

Download mkbootimage from same site and make all three downloads executable

I could not find the actual license for mkbootimg but I believe it was based on
Android stuff so the current header at
[Only registered and activated users can see links Click here to register]

shows the new license is still Apache as per
Quote:** Copyright 2007, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** [Only registered and activated users can see links Click here to register]
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License

Again, I am not distributing anything so quite legal IMO.


Unpack
#######
Create a folder and place your recovery.img in it
also place a copy of your downloads in there

unpack command is (local user)
Code:
./unpack-MT65xx.pl recovery.img

---> new files in folder become:
recovery.img-kernel.img
recovery.img-ramdisk


I make a copy of the ramdisk folder elsewhere before changing anything.

[Image: 2rzxx81.jpg]

Change something to ram folder
##############################
Not discussed

[Image: 2vuzmg1.jpg]

#######
repack
#######
Run the command as a local user
Code:
./repack-MT65xx.pl -recovery recovery.img-kernel.img recovery.img-ramdisk recovery.img-new

[Image: xek7wi.jpg]

###########
CHECK SIZE
##########

You must check the resultant size of the new recovery image called recovery.img-new

It must not exceed the hex to decimal conversion from using dumchar_info

For example
adb shell cat /proc/dumchar_info

recovery 0x0000000000600000 0x0000000002380000 2 /dev/block/mmcblk0

Take first hex number and convert it to decimal gives me 6291456
This is the total byte size.

Compare it to your new recovery.

New recovery must not exceed it so abort if it does please.

EDITS
#####
Can also do boot or logo images but not tested so far
GizBeat likes this post
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Rainbow [ROM] MT6572 ALPS 706-3G - No Bloatware/Malware + CWM Recovery Psywhole 12 20,328 2020-07-16, 00:03
Last Post: OscarBastidas
  [Question] Lenovo s898t+ stock recovery Coroco 0 1,604 2018-12-26, 03:50
Last Post: Coroco
  Mediatek MT8176 brick , no recovery , no twrp,no recognise catalin 1 3,680 2018-09-30, 19:37
Last Post: Prk
  [Question] How can I install Custom Recovery to my MT6580 device? raindrop 1 3,041 2018-04-21, 17:43
Last Post: raindrop
  [Question] Someone can make Recovery for my Phone ? clayser 2 2,146 2018-03-01, 00:41
Last Post: Cleopatra

Forum Jump:


Users browsing this thread: 1 Guest(s)
[-]
Tech & Science
[Sci-Am] Europe’s Mars Rover Will Use New Nuclear Power Sour...
Last Post: Scientific American
Yesterday 14:27
» Replies: 0
» Views: 25
[Sci-Am] Black Hole’s Mysterious ‘Plunging Region’ Matches E...
Last Post: Scientific American
Yesterday 00:29
» Replies: 0
» Views: 41
[Sci-Am] What Is Wind Shear, and How Does It Shape Hurricane...
Last Post: Scientific American
2024-06-02 10:38
» Replies: 0
» Views: 26
[Sci-Am] The Artificial Intelligence Era Faces a Threat from...
Last Post: Scientific American
2024-06-01 21:18
» Replies: 0
» Views: 20
[Sci-Am] Innovative Thinking Could Make New Sickle Cell Trea...
Last Post: Scientific American
2024-06-01 07:55
» Replies: 0
» Views: 21
[Sci-Am] Could Putting Neosporin in Your Nose Fend Off COVID...
Last Post: Scientific American
2024-05-31 17:53
» Replies: 0
» Views: 32
[Sci-Am] Phoenix, America’s Hottest City, Is Having a Surge ...
Last Post: Scientific American
2024-05-31 04:25
» Replies: 0
» Views: 52
[Sci-Am] What Is Pasteurization, and How Does It Keep Milk S...
Last Post: Scientific American
2024-05-30 14:57
» Replies: 0
» Views: 71
[Sci-Am] Hurricanes Caused Lost Income among at Least Half o...
Last Post: Scientific American
2024-05-30 00:59
» Replies: 0
» Views: 64
[Sci-Am] This Year’s La Niña Could Worsen Atlantic Hurricane...
Last Post: Scientific American
2024-05-29 10:41
» Replies: 0
» Views: 57
[Sci-Am] How Can You ‘See’ a Black Hole?
Last Post: Scientific American
2024-05-28 06:03
» Replies: 0
» Views: 87
[Sci-Am] What’s Turning Cape Cod’s Water ‘Pea-Soup Green’?
Last Post: Scientific American
2024-05-27 16:37
» Replies: 0
» Views: 87
[Sci-Am] Egypt’s Famed Pyramids Overlooked a Long-Lost Branc...
Last Post: Scientific American
2024-05-27 02:00
» Replies: 0
» Views: 60
[Sci-Am] Device Decodes ‘Internal Speech’ in the Brain
Last Post: Scientific American
2024-05-26 12:05
» Replies: 0
» Views: 55
[Sci-Am] Do We Have Enough Bird Flu Vaccines for a Potential...
Last Post: Scientific American
2024-05-25 22:44
» Replies: 0
» Views: 37
[Sci-Am] A Cubic Millimeter of a Human Brain Has Been Mapped...
Last Post: Scientific American
2024-05-24 19:28
» Replies: 0
» Views: 39
[Sci-Am] Don Pettit, NASA’s Oldest Active Astronaut, Is Goin...
Last Post: Scientific American
2024-05-24 05:41
» Replies: 0
» Views: 54
[Sci-Am] How to Disprove a Conspiracy Theory in 7 Steps
Last Post: Scientific American
2024-05-23 16:00
» Replies: 0
» Views: 95
[Sci-Am] Superheavy Elements Are Breaking the Periodic Table
Last Post: Scientific American
2024-05-23 02:38
» Replies: 0
» Views: 79
[Sci-Am] Revolutionary Genetics Research Shows RNA May Rule ...
Last Post: Scientific American
2024-05-22 13:11
» Replies: 0
» Views: 66
[Sci-Am] Why Insects Are Lured to Lights in the Night
Last Post: Scientific American
2024-05-21 21:08
» Replies: 0
» Views: 85
[Sci-Am] Contributors to Scientific American’s June 2024 Iss...
Last Post: Scientific American
2024-05-21 07:44
» Replies: 0
» Views: 56
[Sci-Am] Humans Are Driving a New Kind of Evolution in Anima...
Last Post: Scientific American
2024-05-20 18:17
» Replies: 0
» Views: 68
[Sci-Am] Poem: ‘Chrysalis’
Last Post: Scientific American
2024-05-20 04:55
» Replies: 0
» Views: 81
[Sci-Am] Stolen Bacterial Genes Helped Whiteflies to Become ...
Last Post: Scientific American
2024-05-19 00:39
» Replies: 0
» Views: 64
[Sci-Am] Book Review: Rats, Gardens, and Stories from a "Pos...
Last Post: Scientific American
2024-05-18 11:02
» Replies: 0
» Views: 76
[Sci-Am] Record-Breaking Ocean Heat Wave Foreshadows a Dange...
Last Post: Scientific American
2024-05-17 07:00
» Replies: 0
» Views: 76
[Harvard] Early warning sign of extinction?
Last Post: Harvard
2024-05-17 07:00
» Replies: 0
» Views: 95
[Sci-Am] AI Therapy Bots Have Risks and Benefits and More Ri...
Last Post: Scientific American
2024-05-16 17:39
» Replies: 0
» Views: 73
[Sci-Am] How Do People Get Parasitic Brain Worms like the On...
Last Post: Scientific American
2024-05-16 04:12
» Replies: 0
» Views: 65
[Harvard] So much for summers of love
Last Post: Harvard
2024-05-16 04:12
» Replies: 0
» Views: 65
[Sci-Am] How Bird Flu Caught the Dairy Industry Off Guard
Last Post: Scientific American
2024-05-15 14:42
» Replies: 0
» Views: 60
[Harvard] Are you a human? Select all that apply.
Last Post: Harvard
2024-05-15 14:42
» Replies: 0
» Views: 61
[Sci-Am] XPRIZE’s $100-Million Carbon-Removal Contest Select...
Last Post: Scientific American
2024-05-15 01:18
» Replies: 0
» Views: 54
[Sci-Am] Where Does the Solar System End?
Last Post: Scientific American
2024-05-14 11:40
» Replies: 0
» Views: 67
[Sci-Am] The Science of ‘3 Body Problem’: What’s Fact and Wh...
Last Post: Scientific American
2024-05-13 21:59
» Replies: 0
» Views: 125
[Sci-Am] The Famine Developing in Gaza Follows a Clear Patte...
Last Post: Scientific American
2024-05-13 08:23
» Replies: 0
» Views: 62