yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Development and Hacking General] gmap:
Hi,

I write some code that can modify the ROMs, it can save your time to add and delete files by hand.

RomMaster V2.0 Beta

Usage: RomMaster [options] imagefile

-d[m] <dfile> - delete file

replace file/module together with -a option

'm' delete module, deleting module isn't suggested

-a[c] <afile> - add file into the rom

'c' means use compress(need CECompressv4.dll)

-o <ofile> - output imagefile name

-v <0~9> - print info, 0 detail, 9 only show errors, default is 5

-w <5> - 5 is 2005, default is 2003&SE

-x - only save XIP(OS) data

-s <0x...> - Fix XIP start address(Hex)

-e <0x...> - Fix XIP end address(Hex)

In replace mode, 'c'&'m' is useless

It is now 2.0 Bata Release.

You can delete file/modules you don’t like from the ROM.

RomMaster –d “filename” –o “newROMname” “ROMname”

You can add files into the ROM.

RomMaster –a “newfilename” –o “newROMname” “ROMname”

You can replace file in the ROM

RomMaster –d “filename” –a “newfilename” –o “newROMname” “ROMname”

“newfile”’s size should be the same or small than the file you want to replace, new file will occupy the same space as the old one.

I test some ROM in my SP; include SDA, Dopod 575 & 585. I only tested one 2005 ROM. Replace module may don’t work, I am still working on it.

Before you burn the image generated by the tool, make sure you finish follow step:

1.	RomMaster –o “TestROM” “SrcROM”

2.	Do binary compare “SrcROM” with “TestROM”

a)	If they are 100% same, I think you can safely use this tool.

b)	If they are 99% same, you should be careful, make sure you only burn the OS part. Because some ROM are modified by someone before, there are maybe some useless data in the ROM, only burn the OS part won’t damage your SP.

c)	Else, the “SrcROM” may contain some unknown structure or data, the “TestROM” may won’t work, don’t try burning it into you SP. If you want to modify it, tell me where I can find the ROM, if I am free, I can give some help.

3.	I only tested one 2005 ROM, its structure isn’t very correct, and I think that ROM is extracted form emulation ROM. So if 2005 ROM isn’t 100% same, don’t try and be careful even they are 100% same.
[Windows Mobile Development and Hacking General] ncruz:
This is great!!!

Going to try it!
[Windows Mobile Development and Hacking General] oltp:
ncruz,

I'll wait for your experience, cause if this is working we can all save space by directly burning upgraded cameras etc into the rom. will save me at least 1MB ram or storage.

The tools sounds great gmap.
[Windows Mobile Development and Hacking General] mamaich:
There already exists MKROM tool - http://www.xs4all.nl/~itsme/projects/xda/romtools.html

it is 100% working with WM2003/2003SE devices. But it is rather inconvenient.

I'll test your "-w 5" option on a real device. Real WM5 device has one XIP kernel section with only few modules and about 1Mb free space. All other data is kept in IMGFS partition, I'm currently working on a tool that would work with it.

And one question. When you add new files to ROM, do you add them to a new XIP or extend the existing XIP? And when you delete modules, do you reuse the freed space after adding new ones?
[Windows Mobile Development and Hacking General] gmap:
That's great if we can modify IMGFS partition:) I am waiting for it.

I know that tool and i don't know how it works. I made this tool only for interesting.

You can find XIP chain in 2003 ROM, by XIP chain, you can know the address and length of each XIP section. I will scan the hole XIP region before inserting the new file to reduce memory fragment. When a module is deleted, its space will be freed and reused when adding files. I freed about 6M space in my own ROM by deleteing the useless files, and add about 5M files into it, it works OK.

It seems 2005 don't have XIP chain information in the ROM, i only test one 2005 ROM, and i didn't find the XIP chain info. If your 2005 ROM don't have XIP chain info too, you should modify ROMHDR.physlast to a correct value by hand. Because if i can't find the XIP chian info, I use ROMHDR.physlast to decide the end address of XIP. Or, there are almost no space for you to add new file. My 2005 ROM physlast=0x8c253278, and only about 78732 bytes free before 0x8c253278.

