searching hex strings using HXD help? - Hero CDMA Q&A, Help & Troubleshooting

Im trying to do hex editing. ive been shown how to convert it to readable text and told that i have to use hxd editor to search for the hex string thats in the readable text. everytime i search for the the string though it doesnt find it. anyone know what im doing wrong

cbarlan, can you link me to all the resources you've been using so far? I'm interested in this... Hexediting is something I've wanted to learn.

mrinehart93 said:
cbarlan, can you link me to all the resources you've been using so far? I'm interested in this... Hexediting is something I've wanted to learn.
Click to expand...
Click to collapse
do a search on this forum. also google axmlprinter2.jar and thats where i get into trouble. i can find the hex string in the readable text but when i do the axmlprinter.exe. that will allow u to see the xml in readable text.
download xml editor...free hxd editor. that will show the binary version of the xml. this is what has to be edited. thats where i get into trouble. i can find the hex string in the readable text but when i do the search in hxd it doesnt find the hex string in there. im doing something wrong cause there r a few of the guy out there that have no problems with it

when you did your search, did your change data type from text-sting to hex values?

tejasrichard said:
when you did your search, did your change data type from text-sting to hex values?
Click to expand...
Click to collapse
yes i did change it to hex values
i also put in the hex all together and broke it up by twos

try something for me. is this a color you are modding?
if so, break it into the sections like you did, but do this:
if the string is 08 00 00 1C AA BB CC DD
search for 08 00 00 1C DD CC BB AA

Make sure you search the string as hex, 1020005A would be 5A 00 20 10

brian m said:
Make sure you search the string as hex, 1020005A would be 5A 00 20 10
Click to expand...
Click to collapse
Beat you! with my 10chars

tejasrichard said:
Beat you! with my 10chars
Click to expand...
Click to collapse
I saw that after.-) kids distracted me mid sentence.
I look for obvious strings, then find the part I want to edit.

brian m said:
I saw that after.-) kids distracted me mid sentence.
I look for obvious strings, then find the part I want to edit.
Click to expand...
Click to collapse
ive figured it out thanks u guys

Related

Change camera counter

I recently flashed a new ROM to my diamond and the camera image counter (the automatic naming of the images) reset to 1
Is there a registry key where that number is stored, so i can change it back to the old value(600) ?
Thanx
HKLM\Software\HTC\Camera\Captparam\ExifInfo
NEXTFILENAME key
change the number to what you want the next imagename to use.
It didn't work
I changed NEXTFILENAME key from IMAGE_005 to IMAGE_700, but the next image I take is IMAGE_005, and the key changed back
I even tried to change the key then soft-reset but same thing happened.
Doesn't anyone have another ideea? This should be easy.
I really need this because I take alot of photos and I can't organise them anymore.
isnt it in the settings for the camera? pretty sure i have seen it there....
mugglesquop said:
isnt it in the settings for the camera? pretty sure i have seen it there....
Click to expand...
Click to collapse
I can only reset it there.
supersanj said:
HKLM\Software\HTC\Camera\Captparam\ExifInfo
NEXTFILENAME key
change the number to what you want the next imagename to use.
Click to expand...
Click to collapse
Hi, is there anybody who knows how to manage this issue with a TouchPro2?
regarda
Rob
Found the answer in another post:
http://forum.xda-developers.com/showthread.php?t=439035
anne9660 said:
Found the answer in another post:
http://forum.xda-developers.com/showthread.php?t=439035
Click to expand...
Click to collapse
I found this posting before but because byte 68 and 69 are zero I thought this post did not cover my device.
Now I looked a little deeper and found byte 109 and 110 which are the right ones for my Touch Pro2. And it works!

Help with Phone.apk mod please

