How to port boot.img For SPD SC9832a Device(MMX Q402+) - Miscellaneous Android Development

IN THIS GUIDE WE WILL LEARN HOW TO PORT BOOT IMG FOR SC9832A DEVICES
CAUTIONS-
Read instructions carefully before proceeding.
I am not responsible for any damage to your device,
Use at your own Risk
FOR OTHERS GUIDES LIKE
Unlocking Bootloader [url]https://forum.xda-developers.com/android/general/bootloader-unlock-root-twrp-mmx-q402-t3918122[/URL]
ALREADY PATCHED BOOT FOR MMX Q402+
Patched Boot.img [url]https://mega.nz/#!PoYGGSAL!-V-QN6P7WptGPtZT3VTBXgxN1H2U2C9tmprQ-66gs-M[/URL]
AND CUSTOM RECOVERY
Credits
topjohanwu For magisk
osm0sis For his AIK tool
shankar Its me
sorry if, i forget someone
STARTING PORT
Porting Boot Image
Download Android Image Kitchen for Windows
For Other visit here [url]https://forum.xda-developers.com/showthread.php?t=2073775[/URL]
Extract it in Desktop and Now put your boot.img inside that folder and run unpacking.exe (simply double click it)
This will extract your boot image
for Example i use linux version of AIK in "LINUX MINT" but process is same as windows .
Now run Unpackimg.sh
you can see in terminal it extract boot.img
there is two folder inside AIK ramdisk and split_img
Just delete ramdisk folder and go inside split_img folder
and copy boot.img.dtb and boot.img-zImage files to AIK main directoey or somewhere else
Now replace your stock boot.img with Port ROM boot.img in AIK tool folder and again run unpackimg.sh. this will create same two folders ramdisk and split_img . in AIK directory
Now replace those two files you copied before from stock boot.img split folder "boot.img.dtb and boot.img-zImage" to new port split_image folder.
Run repacking
This is your new Boot image , rename it to boot.img
Also try replacing lib folder from stock to port ramdisk
Use Winmerge or Meld for comparing .rc files from stock to port ramdisk and add those missing line in port .rc files. like comparing fstab etc

Reserved for more porting tutorials

My first Ported ROM for MICROMAX Q402+
This is port ROM of Ever cross M50 Star
Screen shots
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
camera

Reserved

Fire _Phoenix said:
My first Ported ROM for MICROMAX Q402+
This is port ROM of Ever cross M50 Star
Screen shots
camera
Click to expand...
Click to collapse
Nice sir thanks
I support you

How to down load InFocus a2
Given link is not working
Pleas provide other link

Fire _Phoenix said:
Reserved
Click to expand...
Click to collapse
Pleas provide InFocus a2 rom's link given link is not working 404 error occures

Priyanshubiswas said:
How to down load InFocus a2
Given link is not working
Pleas provide other link
Click to expand...
Click to collapse
i will upload rom soon

Nice

Related

[TOOL] Droid-IMG

Droid-IMG v1.0
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I'm new to the Android platform, only getting an Android Phone less than a week ago. I am however a developer and from reading up on Android and ROM's I noticed that there was little to nothing on the .IMG format, especially tools for windows.
With that in mind I started to develop a command line based tool to extract and compress .IMG files. It does rely on other tools to do this (hence the Tools folder included). My utility searches for the GZip Signature in the .IMG file and dumps the data. It then extracts it into a folder and from here you can modify the files and then re-compress them back into an .IMG file using my tool.
What I have found is some .IMG files that contain links/shortcuts will become corrupt upon extraction since they are only supported by the linux operating system.
Anyway, my program should be self explanatory when you run it. The screenshot above also shows the commands and parameters that should be used.
NOTE : [Base IMG] is your original unmodified .IMG File and [New IMG] is the file name of the .IMG file that will be created. Also, ignore the function not implemented errors.
Reserved.
P.S : Guess nobody knows what .IMG files are then...
Nice man! Thank you.
TheUnkn0wn said:
Droid-IMG v1.0
I'm new to the Android platform, only getting an Android Phone less than a week ago. I am however a developer and from reading up on Android and ROM's I noticed that there was little to nothing on the .IMG format, especially tools for windows.
With that in mind I started to develop a command line based tool to extract and compress .IMG files. It does rely on other tools to do this (hence the Tools folder included). My utility searches for the GZip Signature in the .IMG file and dumps the data. It then extracts it into a folder and from here you can modify the files and then re-compress them back into an .IMG file using my tool.
What I have found is some .IMG files that contain links/shortcuts will become corrupt upon extraction since they are only supported by the linux operating system.
Anyway, my program should be self explanatory when you run it. The screenshot above also shows the commands and parameters that should be used.
NOTE : [Base IMG] is your original unmodified .IMG File and [New IMG] is the file name of the .IMG file that will be created. Also, ignore the function not implemented errors.
Click to expand...
Click to collapse
These are some useful little tools, Considering lack of them for Windows users. Maybe nice one day to Polish it up with a nice GUI to make it easy for less experienced people.
But Good job I'll be using these.