I update the the tool V2.2 , fixed a bug when deeling with MDA(818) ROM.
[Windows Mobile Development and Hacking General] mamaich:
I've PMed you a test version. I'll make it available to public later.

My ROM has all needed info, I had to extract everything from rom image after 1C0000 address to a separate file and gave it to your tool. It is working perfectly. I've managed to delete and add a new file to ROM. I have not tested "-dm" option. It seems that all modules/files in XIP section of WM5 are uncompressed. I'm using BlueAngel's WM5 ROM. Later I'll try to replace boot.hv file with my own version.

Can you add a switch to your program "-s bytes" so that it woud skip the given number of bytes from file start, so it would be possible to work directly on NBA files with header?
[Windows Mobile Development and Hacking General] efjay:
gmap, can you tell me what file i can use this with? Is it for nbk or nba files? Thanks
[Windows Mobile Development and Hacking General] TofClock:
I'm not able to edit the xip sextion ...

i've tried your tool on 1.60c.07CHS rom for xdaII :

RomMaster.exe -w 5 -x -o test.bin nk.nba

result :

[Info] It is a common ROM.

[Error] File is damaged, end address small than start address.

[Error] File is damaged, end address small than start address.

RomMaster.exe -w 5 -x -o test.bin imgfs_raw_data.bin (created with mamaich's tool)

result :

[Info] It is a common ROM.

[Error] Load nb00 failed.

RomMaster.exe -w 5 -x -o test.bin img.bin (created by nba part 1C0000 to end)

result :

[Info] It is a common ROM.

[Error] File is damaged, end address small than start address.

[Error] File is damaged, end address small than start address.

How to save the XIP section ?
[Windows Mobile Development and Hacking General] mamaich:
This would not work. My tool works with IMGFS and you need to edit XIP
[Windows Mobile Development and Hacking General] TofClock:
and ... how to edit XIP ?
[Windows Mobile Development and Hacking General] celiruss:
mamaich, or anyone else, what did you use to extract after 1C0000?

splitrom?

any help would be greatly appreciated.

Russ
[Windows Mobile Development and Hacking General] TofClock:
Wow , just an hex-editor like winhex or edithexa
[Windows Mobile Development and Hacking General] celiruss:
i tried that w/xvi32, and it didn't seem to work. I guess I'll try again
[Windows Mobile Development and Hacking General] ahlok_hk:
Thx gmap for this great tool. 8)

Recently I want to replace the TureFFS.dll at the XIP area of Wizard OS ROM.

ftp://xda:xda@xda-developers.com/Uploads/HTC_Wizard/Roms/Qtek/Qtek_9100_1_6_7_ENG__OS_ONLY.zip

I type the following command and it says that it cannot replace the file.

D:\>RomMaster.exe -d TrueFFS.dll -a TrueFFS.dll -w 5 -o new.nba os.nba
[Info] It is a common ROM.
[Warning] o32_rom(0x8c268ef8)'s o32_data at 0x00000000 is zero.
[Warning] Found dif-referenced region [OLD] Address=0x8c1e1290 Length=0x00000800 ObjectType=0x00200000
[Warning] Found dif-referenced region [New] Address=0x8c1e1290 Length=0x00000800 ObjectType=0x00008000
[Warning] Found dif-referenced region [OLD] Address=0x8c1fe538 Length=0x00000600 ObjectType=0x00200000
[Warning] Found dif-referenced region [New] Address=0x8c1fe538 Length=0x00000600 ObjectType=0x00008000
[Warning] Found dif-referenced region [OLD] Address=0x8c211018 Length=0x00000a00 ObjectType=0x00200000
[Warning] Found dif-referenced region [New] Address=0x8c211018 Length=0x00000a00 ObjectType=0x00008000
[Warning] Memory Block(0x8c101000,0x8c1510ac) overlap with Block(0x8c10288c,0x8c1028b8).
[Error] You want to get an object whose size is 108, but it is 112. RomOffset=0x8c268e00
[Error] Could not replace 'TrueFFS.dll' with 'TrueFFS.dll'.

