editing ics sense 4 apks error (help!?) - Desire HD Q&A, Help & Troubleshooting

hey i been trying to edit apks like HTC_IME.apk and system apk mostly any apk in the rom with apkmanager but keep getting error 21. every time i try to decompile it i tryed to decompile with dependencies but im still getting the same error .
i been trying to tweak virtuous primadonna sense 4.0 rom. last rom i used apk manager was for GB rom. i also looked into this thread
http://forum.xda-developers.com/showthread.php?t=1511730
i been looking over the forums and Google trying to find the answer but im getting half answers and more questions....... does anyone know what i been doing wrong? what i need to change? if more info needed just ask i will deliver. thanks for any help.
edit:
log for apk manager:
--------------------------------------------------------------------------
|11/04/2012 -- 14:04:36.29|
--------------------------------------------------------------------------
java version "1.7.0_02"
Java(TM) SE Runtime Environment (build 1.7.0_02-b13)
Java HotSpot(TM) 64-Bit Server VM (build 22.0-b10, mixed mode)
Could Not Find C:\apkmanager\place-apk-here-for-modding\../place-apk-here-for-modding/signedHTC_IME.apk
Could Not Find C:\apkmanager\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedHTC_IME.apk
I: Baksmaling...
Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78 0a 30 33 36 00
at org.jf.dexlib.DexFile.<init>(DexFile.java:377)
at org.jf.dexlib.DexFile.<init>(DexFile.java:274)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:48)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:33)
at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:68)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:85)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)

after installing ics apktool from this thread to my apk manager it seems to decompile hassle free.
http://forum.xda-developers.com/showthread.php?t=1558171&page=3

Related

adding software while cooking a ROM

I've tried cooking a new WM2003 ROM several times with some software add-ons selected, but when i reflash it to my SX56, its not there.
This is what I selected on http://lumpistefan.dyndns.org:
WM 2003 Final
A.30.09 ENG Siemens
No AutoConfig data
Add software and modify ROM
create 'System Tools' subfolder under 'Programs'
Notification Clear Fix
Frequency Tuner
Olive Tree BibleReader
Olivers ActionPack
Peters GameBox
Today Screen
Windows Mobile Southpark
Lock all keys except power button while off
Remove 'stk.lnk' from Startup folder
zipped NK.nb1 (SD-card flashing)
I attached the log (if you think it might help).
Any ideas? Am I missing a step somewhere?
I even tried downgrading to PPC2002 first, but that didn't make a difference. Do I need to go back and add other software afterwards? If so, where can I get other software?
Any help is appreciated.
Thanks,
Kyle Chenier
kylechenier-at-hotmail-com
Hmm. it worked for me...
Getting following log:
Code:
write xip block starting at 81720000, with 7 files
write xip block starting at 81bc0000, with 13 files
write xip block starting at 80160000, with 3 files
write xip block starting at 80650000, with 3 files
write xip block starting at 81030000, with 6 files
this rom seems to be A.30.09 ENG 2004-01-01 Siemens WM2003
this bootloader seems to be V5.22 2003-05-15 17:46:55
no operator rom found
80000000 - 80040000 -- bootloader 0 files 1 modules
80040000 - 8015e640 9 XIPKERNEL 5 files 5 modules
80160000 - 8017fe30 12 XDA_DEVELOPERS3 3 files 0 modules
80180000 - 80375f08 8 KERNEL 11 files 14 modules
80380000 - 8064b430 7 OS 20 files 36 modules
80650000 - 8066fdec 13 XDA_DEVELOPERS4 3 files 0 modules
80670000 - 80be4348 6 SHELL 107 files 88 modules
80c00000 - 8102fea4 5 BROWSING 11 files 36 modules
81030000 - 8104ffc0 14 XDA_DEVELOPERS5 6 files 0 modules
81050000 - 813f0cac 4 COREAPPS 95 files 44 modules
81400000 - 815d3090 3 EXAPPS 34 files 7 modules
815f0000 - 8171cdc0 2 PHONE 57 files 19 modules
81720000 - 8177ffbc 10 XDA_DEVELOPERS1 7 files 0 modules
81780000 - 817823e4 -- xip chain 14 xip entries
817c0000 - 81bbb518 1 MISC 136 files 42 modules
81bc0000 - 81c87004 11 XDA_DEVELOPERS2 13 files 0 modules
81ec0000 - 81ee5800 -- bitmap : ffffffff .. ffffffff
adding: NK.nb1 (deflated 45%)
Try this ROM:
ftp://xda:[email protected]/Uploads/NK.nb1.zip
Stefan
Stefan,
I managed to add the software after flashing the ROM (except the games). After I resync everything to my desktop, I'll try that one.
Thanks for your help!
Kyle

Need help for extract File from rom (first XIP block?)

