yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] bigrammy:
From: cmd prompt

adb shell

su

ls -al /dev/block/platform/mtk-msdc.0/by-name

Do not alter the above just paste it as is :good:

Some people try editing the "by-name" thinking they should put boot recovery or something :laugh:

This will give you all your partitions as in this example below :good:

lrwxrwxrwx root root 2010-01-01 00:29 boot -> /dev/block/mmcblk0p7
lrwxrwxrwx root root 2010-01-01 00:29 cache -> /dev/block/mmcblk0p21
lrwxrwxrwx root root 2010-01-01 00:29 expdb -> /dev/block/mmcblk0p10
lrwxrwxrwx root root 2010-01-01 00:29 flashinfo -> /dev/block/mmcblk0p23
lrwxrwxrwx root root 2010-01-01 00:29 frp -> /dev/block/mmcblk0p17
lrwxrwxrwx root root 2010-01-01 00:29 keystore -> /dev/block/mmcblk0p14
lrwxrwxrwx root root 2010-01-01 00:29 lk -> /dev/block/mmcblk0p5
lrwxrwxrwx root root 2010-01-01 00:29 logo -> /dev/block/mmcblk0p9
lrwxrwxrwx root root 2010-01-01 00:29 metadata -> /dev/block/mmcblk0p19
lrwxrwxrwx root root 2010-01-01 00:29 nvdata -> /dev/block/mmcblk0p18
lrwxrwxrwx root root 2010-01-01 00:29 nvram -> /dev/block/mmcblk0p2
lrwxrwxrwx root root 2010-01-01 00:29 oemkeystore -> /dev/block/mmcblk0p12
lrwxrwxrwx root root 2010-01-01 00:29 para -> /dev/block/mmcblk0p6
lrwxrwxrwx root root 2010-01-01 00:29 proinfo -> /dev/block/mmcblk0p1
lrwxrwxrwx root root 2010-01-01 00:29 protect1 -> /dev/block/mmcblk0p3
lrwxrwxrwx root root 2010-01-01 00:29 protect2 -> /dev/block/mmcblk0p4
lrwxrwxrwx root root 2010-01-01 00:29 recovery -> /dev/block/mmcblk0p8
lrwxrwxrwx root root 2010-01-01 00:29 seccfg -> /dev/block/mmcblk0p11
lrwxrwxrwx root root 2010-01-01 00:29 secro -> /dev/block/mmcblk0p13
lrwxrwxrwx root root 2010-01-01 00:29 system -> /dev/block/mmcblk0p20
lrwxrwxrwx root root 2010-01-01 00:29 tee1 -> /dev/block/mmcblk0p15
lrwxrwxrwx root root 2010-01-01 00:29 tee2 -> /dev/block/mmcblk0p16
lrwxrwxrwx root root 2010-01-01 00:29 userdata -> /dev/block/mmcblk0p22

PS: Not sure but you may encounter problems with deodexing the ROM as we have both arm (32bit) and arm64 (64bit) apps and framework folders so not sure how ricky's script's handle this stuff most deodex tools fail to fully deodex the MTK rom doing either one or the other but not both.
[Android Software/Hacking General [Developers Only]] tvladan:
Thanks for the answer, i tried that, all I got was everything except the "street" name of the partition meaning I got block paths but no names as what is who and so ...

Anyhoo ... is it safe to assume that taking this line of code from an official updater-script that came from the producer to patch some stuff in the system of the phone

apply_sig(package_extract_file("sig/boot.sig"), "bootimg");

that my kernelpath is bootimg plain and simple, no backslashes, no dev, no mblk and stuff? Anyway so far I used 3 separate kitchens win and linux and all I got were some sort of bootloops ... meaning first splash screen with black - white logo, than restart, than b/w logo again than restart and than the phone boots to recovery ... no adb connection to get logcat and from twrp there is no /proc/last_kmsg ... only a last_kmsg2 which is in fact a log from the latest normal system shutdown ... no this seems normal to any of you ?
[Android Software/Hacking General [Developers Only]] bigrammy:
No you didn't you used by-number not by-name :rolleyes: Just try it and give the output here ;)