However, I can successfully replace the boot.hv file. Do you know why?
[Windows Mobile Development and Hacking General] gmap:
In replace mode, new file should not biger than old file. So, you should delete old 'TrueFFS.dll' first, then add the new one(You can delete some file next to 'TrueFFS.dll' to get free space or move it to a big free space, then modify the file size and related infomation of 'TrueFFS.dll' by hand to make it bigger). Replacing module isn't stable, I confused by some of the module data. If you want to replace a module, it may not work. I haven't find a way that can be used to calculate all of the data.
[Windows Mobile Development and Hacking General] ahlok_hk:
Thx for your explanation. Actually the new file is smaller than the one being replaced. And I just found that I can only delete those non-module files while all modules could not be deleted.

Thx again. Hope to see new version if you have time to find out how to calculate the data. :wink:
[Windows Mobile Development and Hacking General] dherrero:
How can i extract a kernel file (kbbdrv.dll)?

thanks
[Windows Mobile Development and Hacking General] mamaich:
dumprom tool

But if you'll extract this or any other XIP DLL and then readd it to the same, or any other ROM it would not work.
[Windows Mobile Development and Hacking General] MR2:
Hello,

I have a Apache Rom,

I would like to delete nk.exe are replace it.

iv tryed:

rommaster -w 5 -d nk.exe nk.nba

also

rommaster -w 5 -d nk.exe -a nk.exe nk.nba

keeps telling me i can delete that file.

just to let you know: if i use dumprom i get the boot partition files (containing nk.exe) and if i use imgfs i get all the os files (not containing nk.exe)

Any help would be great thanks
[Windows Mobile Development and Hacking General] mamaich:
you cannot delete nk.exe, and you should not even need to do that.
[Xperia Z Q&A, Help & Troubleshooting] davibs:
Ehi guys, what are these black spots?

I'm reallu hungry about :
[Xperia Z Q&A, Help & Troubleshooting] whitefang3456:
Pls refer following thread http://xdaforums.com/showthread.php?p=42243013 due similar problem and discussion has been made earlier. Thank you

Whitefang
[Xperia Z Q&A, Help & Troubleshooting] epicsha:
Its simple camera issue, almost all the Xperia z will have dots in the camera after a certain period of time.(i do have it in my Z as well)

i am trying to trace the cause of it.

is it caused due to drop damage.. or some kind of soft materiel pops in the camera lens.

100% i will be replaced camera if u got warranty
[Xperia Z Q&A, Help & Troubleshooting] HellRoot:
I just got mine replaced... And it is due to heat damage most of the time... Sony has just made a bug and don't care :)
[Galaxy S 4 Q&A, Help & Troubleshooting] Acky.:
Hi fellow s4'ers,

I have got an galaxy s4 (i9505) that I got from Carphone warehouse (UK) and I am with the T-mobile a.k.a. EE. Yesterday my galaxy decided that its given up on itself and started slowing down. When I go between my screens its slow, like laggy, if I open any apps (call, message) response is slow and if I try playing games for example it feels like I am on LSD because its way too slow and glitchy.

Would anyone have any clues of why and any ideas how to fix this? Let me know if you have idea what is going on, I have not moded it before and probably never will as I dont want to void my insurance like I did on my Dell Streak, but anyway there is nothing fancy done to apart from having apps on my phone as you do.

Let me know if you need any more info or if there is any tools I can use to test my galaxy and see if its working fine, I have very basic dev skills but I have fallen behind as I stopped modding since I gave up my dell streak so thats like since more than a year ago.