[Tutorial] How to change kernel logo (1st boot srceen) [COMPLETED]

We have 3 major works here... So I gonna to make it seperated
-1st post is HOW TO EXTRACT kernel.img (boot.img)
-2nd post is HOW TO CONVERT PICTURE FILE to BOOT.RLE
-3rd post is HOW TO REPACK THE KERNEL PAKAGE into boot.img
Requiredment
-Window machine
-installed cygwin
-the full boot.img/kernel (some kernel won't work because there is no full pakage/ i mean we can't)
-bootimg.zip (tool for UNPACK and REPACK kernel)
-boot_screen_logo_creation_package.rar
Thank and Credit
i- Credit to DooMLoRD Recognized Developer over most of XPERIA devices for his own tool and tutor that I learned before
ii- Credit to jimbo77 Senior Member for his tutorial that I used and learned and tool for unpack and repack
ii- Don't forget to give them a thanks meter
=============================================================================
Here we go
1-This section I will show u how to unpack and repack the boot.img
just see from original thread by jimbo77 from here and download the UNPACK and REPACK tool by him HERE
this is a fast guide from me:-
1-extract the bootimg-tools.zip into new folder (name it 'boot' folder)
2-move it into cygwin directory (cygwin/boot)
3- move your fav kernel into same directory
4-run cygwin.bat
cd /boot
Click to expand...
Click to collapse
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
5-Now, unpack your boot.img by running the following command:
./extractboot boot.img
Click to expand...
Click to collapse
If your output looks like this, then the extraction has worked correctly! Note that the Command Line string has also been read from the source file, this will be used later when you go to re-pack your file.
Your script folder should now look like this:
boot.img-kernel is the compiled kernel blob that was inside the source boot.img, if you want to replace the kernel with another compiled kernel image, you can replace this file with another one (but leave the file name the same)
boot.img-ramdisk.gz is the gzipped ramdisk image which has been split from the boot.img, you should leave this file alone.
The “out” folder contains the EXTRACTED ramdisk, and this is where you should make your changes to the ramdisk.
Important Note!
Remember, when editing files in the ramdisk through Windows, such as init.rc, Windows notepad will not format the files correctly, making them almost impossible to read, wheras Wordpad will LOOK like it is formatting the files correctly, if you save one of these files from the Wordpad application it will BREAK the file and it will no longer be able to be read correctly by Android. To edit these files you MUST use an editor such as Notepad++ which you can download for free.
AGAIN...
Special thanks/credit to jimbo77 for his excellent guide
So.. NEXT step to change a kernel logo is here
Requiredment
1-a picture what are u like to look into the 1st boot screen (kernel logo) (make sure it size/resolution same your device resolution)
2-boot_screen_logo_creation_package.rar
3-some infos and knowledges here
4-window machine like i explained on 1st post
My quick guide
-extract the tool.rar
-move extracted files into new folder (name it 'rle' folder without quote)
-move into cygwin folder (to make it easy to follow my simple guide)
-copy your own logo.png (a picture u want to use on a kernel) into same rle folder
(for 4 steps above it shold look like tis)
-now launch cygwin.bat
cd /rle
Click to expand...
Click to collapse
./convert_image_to_rle.bat logo.png
Click to expand...
Click to collapse
Ah...my mistake..don't forget to move/copy/replace new logo.rle into
C/cygwin/boot/out/ramdisk/here
if you done good...follow next step on next post (to repack your moded kernel)
Last step before you flash a new look kernel (boot.img) is
Repack your moded kernel
./packboot
Click to expand...
Click to collapse
One thing to note that people may mention in other guides, is that when packing boot.img files, you will usually have to declare a base address, and a command line to the packaging tool. This set of scripts reads the existing command line and base address from the boot.img file you originally provided at the time of repacking, so always make sure you leave your original source boot.img file in the folder and do not re-name it after extraction, your newly created boot.img file will be named boot_new.img and will NOT overwrite the original.
Done! If your screen looks like the image above, then you should now have a freshly created boot_new.img file, ready to be flashed to Android for testing, you can now go ahead and flash it through FASTBOOT one thing I'll recommend though is to first do
I need this for extra (extra thanks..)
(may U?)