That cmd is for signing the boot.img :eek:

You will find that the /dev/bootimg if it exists is likely a system link to the actual block trouble is the link is not always permanent and gets created during the boot process so It may not exist during recovery ie when flashing your rom.

It's always best to use the actual boot.img block path as this is usually permanent.

Official MTK roms use this generally for flashing the boot.img

assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "bootimg"),
delete("/tmp/boot.img"));

Hence copying it to /tmp allows it to sit there until the system link /bootimg is created on full boot up.

To me the block path is easier to use and safer but either way will work providing that bootimg link remains (My device does not use bootimg anymore so it would fail to flash on my phone.

---------- Post added at 10:04 PM ---------- Previous post was at 09:35 PM ----------

Hi bro,

The Ultimate MediaTek Tool works fine with sparse ext4 system.img without linux or cygwin maybe you could have a chat with Tech N You ;)

See Here under Change Log :good:
[Android Software/Hacking General [Developers Only]] Er. Aditya:
dev will you add note 4 5.1.1 compatiability ?? 910G
[Android Software/Hacking General [Developers Only]] Ricky Divjakovski:
Tech n you actually copied this tool and most of the files from it, i read that 5.x.x img files are compressed differently, so far ive found a way to unpack them but its much too difficult to integrate yet but i will get it one way or another idc if i have to build from source code to do so
[Android Software/Hacking General [Developers Only]] elliwigy:
haha agreed.. its not as easy as it seems like usual lol. youre kitchen had no problem with initial 5.x roms for s6e until i believe oe2 or of1 for me.. oc3 must have been packed differently.. or maybe i used linux.. heck i cant recall lol all the awesome devs must use linux strictly for romming.. my laptop is junk so its not reasonable to dual boot it and i need windows :-/

without root for 5.1 its not a big deal for me, i can wait patiently for you to work your magic lol
[Android Software/Hacking General [Developers Only]] bigrammy:
It's like been back at school sometimes :laugh:

All I know is that it works with my 5.1 .img's so I will say no more. :rolleyes:
[Android Software/Hacking General [Developers Only]] kapilrtn:
how to use this tool
[Android Software/Hacking General [Developers Only]] Hamidreza2010:
Your tool not supported android 5.1.1 on xperia z ( 6602 )

I test it and cant read buil.peob and ....
[Android Software/Hacking General [Developers Only]] tvladan:
Ok ... let;s give it a try and sorry for spamming this thread ... if you want to help further, please let me pm you.

I pasted your command this is the result

C:\adb>adb shell
root@hct82_cwet_kk:/ # su
su
root@hct82_cwet_kk:/ # ls -al /dev/block/platform/mtk-msdc.0/by-name
ls -al /dev/block/platform/mtk-msdc.0/by-name
/dev/block/platform/mtk-msdc.0/by-name: No such file or directory
1|root@hct82_cwet_kk:/ #

My device does not have a by-name folder, but it has a by-num one as it results from here:

ls -al /dev/block/platform/mtk-msdc.0
drwxr-xr-x root root 2015-10-09 12:28 by-num
lrwxrwxrwx root root 2015-10-09 12:28 mmcblk0 -> /dev/block/mmcblk0
lrwxrwxrwx root root 2015-10-09 12:28 mmcblk0boot0 -> /dev/block/mmcblk0boot0
lrwxrwxrwx root root 2015-10-09 12:28 mmcblk0boot1 -> /dev/block/mmcblk0boot1
lrwxrwxrwx root root 2015-10-09 12:28 mmcblk0p1 -> /dev/block/mmcblk0p1
lrwxrwxrwx root root 2015-10-09 12:28 mmcblk0p2 -> /dev/block/mmcblk0p2
lrwxrwxrwx root root 2015-10-09 12:28 mmcblk0p3 -> /dev/block/mmcblk0p3
lrwxrwxrwx root root 2015-10-09 12:28 mmcblk0p4 -> /dev/block/mmcblk0p4
lrwxrwxrwx root root 2015-10-09 12:28 mmcblk0p5 -> /dev/block/mmcblk0p5
lrwxrwxrwx root root 2015-10-09 12:28 mmcblk0p6 -> /dev/block/mmcblk0p6
lrwxrwxrwx root root 2015-10-09 12:28 mmcblk0p7 -> /dev/block/mmcblk0p7
lrwxrwxrwx root root 2015-10-09 12:28 mmcblk0p8 -> /dev/block/mmcblk0p8
lrwxrwxrwx root root 2015-10-09 12:28 mmcblk0rpmb -> /dev/block/mmcblk0rpmb
root@hct82_cwet_kk:/ #

