What are data.img system.img boot.img files - Android Q&A, Help & Troubleshooting

Someone please tell me some basic of data.img system.img boot.img files
their use
and how to edit them ?
Or post some links explaining these.

ip2op01 said:
Someone please tell me some basic of data.img system.img boot.img files
their use
and how to edit them ?
Or post some links explaining these.
Click to expand...
Click to collapse
http://stackoverflow.com/questions/3879717/what-is-purpose-of-using-system-img-in-android
http://en.wikipedia.org/wiki/Disk_image
http://en.wikipedia.org/wiki/Boot_image
these may help, or may not. But hopefully so, if not try looking around stackoverflow a bit more.

ip2op01 said:
Someone please tell me some basic of data.img system.img boot.img files
their use
and how to edit them ?
Or post some links explaining these.
Click to expand...
Click to collapse
1.
boot.img : be similar with bootstrap in the PC's BIOS,aim to boot the android OS;
data.img : this file includes some user data and system data;
system.img : this file includes some packages and some lib file.
ramdisk.img : emulator's FS(file system)
2.
when the android OS start, emulator loads those image file to ramdisk FS, create "system" file directory and "data" file directory.so you should think that those are android OS component.
3.
(1)unpack:
a. tool-------"unyaffs" download link : http://code.google.com/p/unyaffs/downloads/list
b. command------./unyaffs system.img
(2)pack:
a. tool-------"mkyaffs2image" location:android/out/host/linux-x86/bin or search internet
b. make this tool
c. command------ ./mkyaffs2image <directory> <out_file>
I know this, try myself

Thanks guys

ip2op01 said:
Thanks guys
Click to expand...
Click to collapse
My English is poor,it's my pleasure,you can understand it.

enyblock said:
1.
boot.img : be similar with bootstrap in the PC's BIOS,aim to boot the android OS;
data.img : this file includes some user data and system data;
system.img : this file includes some packages and some lib file.
ramdisk.img : emulator's FS(file system)
2.
when the android OS start, emulator loads those image file to ramdisk FS, create "system" file directory and "data" file directory.so you should think that those are android OS component.
3.
(1)unpack:
a. tool-------"unyaffs" download link : http://code.google.com/p/unyaffs/downloads/list
b. command------./unyaffs system.img
(2)pack:
a. tool-------"mkyaffs2image" location:android/out/host/linux-x86/bin or search internet
b. make this tool
c. command------ ./mkyaffs2image <directory> <out_file>
I know this, try myself
Click to expand...
Click to collapse
So, if I have a ROM with the .img file extension I should flash it as "System" (In TWRP)???

Related

[TUTO] As unpacking a KDZ and a DZ [LG L7/5/3]

