is there any tool to edit dll resources for WM - General Questions and Answers

I have try resource tuner but looks that after modify resources and save it is not working. i have try to modify SECdialer.dll which is used by omnia as dialpad. i suspect also that meybe there is some security crc check or something like that. please advice how can i change something inside it.

pp56825 said:
I have try resource tuner but looks that after modify resources and save it is not working. i have try to modify SECdialer.dll which is used by omnia as dialpad. i suspect also that meybe there is some security crc check or something like that. please advice how can i change something inside it.
Click to expand...
Click to collapse
copy the dll to your computer, unsign, edit (with something like resource hacker), resign, and move back

Related

WM5 "AUTOEXEC.BAT" equivilant

When I first turn my Wizard (8125) on it tries to run a file that doesnt lexist. Where is the "initiate" file located and how can I modify it?
Thanks'
Lewis
losborn said:
When I first turn my Wizard (8125) on it tries to run a file that doesnt lexist. Where is the "initiate" file located and how can I modify it?
Thanks'
Lewis
looking at "\windows\startup" folder will solve the problem if I understood right
Click to expand...
Click to collapse
I thought so, too, but nothing about the missing .exe file is listed/mentioned in the windows\startup directory. :?
Did you check the contents of the links? Maybe one of them leads to the missing exe.
If not, get a registry editor (like PHM) and check the content of the HKEY_LOCAL_MACHINE\Inint key.
BUT BE CAREFUL!
Deleting the wrong value from this key will lead to hard reset!
Get hold of a copy of MemMaid. http://www.pocketgear.com/software_detail.asp?id=14279
It will work under evaluation for 30 days.
When you have it installed, look at the "Notification Queue" - in here are the tasks that are started when a particular event occurs - such as waking up from suspend mode.
Thanks for the info, guys! I wound up hard-reseting it, anyway - I had played with a lot of different software and had a lot of "remnants" on it, but knowing where to look in the register and learning about memaid will be useful later.
Thanks again...
Read http://www.pocketpcmag.com/blogs/index.php?blog=3&p=403&more=1&c=1&tb=1&pb=1

Restore original shellres

Hey XDA,
I recently used the start text modifier on http://forum.xda-developers.com/showthread.php?t=426264&page=1
I read it and it seemed to suggest if I rename the included shellres.dll.040C.mui to shellres.dll.0409.mui it would work on my device.
It ended up changing my softkey menus & start menu to French. I wouldn't have a huge problem with that, as I can use Google translate & I know French.
But all my startup programs were lost. With my shortcuts all on WAD2, and access to Settings & Programs on QuickMenu, I couldn't access anything.
A hard reset has done the job, but its still not the greatest solution...
Would anyone know if the shellres file deleted startup entries, or why my start menu did not have settings & programs (just recent)?
SinTactics said:
Hey XDA,
I recently used the start text modifier on http://forum.xda-developers.com/showthread.php?t=426264&page=1
I read it and it seemed to suggest if I rename the included shellres.dll.040C.mui to shellres.dll.0409.mui it would work on my device.
It ended up changing my softkey menus & start menu to French. I wouldn't have a huge problem with that, as I can use Google translate & I know French.
But all my startup programs were lost. With my shortcuts all on WAD2, and access to Settings & Programs on QuickMenu, I couldn't access anything.
A hard reset has done the job, but its still not the greatest solution...
Would anyone know if the shellres file deleted startup entries, or why my start menu did not have settings & programs (just recent)?
Click to expand...
Click to collapse
Hi,
The problem is very clear : the manual and explanation it the 'Icon-changer' are WRONG. You just can't change the language to any other by changing some reference in the name of a given *.dll... You need to have the correct *.dll for YOUR language. Hence it's not working. Your shortcuts etc. did not disappear, they just didn't have any reference INSIDE the *.dll, so no way to show up.
Bad explanation doesn't mean it's not working. If you like to play around, you first backup your *.dll and the start hexing a copy of that backup. If it's not working as you should expect, you can always use TotalCommander to put back your backup.
Dirk
Ah, thanks sir.
I am relatively new to this, so thanks for giving me some basics.
So I would need to do some kind of hardcore cracking open of the dll, which is out-of-the-question for a newb.
SinTactics said:
Ah, thanks sir.
I am relatively new to this, so thanks for giving me some basics.
So I would need to do some kind of hardcore cracking open of the dll, which is out-of-the-question for a newb.
Click to expand...
Click to collapse
There's nothing hardcore in it Just copy the *.dll you want to change to your PC. Make a backup-copy of it, and open that copy in an HEX editor like XVI32 or such... hack the needed bits and save the file.
Then you copy that hacked file back to your device. Best is to copy it to another place as the original, cos WM won't let you overwrite like that. Therefor you'll need to use TotalCommander.
If it's not acting as you expected, you can replace the hacked *.dll with the original backup the same way.
Dirk
Thanks!
Thanks for the quick responses sir.
I will look into your suggestions. Thanks heaps!
While I need to change the language parts of the *.dll from the other thread, will this also allow shortcuts to show up? Or is it better to edit my current *.dll to change the text that way?
SinTactics said:
Thanks for the quick responses sir.
I will look into your suggestions. Thanks heaps!
While I need to change the language parts of the *.dll from the other thread, will this also allow shortcuts to show up? Or is it better to edit my current *.dll to change the text that way?
Click to expand...
Click to collapse
Nope, you'll need to use YOUR *.dll... That's the only one that is integrated in your OS, and has all the connections to your shortcuts.
Dirk