and finally ls -ing that one gives me this:

ls -al /dev/block/platform/mtk-msdc.0/by-num
lrwxrwxrwx root root 2015-10-09 12:28 p1 -> /dev/block/mmcblk0p1
lrwxrwxrwx root root 2015-10-09 12:28 p2 -> /dev/block/mmcblk0p2
lrwxrwxrwx root root 2015-10-09 12:28 p3 -> /dev/block/mmcblk0p3
lrwxrwxrwx root root 2015-10-09 12:28 p4 -> /dev/block/mmcblk0p4
lrwxrwxrwx root root 2015-10-09 12:28 p5 -> /dev/block/mmcblk0p5
lrwxrwxrwx root root 2015-10-09 12:28 p6 -> /dev/block/mmcblk0p6
lrwxrwxrwx root root 2015-10-09 12:28 p7 -> /dev/block/mmcblk0p7
lrwxrwxrwx root root 2015-10-09 12:28 p8 -> /dev/block/mmcblk0p8

Also pushing parted to system bin and trying print gives me the following error: Can't have a partition outside the disk! (that seems fair btw ... but besides that parted gives me no partitions info)

so thank you again for your reply ... now ... what next ???
[Android Software/Hacking General [Developers Only]] bdorr1105:
Does this support the Nexus 6? Android Moarshmallow

---------- Post added at 09:49 AM ---------- Previous post was at 09:10 AM ----------

After the extraction process from a system.img and boot.img, Everything wroks great to this point. The img gets parsed and i extract the output from the working/tmp/system*.img to the working/system and then I hit enter, i see it say C:/could not find /resresh ......I cant see it all because the CMD window closes and then when I try to open it again, it will not stay open. As soon as it laucnhes it closes with the same C:/could not find until I delete everything in the working folder. Not sure how to fix that
[Android Software/Hacking General [Developers Only]] Ricky Divjakovski:
Im proud to announce that i will be releasing the new based tool within the week, alot of code modifications and alot of features added, all bugs fixed(all)

New features include

Full directory logging - logs and lists all modifed files and directorys and whats been done to them

Updater-script parser - modifies custom updater-script to add compatibility to use the tool

Advanced mode - able to change the mode of the tool to allow advanced file changes and mods

password protect - add password to tool startup

AdvancedBoot - a full featured booting script to allow users/rom modders and kernel developers to implement in their roms

