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

[-]
Latest Threads
K107-MB-V4.2
Last Post: Alby
2024-04-24 00:37
» Replies: 0
» Views: 149
[ROM] NEED ROM ZH960-MB-V5.0 MTK 6592
Last Post: sendycat2
2024-04-21 08:57
» Replies: 0
» Views: 97
ZH960 Tablet Bricked
Last Post: luis mar que
2024-03-20 19:52
» Replies: 14
» Views: 9756
Thanks, I've been looking for this for a...
Last Post: StevenRip
2024-02-25 05:00
» Replies: 0
» Views: 83
[SOLVED] Need ROM for ZH960-MB-V4.1
Last Post: ery1988
2024-02-21 08:59
» Replies: 0
» Views: 166
NEED ROM ZH960-MB-V4.1
Last Post: ery1988
2024-02-21 08:53
» Replies: 18
» Views: 13632
Budget phone choice help needed
Last Post: sabir7272
2024-02-10 06:52
» Replies: 4
» Views: 4244
ZH960-MB-V3.1 SOLVE
Last Post: Pranav1
2023-12-20 20:22
» Replies: 74
» Views: 33676
Need ROM for SONIM XP7S Android 5.1.1
Last Post: Alpa
2023-11-29 22:17
» Replies: 0
» Views: 105
Need rom for X101 Mt6592
Last Post: carencell
2023-11-24 21:30
» Replies: 3
» Views: 2090
Gizbeat 101: Get your MTK6589 MTK6577 MT...
Last Post: Alexia78
2023-11-13 11:28
» Replies: 8
» Views: 22290
Need rom for a tablet with board id "K10...
Last Post: oliver2
2023-10-24 20:23
» Replies: 6
» Views: 5322
How to Connect open public wifi
Last Post: oliverben45
2023-10-24 16:03
» Replies: 11
» Views: 8846
I NEED FILE FOR ITEL MOBILE PHONE AND TO...
Last Post: Meghnad45
2023-10-22 02:38
» Replies: 1
» Views: 1397
NEED Help Bricked my phone.
Last Post: Meghnad45
2023-10-22 02:36
» Replies: 4
» Views: 4816
Introduction
Last Post: ezrahidaya
2023-10-14 14:38
» Replies: 3
» Views: 1318
Needs help to root a china tablet brand ...
Last Post: ezrahidaya
2023-10-14 14:37
» Replies: 1
» Views: 194
Any tips to stay awake?
Last Post: ezrahidaya
2023-10-14 14:35
» Replies: 6
» Views: 5380
Need ROM for china TAb MT6797
Last Post: ezrahidaya
2023-10-14 14:34
» Replies: 1
» Views: 336
need this stock firmware for my tablet M...
Last Post: ramzii888
2023-10-14 02:20
» Replies: 4
» Views: 4509
Encryption Unsuccessful - Reset Android
Last Post: Aakriti
2023-10-13 16:51
» Replies: 3
» Views: 12396
betools
Last Post: egdeim
2023-09-21 12:41
» Replies: 4
» Views: 5031
[Movie Suggestion] Automata with Antonio...
Last Post: GottaGetX
2023-09-07 09:19
» Replies: 3
» Views: 4112





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,280 2020-07-16, 00:03
Last Post: OscarBastidas
  [Question] Lenovo s898t+ stock recovery Coroco 0 1,603 2018-12-26, 03:50
Last Post: Coroco
  Mediatek MT8176 brick , no recovery , no twrp,no recognise catalin 1 3,678 2018-09-30, 19:37
Last Post: Prk
  [Question] How can I install Custom Recovery to my MT6580 device? raindrop 1 3,007 2018-04-21, 17:43
Last Post: raindrop
  [Question] Someone can make Recovery for my Phone ? clayser 2 2,141 2018-03-01, 00:41
Last Post: Cleopatra

Forum Jump:


Users browsing this thread: 1 Guest(s)
[-]
Tech & Science
[Sci-Am] How Ugandan Tobacco Farmers Inadvertently Spread Ba...
Last Post: Scientific American
Today 09:12
» Replies: 0
» Views: 3
[Sci-Am] Will the Amazon Rain Forest Help Save the Planet?
Last Post: Scientific American
Yesterday 19:43
» Replies: 0
» Views: 6
[Sci-Am] The U.S. Spends a Fortune on Beach Sand That Storms...
Last Post: Scientific American
Yesterday 06:15
» Replies: 0
» Views: 8
[Sci-Am] Could JWST Solve One of Cosmology's Greatest Myster...
Last Post: Scientific American
2024-04-30 03:14
» Replies: 0
» Views: 25
[Sci-Am] How to See the Lunar Far Side Right Here on Earth
Last Post: Scientific American
2024-04-29 13:40
» Replies: 0
» Views: 30
[Sci-Am] How Big a Threat Is Bird Flu?
Last Post: Scientific American
2024-04-29 00:05
» Replies: 0
» Views: 29
[Sci-Am] The Amazon's Record-Breaking Drought Is about More ...
Last Post: Tauma
2024-04-28 22:35
» Replies: 1
» Views: 36
[Sci-Am] FDA Recalls Heart Pumps Linked to Deaths and Injuri...
Last Post: Scientific American
2024-04-28 09:53
» Replies: 0
» Views: 14
[Sci-Am] Deadly African Heat Wave Would Not Have Been Possib...
Last Post: Scientific American
2024-04-27 20:10
» Replies: 0
» Views: 12
[Harvard] Getting ahead of dyslexia
Last Post: Harvard
2024-04-27 06:36
» Replies: 0
» Views: 16
[Sci-Am] Hollywood Should Give Brain Science a Star Turn
Last Post: Scientific American
2024-04-26 17:14
» Replies: 0
» Views: 33
[Sci-Am] Milky Way's 'Sleeping Giant' Black Hole Lurks Shock...
Last Post: Scientific American
2024-04-26 03:48
» Replies: 0
» Views: 48
[Harvard] Why AI fairness conversations must include disable...
Last Post: Harvard
2024-04-25 13:58
» Replies: 0
» Views: 54
[Sci-Am] How a New AI Model Helps Volcanic History Rise from...
Last Post: Scientific American
2024-04-24 23:17
» Replies: 0
» Views: 50
[Sci-Am] Everyone Will Have Fewer Relatives in the Future
Last Post: Scientific American
2024-04-24 09:25
» Replies: 0
» Views: 39
[Sci-Am] The Dark Side of Nostalgia for Wild, Untouched Plac...
Last Post: Scientific American
2024-04-23 19:59
» Replies: 0
» Views: 31
[Harvard] How did you get that frog to float?
Last Post: Harvard
2024-04-23 19:59
» Replies: 0
» Views: 48
[Sci-Am] In Matters of Scientific Debate, Follow the Houdini...
Last Post: Scientific American
2024-04-23 06:34
» Replies: 0
» Views: 30
[Harvard] Lifting a few with my chatbot
Last Post: Harvard
2024-04-23 06:34
» Replies: 0
» Views: 36
[Sci-Am] This Tiny Fish Makes an Ear-Blasting Screech for Lo...
Last Post: Scientific American
2024-04-22 17:01
» Replies: 0
» Views: 34
[Sci-Am] How Plant Intelligence Can Soothe Climate Anxiety
Last Post: Scientific American
2024-04-22 02:57
» Replies: 0
» Views: 48
[Sci-Am] Contributors to Scientific American’s May 2024 Issu...
Last Post: Scientific American
2024-04-21 13:36
» Replies: 0
» Views: 37
[Sci-Am] A ‘Computer’ Built from DNA Can Find Patterns in Ph...
Last Post: Scientific American
2024-04-20 23:27
» Replies: 0
» Views: 66
[Sci-Am] Unraveling the Secrets of This Weird Beetle’s 48-Ho...
Last Post: Scientific American
2024-04-20 09:17
» Replies: 0
» Views: 49
[Sci-Am] We Are Living in the Pyrocene, the Age of Fire that...
Last Post: Scientific American
2024-04-18 16:45
» Replies: 0
» Views: 97
[Harvard] Hate mosquitoes? Who doesn’t? But maybe we shouldn...
Last Post: Harvard
2024-04-18 03:05
» Replies: 0
» Views: 94
[Sci-Am] Why Some People Always Get Lost—And Others Never Do
Last Post: Scientific American
2024-04-17 13:33
» Replies: 0
» Views: 58
[Sci-Am] U.S. Carbon Removal Needs Have a $100-Billion Price...
Last Post: Scientific American
2024-04-16 23:48
» Replies: 0
» Views: 59
[Sci-Am] New Books Help Parents Explain Climate Disasters to...
Last Post: Scientific American
2024-04-16 10:13
» Replies: 0
» Views: 72
[Sci-Am] Renewable Energy Shatters Records in the U.S.
Last Post: Scientific American
2024-04-15 20:19
» Replies: 0
» Views: 82
[Sci-Am] The Dunning-Kruger Effect Shows that People Don’t K...
Last Post: Scientific American
2024-04-15 06:47
» Replies: 0
» Views: 79
[Sci-Am] AI Chatbots Will Never Stop Hallucinating
Last Post: Scientific American
2024-04-14 17:12
» Replies: 0
» Views: 71
[Sci-Am] How Do Periodical Cicadas Know When to Emerge?
Last Post: Scientific American
2024-04-14 03:11
» Replies: 0
» Views: 58
[Sci-Am] It’s Never Too Late to Take Climate Action
Last Post: Scientific American
2024-04-13 13:43
» Replies: 0
» Views: 68
[Sci-Am] To Ancient Maya, Solar Eclipses Signified Clashing ...
Last Post: Scientific American
2024-04-12 23:09
» Replies: 0
» Views: 69
[Sci-Am] What We Know about Taiwan’s Magnitude 7.4 Earthquak...
Last Post: Scientific American
2024-04-12 09:25
» Replies: 0
» Views: 96
[Sci-Am] Plastic Pollution Is Drowning Earth. A Global Treat...
Last Post: Scientific American
2024-04-11 19:50
» Replies: 0
» Views: 90