[Q] Messed up registry

Hello,
I experimented with the WP7 Root Tools and tried to add an own theme by creating a folder called "2" inside the Themes folder in the registry. After I did that I could not open any app anymore. I can't open the Root Tools app or any other marketplace-app. I tried to fix the problem with the MFG menu of my LG e900 but I can't start that either.
Do you have any way to fix my problem? I don't want to reset my phone and loose all my text messages and my dictionary!
If you don't have a recent backup (which you seriously should; why would you go poke the registry without knowing one???) then yeah, hard-reset it pretty much the only option. You could try opening the Theme control panel in Settings and see if it clears things up for you, or you could try writing an app that uses the LG provxml driver to delete the offending registry key *BEFORE THE APP LOADS ITS UI* so that it *might* get run before crashing, but those are my only guesses as to waht might save you.
If you're going to semi-blindly poke the registry, *ALWAYS* have a backup at hand.
GoodDayToDie said:
you could try writing an app that uses the LG provxml driver to delete the offending registry key *BEFORE THE APP LOADS ITS UI* so that it *might* get run before crashing
Click to expand...
Click to collapse
Do you think this is possible? So I might give it a try.
Do you know where I have to read to learn this?
Do you have any WP7 dev experience? The basic concept is pretty straightforward, but it helps if I don't have to explain the basics of app development. I've attached a ZIP archive that contains the source code for a very basic app that uses LG provxml.
Your app will need the following things:
NewSysInfoComDLL.dll (native library that talks to the LG provxml driver).
WPInteropManifest.xml (file that allows your app to talk to native code).
ID_CAP_INTEROPSERVICES in WMAppManifest.xml (to access drivers).
Reference to the InteropServices .NET framework DLL (for the ComBridge API).
In the constructor for the main page, or possibly even in the app initialization code that goes in App.xaml.cs - whichever place gets executed first - you'll need to do the following:
Initialize the COM bridge to the native library (the *Interop*.cs files will help here).
Call the LG provision XML API with a provxml string that deletes the registry ney you created (you can find the provxml reference for Windows Compact 7 on MSDN).
If you're very lucky, this will fix your registry before the app tries to read the registry, goes looking for the additional theme data, doesn't find it, and crashes.
reason adocde
Thank you so far!
I am a very basic programmer, so I don't know very much about it, but I have created a few apps already.
The example looks really interesting, but I think it only shows how to read a registry key. How can I write one instead?
ProvXML reference (I did tell you how to find this yourself...) http://msdn.microsoft.com/en-us/library/gg155017.aspx
You want the registry provider, obviously, and you want to delete a key, so that will be a nocharacteristic element.
Physatty said:
Hello,
I experimented with the WP7 Root Tools and tried to add an own theme by creating a folder called "2" inside the Themes folder in the registry. After I did that I could not open any app anymore. I can't open the Root Tools app or any other marketplace-app. I tried to fix the problem with the MFG menu of my LG e900 but I can't start that either.
Do you have any way to fix my problem? I don't want to reset my phone and loose all my text messages and my dictionary!
Click to expand...
Click to collapse
i had the same issue, but i tried it a few months ago manually, to manage the second folder. but i messed the same thing up, its not the fault of wp7 root tools, its just to the registry. my out was an hard reset. which resets the registry too.
Dinchy87 said:
i had the same issue, but i tried it a few months ago manually, to manage the second folder. but i messed the same thing up, its not the fault of wp7 root tools, its just to the registry. my out was an hard reset. which resets the registry too.
Click to expand...
Click to collapse
And that's what I did now.