Advanced users can add device support via tool themself (experimental and potentially dangerous

New device detection - a small database stored together more reliable and easier way of accessing data

Plus alot more i just cant keep up with how many mods ive done.

by the way Tech N You's tool fails to unpack the system image aswell
[Android Software/Hacking General [Developers Only]] bdorr1105:
So any comment about the error I was having above this post? Who else am I supposed to ask?
[Android Software/Hacking General [Developers Only]] Ricky Divjakovski:
Thats a tool error, fortunately ive fixed it in the upcoming version, you can download the previous version of the tool to avoid that
[Android Software/Hacking General [Developers Only]] bigrammy:
Well there not strictly Tech N You's tools anyway he links up the .exe's to unpack the sparse ext4.system.img's as it's a 2 step process in total.

ext4_unpacker.exe unpacks sparse ext4.system.img to a normal system.img then ext2explore.exe extracts that to a normal folder.

I have just used the above .exe's to unpack a new untouched Android 5.1 system.img (MTK) without any error at all. :confused:

I am running Windows7 and run both .exe's as admin :eek:

ext2explore.exe/windows has in the past given me a warning regarding duplicate names thing usually Ursaminor.ogg (Can't remember the exact name :laugh: ) which halts the process until you choose what to do about it.

If I can be of any assistance let me know. ;)
[Android Software/Hacking General [Developers Only]] bdorr1105:
Thanks a lot, tool looks awesome!!!! Great work
[Android Software/Hacking General [Developers Only]] Ricky Divjakovski:
Mtk files can be unpacked extremely easy because they arent compiled with the same format.

also like i said tech n you's tool copied my method but just put the option in the menu where you what type it is, interesting you that that, he uses my if exist syntax and has mixed up sparse and ext4 img's. So when you select sparse you unpack ext4 and when you choose ext4 it unpacks as sparse
[Android Software/Hacking General [Developers Only]] Ricky Divjakovski:
everyones gonna be quite happy with this release :) im starting to get excited
[Android Software/Hacking General [Developers Only]] bigrammy:
A sparse.ext4.system.img is a sparse.ext4.system.img isn't it? As far as I am aware MTK use the standard format for these 5.x image's :confused:

Also ArchiKitchen detects and unpacks it as a sparse.ext4.system.img too :confused:

Are talking about a specific manufacturer's system.img here maybe you should give a little more detail as I am confused now :confused:

:rolleyes: I don't really give a crap about who copied who I left school years ago :rolleyes: like I said both the tools (.exe's) used to get the job done belong to neither of you anyway as far as i know.

I use the actual .exe's standalone and not in any sort kitchen tool's when I am on Windows so I don't know if you are referring to your code or the actual .exe's :confused:

I was only trying to help out but you seem to take offence so I will bail out and leave you to get on with it.

Cheers.
[Android Software/Hacking General [Developers Only]] Ricky Divjakovski:
Ill explain a little further, different manufacturers compress their .img files differently, some use more then one compression method, i.e samsung.

mtk .img files im yet to find one compressed with more then one compression method

And im not taking offence, hey choice is your what you like to use im not gonna complain if you like a different tool more then this one

if you want a tool that does everything and is completely bugfree then build your own, hey im just making a tool that universally supports roms and sharing with the community

so you do as you please im gonna get on with my work and continue rebasing the kitchen
[Android Software/Hacking General [Developers Only]] Ricky Divjakovski:
And one more thing.. archikicthen is for a completely differing OS, im making this tool completely independant on windows, i even made my own version of sed using microsoft VB

if that was the case i could do alot more with the tool..