[GUIDE] Deodexing your custom rom the easy way

Hello Guys,
@android.zealot.fervor wanted me to post this guide so why not
There is already a guide by Panda00 but that one is a bit outdated...
Requirments:
- A Windows PC
- Zip opener (7zip,winrar,winzip)
- Dsixda's kitchen and cygwin
- sgs2ext4.jar
- linux reader
- A Brain and hands
So let's begin:
Step 1)
- Download the stock firmware from sammobile samsung-updates search for yourself and open the file with 7zip inside the file you will find a md5 file open that with 7zip it should give you a error ignore that! Take out the system.img and open up sgs2ext4.jar and drop the system.img into there now after some time the system.img.ext4 will be placed onto your desktop!
Step 2)
- Open up Linux Reader and mount the system.img.ext4 drive open it up and take out only the app and framework folder save them to your desktop!
Step 3)
- Now make a WORKING_DEODEX folder name it exact as i say you and make inside that folder a system folder! drop the app&framework folder in the system folder and copy WORKING_DEODEX to C:/kitchen or where ever you have kitchen on your PC!
Step 4)
- Open up kitchen with cygwin by typing in the following:
cd C:/kitchen and hit Enter! (I take the C drive as example but your drive letter could be diffrent!!!)
sh menu Hit Enter again!
Now it should load up kitchen if not do not ask me!
go in kitchen to advanced options by typing in 0 and after that go to 11 now select the correct api version it should be 17!
Now type in b for deodexing both folders! let kitchen do his work here this can take up to 20min!!!
Step 5)
When kitchen is done go back to your C:/kitchen drive and take out the system folder of the WORKING_DEODEX and drop it onto your desktop!
What you need to do now is download the zip file from the attachments and drop the system folder in it!
Step 6)
Copy the zip to your device and flash enjoy your deodexed phone!
Credits:
Panda00 for his zip file
CoolDevelopment for his CWM
Some things you need to know:
1) secemail_j will not deodex!!!
2) you must be on the firmware you are deodexing!
3) Install custom recovery for flashing
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
android.zealot.fervor said:
Click to expand...
Click to collapse
Thanks man if you want more guide's etc just ask
safariking said:
Thanks man if you want more guide's etc just ask
Click to expand...
Click to collapse
Thanks a lot. That's so generous of you. Well i just want to ask right now....in your guide i couldn't found the ZipAlligning step.Is zipalligning necessay after deodexing. Thanks
android.zealot.fervor said:
Thanks a lot. That's so generous of you. Well i just want to ask right now....in your guide i couldn't found the ZipAlligning step.Is zipalligning necessay after deodexing. Thanks
Click to expand...
Click to collapse
not needed to zipalign btw: new link for deodex xxbml1
safariking said:
not needed to zipalign btw: new link for deodex xxbml1
Click to expand...
Click to collapse
Thanks.....well i already fixed the update-script and it worked.
Thanks once again for your efforts.

[Guide] Unpack-Repack Boot, Recovery .img without Kitchen