Windows Shell Ext. For Apk's?

Looking for a simple small windows program that will simply show correct icons for .apk's on my PC
I set a default .ico for all my apk's but something showing the correct .ico for apk's would be great.
Is there one available?
Thanks to anyone replying.
There's got to be something??? anyone?
I remember when I played around with a Nintendo DS I found some type of shell extension that would show .nds games icons...
Was really hoping this was out there for .apk's
Really....no one can answer me on this subject....ugh
Either its a dumbass question and the asnwer is so simple anyone reading it just pass's it up, or noone is understanding my subject...OR theres nothing out for pc to do this...maybe i should make something?
Anything guys...**** give me an answer....even a "hey ceaser shut the **** up" would be somthing
Im talking to myself in this thread
ceaserone said:
Really....no one can answer me on this subject....ugh
Either its a dumbass question and the asnwer is so simple anyone reading it just pass's it up, or noone is understanding my subject...OR theres nothing out for pc to do this...maybe i should make something?
Anything guys...**** give me an answer....even a "hey ceaser shut the **** up" would be somthing
Im talking to myself in this thread
Click to expand...
Click to collapse
Not anymore, i might have a solution for you
first get the image you want to use as an icon and resize it to be EXACTLY 256x256 and in .ico format
then click run in start menu and type regedit
allow UAC if needed
make backup of registry
if you want to just change the icon to know what it is, go to HKEY_CLASSES_ROOT\.apk
if it isnt there, right click on the folder and create new key called .apk
check if the (default) entry is blank, if so, then create a new key in the same place as .apk and call it something.Assoc.APK (not tested)
in the new key, create a key called DefaultIcon, and in that create a REG_EXPAND_SZ and put the full path in quotes of the .ico file
tell me if it doesnt work and include screenshots
Thanks for the reply...whats I actually ended up doing is making an .ico of a droid and basically setting the file extension within windows to use that ico with any apk...thanks for the info above though
ceaserone said:
Thanks for the reply...whats I actually ended up doing is making an .ico of a droid and basically setting the file extension within windows to use that ico with any apk...thanks for the info above though
Click to expand...
Click to collapse
What i said was the proper method, for someone searching for this thread could you tell how you did it
i guess my help was not appreciated

Has anyone decompiiled the Oreo MTCD Radio app ?

