yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Development and Hacking General] lost_things:
voila !

here you go - download attachment

it's a tool to convert lgu files to directory and vice versa

to be used in command line this way:

lgu2dir <path to lgu file> <path to folder where where the contents will be unpacked>

ex: lgu2dir upgrade.lgu root
[Windows Mobile Development and Hacking General] nordic09:
thank you - you are my hero

the tool works great

you know a way to convert the files back to a lgu-file too?
[Windows Mobile Development and Hacking General] lost_things:
yes, see the attachment

Usage: dir2lgu <content name> <in folder> <out lgu file>
[Windows Mobile Development and Hacking General] nordic09:
thank you again lost_things
[Windows Mobile Development and Hacking General] maxnikko:
Unfortunately dir2lgu does not work on windows xp.

Can you make a version that also works on my old operating system.

Thank you.
[Windows Mobile Development and Hacking General] DARKMANDZ:
need working windows version this one is not win32 valid application or i miss something

thanks
[Windows Mobile Development and Hacking General] Xinav:
changing only one file within the LGU without extracting anything is possible?

Hello guys, first thanks for the help with the file compression and decompression of the LGU, but I have a problem when compressing the file again made ​​a change in one of the firmware files and recompile the file is not accepted as update my device I believe it has something to do dir2lgu different from the original build program which makes it invalid on the device, so I wonder if there is any header possibilidede the only LGU that change a file without extract, because I need to unlock a device and only need need to change an exe within the LGU, is this possible? who developed these programs that kind of compression they use? I'm 3 months in search of a solution and nothing would be grateful for an answer that will help many people.
[Windows Mobile Development and Hacking General] viberfm:
need a new lgu2dir for a newer version of .lgu files

Hello guys,

seems like lg made a new version of the car radio with windows ce, and the new .lgu files can not be opened by the old tools.

Thanks.
[Windows Mobile Development and Hacking General] tom!79:
Same here, new version of lgu, cannot be opened, file signature (or magic number if u prefer) is now ULC2.

And the archive in the lgu container is no more RAR but a Zip tipe, as usual seen inside the file with the hex editor, i tried to cut out the archive but archive won't work i suspect that's somenthing like a byte shift or other kind of "protection".

I have spotted that at address from block 18 to 1B is stored that crc in reverse way.

But i'm not found the way to recover the internal archive.

[MENTION=5750443]lost_things[/MENTION] Did you have a new version? (If u are still around here, seems that these posts are the only 2 that you are ever made :D)

Thank you in advice.

[MENTION=6610037]viberfm[/MENTION]

Are you working with new medianav evolution firmware too?
[Windows Mobile Development and Hacking General] djeman:
New lgu tools available :)
[Windows Mobile Development and Hacking General] lau.b:
Warm thanks ! You made a really great job djeman !!

Works perfectly both for 'old' and 'new' files. Be careful to position appropriate 'content-name' and 'label' when recompressing, your car application may need it to work appropriately.
[Windows Mobile Development and Hacking General] sala_test:
Hi,

[MENTION=1619533]djeman[/MENTION] the new dir2lgu.exe, don't get any options, if you try to pass -l o -u, don't care it create always an lgu0 type, and -n and -p don't work at all, i hope u can fix it.

Thank you for you work anyway ;)
[Windows Mobile Development and Hacking General] tom!79:
+1 same here.
[Windows Mobile Development and Hacking General] djeman:
Sorry but all works fine ;)
[Windows Mobile Development and Hacking General] tom!79:
I'm trying right now in win 7 and win 10, with -u option it crate a lgu0 file, with -n something, it show me the help like I have put something wrong, lgu2dir instead works fine.

[MENTION=1619533]djeman[/MENTION]

Tested now:

-u ulc2 format not work as you can see here

E:\testxda>dir2lgu.exe -u test test.lgu
creating C:\Temp\TFRC451.tmp
file test.txt crc 0
file C:\Temp\TFRC451.tmp crc 8bb6d8f8

E:\testxda>dir
Il volume nell'unità E è Volume
Numero di serie del volume: 7807-6F2B

Directory di E:\testxda

19/05/2016 16:37 <DIR> .
19/05/2016 16:37 <DIR> ..
19/05/2016 16:36 123.392 dir2lgu.exe
19/05/2016 16:36 96.256 lgu2dir.exe
19/05/2016 16:36 <DIR> test
19/05/2016 16:37 1.152 test.lgu