I want to edit the background of the dialer from black to white, but I cannot seem to find where it is, I've went through the source and can't find it. Can anyone help with this mod?
Thanks
Ima make a judgement call on this one and say if you can't find it, most likely you shouldn't be messing around with it
stefan.buddle said:
Ima make a judgement call on this one and say if you can't find it, most likely you shouldn't be messing around with it
Click to expand...
Click to collapse
If you do not recognize the name, perhaps you should not make such assumptions.
Let me see if I can find the file name, give me a few.
Edit: As far as I can tell, there is no image file for the background. From the small bit of android programming I have attempted, I do seem to recall the default background color being black. I think you probably need to edit an xml file, but I could be completely wrong. I could not read the xml files with my phone, so I could not narrow it down at all. If you agree this is the way to go, and need to know how to decrypt xml send me a pm.
I know it is not an image, I've edited all the images. I have done an abundant amount of themes. I posted the question because I have spent a long time looking though the source. It is not an xml in the drawable, it is in the source somewhere. After looking though the source though, I am starting to think it is something at a higher level than the phone.apk of contacts.apk and maye be something from the system itself, since all the apps have a black background as the default.
Since I think it does default to black, have you thought about including a new background file into drawable, and writing it into the xml somewhere.
cloverdale said:
Since I think it does default to black, have you thought about including a new background file into drawable, and writing it into the xml somewhere.
Click to expand...
Click to collapse
Haven't thought that far but that may be the best solution. There are a few white themes, and it could be a nice addition to them, or even to those without. I'll look into it more when I have some more time, unless there are some people that have time to help on this project
I need help please. I have the latest source from Cyanogen. I am trying to add something to the dialpad.xml but without even doing anything yet, when I start a new project from the code, I get a lot of errors, most I can just delete files and be ok with but I get
Description Resource Path Location Type
ERROR No resource identifier found for attribute 'contentDescription' in package 'android' dialpad.xml /DialtactsActivity/res/layout-finger line 126 Android AAPT Problem
Click to expand...
Click to collapse
Its from the part of the code android:contentDescription="@string/description_image_button_pound"
I have spent days trying to figure out what the issue is.
Can anyone help?

Change text highlight color in Sense

Hi everyone. Can anyone point me in the right direction to change the text highlight color in Sense? I already tried to change the highlight value in framework-res.apk/res/values/styles.xml but that's not working on Fresh ROM 3.4.0.1. I'm starting to think the hex color code to change is somewhere in com.htc.resources.apk or HTC_IME.apk but I've been searching for a day and have gone through tons of code and nothing's sticking out. I've attached a screenshot that shows what exactly I'm talking about.
Can anyone help please? Thank you!
Would it be in a jar file??
MacaronyMax said:
Would it be in a jar file??
Click to expand...
Click to collapse
Ooooh good hint. I did not think of that. Maybe services.jar? I'll keep looking around.
I'm really starting to believe this particular thing needs to be change in smali code in HTC_IME.apk but I'm still spinnin the wheels on this.
Well, no Sense, but maybe this helps http://forum.xda-developers.com/showthread.php?t=795242
rori~ said:
Well, no Sense, but maybe this helps http://forum.xda-developers.com/showthread.php?t=795242
Click to expand...
Click to collapse
Thanks. Unfortunately, that doesn't apply to Sense I already followed those steps for the CM themes I've asked gIMpSTa to give me a hand on this one. He too thinks it's in smali code as well.
Thanks again.
was this ever solved
found it http://forum.xda-developers.com/showpost.php?p=13831424&postcount=684

New Win 10 update and G sensor

Did the new Nov 2015 win 10 update and now the screen rotate and lock does not work. I tried the old trict of updating the drivers and running the reg edit, but that did not work.
Any ideas?
I changed the reg values to:
00 00 00 01 01 01 02
And now it works.
Someone has to make a new reg file with the correct rotation data. Strangely the november update ****ed up rotation!
Well can someone who's tab rotation works copy the reg value for us?
Has someone tried this tipps e. g. reinstalled the display driver in compatibility mode?
http://answers.microsoft.com/en-us/...1-update/0df6eb48-e3cd-49c8-bb06-1eb37c20fca1
gbaz1 said:
Well can someone who's tab rotation works copy the reg value for us?
Click to expand...
Click to collapse
I have a x98, check the tutorial in my signature, try the new kionix drivers with included reg... it works for me (different tablet... but previously used your reg files..)
Edit: Direct link: Kionix Rotation Sensor and Sensor Fusion - 2015 1.28.3. Try to backup your Orientation registry setting first.
Thanks. I'll give it a shot when I get home!
mihaiolimpiu said:
I have a x98, check the tutorial in my signature, try the new kionix drivers with included reg... it works for me (different tablet... but previously used your reg files..)
Edit: Direct link: Kionix Rotation Sensor and Sensor Fusion - 2015 1.28.3. Try to backup your Orientation registry setting first.
Click to expand...
Click to collapse
Did not work. It locked the screen sideways...
gbaz1 said:
Did not work. It locked the screen sideways...
Click to expand...
Click to collapse
it work for me . try it again !!
jasonyu007 said:
it work for me . try it again !!
Click to expand...
Click to collapse
What tablet/model do you have?
Nice to know it works at least for some people! It's strange tough, as I applied this reg 2-3 days before the November Update, I believe it's related to a driver from windows update rather than the November update itself...
I actually forced the update to all the drivers by clicking on every device and clicking "Search online for updated drivers". You might try that, and apply the reg afterwords!
Don't update anything related to SOUND and Intel Imaging Signal Processor as it installs wrong drivers!
Doesnt work for me ... Horizontal orientation is ok but vertical is reversed!
I played with the reg file a little bit but I coouldnt fix it.... It would be good if we knew which bit correspondes to which orientation!
stm00192 said:
Doesnt work for me ... Horizontal orientation is ok but vertical is reversed!
I played with the reg file a little bit but I coouldnt fix it.... It would be good if we knew which bit correspondes to which orientation!
Click to expand...
Click to collapse
Read the original post: It's very easy to flip the bits one by one and try ... If Horizontal it's ok, just flip the first bit to 01... see what happens, if it doesn't work, flip it back and flip the next one... If orientation changes, revert to original .reg file and try the next bit.
You are looking for the bit that flips the vertical and I think if I remember correctly it's either the 3'rd or the 5'th bit!
It's a 10 minutes job... it's not that hard... To get the reg file working properly it took me half a day... I'm sure you can work it out in 10 minutes from this point!
P.S.: Please post a correct .reg file after finding the correct orientation! As I'm not using a X98 AIR I can not help beyond this point!
Ok, fixed my problem. Tab rotates normally now.
Change reg value to
00 00 00 01 01 01 02
And restart.