I have searched a lot, but couldn't find any post like this. So I thought I would post it here. This is NOT purely my work, and I do not take credit for it as such .
NO NEED ANDROID KITCHEN FOR UNPACK REPACK IMG's
This is the easiest way to unpack .img files with extracted ramdisk. So, Lets Start
At first Download the tool from HERE
For MTK (chineese) phones - use MTK_unpack.bat (MTK_pack.bat)
For android standard phones - use STD_unpack.bat (STD_pack.bat)
Here I am showing you about MTK (chineese) phones .img unpack-repack....
Instructions
1. Extract the file in any where you want
2. You will see this files
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
3. Then Copy your .img file in this folder like this
Remember the file should be named as boot.img or recovery.img
4. Just Drag and Drop .img files into unpack.bat for unpacking. Then you will see this.
5. A folder will be created there. I unpacked boot.img so here is the all file you want
6. To repack, again just drag and drop the folder into pack.bat. you will see this
7. New .img file created. Rename it as you want. So All done. Enjoy.
[ NOTE: It's Only for Windows]
Thanks to
Michfood for making this tool
DON'T FORGET TO HIT THANKS IF I HELPED YOU
NO NEED TO DONATE ME, JUST SAY THANKS TO ENCOURAGE ME
Thanks for this awesome guide
Thanks bro for this awesome guide and Tool
I will so much try...... but I don't success bcoz ramdisk folder empty.....
I will so much try...... but I don't success bcoz ramdisk folder empty.....
try with patience
A.S.Noman Khan said:
I will so much try...... but I don't success bcoz ramdisk folder empty.....
Click to expand...
Click to collapse
do it carefully bro.. this tool extract ramdisk nicely bro
problem
Bro, when I am going to repack my boot.img, its not repacking correctly. Help me out. Please.
golam1962 said:
Bro, when I am going to repack my boot.img, its not repacking correctly. Help me out. Please.
Click to expand...
Click to collapse
did u deleted something? Make sure that your boot.img has all the files what needed.
check
I will just check. By the way, thanks again for this.
golam1962 said:
I will just check. By the way, thanks again for this.
Click to expand...
Click to collapse
Ok. I will wait. And don't thank me. Thank the main dev MICHFOOD who created this tool
Succeeded
aalakib07 said:
Ok. I will wait. And don't thank me. Thank the main dev MICHFOOD who created this tool
Click to expand...
Click to collapse
it worked bro thanks
My device is LG GX F310, original boot.img 24MB, https://docs.google.com/file/d/0Bx0NlR3rjLYeUS14YmxESGc3bWc/edit?usp=docslist_api after unpacked and repacked new boot.img only has 11MB. And can't boot into system. Could you help me?
Work with MT6752?
this tool isn't working under Windows 10, that unpack all files except "rmdisk" folder.
the rmdisk is empty...
I tried to use this tool to unpack the lienageOS recovery ROM from https://wiki.lineageos.org/devices/s5neolte/install
When I change the name and drag it to unpack it, it doesn't work and I get these error messages.
'chcp' is not recognized as an internal or external command,operable program o - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
pastebin.com
Am I doing something obvious wrong?
I tried it for my stock boot.img(Mi 11 lite 5g NE-Snapdragon 778G) and the unpacked items didn't satisfy me. Looks like it isn't for snapdragon chipset. BTW I'm looking for similar tool to extract kernel from boot.img of this device.Thnaks though for uploading the tool.

[MOD/THEME]Off Screen Charging MOD

Before We Start
Disclamer:​
By doing his to your phone you take full responsibility to whatever happens on your device. The developer will NOT be held responsible to whatever happens on your device. Of course, this has been tested but whatever happens on your device will not be held against the developer.
Now to the good stuff
Today I Will Show You How To Modify The Off Screen Charging Images To Your Liking
Things you will need :​
[*]M8 Duh
[*]Computer With Fastboot
[*]A Photo Editor
[*]A Tool To Unpack Recovery.img's
[*]About 10 to 30min of your time
Common Sense
So Lets Get Started​First Decompile Your IMG I will Be Using This To Decompile My IMG
if your using the same tool as me then drag and drop the img on unpack.bat as seen in the picture
next navigate​ramdisk
res
offmode_charging_images
this is where we will be doing our modifying :laugh:
Now that you have your img decompiled and your in the offmode_charging_images folder
open up your fave image editor I will be using gimp(because its free and im broke lol)
key things here I kept my images at stock depth 600x362 I did not go any higher as I would think it would mess up you can try your self if you can go higher tell ME!!!
Now if you made pngs the format go's like this 0,1,2,3,4 the rest 5,6,7,8 and 9 just loop the first ones so just copy them and rename if you did not make new pngs just overwrite them
once your done messing with the pngs repack the imgs with the unpackimg.bat
now take image-new.img and put it in your fastboot folder and flash it with fastboot
Code:
flash recovery image-new.img
*NOTE* check to see if you can get in to recovery after flashing your new one
if not you messed up some where​
now power down your device and plug it in if you see your new modified images congrats
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Here Is One I Made
​Images
Download
Vertical Battery TWRP Version 2.7.1.0
*NOTE* This was A Recovery Built From @Captain_Throwback Here As Said In the FAQ It Should Work For Most M8
Credits
 @osm0sis for his awesome image unpacker
 @Captain_Throwback For The Recovery :good::good::good:​
I'll take this one
Hello sir, can u make such custom mod for htc desire eye please
armaankhan354 said:
Hello sir, can u make such custom mod for htc desire eye please
Click to expand...
Click to collapse
the same method could be applied to any device with the images being in the recovery
so I believe you can do it your self
Ok sir, thank you for such mod....really appreciate your work
I was wondering if this was possible and low and behold here it is! kind regards sir flashalot

Categories

Resources