E:\testxda>type test.lgu
LGU0 Ç °ÏÂï 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■- u ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ d▀4DÐ%■ñ╠$‗<í×êÑÆRFyµ+UÊÜØrj½‗┬_8█wÌPG5c%\▄os0╦Ë·ZÉeÍ░:Llü└ │¤=W Rar!»è╝Ý╝ìyRíù┴2NáÑ[¹z`L"µ█"NzDO┐ª┤ï\÷iå^¹Ï2e

and with -n don't do nothing like you can see here:

E:\testxda>dir2lgu.exe -n comment test test.lgu
Usage: dir2lgu [options] <content name> <in folder> <out lgu file>
-n <name> name label (" " by default)
-l lgu0 format (default)
-u ulc2 format
-p <m1|m2> preset medianav 1 or 2
[Windows Mobile Development and Hacking General] djeman:
Arf ... I forget to protect the execution when one argument is missing ^^

In "dir2lgu.exe -u test test.lgu":

[options] = -u

<content name> = test

<in folder> = test.lgu

<out lgu file> =

And for "dir2lgu.exe -n comment test test.lgu" you have make the same mistake, one argument is missing :)
[Windows Mobile Development and Hacking General] tom!79:
Oh crap, I have confused the -n option with the <content name>, so to put the content name name i use -n :silly: Ok i made a big mistake, but i'm happy that i'm not the only one, seems that [MENTION=379011]sala_test[/MENTION] had done the same mistake :D

Ok, so, to avoid other mistakes, what is the -n option "label"? And what is the difference to use -l and -u instead of -p m1 or m2?

Anyway i'm a dumbass :eek:, thank you for your work :D
[Windows Mobile Development and Hacking General] djeman:
'dir2lgu -p m1 <content name> <in folder> <out lgu file>' is equal to 'dir2lgu -l -n "*MEDIA-NAV*" <content name> <in folder> <out lgu file>'.

'dir2lgu -p m2 <content name> <in folder> <out lgu file>' is equal to 'dir2lgu -u -n "*MEDIA-NAV2*" <content name> <in folder> <out lgu file>'.

Do not use -p option with an another, it's just for rapid preset.

"content name" is the name of the content of your update, the name shows on the device in the update dialog.

"name label" ... it's a device label, this label is used by the update software, it's a protection to not flash a bad update. All devices do not use it.
[Windows Mobile Development and Hacking General] tom!79:
Ok [MENTION=1619533]djeman[/MENTION] thanks for explaination, thank you ;)

Inviato dal mio Asus Zenfone 2
[Windows Mobile Development and Hacking General] jkdsoft:
I've tried lgu2dir v2 and it doesn't work for me. I have a new hyundai tucson (european model) and may be its lgu format has changed.

A copy of upgrade.lgu can be found here: jkd.no-ip.biz/hyundai/firmware/085063_eu20_upgrade.lgu

Perhaps, a developer can get a working utility for this format.

Thank you
[Windows Mobile Development and Hacking General] kandom84:
hello, will be out again LGU 2? . There is an alternative way to scompattaremi files? thank you
[Windows Mobile Development and Hacking General] aquas12:
how to open a .pui file?

how to open a .pui file?
[Windows Mobile Development and Hacking General] herrleon:
lgu2dir

Hallo. Of which there exists another version?
[Windows Mobile Development and Hacking General] kandom84:
guys please help .. I offer a reward if they provide a solution
[Windows Mobile Development and Hacking General] kandom84:
up
[Windows Mobile Development and Hacking General] hexanet:
Hi, can you please provide lgu2dir an dir2lgu compiled for linux ?
[Windows Mobile Development and Hacking General] furb3t:
Is it possibile to have the source of both lgu2dir and dir2lgu?

Thanks
[Windows Mobile Development and Hacking General] iherbak77:
Hi!

It's been a while i know, but i would like to have the source code if possible of the tool to adapt to latest changes.

Could anybody help?

Thanks in advance,

István
[Windows Mobile Development and Hacking General] mishu28nmv:
Thank you for the software!!!
[Windows Mobile Development and Hacking General] Ducati87:
any news about it? thank u.
[Windows Mobile Development and Hacking General] NeeK9:
[MENTION=1619533]djeman[/MENTION] there is a new LGU archive, seams done under Linux OS.

Old tools are not recognizing anymore. Can be updated the tool?

I have seen you done a great job for old tool.

Thanks.
[Windows Mobile Development and Hacking General] fatihmehmet1453_:
[/COLOR]

My device is the medianav evolution. version 9.1.3 I create the lgu file like this; I create it with the command "dir2lgu -p m2 nng_restore new upgrade.lgu". I have tried many similar methods. In all methods, the device loads up to the 3rd line in 15 minutes. The device turns off. I'm looking at the Win CE side, and storage card 4 throws map files that need to be put into storage card 3. The device normally loads the lgu file I downloaded from the forums. This is the dir2lgu exe without opening anything and opening the lgu file I downloaded with lgu2dir.exe. Although I have closed it with, it still does not happen. Where am I doing wrong. Why does the storage card not throw into 4. I'm waiting for help. Thank you from now.

SM-A720F cihazımdan Tapatalk kullanılarak gönderildi
[Windows Mobile Development and Hacking General] Ozkanzng:
.

Usta "upgrade.lgu" dosyası cihazın sistem dosyası navigasyon için güncelleme yapacaksan eğer dosya adı "navigation_restore.lgu" olması gerek tekrar dene istersen
[Windows Mobile Development and Hacking General] Ozkanzng:
.

denedim ama bende de aynı şekilde oluyor. forumlardan indirince anında yüklüyor ben değişiklik yapınca 3 cubuk ilerliyip başa sarıyor.
[Windows Mobile Development and Hacking General] fatihmehmet1453_:
3 cesit oluşturma programi var 3 üde aynı. Bizdeki programlar çakma galiba orjinali rfc de yalçın 92 isimli üyede var ama paylaşma niyeti yok. Isı ticarete dökmüşler. :))

SM-A720F cihazımdan Tapatalk kullanılarak gönderildi
[Windows Mobile Development and Hacking General] fatihmehmet1453_:
These programs are not original. because as many files as I have created with this and similar programs, medianava was not loaded. Nobody wants to give the original program. Everyone is selfish.

SM-A720F cihazımdan Tapatalk kullanılarak gönderildi
[Galaxy S 4 General] mariolcela:
Everybody know that i9506 and note 3 have the same hardware except the ram 2 gb instead to note3 3gb.But same cpu, gpu,camera sensor etc.

So if you copy all the note3 lib folder to i9506 all the note3 apps will work on i9506

I tried to port note3 camera to my i9506 . evrything goes ok(UHD rec, smooth motion, golf and surround shot) worked perfect except filters.

I need help to fully working port note3 to i9506 and all snapdragon 800 devices.
[Galaxy S 4 General] sorg:
Filters are inside camera ISP firmware. If you just copied Note 3 apk/so files, then filters will be messed. You have to hack original i9506 SamsungCamera2.apk to add/unlock missed Note 3 functions instead of copy whole SamsungCamera2.apk from Note 3.

Actually, everything from Note 3 is inside i9506's Camera, just hidden and misses the calls. ;)
[Galaxy S 4 General] KingOfDope:
Does record in 2k? :o share :D :fingers-crossed:
[Galaxy S 4 General] mariolcela:
Yes evrything working perfect except filters.
[Galaxy S 4 General] mariolcela:
yes you can record in 2k.you just need to copy the note3 SamsungCamera2.apk to your i9506 system/apps. If your system is odexed you have to delete te SamsungCamera2.odex
[Galaxy S 4 General] KingOfDope:
okey thnx, I'll try
[Galaxy S 4 General] RubenMMS2:
how to make all working + filters

Hello Sorg,

as i could see you have a lot of experience with your Galaxy S4 9506. I have that superphone,too with the latest operator-free version 4.3 of march.

The only thing i would really like is to have the note 3 camera with everthing working and as i understant your message i do not have to overwrite

my samsung SamsungCamera2.apk of my 9506, but i do not know how can i hack my original i9506 SamsungCamera2.apk to add/unlock missed Note 3 functions, it would be nice if you could explain this...

Thanks a lot and best regards:o
[Galaxy S 4 General] EclipseX:
Can anyone provide e the samsumgcamera2.apk from samsung? It will work woth deodex 4.2.2?

Enviado do meu GT-I9506 através de Tapatalk
[Galaxy S 4 General] RubenMMS2:
SamsungCamera2.apk

Hello Mariolcela,

i would like to root today my Galaxy s4 i9506, and once finished i want to copy the SamsungCamera2.apk from the Note 3 system/apps.

So first i cut and paste my SamsungCamera2.apk + SamsungCamera2.odex into another external folder and then i only have to copy the Note 3

SamsungCamera2.apk, correct? Then i only have to open the app and now i should have the cam working without the above mentioned filters and front camara in beautyface. If i finally decide to have again my stock 9506 camera y only have to delete note 3 camera and copy again SamsungCamera2.apk + SamsungCamera2.odex,right.

My firmware is the latest 4.3 Stock Oxeded.

One more thing, the video you uploaded to the Youtube can´t be seen because it´s private.

Hope you could help me.:good::good:

Best regards

RubenMMS2
[Galaxy S 4 General] mariolcela:
Hi there

There is my new thread about porting note3 apps to i9506 http://xdaforums.com/showthread.php?t=2681742

[Porting Apps] Note 3 to i9506 Deodexed only
[Galaxy S 4 General] RubenMMS2:
From Note 3 camara apk. to stock again.

Hello Mariocela,

i cant ask you in the new threat you say, because i have less than 10posts in XDA:crying:

Only let me know if i decide to have again my stock 9506 camera y only have to delete note 3 camera and copy again SamsungCamera2.apk + SamsungCamera2.odex, right ? or must i do a wipe soemthing

:confused:

Thanks a lot and best regards:D

RubenMMS2
[Galaxy S 4 General] mariolcela:
First you have to flash a deodexed zipaliged rom.note3 camera not working with odexed rom.after you have just to download the .zip file which is on the other thread anf flash it.maka a backup first.

And enjoy your note 3 camera.
[Galaxy S 4 General] RubenMMS2:
not only copy and paste and delete .odex ?

So what you told in first page will not work ?:

you just need to copy the note3 SamsungCamera2.apk to your i9506 system/apps. If your system is odexed you have to delete te SamsungCamera2.odex

I thought i should only replace note 3 cam app and delete cam.odex from my i9506:confused:

Thanks and best regards
[Galaxy S 4 General] mariolcela:
If you replace just the i9506 camera app with note3 camera. (And if you have to delete the odex file if you using odex rom)but you cant use golf shot 360 panorama or fx
[Galaxy S 4 General] RubenMMS2:
Thanks a lot Mariolcela

:good:

Hopefully we can get a camara Mod with all included as i used with my galaxy s3 with HiperX Camara Mod from Note 2 to Galaxy s3

What i still do not know why it´s so important to have an desoxeded Rom, can i not copy all the Note 3 .apk´s and delete the odex stock files from my 9506? :confused:

have a nice weekend Mariolcela and thanks a lot ;):o
[Galaxy S 4 General] mariolcela:
No worries.

Have a nice day
[Galaxy S 4 General] GT35pro:
I posted this info on the LG G2 camera thread...There is finally a camera app that supports UHD. Check out Open Camera on the Google play store. I requested for the feature and now it's implemented. Thumbs up!!
[Galaxy S 4 General] jsk_999:
Actual camera of note3 can be fixed into i9506 ?

So, does that means the Actual camera of note3 can be fixed onto i9506 ?
[Galaxy S 4 General] MisterFail:
Good idea !
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] llcooljayce:
Hey guys,

I have an S4 that is stuck on the Samsung logo. I have left it for over an hour at a stretch with nothing happening except the phone is smoking hot.

I have booted into Recovery (stock) and wiped the cache and rebooted with the same result.

I am completely stock and unrooted ... any ideas?
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] jd1639:
I would try a factory reset in recovery
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] llcooljayce:
I assume I would lose all data and programs and have to re-set up the phone?
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] jd1639:
Yep, but you phone should with again
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] TikiThePug:
Have you tried wiping Dalvik cache in recovery as well?
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] jd1639:
He's on stock recovery
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] TikiThePug:
Ah, my mistake. Yes, so only option left is wipe data/factory reset.
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] mikemc63:
See the Samsung guy at any Best Buy. He has the Samsung Tool and will reflash it for free. You will be back to MK2. Easier than fiddling with various fixes. This happened to my wife's Sgh-i747. Init.d prop build error. Recovery flashing updates didn't work. Odin didn't work. Kies same.
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] azuziel:
Just re-flash the stock firmware from odin. Use the pda button, check auto-restart and f reset flags only. Use PDA button to browse to the downloaded IMG file. You can get your stock firmware from Samsung-updates.com . just make sure you get the i337m or the i337 (whichever you have, as they are not the same) for your region.
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] llcooljayce:
Did a factory wipe and reboot and I am back in business. Crappy that it happened that way but happy that I was able to recover
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] llcooljayce:
Back to the same problem!

I lost my LTE connection and reset my phone ... now I'm stuck back on the Samsung logo.

I assume I have a faulty phone ... any idea what could have happened?
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] TikiThePug:
So you say LTE dropped and you did another factory reset? If your APN settings are correct, then this shouldn't be happening unless there's a data block set on your account with your carrier. In this case, I would say something is wrong with the modem on your phone.
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] llcooljayce:
Figured out that it was the microSD card that was causing the issue. I used the program App2SD to move programs from my main memory to run them on the SD card. Somehow the files that were moved over corrupted the boot sequence somehow. Total chance that I removed the card to send out for warranty repair and tried to boot it one last time.
[T-Mobile Samsung Galaxy S II SGH-T989] cgibbons51:
So i'm getting this phone replaced with brand new one cause screen cracked soooo anybody think of any cool tests i could try. I.E. Drop tests or something :p
[T-Mobile Samsung Galaxy S II SGH-T989] hatememarkz:
Try a case? like this one http://www.amazon.com/gp/aw/d/B005U...f=sr_sp-btf_title_2_26&qid=1392144280&sr=8-26 n tell how the battery life is

?TEAMHELLDEVS?

?HELLKAT? T989
[Xperia Z1 General] KWOKSFUNG:
Thanks for the experiment and we found the problem now

I am no expert in android and i cant somehow help u

but maybe u can do experiment on android 4.2 becoz the camera is dead if bionz is dead

so u can do experiment if there's a way to make it working on unlock bootloader again

Maybe there's a way to modify the TA file of each of our phone, then reintroduce it again in unlock bootloader

So the bootloader is still unlocked, but all X reality bionz 5h1t works again?

Edit: I got what you mean wrong before lol
[Xperia Z1 General] One Twelve:
I cannot "clearly see" that low light procesing is better with lb than unlocked with that collage of yours.

Can you upload all the originals to flickr so we can better compare ?

I have to note the difference in fle sizes is minute, under 10% between lb & ub.

For so long people have wanted to disable BIONZ as they thought it over processed the images. You mean to tell me its as easy as unlocking the BL, post 4.3 ?

x-reality nobody cares about, because outside the phone not every screen runs it. I'd like images to appear how they would to everybody else.
[Xperia Z1 General] Xajel:
DRM, X-Reality, BIONZ, etc...

All these are software.. and guess what ? proprietary software also...

They need to protect these softwares... unlocking the bootloader will open the doors wide open, so any hacker might be able to copy the DRM keys, and copy them to another devices.. or even trying to reverse engineer the DRM keys and find a way to decrypt the content...

Same goes for BIONZ, X-Reality...

That's why unlocking the bootloader will remove these functions to protect these proprietary softwares... and developers know this and respect this also.. some developers -open source developers- might have different opinion regarding this, but all share the basic idea is to protect their softwares.. no open source developer will be happy to see his work is being used without credit specially when the one who copied is actually making money from it...

Thanks god, we can actually backup TA partition, so when we re-lock the bootloader we can have every thing back like how it was before, other makers you can't do this, and some also the unlocking is irreversible... not to mention Samsung Knox which is the worst.. you can flash what ever you want, but if you did ( even a simple root ) the Knox bit will be changed and then warranty is void !! it's a one way process... regardless if the what you flashed is might actually make any harm to the phone or not...
[Xperia Z1 General] showlyshah:
The attached rar file contains a 9+ mb bitmap image.. Just zoom it in ur pc.. And watch.
[Xperia Z1 General] One Twelve:
29 pics collage reduced to the size of 9 MB !! you've got to be kidding me.

Whereas each pic in reality is 1.5-2MB.

You know what i can't tell much of a difference here at all.

Put them on flickr.
[Xperia Z1 General] heahmad:
so if i used the drm key patch, bionz will still not work right?

i need to relock my bootloader
[Xperia Z1 General] krabappel2548:
I'll do some tests with my Z1 and post full resolution pics
[Xperia Z1 General] showlyshah:
Dude thats not what i intended.. I rezied those pics to fit into a canvas. 8 mp shots are so large that u just cant match them side by side.. You can zoom in the bmp ( to fill ur screen) and compare pics side by side. Just check the colour changes.. And illumination. And if u r checking for precession details.. I must notice that, bionz is concentrated for low light enhancement and less grainy pics, than anything else. Any way i will uplaod a zip soon.
[Xperia Z1 General] showlyshah:
Well we cant exactly say that. Coz we have yet to find out what works or what not works. Wait till we find out. Or you can check urself, like what i did. Ub-lb pic comparison.
[Xperia Z1 General] showlyshah:
Dude can u check its perfomance in good lighted condition. If u can, then use a room with a constant light, and not an outdoor pic. As lighting variations can occour. Shoot the same object. With same camera position. Let us confirm what sony hides from us.