Creating an Xposed module, modifying google maps, not sure how to continue

I am trying to make a simple Xposed module where the screen that says "You have made it to %s" will be black if you were navigating in night mode. Currently it is bright white, which is quite blinding.
I have successfully created a simple Xposed module to turn the clock red via a very useful tutorial. I have also successfully decompiled google maps, but I am not entirely sure how to continue now. I looked for the string "you have made it to", which I then did find in an xml file, but I can't find it being referenced anywhere. The other strings ("earlier than predicted" and "walk the rest of the way") gave me the same result.
I had assumed it would be relatively easy to find where in the code the arrival screen is rendered, but apparently not. Can anyone here give me any tips on how I can find it?
I'm quite sure it's not easy, because google apps are not open source and I suppose they're taking measures against full decompilation.
Gesendet von meinem Moto G 2014 LTE mit Tapatalk
I have decompiled obfuscated java code before(although not an app), and it wasn't super easy, but looking for strings made it quite doable. I guess it might just be harder for apps?
inasm said:
I have decompiled obfuscated java code before(although not an app), and it wasn't super easy, but looking for strings made it quite doable. I guess it might just be harder for apps?
Click to expand...
Click to collapse
You probably have to locate where the string resource is being used. If you're able to decompile the APK, you should be able to find the resource ID for this string and then search through the code for a reference to it.
Then maybe hook that function to change the TextView color after it's being called.
itandy said:
You probably have to locate where the string resource is being used. If you're able to decompile the APK, you should be able to find the resource ID for this string and then search through the code for a reference to it.
Then maybe hook that function to change the TextView color after it's being called.
Click to expand...
Click to collapse
Thanks for the response! I already tried doing that, and I only found these kind of id's by doing that: 0x7f110460. This is an extremely large number, so I'm assuming it's some kind of memory location, and I have no clue how to continue from here
inasm said:
Thanks for the response! I already tried doing that, and I only found these kind of id's by doing that: 0x7f110460. This is an extremely large number, so I'm assuming it's some kind of memory location, and I have no clue how to continue from here
Click to expand...
Click to collapse
Your ID 0x7f110460 is actually 6C7F3C in hex. Next thing you can do is search this hex number in the decompiled smali or jar file to locate the referencing methods.
itandy said:
Your ID 0x7f110460 is actually 6C7F3C in hex. Next thing you can do is search this hex number in the decompiled smali or jar file to locate the referencing methods.
Click to expand...
Click to collapse
Thanks for your help, but the id 0x7f110460 is already in hex (I think you have missed the f in there). I tried searching for it, but it turns up nothing.
inasm said:
Thanks for your help, but the id 0x7f110460 is already in hex (I think you have missed the f in there). I tried searching for it, but it turns up nothing.
Click to expand...
Click to collapse
Oh yes like you said I misread the number. Anyway you need to translate the hex back to decimal. Then search again.
Wrong post
itandy said:
Oh yes like you said I misread the number. Anyway you need to translate the hex back to decimal. Then search again.
Click to expand...
Click to collapse
I had already tried that, and found nothing .
Thanks a lot for your help though, but google just updated its app to include this! Maybe it's because of the feature request I made, or maybe it's just a coincidence, but I'm super happy!

Categories

Resources