Tutorial in Spanish [TUTO] Como desempaquetar un KDZ y un DZ [LG E610 L5]
Click to expand...
Click to collapse
In LG phones L7/5/3 to opted for DZ format, if we unpack one ROM KDZ we find a CAB, and if you unzipped the CAB seems the DZ.
DZ files are tablets that can be flashed directly, and as always, you can unpack to extract the ROM in BIN format.
NECESSARY TOOLS
Unpack KDZ = LGExtract.exe by navossoc.
Unpack CAB = any decompressor, on Windows, eg. WinRAR.
Unpack DZ = DZDecrypt.exe DZ_Creator.exe by copsfrance
And of course a ROM format KDZ or DZ.
PROCEDURE
The first thing to do is to unpack the KDZ, so copy the file LGExtract.exe on the route where we have the ROM format KDZ and from the console (which previously must be located on the route of the ROM) type:
WINDOWS
Code:
LGExtract.exe -kdz V10X_xx.kdz
LINUX
Code:
wine LGExtract.exe -kdz V10X_xx.kdz
Click to expand...
Click to collapse
and you press Enter
NOTE
Where it saysV10X_xx.kdz must be the name of the ROM, for exampleV10A_00.kdz
When the process is complete will see a file with the same name as the ROM, but with the extension .cab, for example, V10A_00.cab
Unzip it and will the DZ and a DLL file
To unpack the DZ type this:
WINDOWS
Code:
DZDecrypt.exe LGE610AT-xx-VxxX-XX-XXX-xx-xx-20xx+x.dz
LINUX
Code:
wine DZDecrypt.exe LGE610AT-xx-VxxX-XX-XXX-xx-xx-20xx+x.dz
Click to expand...
Click to collapse
And you press Enter
NOTE
Where it saysLGE610AT-xx-VxxX-XX-XXX-xx-xx-20xx+x.dz should be the name of the DZ, for example:LGE610AT-00-V10b-EUR-XXX-MAY-23-2012+0.dz
We already have the ROM in BIN format, now you have to concatenate the files SYSTEM, so we use the console and...:
WINODWS
Code:
copy /b "system.img.ext4_
[*]" "system.img"
LINUX
Code:
cat system.img.ext4_* > system.img.ext4
Click to expand...
Click to collapse
And you press Enter and you can delete the files system.img.ext4_0, system.img.ext4_1,..., system.img.ext4_6 (version DZDecrypt.exe v1.0c+ does this job automatically)
Now we'll have a list like this:
Code:
amss.bin
boot.img
boot_logo.bin
emmc_appsboot.bin
oemsbl.bin
partition.bin
persist.img.ext4
qcsbl.mbn
qcsblhd_cfgdata.mbn
recovery.img
system.img.ext4
Click to expand...
Click to collapse
Files .ext4 are you can rename to .img and mount as one drive in Linux or WIndows with Winimage manipulate its contents
LINUX:
Code:
mkdir system
sudo mount system.img.ext4 system -oloop
To disassemble
Code:
sudo umount system
Click to expand...
Click to collapse
With this I believe that we have done, if something is missing or you have any questions to ask without fear.
very useful for stock rom modding... I was looking for this a month ago, so thanks man!
I cant open with WinImage my system.img extract from L3 e400 V10O_00.kdz
Ygreck said:
I cant open with WinImage my system.img extract from L3 e400 V10O_00.kdz
Click to expand...
Click to collapse
for .img (from .kdz) u have to use ext2explorer
google it or try this link
http://d-h.st/nRw
i've tried to add it as attachment but failed for unknown reasons.
All this procedure will not work for E435.
i've got 1gb .dz file but unable to extract it.
any ideas?
Sudeep Duhoon said:
... All this procedure will not work for E435.
i've got 1gb .dz file but unable to extract it.
any ideas?
Click to expand...
Click to collapse
Try this http://forum.xda-developers.com/showpost.php?p=38748031&postcount=43
Homero2 said:
Try this http://forum.xda-developers.com/showpost.php?p=38748031&postcount=43
Click to expand...
Click to collapse
i tried this, no change
Homero2 said:
In LG phones L7/5/3 to opted for DZ format, if we desempaquetamos one ROM KDZ we find a CAB, and if you unzipped the CAB seems the DZ.
DZ files are tablets that can be flashed directly, and as always, you can unpack to extract the ROM in BIN format.
NECESARY TOOLS
Unpack KDZ = LGExtract.exe by navossoc.
Unpack CAB = any decompressor, on Windows, eg. WinRAR.
Unpack DZ = DZDecrypt.exe DZ_Creator.exe by copsfrance
And of course a ROM format KDZ or DZ.
PROCEDURE
The first thing to do is to unpack the KDZ, so copy the file LGExtract.exe on the route where we have the ROM format KDZ and from the console (which previously must be located on the route of the ROM) type:
and you press Enter
NOTE
Where it saysV10X_xx.kdz must be the name of the ROM, for exampleV10A_00.kdz
When the process is complete will see a file with the same name as the ROM, but with the extension .cab, for example, V10A_00.cab
Unzip it and will the DZ and a DLL file
To unpack the DZ type this:
And you press Enter
NOTE
Where it saysLGE610AT-xx-VxxX-XX-XXX-xx-xx-20xx+x.dz should be the name of the DZ, for example:LGE610AT-00-V10b-EUR-XXX-MAY-23-2012+0.dz
We already have the ROM in BIN format, now you have to concatenate the files SYSTEM, so we use the console and...:
And you press Enter and you can delete the files system.img.ext4_0, system.img.ext4_1,..., system.img.ext4_6 (version DZDecrypt.exe v1.0c+ does this job automatically)
Now we'll have a list like this:
Files .ext4 are you can rename to .img and mount as one drive in Linux or WIndows with Winimage manipulate its contents
With this I believe that we have done, if something is missing or you have any questions to ask without fear.
Click to expand...
Click to collapse
yes
slarkpro said:
hi pro i have added root file into dz file now i join dz file and dll file via uptest marwin but have an error i don't undestand pls help me!!
Click to expand...
Click to collapse
Bạn bên tinhte.vn à:thumbup:
Gửi từ LG-Optimus L7 của tôi bằng cách sử dụng Tapatalk2
is there a kdz extractor for linux???
ensarman said:
is there a kdz extractor for linux???
Click to expand...
Click to collapse
afaik no
but as the thread explain you should use wine
I used it but my cellphone is a LG L3 II
and I cannot extract the DZ file. I cannot find how to extract my kdz : (
But the kdz updater software can do it but I don't know where that software extract the kdz
Homero2 said:
In LG phones L7/5/3 to opted for DZ format, if we unpack one ROM KDZ we find a CAB, and if you unzipped the CAB seems the DZ.
DZ files are tablets that can be flashed directly, and as always, you can unpack to extract the ROM in BIN format.
NECESSARY TOOLS
Unpack KDZ = LGExtract.exe by navossoc.
Unpack CAB = any decompressor, on Windows, eg. WinRAR.
Unpack DZ = DZDecrypt.exe DZ_Creator.exe by copsfrance
And of course a ROM format KDZ or DZ.
PROCEDURE
The first thing to do is to unpack the KDZ, so copy the file LGExtract.exe on the route where we have the ROM format KDZ and from the console (which previously must be located on the route of the ROM) type:
and you press Enter
NOTE
Where it saysV10X_xx.kdz must be the name of the ROM, for exampleV10A_00.kdz
When the process is complete will see a file with the same name as the ROM, but with the extension .cab, for example, V10A_00.cab
Unzip it and will the DZ and a DLL file
To unpack the DZ type this:
And you press Enter
NOTE
Where it saysLGE610AT-xx-VxxX-XX-XXX-xx-xx-20xx+x.dz should be the name of the DZ, for example:LGE610AT-00-V10b-EUR-XXX-MAY-23-2012+0.dz
We already have the ROM in BIN format, now you have to concatenate the files SYSTEM, so we use the console and...:
And you press Enter and you can delete the files system.img.ext4_0, system.img.ext4_1,..., system.img.ext4_6 (version DZDecrypt.exe v1.0c+ does this job automatically)
Now we'll have a list like this:
Files .ext4 are you can rename to .img and mount as one drive in Linux or WIndows with Winimage manipulate its contents
With this I believe that we have done, if something is missing or you have any questions to ask without fear.
Click to expand...
Click to collapse
Is there a way to get to the totc.cfg file and edit it?

[TUT] How to deodex roms+set up Android kitchen(cygwin)+extract files from Kdz

INTRODUCTION
HI GUYS..!
Though there are many threads explaining about the set up of android kitchen and deodexing roms...i found it a bit confusing,as most of the threads take you to different threads which again explain the steps in detail,most of which though informative is unnecessary as they are General threads .. so,TODAY i will be explaining simple step by step procedures from setting up cygwin to doedexing a rom for our devices...
THIS THREAD IS FOR L3 BUT SHOULD WORK ON L5 AND L7 ALSO ( for extracting &deoxing-Only First generation ie; L3,L5&L7..Not for L3 II,L5 II, L7 II ,but the method for android kitchen is common for both generations)
THINGS NEEDED(DOWNLOADS)
1.JAVA- download here http://java.com/en/download/manual.jsp
2.LG EXTRACTION KIT PUT TOGETHER BY ME -
http://www.mediafire.com/download/qdxgh0hqznph3nf/KDZ_extraction_Kit+kitchen+cygwin.rar
Click to expand...
Click to collapse
STEP 1-INSTALL JAVA (just download and install it)
STEP 2- SET UP CYGWIN (This method is for Windows-i have provided the 32 bit setup ,for 64 bit download the setup from website below and skip to step 3) for 64 bit users - http://www.cygwin.com
1.extract the rar file i have provided and open the folder
2.open setup-x86.exe - don't proceed
3.open the cygwin setup guide provided in the folder and follow the steps
Click to expand...
Click to collapse
STEP 3- SET UP ANDROID KITCHEN
1. open the folder u extracted from my rar file
2.right click on Android-Kitchen-0.224_2 and extract here
3.now copy the "kitchen" folder to c:\cygwin\home\(your_user_name)\
[Note :: make sure that ur username does not contain any spaces (eg; homepc) (not eg; home pc) ;if it does then copy to c:\cygwin\home\ ]
Click to expand...
Click to collapse
STEP 6- CHECK IF ANDROID KITCHEN WORKS
1.Right click on the desktop shortcut of cygwin and run as administrator
2.type
Code:
cd kitchen
for people who have spaces in there user name
Code:
cd /home/kitchen
3.to open menu
Code:
./menu
IF YOU DONT GET ANY ERRORS THEN PROCEED TO THE NEXT STEP
Click to expand...
Click to collapse
STEP 7- EXTRACTING THE KDZ FILE(For custom odexed roms proceed to STEP 9)
(For the users who don't know about the .kdz , it is the file format for the stock lg rom firmwares,...to download the kdz files goto-
http://lg-phone-firmware.com/index.php?id_mod=11 and download the firmware that suits you accordingly...im using v10k open eupore )
1.open the folder u extracted from my rar file
2.rightclick on lgextract LGExtract-0.2.1 and select extract here
3.copy the .Kdz to the extracted folder
4.type
Code:
LGExtract.exe -kdz V10X_xx.kdz
(wherein "v10X_xx " stands for the version of kdz u want to extract eg v10k_00)
5. you should end up with three files a .dz file ,a .dll file and a .cab file ( eg DZ_LGE400AT-00-V10k-EUR-XXX-AUG-08-2012+0.dz ; QCT_E400_20120703.dll and V10k_00.cab
Click to expand...
Click to collapse
STEP 8-EXTRACTING THE ..DZ FILE
1.open the folder that u extracted from my rar file
2. rightclick on the DZDecrypter_v0.5.rar file and select extract here.... do the same for the DZDecrypter_v1.0b.rar file
3. now "copy" the .dz file into both extracted folders
4. open the extracted DZDecrypter_0.5 folder and type
Code:
DZDecrypt.exe LGE610AT-xx-VxxX-XX-XXX-xx-xx-20xx+x.dz
wherein "LGE610AT-xx-VxxX-XX-XXX-xx-xx-20xx+x.dz" is name of the .dz file
5. open the extracted DZDecrypter_v1.0b and do the same
6. now what we need is the boot.img ;recovery.img and system.img
7.make a new folder
8.to get the boot.img and recovery.img go to the DZDecrypter_v0.5 folder and copy the two files to a folder u created
9.to get system.img go to the DZDecrypter_v1.0b folder and find the file named system.img.ext4
10. just rename it to system.img and copy it to the folder u created
Click to expand...
Click to collapse
STEP 9- EXTRACTING THE SYSTEM.IMG and deodexing the System Files
(FOR CUSTOM ROMS CREATE A FOLDER IN C:\cygwin\home\your_user-name\kitchen\ AND NAME IT "WORKING_090313_013348" AND COPY THE META-INF;SYSTEM AND BOOT.IMG INTO IT AND OPEN THE KITCHEN MENU AND FOLLOW FROM THE11TH STEP )
Click to expand...
Click to collapse
NOTE :custom rom users use can this command via the terminal emulator to obtain the system file's on the rom... it is recommended to do this on a Fresh installation or else you will obtain a lot of unwanted files along with the ones needed ..
Code:
su
tar -c system/* >> sdcard/system.tar
Click to expand...
Click to collapse
this will create a .tar file on your sdcard which u can latter transfer to your pc and extract using winrar or 7zip
The files needed are
/app
/bin
/etc
/fonts
/framework
/lib
/media
/semc
/usr
/xbin
build.prop
Click to expand...
Click to collapse
delete the rest of the folders
1.COPY THE BOOT.IMG AND SYSTEM.IMG TO c:\cygwin\home\(your_user_name)\kitchen\original_update
2. open cygwin as adminstrator and open the kichen menu(refer step 6)
3.select option 1 -set up working folder from rom
4.select default 1
5.select n (dont change name)
6.select ext2explore
7.follow the instruction on the cmd
8.select n (don't extract cache.img)
9.select y (view rom info)
10. press enter to continue
11.select option 0 (advanced options)
12.select 11 deodex files in your rom
13.select v and change API LEVEL to 10(this is for gingerbread rom ie 2.3.x for other rom select accrdly)
14.select b deodex both folders ( sometimes u can get errors for few apks to resolve that delete the apks in the location below in system/app ...you have to delete both the .apk and .odex ; PS:don't delete the others they are deodexed...!)
15.press enter
16. view the contents of the folder navigate to C:\cygwin\home\your_user-name\kitchen\WORKING_xxxxxx_xxxxxx u'll find the deodexed apks in system\apps
17.now u can make changes to the file.
Click to expand...
Click to collapse
(OPTIONAL:I have not tried the zip but should work well)
STEP 10- FLASHING THE DEODEXED FILES TO THE ROM
1. open the folder that u extracted from my rar file
2. install 7 zip (7z920.exe) ignore if already there
3.rightclick on 'deodex.zip' and select open with 7zip
4.open system in 7zip
5.replace the /app and /framework from the folders in C:\cygwin\home\your_user-name\kitchen\WORKING_xxxxxx_xxxxxx\system
(Just drag and drop in the opened .zip file)
6. copy the zip file to the sdcard of ur phone
7. flash it via cwm
Click to expand...
Click to collapse
ANDROID KITCHEN IS A AWESOME TOOL ..ALMOST ALL OF THE STEPS IN IT ARE SELF EXPLANATORY ...I SUGGEST THAT U PLAY AROUND WITH IT TO GET USED TO IT ..
CREDITS
@dsixda FOR ANDROID KITCHEN
http://forum.xda-developers.com/showthread.php?t=633246
@pankaj88 FOR KITCHEN SETUP FOR DEODEX
http://forum.xda-developers.com/showthread.php?t=1767392
@Homero2 FOR LGEXTRACT EXTRACTING KDZ FILE
http://forum.xda-developers.com/showthread.php?t=2180586
@copsfrance FOR DZDECRYPT
@yayakuya & @andwie
FOR INTRODUCING ME TO THE THREADS..!
FOR ANY FURTHER QUESTIONS PLS REFER THE LINKS IN CREDIT AS THEY MOST PROBABLY WOULD HAVE BEEN ANSWERED THERE DO YOUR RESEARCH SEARCH AND LEARN ASK QUESTIONS ONLY AS A LAST RESORT NO ONES' A EXPERT ..!
NOTE :: Always make a backup before changing system apk's..! Not responsible for any damages..!
HIT THANKS BUTTON IF I HELPED YOU
THANK YOU...!
Great guide,very good explained and very helpfull,thanx.:thumbup:
GREEEEETZ!!!!
stock rom?
what about stock rom??
-CALIBAN666- said:
Great guide,very good explained and very helpfull,thanx.:thumbup:
GREEEEETZ!!!!
Click to expand...
Click to collapse
thanks man ..!!Much appreciated
arjunrambz said:
what about stock rom??
Click to expand...
Click to collapse
you'll need the boot.img so you have to download the firmware (check in the about phone should be like 10 j or something ) and follow from STEP 7 for any other doubts you can use the links in the credits..!
heres the link to download firmware for l7
http://lg-phone-firmware.com/index.php?id_mod=13
Thanks alot for this
Sent from my LG-E400 using XDA Premium 4 mobile app
skiplou_memory said:
Thanks alot for this
Sent from my LG-E400 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
you always welcome..!:good:
Im getting an error while trying to extract the .dz file...
C:\Users\Aleksandar\Desktop\Decrypter 1>DZDecrypt.exe LGP710AT-00-V10f-EUR-XX-JU
L-23-2013+0.dz
DZ-Decryptor v1.0b *ALPHA RELEASE* by BIGB0SS from COPS.
[■] Opening file "LGP710AT-00-V10f-EUR-XX-JUL-23-2013+0.dz".
[■] Allocated memory: 1280 Mo.
[x] Invalid markers in main header.
[■] Closing file "LGP710AT-00-V10f-EUR-XX-JUL-23-2013+0.dz".
aleksandar_021 said:
Im getting an error while trying to extract the .dz file...
C:\Users\Aleksandar\Desktop\Decrypter 1>DZDecrypt.exe LGP710AT-00-V10f-EUR-XX-JU
L-23-2013+0.dz
DZ-Decryptor v1.0b *ALPHA RELEASE* by BIGB0SS from COPS.
[■] Opening file "LGP710AT-00-V10f-EUR-XX-JUL-23-2013+0.dz".
[■] Allocated memory: 1280 Mo.
[x] Invalid markers in main header.
[■] Closing file "LGP710AT-00-V10f-EUR-XX-JUL-23-2013+0.dz".
Click to expand...
Click to collapse
This method is only for first generation of L series. You tried to extract dz of P710 (L7 II) so obviously it won't work.
andwie said:
This method is only for first generation of L series. You tried to extract dz of P710 (L7 II) so obviously it won't work.
Click to expand...
Click to collapse
So is there a way i can extract that .dz?
aleksandar_021 said:
So is there a way i can extract that .dz?
Click to expand...
Click to collapse
No, not for your device yet.
aleksandar_021 said:
Im getting an error while trying to extract the .dz file...
C:\Users\Aleksandar\Desktop\Decrypter 1>DZDecrypt.exe LGP710AT-00-V10f-EUR-XX-JU
L-23-2013+0.dz
DZ-Decryptor v1.0b *ALPHA RELEASE* by BIGB0SS from COPS.
[■] Opening file "LGP710AT-00-V10f-EUR-XX-JUL-23-2013+0.dz".
[■] Allocated memory: 1280 Mo.
[x] Invalid markers in main header.
[■] Closing file "LGP710AT-00-V10f-EUR-XX-JUL-23-2013+0.dz".
Click to expand...
Click to collapse
Sorry i din't mention it ,this is only for the first generation ;ie l3,l5,l7 (not l3 II,L5 II,L7 II)
after deodex, how to create the KDZ file as before? You can help me?
dn80 said:
after deodex, how to create the KDZ file as before? You can help me?
Click to expand...
Click to collapse
Use can Use this
http://forum.xda-developers.com/showthread.php?t=2179431
Extract apps from stock KDZ
Hello
I'm trying to extract two applications from a Stock Rom KDZ file from my LGE975
I have installed the pacman 4.3 rom, and lost two apps very importante for me. The Diodioct and the Quick translator.
I now that there is thread only for that, but I have already install it and I get a message say "wrong phone model"
I have ask for more help and no answer until now.
So I found this thread i'm asking if there is a way two extract this two apps and install it on my phone with the pacman rom?
Thanks

[DIRE NEED] How To Repack System Folder as a Raw Disk Image Ubuntu

Hello,
I was able to unpack the image simply by using the command
Code:
unrar x system.img
Now that I have made my modifications (literally only changing the build.prop to start) I need to repack the system file folder back to an "x-raw-disk-image". Does anybody know how I may do this? Thanks everyone!

[GUIDE] Make a kernel for G531F variant

So, I'm doing this tutorial due to the trial and error I got.
Prerequisites:
Ubuntu or any linux-based os with the right packages installed
Source code from the kernel
Backup of you boot partition
These tools here
Patience
1) The first thing you want to do is to do a backup of your boot partition.
Code:
adb shell
dd if=/dev/block/mmcblk0p9 of=/sdcard/boot.img
2) Download the source code from here, extract it and place it somewhere. I placed it in /home/fabio/Documentos/Kernel/sourcecode
3) Download a toolchain, I downloaded "aarch64-linux-android-4.8" from google and placed in "/home/<your username>/Documentos/Kernel/aarch64-linux-android-4.8"
4) Go to your kernel source code and find the file "Makefile", open it and change CROSS_COMPILE= to say the place where you stored the toolchain "/home/<your username>/Documentos/Kernel/aarch64-linux-android-4.8" + "/bin/aarch64-linux-android-"
5) Now that you are done setting up the stuff, open a console and navigate to your kernel source code root and type
Code:
make
make pxa1908_grandprimevelte_eur_defconfig
make -j#
# is the number of cores + 1
6) While that runs, go to where you stored those mkbootimg tools and unpack that boot.img you backed up
7) Once the kernel building is complete. Go to your kernel folder and navigate to arch/arm64/boot and copy the file "Image.gz"
8) Download bless or an Hex Editor of your liking and open the following files: boot.img (the original boot), Image.gz, boot.img-zImage.
Search on the "boot.img-zImage" for 1F 8B 08 and copy everything before then on your Image.gz place what you copied and save it as a different file otherwise it will fail to save.
9) Go to your mkbootimg folder and where you stored the unpacked files and build one boot.img with the following command
Code:
./mkbootimg --kernel image2.gz --ramdisk boot.img-ramdisk.gz --dt boot.img-dt --signature boot.img-signature -o boot2.img
10) Flash the boot2.img using any software you want!
THIS MIGHT NOT WORK! If it doesn't you can send me a DM! I will be retouching this post again and make it prettier adding pictures and stuff but for now I can't do much!
If you know a better way of doing this please say in the replies! I will be building a kernel for this device soon enough
RESERVED
Can you please upload link of custom kernel
I'm still trying to do a kernel with new features, but don't know what to add yet. Trying to make Init.d support without 3rd party apps!
EDIT1: I give up! My phone is too much trouble and since SAMSUNG doesn't care about it neither do I anymore! Try to build the kernel yourself and tweak it as you like! Make a script to automate this process to be easier! Good luck! Anything you need just say
Can you help this guy for porting kernel source code http://forum.xda-developers.com/grand-prime/general/developers-discussion-sm-g531f-custom-t3444598
fabiossilva21 said:
So, I'm doing this tutorial due to the trial and error I got.
Prerequisites:
Ubuntu or any linux-based os with the right packages installed
Source code from the kernel
Backup of you boot partition
Degas mkbootimg tools
Patience
1) The first thing you want to do is to do a backup of your boot partition.
Code:
adb shell
dd if=/dev/block/mmcblk0p9 of=/sdcard/boot.img
2) Download the source code from here, extract it and place it somewhere. I placed it in /home/fabio/Documentos/Kernel/sourcecode
3) Download a toolchain, I downloaded "aarch64-linux-android-4.8" from google and placed in "/home/fabio/Documentos/Kernel/aarch64-linux-android-4.8"
4) Go to your kernel source code and find the file "Makefile", open it and change CROSS_COMPILE= to say the place where you stored the toolchain "/home/fabio/Documentos/Kernel/aarch64-linux-android-4.8" + "/bin/aarch64-linux-android-"
5) Now that you are done setting up the stuff, open a console and navigate to your kernel source code root and type
Code:
make
make pxa1908_grandprimevelte_eur_defconfig
make -j#
# is the number of cores + 1
6) While that runs, go to where you stored degas-mkbootimg tools and unpack that boot.img you backed up
7) Once the kernel building is complete. Go to your kernel folder and navigate to arch/arm64/boot and copy the file "Image.gz"
8) Download bless (Hex Edit) and open the following files: boot.img (the original boot), Image.gz, boot.img-zImage.
Search on the "boot.img-zImage" for 1F 8B 08 and copy everything before then on your Image.gz place what you copied and save it as a different file otherwise it will fail to save.
9) Go to your degas-mkbootimg folder and where you stored the unpacked files and build one boot.img with the following command
Code:
./degas-mkbootimg --kernel image2.gz --ramdisk boot.img-ramdisk.gz --dt boot.img-dt --signature boot.img-signature -o boot2.img
10) Flash the boot2.img using any software you want!
THIS MIGHT NOT WORK! If it doesn't you can send me a DM! I will be retouching this post again and make it prettier adding pictures and stuff but for now I can't do much!
If you know a better way of doing this please say in the replies! I will be building a kernel for this device soon enough
Click to expand...
Click to collapse
i follow this step and build kernel after flash boot.img phone not booting
my boot.img size is 8.2MB (image.gz size 6.5MB) where stock size is 8MB
is problem with size?
sorry for my bad english
How did you flash the boot.img?
fabiossilva21 said:
How did you flash the boot.img?
Click to expand...
Click to collapse
using odin
What changes did you make to the kernel?
fabiossilva21 said:
What changes did you make to the kernel?
Click to expand...
Click to collapse
Add governors
Other setting same as stock
If i build with stock setting without any changes then kernel boot but if i change something then its stuck on Samsung logo
Sorry, I can't really help you... I no longer work with Grand prime... switched to a J5
fabiossilva21 said:
Sorry, I can't really help you... I no longer work with Grand prime... switched to a J5
Click to expand...
Click to collapse
Ok
Noice

Themes / Apps / Mods 📳🔥PixelFlasher for Google Pixel 6 Support Thread.

This is the support thread of PixelFlasher
(PixelFlasher is an open-source self contained GUI tool to facilitate Pixel phone device flashing/rooting/updating with extra features).
Note: This thread is meant for issues and problems faced in Google Pixel 6 devices, generic issues that are device agnostic should be discussed in the main thread.
For full details on where to download / usage and feature set of the tool, visit the main thread at XDA or the project's Github page.
Troubleshooting:
If you need support or assistance, the best way to get is by generating a support file from within PixelFlasher.
You can hit that big Support button on the main screen, or select it from the Help menu.
The generated support.zip file is sanitized (redacted) to keep your sensitive information (username device id ...) private.
Making sure magisk_patched.img is not on the phone in /storage/emulated/0/Download ...
Transfering boot.img to the phone in /storage/emulated/0/Download ...
ERROR: Encountered an error.
adb.exe: unrecognized option '-'
Aborting ...
Click to expand...
Click to collapse
I'm getting this on Pixel 6. Any idea what am I doing wrong?
dilruk said:
I'm getting this on Pixel 6. Any idea what am I doing wrong?
Click to expand...
Click to collapse
What is your Android platform tools version?
Also can you please share PixelFlasher log? Or everything displayed in the console when you encountered the error.
You should redact your device ID for privacy.
badabing2003 said:
What is your Android platform tools version?
Also can you please share PixelFlasher log? Or everything displayed in the console when you encountered the error.
You should redact your device ID for privacy.
Click to expand...
Click to collapse
==============================================================================
Preparing Package
==============================================================================
Found a previous package oriole-sp2a.220305.013.a3 deleting ...
Found Bundled 7zip.
zip/unzip operations will be faster
Unzipping Image: D:\Android\Devices\oriole\oriole-sp2a.220305.013.a3-factory-8bea92d1.zip into C:\onedrive\Desktop ...
Unzip time1: 42.51156783103943
Unzipped into oriole-sp2a.220305.013.a3 folder.
Extracting boot.img from image-oriole-sp2a.220305.013.a3.zip ...
Unzip time2: 0.8888261318206787
Deleting boot.img from phone in /storage/emulated/0/Download ...
Making sure boot.img is not on the phone in /storage/emulated/0/Download ...
Deleting magisk_patched.img from phone in /storage/emulated/0/Download ...
Making sure magisk_patched.img is not on the phone in /storage/emulated/0/Download ...
Transfering boot.img to the phone in /storage/emulated/0/Download ...
ERROR: Encountered an error.
adb.exe: unrecognized option '-'
Aborting ...
There you go...
badabing2003 said:
What is your Android platform tools version?
Also can you please share PixelFlasher log? Or everything displayed in the console when you encountered the error.
You should redact your device ID for privacy.
Click to expand...
Click to collapse
From what I see, it fails when trying to copy the boot.img to the phone. Also, how do I see the log file? The one I see is empty
dilruk said:
From what I see, it fails when trying to copy the boot.img to the phone. Also, how do I see the log file? The one I see is empty
Click to expand...
Click to collapse
I see that you have the tool running from one drive folder with spaces.
Maybe that is the issue, please move the tool to a path that does not include spaces or weird characters, see if that resolves the issue, if it does I'll fix it in the next version.
Also see when you do that if the log file gets filled
badabing2003 said:
I see that you have the tool running from one drive folder with spaces.
Maybe that is the issue, please move the tool to a path that does not include spaces or weird characters, see if that resolves the issue, if it does I'll fix it in the next version.
Also see when you do that if the log file gets filled
Click to expand...
Click to collapse
Cool let me try that.
EDIT: Works now. Still nothing in the log though
dilruk said:
Cool let me try that.
EDIT: Works now. Still nothing in the log though
Click to expand...
Click to collapse
OK Thanks for reporting back.
I'll make a fix later today for the path issue.
I'll have to figure out why the log file is empty.
worked flawlessly for me, making the monthly update while keeping root a breeze. THANK YOU
Not sure what I'm doing wrong, but it can't seem to find the unzipped image folder. I even tried manually unzipping it, but the app detects and deletes it. Run as administrator and using version 1.1.3:
==============================================================================
Preparing Package
==============================================================================
Found a previous package oriole-sp2a.220305.013.a3 deleting ...
Found Bundled 7zip.
zip/unzip operations will be faster
Unzipping Image: C:\Downloads\Pixel6\oriole-sp2a.220305.013.a3-factory-8bea92d1.zip into C:\Apps\PixelFlasher ...
Unzip time1: 0.5752615928649902
ERROR: Unzipped folder oriole-sp2a.220305.013.a3 not found.
Aborting ...
New release:
March 22, 2022 v1.1.4-alpha release.
Bug Fix: Handle space characters in paths.
thekdub said:
Not sure what I'm doing wrong, but it can't seem to find the unzipped image folder. I even tried manually unzipping it, but the app detects and deletes it. Run as administrator and using version 1.1.3:
==============================================================================
Preparing Package
==============================================================================
Found a previous package oriole-sp2a.220305.013.a3 deleting ...
Found Bundled 7zip.
zip/unzip operations will be faster
Unzipping Image: C:\Downloads\Pixel6\oriole-sp2a.220305.013.a3-factory-8bea92d1.zip into C:\Apps\PixelFlasher ...
Unzip time1: 0.5752615928649902
ERROR: Unzipped folder oriole-sp2a.220305.013.a3 not found.
Aborting ...
Click to expand...
Click to collapse
Can you please try with v1.1.4-alph and report back?
badabing2003 said:
Can you please try with v1.1.4-alph and report back
Click to expand...
Click to collapse
Unfortunately, same thing:
==============================================================================
Preparing Package
==============================================================================
Found Bundled 7zip.
zip/unzip operations will be faster
Unzipping Image: C:\Downloads\Pixel6\oriole-sp2a.220305.013.a3-factory-8bea92d1.zip into C:\Apps\PixelFlasher ...
Unzip time1: 0.08989071846008301
ERROR: Unzipped folder oriole-sp2a.220305.013.a3 not found.
Aborting ...
thekdub said:
Unfortunately, same thing:
==============================================================================
Preparing Package
==============================================================================
Found Bundled 7zip.
zip/unzip operations will be faster
Unzipping Image: C:\Downloads\Pixel6\oriole-sp2a.220305.013.a3-factory-8bea92d1.zip into C:\Apps\PixelFlasher ...
Unzip time1: 0.08989071846008301
ERROR: Unzipped folder oriole-sp2a.220305.013.a3 not found.
Aborting ...
Click to expand...
Click to collapse
If you're willing to help out, I'll give you a build that would try few things to determine the cause of the issue and output more verbose messages.
It won't be the final build, but would help me figure out the issue as I cannot reproduce it.
badabing2003 said:
If you're willing to help out, I'll give you a build that would try few things to determine the cause of the issue and output more verbose messages.
It won't be the final build, but would help me figure out the issue as I cannot reproduce it.
Click to expand...
Click to collapse
That would be great.
thekdub said:
That would be great.
Click to expand...
Click to collapse
Try this one, let's see what output you get.
When you paste the console output, please keep everything intact and just redact the device id.
=============================================================================
Preparing Package
==============================================================================
Found Bundled 7zip.
zip/unzip operations will be faster
Unzipping Image: C:\Downloads\oriole-sp2a.220305.013.a3-factory-8bea92d1.zip into C:\Apps\PixelFlasher ...
debug: "C:\Users\Kirk\AppData\Local\Temp\_MEI127842\bin\7z.exe" x -bd -y "C:\Downloads\oriole-sp2a.220305.013.a3-factory-8bea92d1.zip"
Unzip time1: 0.12499141693115234
Unzipped into oriole-sp2a.220305.013.a3 folder.
Traceback (most recent call last):
File "Main.py", line 422, in on_prepare
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\Apps\\PixelFlasher\\oriole-sp2a.220305.013.a3\\flash-all.sh'
thekdub said:
=============================================================================
Preparing Package
==============================================================================
Found Bundled 7zip.
zip/unzip operations will be faster
Unzipping Image: C:\Downloads\oriole-sp2a.220305.013.a3-factory-8bea92d1.zip into C:\Apps\PixelFlasher ...
debug: "C:\Users\Kirk\AppData\Local\Temp\_MEI127842\bin\7z.exe" x -bd -y "C:\Downloads\oriole-sp2a.220305.013.a3-factory-8bea92d1.zip"
Unzip time1: 0.12499141693115234
Unzipped into oriole-sp2a.220305.013.a3 folder.
Traceback (most recent call last):
File "Main.py", line 422, in on_prepare
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\Apps\\PixelFlasher\\oriole-sp2a.220305.013.a3\\flash-all.sh'
Click to expand...
Click to collapse
sorry @thekdub
In order to test the app before giving it to you, I had added a line to negate a result, but unfortunately I forgot to remove it before building and giving you a copy.
Please try this one.
Looks like it worked was just waiting on python libraries.
Connect your device
==============================================================================
Preparing Package
==============================================================================
Found a previous package oriole-sp2a.220305.013.a3 deleting ...
Found Bundled 7zip.
zip/unzip operations will be faster
Unzipping Image: C:\Downloads\oriole-sp2a.220305.013.a3-factory-8bea92d1.zip into C:\Apps\PixelFlasher ...
debug: "C:\Users\Kirk\AppData\Local\Temp\_MEI51122\bin\7z.exe" x -bd -y "C:\Downloads\oriole-sp2a.220305.013.a3-factory-8bea92d1.zip"
Unzip time1: 0.10936474800109863
ERROR: Unzipped folder oriole-sp2a.220305.013.a3 not found.
Disabling bundled 7zip ...
Trying unzip again with python libraries ...
Unzip time1.1: 49.77444267272949
Unzipped into oriole-sp2a.220305.013.a3 folder.
Extracting image-oriole-sp2a.220305.013.a3.zip ...
Unzipped into C:\Apps\PixelFlasher\oriole-sp2a.220305.013.a3\image-oriole-sp2a.220305.013.a3 folder.
Unzip time2: 108.96331071853638
Deleting boot.img from phone in /storage/emulated/0/Download ...
Making sure boot.img is not on the phone in /storage/emulated/0/Download ...
Deleting magisk_patched.img from phone in /storage/emulated/0/Download ...
Making sure magisk_patched.img is not on the phone in /storage/emulated/0/Download ...
Transfering boot.img to the phone in /storage/emulated/0/Download ...
debug: "C:\Users\Kirk\Desktop\platform-tools\adb.exe" -s 1A061FDF600H0X push "C:\Apps\PixelFlasher\oriole-sp2a.220305.013.a3\boot.img" /storage/emulated/0/Download/boot.img
C:\Apps\PixelFlasher\oriole-sp2a.220305.013.a3\boot.img: 1 file pushed, 0 skipped. 13.5 MB/s (67108864 bytes in 4.749s)
Making sure boot.img is found on the phone in /storage/emulated/0/Download ...
Magisk Tools not found on the phone
Looking for Magisk app ...
Unable to find magisk on the phone, perhaps it is hidden?
User pressed cancel.
Aborting ...
@thekdub
Yes it worked, but it would be slow because it won't be able to use the bundled 7zip.
I'd be curious as to why 7zip is failing on your system, if we figure that out you'd get it to work much faster.
Can you try these steps.
1- Quit the App
2- Launch the APP
3- repeat the package step, you can abort it when it reaches the magisk step
4- But do NOT quit the app, that's because the packaged 7zip gets unpacked into a temporary folder, and each time it is different, so we want to keep the app running, and then look at the logs of the first unzip command.
it would be something similar to this, but the part after the Temp would be different (look for the first debug message)
Code:
"C:\Users\Kirk\AppData\Local\Temp\_MEI51122\bin\7z.exe" x -bd -y "C:\Downloads\oriole-sp2a.220305.013.a3-factory-8bea92d1.zip"
You want to remove the debug part, and copy the rest (quotes included, similar to the sample above)
Open a windows command shell and paste it and execute
Tell me what it responds with.

Categories

Resources