Hi,
The radio app that came with my Xtrons (Oreo) GS PX5 head unit, is OK but I think I could make a lot of improvements
So I've got ADB root to my device via Wifi and looking in the system/apps folder I can see MTCRadio4HCT which I presume is the radio app.
Inside that folder is ..
MTCRadio4HCT.apk
and the oat folder which contains an arm64 folder, which contains MTCRadio4HCT.odex and MTCRadio4HCT.vdex
I've decompiled APK's before to extract assets, but not odex or vdex
Before I go to the trouble of trying to decompile and recompile the radio app.. Does anyone know if its already been done by someone else ?
As I've never decompiled and recompiled an Android Apk before, I don't know whether this is practical or not.
I've decompiled and recompiled a lot of C# applications on Windows, and they always need a lot of work to clean up the decompiled code before they will compile and run, so I presume the APK / Java decompilers are similar (or possibly worse)
radio app...
this apk from Malaysk ROM Oreo v2.0, and has classes.dex.
good luck!!
rabbity417 said:
this apk from Malaysk ROM Oreo v2.0, and has classes.dex.
good luck!!
Click to expand...
Click to collapse
Thanks
I'll try decompiling that one, as well as the one I pulled from my HU.
BTW. List of things I'd like to fix
1. Current station preset / memory is not very obvious. There is a slight change to the text colour on the button for that preset / memory, but its hard to see at a glance when driving
2. Names can't be assigned to AM stations. Ideally, It would be nice if once a station / preset / memory had been assigned, that a name could be given to that preset / button, rather than just the frequency.
Additionally, on FM some stations cycle their name e.g. ABC Classical radio, seems to broadcast its name as "ABC" then "Classical" then "Radio". So on my radio it just shows this as ABC, but there are multiple ABC stations in Australia as its government funded, with Pop, Classical and News and General stations.
3. No way to change from AM to FM via the steering wheel controls.
4. FM station preset / memory buttons, all go back to displaying their frequencies when the App is scanning. I think the same may apply when changing memory / preset.
I can't see why this should happen. The name associated with the preset / memory , must be stored by the App as soon as it gets the name from the FM transmission its self.
And it can only get the name of the station its currently tuned to.
Hence it doesn't make any sense for it to only show the names on the FM preset, when its got the name of the current station via the FM signal.
5. It would be better if unassigned preset / memory channels were blank, and skipped by the steering wheel controls.
I'm sure there other annoyances that people have
RogerClark said:
Thanks
I'll try decompiling that one, as well as the one I pulled from my HU.
BTW. List of things I'd like to fix
1. Current station preset / memory is not very obvious. There is a slight change to the text colour on the button for that preset / memory, but its hard to see at a glance when driving
2. Names can't be assigned to AM stations. Ideally, It would be nice if once a station / preset / memory had been assigned, that a name could be given to that preset / button, rather than just the frequency.
Additionally, on FM some stations cycle their name e.g. ABC Classical radio, seems to broadcast its name as "ABC" then "Classical" then "Radio". So on my radio it just shows this as ABC, but there are multiple ABC stations in Australia as its government funded, with Pop, Classical and News and General stations.
3. No way to change from AM to FM via the steering wheel controls.
4. FM station preset / memory buttons, all go back to displaying their frequencies when the App is scanning. I think the same may apply when changing memory / preset.
I can't see why this should happen. The name associated with the preset / memory , must be stored by the App as soon as it gets the name from the FM transmission its self.
And it can only get the name of the station its currently tuned to.
Hence it doesn't make any sense for it to only show the names on the FM preset, when its got the name of the current station via the FM signal.
5. It would be better if unassigned preset / memory channels were blank, and skipped by the steering wheel controls.
I'm sure there other annoyances that people have
Click to expand...
Click to collapse
wow!!! it would be great!! :good:
if you have done, plz share it..:laugh:
rabbity417 said:
wow!!! it would be great!! :good:
if you have done, plz share it..:laugh:
Click to expand...
Click to collapse
Thats the list of things I'd like to change. I've not started to try to do it yet.
It all depends on how well the App decompiles, and how difficult it is to recompile it.
Its been a while since I did any Android dev using the SDK, as I generally use Cordova for the simple Apps I need - and don't get my hands dirty with the Android SDK / API.
But I am a professional developer, (mainly C# at the moment) but also Javascript, C , PHP etc. And I've done several decompiles / recompiles of obfuscated C# apps.
I don't know if you are new to APK modifications but Decompile/recompile is not hard, even understanding Java code is easy.
The pain come when you start modifying the smali code.
I suggest you to use "jadx"or similar tool to obtain Java code of the APK, then modify the smali and recompile.
Good luck
rabbity417 said:
this apk from Malaysk ROM Oreo v2.0, and has classes.dex.
good luck!!
Click to expand...
Click to collapse
I tried one of the online decompilers, and the APK from my HD just decompiled to the XML layout files and no Java code.
The APK from the Malaysk APK looks more promising as it does contain Java code, when decompiled, but looking at the graphical assets, it looks a lot different from the app in my (stock) ROM.
I'm doing to install the APK from Malaysk and see if it actually works on my HU. I'll update this thread when I find out.
I'll also see if I can decompile the vdex and odex that go with my APK file.
Edit.
Decided not to install the Malaysk as the Apkinstaller said it would overwrite the existing radio app.
as they both have package="com.microntek.radio"
Looking at the decompiled manifests, it looks like the APK from the Malaysk ROM requests more permissions to the APK in my "stock" ROM
ission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_MEDIA_STORAGE"/>
<uses-permission android:name="android.permission.ACCESS_ALL_EXTERNAL_STORAGE"/>
<uses-permission android:name="com.cyanogenmod.lockclock.permission.READ_WEATHER"/>
I'll see if I can find any screengrabs of the Malaysk version to see if it looks different, as its strange that its requesting storage, when its just a radio app and not a music player
To view the Java code you need JADX or similar tool, follow this guide:
https://ourcodeworld.com/articles/read/387/how-to-decompile-an-apk-or-dex-file-using-jadx-in-windows
The obtained Java code cannot be used to recompile the APK.
To be able to recompile you have to use apktool to Decompile into smali code.
The smali code can be recompiled into the apk with apktool.
There are many custom apktool versions with GUI or batch commands that make easyer the process:
Batchapktool, Easyapktool etc...
KoTiX2 said:
To view the Java code you need JADX or similar tool, follow this guide:
https://ourcodeworld.com/articles/read/387/how-to-decompile-an-apk-or-dex-file-using-jadx-in-windows
The obtained Java code cannot be used to recompile the APK.
To be able to recompile you have to use apktool to Decompile into smali code.
The smali code can be recompiled into the apk with apktool.
There are many custom apktool versions with GUI or batch commands that make easyer the process:
Batchapktool, Easyapktool etc...
Click to expand...
Click to collapse
Thanks
I'll checkout the various apktools. BTW. I presume they handle odex and vdex files (as this app has both)
BatchApktool have a function for deodexing the apk.
I don't know if it deodex function work for Oreo too.
KoTiX2 said:
BatchApktool have a function for deodexing the apk.
I don't know if it deodex function work for Oreo too.
Click to expand...
Click to collapse
Probably a really stupid question, but I've tried apkeasytool on the Malaysk radio apk, and the source it generated is smali, which is really hard to read
But I also tried this online tool http://www.decompileandroid.com/ and it seemed to generate both smali and Java.
As far as I can tell the Java files the online tool created are the Java equivalents of the smali code.
I have some knowledge of programming in Java, but smali is a totally new language to me.
I guess I'll need to try creating an android studio project using the manifest and resources and Java code (and omit the smali) and see if it compiles ?
Smali is intended for small code modifications without the need of creating your own Studio project.
Is not so hard to modify but of course is just for small things.
Once you are used to it become a little more friendly but still not as much as Java or more normal languages
KoTiX2 said:
Smali is intended for small code modifications without the need of creating your own Studio project.
Is not so hard to modify but of course is just for small things.
Once you are used to it become a little more friendly but still not as much as Java or more normal languages
Click to expand...
Click to collapse
Thanks.
I'll need to work out the best way to do this...
I can decompile the Malaysk , to smali and could probably make small changes e.g. change the text colour on buttons etc. However to implement the more complex changes, would probably be impractical in smali.
I'm also not keen on overwriting my existing radio app by installing the version from the Malaysk ROM, as I don't know for sure if it would work (because there are potentially difference in MCU version).
I may have a go at renaming the Malaysk radio app, so it would install as a separate app, but I'd need to change a lot of files and it could be a pain to get it to recompile.
The Malaysk radio app apk seems to decompile to java via one of the online decompilers, so I may try creating a very basic / almost empty project in Android studio, with the same package name as the radio app, and then copy the decompiled xml, java and graphic asset files into that project, and see if it will compile
But I guess its probably not going to compile or probably not run.
I've also used the APK Easy tool to decompile the app thats in my ROM (system/apps), and used its separate odex decompiler to extract the smali for my stock app.
My concern is that if I try to change the app, and break it, then it could be hard to get back to a working version (and in the mean time I don't have a radio in the car)
I do have the system/app folder backed up to my PC, so in theory, if I break things, I could simply copy the backup of the odex file to the head unit, but I'm not sure if that would be sufficient to restore the operation of the radio
Another option is to just work out how the existing app (or the Malaysk version of the app), interfaces with hardware (MCU etc), and write a radio app from scratch.
As far as I can by looking at the current functionality, the radio only has a few functions, i.e control the "tuner" hardware to select the frequency, turn on an off various settings to do with TA etc.
But again, this would probably be big job.
Anyway, plenty for me to think about
It doesnt look like making changes to the radio app are possible because the smali files have decompilation warnings in them using the APK Easy tool
e.g.
#disallowed odex opcode
#iput-object-quick v0, p0, [email protected]
I've had a look at the decompiled java files from the Malaysk ROM version of the radio app (apk), and I don't think the radio app is controlling the hardware directly
It looks like the hardware handling is in android.microntek.CarManager;
But I'm not sure where that code is.
I presume its in the framework somewhere. e.g. possibly in
framework\arm\boot-framework.vdex
I've looked in my entire backup of the system folder, there is nothing named *.CarManager.*
Is it possible to listen to all events that are being broadcast, e.g. perhaps from the terminal, or via a debugging app ?
I've looked for an app to do this, but the best one I found is https://play.google.com/store/apps/details?id=lt.andro.broadcastlogger and it still only shows specific broadcasts
Perhaps I need to write my own debugging app to show broadcasts with com.microntek.* , and see whats flying around
(BTW. This is the limit of my Android knowlegde, so I'm not even sure if I can write an app to listen for any com.microntek.* message, or if it needs to be more specific ????)
Edit
I think I found the CarManager
Its probably priv-apps/MTCManager.
Just decompiled the odex, and I'm taking a look inside
Try logcat
you can specifiy what it shall display from the log it reads.
type in com.microntek. and it should only list the log entries with that.
The radio apps are almost the same for all MTC devices, you can even run the APK from Android 6 firmware on Oreo (if signature is not a problem) or even more the radio apk from px3 7.1 firmware.
The one in Malaysk is probably slightly modified by him.
I would look also in the Booroondook rom too:
https://4pda.ru/forum/index.php?showtopic=891403&st=0#entry70937201
Anyway if you need to change something in all the files all in ones, you can use the function "replace in all files" in notepad++
I'm on vacation until next week otherwise I could help you with smali and tests on my desk unit.
no need for smali, using APKRepatcher you can decompile, edit java code, build and compile APKs... unfortunately there are complie errors for the HCTRadio apk (CarManager related + other stuff)
k0sTi said:
.... unfortunately there are complie errors for the HCTRadio apk (CarManager related + other stuff)
Click to expand...
Click to collapse
Yep. That's the problem
None of the apps seems to cleanly decompile to valid smali code, which I presume means they can't be recompiled back to a usable app.
Unless perhaps the compiler is able to reconstruct the error opcodes in the smali back to the same odex / dex as before.
I have not tried decompiling then recompiling the odex to see if it would recompile. Or perhaps decompile , recompile and then decompile again - and see what the result it.
As my HU is now in the car, and I use the radio, I don't want to break the existing radio app.
KoTiX2 said:
Anyway if you need to change something in all the files all in ones, you can use the function "replace in all files" in notepad++
Click to expand...
Click to collapse
Yes. I used Notepad and its find in files and replace in files is great.
I may be able to replace MTCRadio by MTCRadioNew and change the app name, so I can run my own copy.
However, its dependant on being able to decompile and recompile the code... And I'm not sure if thats possible.
I guess I should give it a try when I get some free time.
PS. Thanks for the link to the other ROM. I've downloaded it, but I've not had time to look in the image files.
But it seems to have the same date as another ROM someone else posted in a different tread on XDA, called "PE 系列 gs5_PX5_8.0_升级包(20180118" ( Translates to PE series gs5_PX5_8.0_ upgrade package (20180118) )
BTW. I wonder how Malaysk managed to modify the radio app. He must have deodexed the APK, as the APK from his ROM does not have a separate odex file, and he also must have decompiled and recompiled it (either to smali or to Java)
Hope it helps... here seems that someone correctly decompiled the Java inside the CanBus App...
RogerClark said:
BTW. I wonder how Malaysk managed to modify the radio app. He must have deodexed the APK, as the APK from his ROM does not have a separate odex file, and he also must have decompiled and recompiled it (either to smali or to Java)
Click to expand...
Click to collapse
Of course he firstly deodexed the APK than he Decompiled, modified the smali and recompiled.
I did the same to add the numkeyboard to the radio apk in Android 6
Smali is always created correctly and recompile is always possible unless you make mistakes on the code.
the Java decompilers sometimes cannot generate part of the code.
You can give a try to Procyon too:
https://bitbucket.org/mstrobel/procyon/downloads/

Categories

Resources