Hi,
I would like to extract 2 dll from GERMAN Rom.
I am intersted to msimda.dll and msimde.192.dll and i ma interested to learn how to work with universal rom.
But it drive me crazy...
I have read all the day this forum but i can't go on.
This is my last experiment
nkge.nba is qtek german rom (decoded)
mkdir files1 files2
dump nkge.nba -o 00000400 -e 001d2100 xip1.nb <-Offset From Universal Wiki
dump nkge.nba -o 00310000 -e 002d0000 xip2.nb <-Offset From Universal Wiki
dumprom -5 -d files1 xip1.nb <-Give me an error (after 27Files) :
error decompressing 90702000L0001f68d
fwrite: Invalid argument
error writing uncompressed data
dumprom -5 -d files2 xip2.nb <-OK
I have 59 files but there are no msimge.dll and msimge.192.dll probably they are in first xip block that give me an error.
Can you help me please?
Wat i am doing wrong?
byte.
plese somebody could help me?
Just a litle information or a link to read and study. i have searched all over the forum... but i am still blocked.
Hi,
try to read this and then search on the forum for imgfs tools.
I've extracted files sucessfully with those tools but not directly from the device instead from a nbf file.
Hope this will be useful.
Sergio.
tripledes said:
Hi,
try to read this and then search on the forum for imgfs tools.
I've extracted files sucessfully with those tools but not directly from the device instead from a nbf file.
Hope this will be useful.
Sergio.
Click to expand...
Click to collapse
Yes...thankyou very much for your reply.
I have just readed these posts but i can't go on.
I have nk.nba that is my Rom image decoded with HTC64 "Extended ROM Tool.exe" .
So i am trying with dumprom.exe and with viewimgfs.exe with the procedure described by mamaich in http://forum.xda-developers.com/showthread.php?t=249836
I can't extract file.
ViewImgFs (after a lot of " Unknown header type, FS_DATA_TABLE??") stop with message:
"C:\Documents and Settings\stefano\Desktop\HTC\imgfstools>Error! ProcessFixups: cannot map dump\dhcp.dll\s15627"
And i have a "dump" directory with this structure
dhcp.dll <DIR>
eapchap.dll <DIR>
iexplore.exe <DIR>
jscript.dll <DIR>
urlmon.dll <DIR>
ws2instl.dll <DIR>
Only file with same name of directory listed before.
Can you help me with step by step indication please?
1) To extract from rom upgrade (nk.nbf):
Code:
alpinenbfdecode.pl -r nk.nbf nk.nb
mkdir files ; rdmsflsh.pl -d files nk.nb
2) To extract from device, follow instructions here, but replace "FLASHDR" for "TrueFFS" in Universal (instructions are for Hermes).
Then you get "File02.raw" which contains dumped imgfs, files can be extracted either with mamaich viewimgfs.exe or itsme rdmsflsh.pl.
3) If none of the above works, try to dump the files from the device using mamaich TestWM5.exe or Buzz's grab_it!.
Good luck
pof said:
1) To extract from rom upgrade (nk.nbf):
Code:
alpinenbfdecode.pl -r nk.nbf nk.nb
mkdir files ; rdmsflsh.pl -d files nk.nb
2) To extract from device, follow instructions here, but replace "FLASHDR" for "TrueFFS" in Universal (instructions are for Hermes).
Then you get "File02.raw" which contains dumped imgfs, files can be extracted either with mamaich viewimgfs.exe or itsme rdmsflsh.pl.
3) If none of the above works, try to dump the files from the device using mamaich TestWM5.exe or Buzz's grab_it!.
Good luck
Click to expand...
Click to collapse
Thankyou... just another info..please.
I would like to extract file fro a complete German rom.
I am trying with nk.nbf extracted from UNI_QTEK_13096_185_10900_GER_Ship.exe .
Why did you suggest to me to use "alpinenbfdecode" i have an Universal.
I decode my nbf files with
http://buzzdev.net/index.php?option=com_content&task=view&id=65&Itemid=1
is this wrong?
Sorry for my questions but i have not Perl on my pc and i would like to know if is realy necessary to install it.
So just for learning... can you tell me why is wrong the operations that i am doing?
Thankyou very much!
Bye
slevin said:
Why did you suggest to me to use "alpinenbfdecode" i have an Universal.
Click to expand...
Click to collapse
alpine, magican, universal... they use the same NBF format version, so the script is also valid to decode universal NBF files.
slevin said:
I decode my nbf files with
http://buzzdev.net/index.php?option=com_content&task=view&id=65&Itemid=1
is this wrong?
Click to expand...
Click to collapse
This produces a decoded file (.nb), same as if you would run "alpinenbfdecode.pl" with -d parameter (decode), but I suggested you to use it with -r which outputs a RAW file, because rdmsflsh.pl expects a raw file and not a decoded file.
AFAIK the decoded file contains a header while the raw file doesn't, in the German Qtek ROM you said, the header looks like this:
Code:
00000010 51 54 45 4b 5f 31 30 32 20 20 20 20 20 20 20 20 |QTEK_102 |
00000020 47 45 52 20 20 20 20 20 31 2e 33 30 2e 39 36 20 |GER 1.30.96 |
00000030 20 20 20 20 20 20 20 20 55 6e 69 76 65 72 73 61 | Universa|
00000040 6c 20 20 20 20 20 20 20 30 20 20 20 20 20 20 20 |l 0 |
00000050 37 30 30 30 30 30 30 30 31 30 30 30 30 30 20 20 |70000000100000 |
00000060 30 20 20 20 20 20 20 20 31 36 31 31 31 31 31 30 |0 16111110|
00000070 30 30 30 30 30 30 20 20 61 39 62 33 61 64 39 35 |000000 a9b3ad95|
Probably someone more experienced with the formats can tell you the exact differences, otherwise if you know a bit of programming you can look at the program's source and try to figure out yourself
slevin said:
Sorry for my questions but i have not Perl on my pc and i would like to know if is realy necessary to install it.
Click to expand...
Click to collapse
Try the other methods which do not involve using perl, if you don't success doing what you want then install perl, it's just 5 minutes to do it and you'll benefit from many .pl applications from itsme... the process to install it and all the needed modules is explained on the wiki page I pointed you before
slevin said:
So just for learning... can you tell me why is wrong the operations that i am doing?
Click to expand...
Click to collapse
Sorry I don't know for sure, probably you are using an encoded file and the program you use to extract the files from it expects a raw file, I guess you can use prepare_imgfs.exe to fix this, but I'm not sure... you should better experiment with the tools until you accomplish your goal
ThankYou
Sorry for my delay ad thankyou very much for your help.
It works fine!
Now i am going to try to replace the two dll files and then i would like to build a custom cab to put in the extended rom.
Thankyou.