Cheers ;p
[Galaxy S 4 Q&A, Help & Troubleshooting] RunjitPunjit:
Mine has done exactly the same since it updated yesterday. I've noticed the battery life is a lot worse as well.
[Galaxy S 4 Q&A, Help & Troubleshooting] Acky.:
So I had a play around, reluctantly reset my phone and realized that it was themer that did this. Installed it again, rebooted phone and it started doing it all over again. Removed themer and runs as smooth as a babys bottom.
[HTC Sensation] lopezjr:
I need a step by step guide to update my Htc sensation xe.

It is still running under GB 2.3.4

The thing is i can't go through with a OTA update because when i bought it it was already running under a custom rom which is 1.73.708.2 ( software version)

Under recovery mode it says.

Locked

Pyramid PVT ship S-off RL

Hboot 1.18.0000

Clockwork mod

AlpharevX v4.0.1.4

If there's any info that you would guys need just let me know.

Anyone's help would be much appreciated.:fingers-crossed:
[HTC Sensation] rzr86:
flash 3.33 universal firmware from here

http://xdaforums.com/showthread.php?t=1459767

follow the instructions to the letter

and before flashing check md5 sums(important)

after that you will have to flash an ics or jelly bean rom from recovery

because your current rom(gingerbread) won't boot with ics firmware
[Xperia SP Q&A, Help & Troubleshooting] asking:
Hello,

I am worried little about warranty issue. I have heard that once your root your phone warranty is void. So in order to keep myself safe from such hassles, i want to take the FTF or anytype of backup of my complete phone operating system / image backup just like symantec backup in windows. Is it possible ?

Please guide me how ?

Thanks..
[Xperia SP Q&A, Help & Troubleshooting] Siddhesh:
Rooting will not void ur Warranty.

No u cant backup ur phone u need root and cwm for that just download FTF so u can recover ur phone if any problem occurs
[Xperia SP Q&A, Help & Troubleshooting] Ainster:
Wait wait wait so if i root my phone and give it in to repair center they will repair it ?
[Xperia SP Q&A, Help & Troubleshooting] Siddhesh:
No u need to unroot it first
[Xperia SP Q&A, Help & Troubleshooting] smogf:
When you only rooted your device on original software you can repair your system (read once again install) through PC Companion.

Wytapatalkowane z Xperia SP C5303
[G2 Q&A, Help & Troubleshooting] jackchong0828:
Hi, so i am concerned of the Voice Activation of the Snapdragon 800 .I just can't find people online talk about it. So can anybody help me? Thanks so much:laugh:
[G2 Q&A, Help & Troubleshooting] hd-renegade:
Is there any Voice Activation built into the G2??
[G2 Q&A, Help & Troubleshooting] bhd2786:
It works on mine just like it did on my ole gnex .. I don't use it much though
[G2 Q&A, Help & Troubleshooting] DeaconBoogie:
I didn't even know...

How does one activate it?

And, more importantly, how does one shut it off?
[G2 Q&A, Help & Troubleshooting] kcharng:
?? That would be something I have never heard off before for g2.

-LG G2
[G2 Q&A, Help & Troubleshooting] jackchong0828:
Yes, so i am concerned about the existence of this function even Samsung and LG don't make ads about this voice activation
[G2 Q&A, Help & Troubleshooting] darabo:
View attachment 2336190

Well what do you know there is voice activation on the G2 already!

I just tried to use "Voice Mate" and it's not responsive at all...

Is it possible to replace it with Google Now or the Moto X's voice activation?
[G2 Q&A, Help & Troubleshooting] crashN2u:
Well, I'll be.... I really liked that feature on the droid maxx, but didn't want to get a substandard handset to get it.
[G2 Q&A, Help & Troubleshooting] kcharng:
Well well what a surprise. It does actually exist. =) need to play around with it some more. It was one if the first thing I ignored when I got the phone since I found it to be gimmicky.

+1 to op for pointing this out

I put down some screen capture for you guys for those who have trouble locating it. =) enjoy!