this tool would have been produced alot quicker, after all we are modifying an OS based on a completely different OS thats isnt made to build on..
[Android Software/Hacking General [Developers Only]] Er. Aditya:
great work your doing mate ...looking forward to your update :)
[Android Software/Hacking General [Developers Only]] bigrammy:
Bro It's not about what kitchen I use or preffer I am a bit more grown up than that to compare Kitchens from totally different OS's :(

I was just trying help that's all. :rolleyes:

You didn't make it clear that it was samsung sparse .img's that were giving you the problems just sparse img's :confused:

I am well aware of you and your work and what you have achieved using windows os is totally awesome and I have nothing but respect for you and your work. :highfive:

A simple "cheers bro I've got it covered already" would of done for me rather than jumping on me about the other guys work. :eek:

I was just pointing to the tools rather than the script used as I have no doubts about your scripting abilities bro. :cool:

Some of us still like to help out where we can and aren't in it for any rewards but just to help out I've done it with archi and other dev's. I can't script at all :silly: but can sometimes save people a lot of research and google time :o

PS: did you try rename the sparse.img to simply "system.img" then use ext4 unpacker.exe I think the naming can cause problems sometimes from what I can recall anyway :confused:

If you could give a link to the specific system.img that causes the issues I could do some testing to try assist you.
[Android Software/Hacking General [Developers Only]] samep:
Bottom of my post, there's a link to a Samsung OEM Android 5.1.1 tar that doesn't unpack with known tools.

http://xdaforums.com/showthread.php?p=62626982

You're welcome to download and try. I had another developer tell me he thought he had a tool using Cygwin that works but he didn't get back to me with that.

Looking forward to the OP's update. He says he has a method and plans to code it without Cygwin.
[Android Software/Hacking General [Developers Only]] Ricky Divjakovski:
New release is gonna be boss, the features and work ive put into the new release are incredible
[Android Software/Hacking General [Developers Only]] Ricky Divjakovski:
Btw got system images for 5.x to unpack
[Android Software/Hacking General [Developers Only]] Er. Aditya:
teasers :crying::crying::crying::crying:
[Android Software/Hacking General [Developers Only]] samep:
^_^ LOL! Looking forward to it.
[Android Software/Hacking General [Developers Only]] Dvalin21:
Sooooooo can't wait!!!!!!
[Android Software/Hacking General [Developers Only]] Ricky Divjakovski:
New method to build updater script works like a deadset charm!

detects all files (symlink, package_extract_file/dir, set_perm/_recursive, set_metadata/_recursive, run_program, write_raw_image)

So no errors what so ever, plus its got no commented out lines and you can now add your own mounts, preinstall scripts extraction, permissions, symlinks, post install scripts

this is getting real guys
[Android Software/Hacking General [Developers Only]] Er. Aditya:
wohhooo f5 f5 for download links :D
[Android Software/Hacking General [Developers Only]] :
Sorry for spamming the thread but I've got to say your probably the most helpful guy on xda. I've lost count the amount of times you've helped me or anyone else struggling with Linux or kitchen problems.
[Android Software/Hacking General [Developers Only]] Er. Aditya:
i too was helped regarding archi kitchen... totally agree about being a great person helping new chaps every now and then
[Android Software/Hacking General [Developers Only]] bigrammy:
Thanks it's much appreciated :o
[Android Software/Hacking General [Developers Only]] jimbomodder:
Device request please

ro.roduct.model=SM-A500FU

ro.product.brand=SAMSUNG

/dev/block/mmcblk0p16

Sent from my SM-A500FU
[Android Software/Hacking General [Developers Only]] Dvalin21:
I have an off question some what. I've been working on a rom for some time now and before it would cause your kitchen to just crash. Even the last update it still does it. Also, for some reason when packaging the files to be flash, it shows up as corrupted when trying to flash it. This doesnt happen to ANY other rom I package. I use Winrar/zip 920 and also tried 7z and it does the same. Any ideas? Thanks.
[Android Software/Hacking General [Developers Only]] Ricky Divjakovski:
does the kitchen crash or when installing the rom?

if its the kitchen then try manually zipping all files in the working folder

if its the installation on the device change the end of line syntax to linux and for all files or folders being unpacked and modified check if they exist
[Android Software/Hacking General [Developers Only]] Dvalin21:
It crashes when starting the kitchen while the files are in the work folder. I've tried manually zipping in the in the work folder. But after I get it zipped and try to flash it, it says it's corrupt
[Android Software/Hacking General [Developers Only]] Hamidreza2010:
Any Fix ?
[Android Software/Hacking General [Developers Only]] DarkHeart Z:
sorry bro , for double posting in feature request . thanks for the tool . It doesn't extracts my stock rom correctly error: cannot create symbolic links : incorrect function. mt device firmware version : 4.2.2 kernel version : 3.4.5 chipset : mt6572
[Android Software/Hacking General [Developers Only]] Ricky Divjakovski:
guys great news, tool is almost done completely, THE UNPACK .IMG FILE BUG IS COMPLETELY GONE!, SUPPORTS UPTO ANDDROID 6.0!, AND IS (COMPLELY) AUTOMATIC! no more seleting sparse or ext unpacking method, no more bloat software!
[Android Software/Hacking General [Developers Only]] Ricky Divjakovski:
problem solved in the update coming in a day or 2
[Android Software/Hacking General [Developers Only]] Dvalin21:
You rock sir!!!!
[Android Software/Hacking General [Developers Only]] Ricky Divjakovski:
oh and please believe me when i tell yous that the next release will be under 20MB
[Android Software/Hacking General [Developers Only]] Macguyver1980:
Apply Official OTA update .zip file on a Complete official ROM

Hello,

My issue I can't find solution on net for now;

Starting from an Official complete ROM, there were some official OTA updates since this ROM version I'd like to apply to the Working folder before beginning to customize it. But seems there are .p files and lot of config inside then don't know how to apply it on my Working repository or if there are tools...?

Thanks for help.
[Android Software/Hacking General [Developers Only]] parkerj7uc:
Oh man I'm excited, can't wait for this.

People work hard to make your phone happy, just give thanks!!!
[Android Software/Hacking General [Developers Only]] Ricky Divjakovski:
i think thats an OTA update not an official update :confused: :confused:

pretty sure they are patch files
[Android Software/Hacking General [Developers Only]] Macguyver1980:
Yes there are official updates with each sizes like 25 or 40 MB... But don't know how to apply them on the base ROM I'm working on.
[Android Software/Hacking General [Developers Only]] Ricky Divjakovski:
Flash it then after that extract the system from device with the method provided in the tool
[Android Software/Hacking General [Developers Only]] Er. Aditya:
dev my f5 button about to crash :D:D
[Android Software/Hacking General [Developers Only]] andy_zhang:
why cant get tmp.txt FC
[Android Software/Hacking General [Developers Only]] Hamidreza2010:
+1
[Android Software/Hacking General [Developers Only]] Ricky Divjakovski:
this is getting good, making a script interpreter(basically my own language for android) but the good news about it is its a simplified language(actually calling it simplyfy and uses simplyfy-script for install)

updated .img tools an everything is automatic, im proud to announce this release will be one of the best ever!

another thing is EOL conversion, thats automatic too now :)
[Android Software/Hacking General [Developers Only]] elliwigy:
lookin forward to it..
[Android Software/Hacking General [Developers Only]] jimbomodder:
Hey Ricky did u manage to add the A500FU to list of supported devices?
[Android Software/Hacking General [Developers Only]] Joshwaaa:
Really looking forward to your upcoming release. Two questions. Will SM-G925P (Sprint Samsung Galaxy S6 Edge) be supported? Also any chance of adding re-odexing after rom build? Thanks and nice work!
[Android Software/Hacking General [Developers Only]] Ricky Divjakovski:
Possible but im unlikely to do so, im thinking about adding that and de art dexing to aroma installer to give the rom flexibillity and so people can decide what they like
[Android Software/Hacking General [Developers Only]] bdorr1105:
I am also excited about the new release, will the Nexus 6 Shamu be supported
[Android Software/Hacking General [Developers Only]] jimbomodder:
[MENTION=5105831]Ricky Divjakovski[/MENTION] did u manage to add A5 to list of supported devices?
[Android Software/Hacking General [Developers Only]] Ricky Divjakovski:
All devices requssted will be
[Android Software/Hacking General [Developers Only]] Lucabest98:
BUG REPORT

When I start Kitchen with administrative privileges, it says me "Cannot find file location".

But if I start it without administrative privileges, it requests me to give them and then it goes but Ext2Explore doesn't work. When i try to open Ext2Explore by myself, it finds the file that i'm working with but it says that it's only 4KB. How can i resolve it?
[Android Software/Hacking General [Developers Only]] Manav Bhagia:
Link for v6.0.0 ?
[Android Software/Hacking General [Developers Only]] bdorr1105:
Would like to request you support the Samsung Note 5 for T-Mobile

The SM-N920T

Thanks
[Android Software/Hacking General [Developers Only]] asapmoola310:
Does 6.0.0 deodexer tool support Lollipop? [MENTION=5105831]Ricky Divjakovski[/MENTION]
[Android Software/Hacking General [Developers Only]] citytrader:
[MENTION=5105831]Ricky Divjakovski[/MENTION] I want to do a simple thing, I have a S6 Edge+ and I want to unpack the system.img and put in a zip for flashing from recovery; I have unpacked all the system.img successfully into a directory, from your rom kitchen can I create the flasheable .zip from that directory considering the phone model the S6 Edge+? Thanks in advance for your feedback.