Help wanted for interesting hack job

I'm trying to hack my in car satnav, it runs CE and I'm able to decompile one of the binary images and see some of the applications that the device runs, however I am trying to decompile the OS binary and the same decompile process will not work.
Anyone got any thoughts on what to try?
Oh it's an SH4 device btw and the ROM etc is loaded from DVD.
Thanks in advance for any help.
Cheers
Quick one,
E:\>ImgfsToDump.exe 07AVNe.bin
ImgfsToDump 2.0 RC 3
guidBootSignature: 42 30 30 30 46 46 A 0 0 6 80 FC C2 4F 0 0
dwFSVersion: 10800600
dwSectorsPerHeaderBlock: 99000000
dwRunsPerFileHeader: 09000002
dwBytesPerHeader: 01000900
dwChunksPerSector: 2B0009D0
dwFirstHeaderBlockOffset: 58000940
dwDataBlockSize: 40880356
szCompressionType:
dwFreeSectorCount: 97000000
dwHiddenSectorCount: 45000002
dwUpdateModeFlag: DC434543
Compression DLL does not support compression type ''!
Anyone that can point me in the right direction would be appreciated

baksmali framework.jar problem.

i tried baksmali framework.jar , but it is not work. i want baksmali orignal note2 rom(samsung touch wiz),
and i tried baksmali MIUI's framework.jar , and it work. just can't baksmali origal rom's..
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.RuntimeException: bad magic value: 64 65 78 0a 30 33 36 00
at org.jf.dexlib.DexFile.<init>(DexFile.java:377)
at org.jf.baksmali.main.main(main.java:250)
it's log
Mimpi said:
i tried baksmali framework.jar , but it is not work. i want baksmali orignal note2 rom(samsung touch wiz),
and i tried baksmali MIUI's framework.jar , and it work. just can't baksmali origal rom's..
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.RuntimeException: bad magic value: 64 65 78 0a 30 33 36 00
at org.jf.dexlib.DexFile.<init>(DexFile.java:377)
at org.jf.baksmali.main.main(main.java:250)
it's log
Click to expand...
Click to collapse
I solve this problem , i use update baksmali, download new one ! :victory:

[JB stock] how to disable permanently noise reduction?

Hi, I've a S2 with JB stock and I'm trying to permanently disable noise reduction, according to the solution
proposed by tarobun (so, I have to edit phone.odex in my /system/app directory and modify 32 84 2F 00 12 13 into 32 84 2F 00 12 03)
But in /system/app directory I dont't find this file! I only have these files with similar names:
Phone_Util_U1_EUR_OPEN.apk
Phone_Util_U1_EUR_OPEN.odex
PhoneErrService.apk
PhoneErrService.odex
Phonesky.apk
And none of them contains the string mentioned above.
I'm doing something wrong? Please help me!
Ministry76 said:
Hi, I've a S2 with JB stock and I'm trying to permanently disable noise reduction, according to the solution
proposed by tarobun (so, I have to edit phone.odex in my /system/app directory and modify 32 84 2F 00 12 13 into 32 84 2F 00 12 03)
But in /system/app directory I dont't find this file! I only have these files with similar names:
Phone_Util_U1_EUR_OPEN.apk
Phone_Util_U1_EUR_OPEN.odex
PhoneErrService.apk
PhoneErrService.odex
Phonesky.apk
And none of them contains the string mentioned above.
I'm doing something wrong? Please help me!
Click to expand...
Click to collapse
Have you tried SecPhone.apk?
Sent from my Dominated PurifieD S4
Have you control in Preload folder?
Mate they are not the file you mentioned .. its called secphone.apk in preload folder and this is an old trick btw that all sammy custom roms have which are up to date
Sent from my GT-I9100 using XDA Premium 4 mobile app

Categories

Resources