-LG G2
[G2 Q&A, Help & Troubleshooting] tiguy99:
Was playing with it yesterday. Surprisingly it works pretty well
[G2 Q&A, Help & Troubleshooting] xtremeyouth1:
I am actually interested in the "Always On" voice activation ala the Moto x so the phone can be spoken to while asleep and then taps into Googles voice commands. This was demoed by the Snapdragon folks using Hello Snapdragon command I believe
[G2 Q&A, Help & Troubleshooting] kcharng:
Played with it a bit and couldn't find a way to make it useful. It also doesn't work with nova home screen but works well on lock screen. So off it goes for now.

-LG G2
[G2 Q&A, Help & Troubleshooting] friguy3:
It only works on the lock screen, which really isnt voice activation like motoX or droids, I might as well swipe up and open google now and just ask google. Id want it to work with the phone/screen off
[G2 Q&A, Help & Troubleshooting] Ploxorz:
Pretty sure that the snapdragon 800 has a voice processor physically built in similar to the moto x that can listen for keywords even while in standby. I just think its not being fully utilized by lg in the same way as motorola. It might be possible for apps in the future to configure it. Please correct me if I'm wrong
[G2 Q&A, Help & Troubleshooting] WizeGuyDezignz:
No disrespect to anyone here, but this implementation of the feature is a joke.
[G2 Q&A, Help & Troubleshooting] xtremeyouth1:
That's correct. It's physically built into the chip. The manufacturers just have to access it. Works on standby so that it's always listening even when on standby and the processor is idle.
[G2 Q&A, Help & Troubleshooting] lyrical1278:
That's because lg didn't tale advantage of the feature at all. What you all are talking about with voice mate is the use thing the s4 does with svoice. What the s800 has is the ability to be in always listen mode like the motoX. Except neither Samsung (with the note 3) nor lg coded for it. So the top feature of the s800 is t used by any OEM as of right now
[G2 Q&A, Help & Troubleshooting] crashN2u:
I can't get it to launch via hotword. I don't remember if I turned it on or where to find the on/off. Anyone?

Ok, I found it. So, I guess you can't launch the voice search. You have to be in either voice mate or google now before it recognizes yhe hotwords. Someone correct me if I'm wrong.
[G2 Q&A, Help & Troubleshooting] xtremeyouth1:
That's exactly what I was afraid of. I was looking for Moto x and got Samsung S-voice. Sigh. My only hope is for some intrepid programmer to figure out a way to unlock this feature.
[G2 Q&A, Help & Troubleshooting] zathus:
Utter works pretty good considering its still beta
[G2 Q&A, Help & Troubleshooting] jackchong0828:
Well ,so how is it? I mean the Voice Mate. Like the AI thing, better than S voice or worse. :cyclops:
[G2 Q&A, Help & Troubleshooting] linjes:
It's better than S-voice IMO. Anyhow does anyone have google now missing on their devices? I try to set reminders but it asks me to enable google now then the screen just resets and I'm back at square one.

Voicemate kinda sucks though, it fails to connect to LG servers frequently
[G2 Q&A, Help & Troubleshooting] WizeGuyDezignz:
Incorrect. Samsung implemented it correctly with the Note 3 and S-Voice unlike LG with the G2 and Voice Mate.

With the Note 3 the phone can be asleep and you can wake it up by saying "hi galaxy". Then you can give it whatever command that you want like "open camera" for example.

LG missed the boat on this one.
[G2 Q&A, Help & Troubleshooting] lyrical1278:
My fault. I thought they didn't implement our into the note 3. I can stands to be wrong on that. I just know LG did miss the boat on that one

I wonder if open Mic will work on here without killing the battery
[G2 Q&A, Help & Troubleshooting] crashN2u:
So, seeing as how they are running on the same processor, couldn't it be deconstructed and modified to work on the G2? Did Samsung split it off into it's own APK like Motorola did with theirs?
[G2 Q&A, Help & Troubleshooting] tiguy99:
I heard Moto X has a dedicated low power chip for this feature to work.Unless the G2 has the same chip on board, it ain't happening
[G2 Q&A, Help & Troubleshooting] darabo:
The a part of the chip in the Moto X is the voice activation chip in the S800.
[G2 Q&A, Help & Troubleshooting] crashN2u:
The natural language processor is a very low power chip that, with the contextual chip, allow the voice control to work; but it was designed to work in conjunction with the s400. I think this was done because it allowed them to make a phone that was on the cheaper end of the spectrum. For example, the phone was designed to be 720p, The s400 allows up to a 720p display. Going to the s600 would allow for 1080p, but they chose not to go that route. I believe, that it was cheaper for them to go with the s400 and add on the 2 chips for voice control rather than just use the s800.

The s800 is already equipped to provide ultra-low power voice activation. No additional hardware is needed. It simply needs to be taken advantage of. From what I understand, Samsung may, or may not have taken advantage of it, depending on who you talk to.

---------- Post added at 09:58 PM ---------- Previous post was at 09:42 PM ----------

No it's not. The natural voice processor and contextual chip were designed in-house by motorola, but provided by a 3rd party. It works in conjunction with the s400, which does not have the s800 "voice activation chip". In reality, there is no voice activation chip. Voice activation is a combination of the CPU, DSP, and audio codecs working together to allow voice activation to happen on the s800. It is completely baked in and ready to go. LG simply needs to implement it.

If Samsung is indeed using the built-in snapdragon voice activation, the software should be able to be ported over to the G2 after modifications, in theory that is The problem is, Samsung engineers like to hack together their software to make whatever they need to, work. So, it may be a lost cause until LG or another manufacturer starts using it.
[G2 Q&A, Help & Troubleshooting] xtremeyouth1:
One thing to consider is when LG and Google release the Nexus phone, if it does indeed have the voice activation as rumored, it may very well be able to be ported to the G2 without much issue. At least that's the hope since I really would like this feature.
[G2 Q&A, Help & Troubleshooting] Mandelbrot.Benoit:
I really hope we can get something ported. Regardless of the reason I think LG should have diverted their resources from making some of this CRAPware to utilizing the hardware they ship with their phones.
[G2 Q&A, Help & Troubleshooting] crashN2u:
It's very likely to happen. Apparently Qualcomm is pushing for its use. I don't know why, but they want to make it a staple feature for the next generation. I'm assuming to capture more market share.
[G2 Q&A, Help & Troubleshooting] jackchong0828:
I think you may be have to focus that lg doesn't even promote the voice activation
[G2 Q&A, Help & Troubleshooting] rokfor2000:
I was going to buy Nexus 5 as I hoped it would have "OK Google" style voice activation implemented, just like Moto X. However as Google dropped the ball on this one I am seriously considering getting G2 instead.

Is there something out for G2 that would take the adventage of S800's voice activation already (or is it being worked on)?
[Verizon Galaxy Note 3 Themes and Apps] stu5797:
Hello. I really hate that my screen turns on when receiving a text. If someone can mod this attached Verizon stock MMS apk I would gladly donate $10. Wish I could donate more. Good luck and hope it can be done. Probably can't be done with our Verizon luck :(
[Verizon Galaxy Note 3 Themes and Apps] jdec529:
It I'm not mistaken it can be done with Wanam
[Verizon Galaxy Note 3 Themes and Apps] stu5797:
unfortunately it cannot. The settings don't stick for this mod on wanam
[Verizon Galaxy Note 3 Themes and Apps] pimpmaneaton:
https://play.google.com/store/apps/details?id=com.probcomp.smsnotifier

I know it is not a fix for the stock app but I use that for a pop up cause I really like that feature from AOSP roms. With that popup you can choose to have the screen turn on or not.
[Verizon Galaxy Note 3 Themes and Apps] stu5797:
Thanks for the input but I was really wanting stock.
[Verizon Galaxy Note 3 Themes and Apps] Southern_mind:
There's one in the t-mobile section but I'm not sure if it would work for us.

Sent from my VZW Galaxy Note 3
[Verizon Galaxy Note 3 Themes and Apps] stu5797:
Ours unfortunately is different :(