yashsingh1/xdaforums huggingface dataset:
[Vibrant Android Development] untermensch:
resource id re-mapper 0.5b

Introduction:

By far the most tedious part of porting and app or mod from one phone to another, or from

one firmware version to another is remapping the resource id's and can take hours, and you

still miss a few and then spend more time looking at a log cat trying to find it.

So I wrote a resource re-mapper tool, it works by feeding it the public.xml from the source ROM

and the public.xml for the target ROM and a smali file or a directory and the tool will search for

resource id's in the smali files look up the resource name in the source public.xml then look

up the name in the target public.xml to get the new resource id and then change the id's in the

smali file.

Limitations:

1. compilers will shorten resource id's like 0x1040000 -> const/high16 0x104 there is no

way to be sure that is a resource id with out looking at the code, what the tool does in

this case is check to see if the id's resolve to the same resource name on both ROM's

and if not advises you to verify that it is indeed a resource id.

Use:

java -jar remapid.jar [source.xml] [target.xml] [directory] or [file.smali]

UPDATED 02/13/2011

fix for multiple comments on the same line

UPDATED 02/08/2011

fix for a problem that would almost certainly never occur

UPDATED 02/08/2011

added support for resource arrays.

added resource name comment next to resource id, example:

0x1070015 #config_virtualKeyVibePattern

useful for code modification

added processed file tagging useful if a file gets broken bad enough

you have to restart with a fresh one, you can rerun the tool without

breaking the already processed files.

.
[Vibrant Android Development] Whitehawkx:
Holy crap this is amazing. You do such awesome work! Thank you so much for making this tedious chore more convenient (AS USUAL)! :D
[Vibrant Android Development] ECOTOX:
THANK YOU!!!!! Lol, this fixes the part I hate and have the most issues with

Sent from my SGH-T959
[Vibrant Android Development] drizze99:
Wow, this should really cut out some serious time. Can't wait to see where the development of this goes! Great work as always!!
[Vibrant Android Development] untermensch:
Thanks, to test I built the froyo-plus-aosp branch from source and got

all the AOSP apps except Browser.apk and LatinIME.apk on KB1 without

a single force-close it was unbelievable :)
[Vibrant Android Development] oka1:
Wow, awesome............ thanks !!!!!
[Vibrant Android Development] genaropr:
Great job supervb
[Vibrant Android Development] jellette:
Awesome! Eventually I will get it to work for me too! Will keep messing with it and see if I can figure out what is wrong with my folder structure that causes it to act like it is going to work but doesn't.
[Vibrant Android Development] untermensch:
I added some more informative output so when no changes are need to the

smali code there isn't that natural WTF? it didn't do anything feeling.
[Vibrant Android Development] sombionix:
Great work dude!
[Vibrant Android Development] jellette:
Thanks! And double thanks for the messages!
[Vibrant Android Development] untermensch:
UPDATED 02/08/2010

added resource name comment next to resource id, example:

0x1070015 #config_virtualKeyVibePattern

useful for code modification

added processed file tagging useful if a file gets broken bad enough

you have to restart with a fresh one, you can rerun the tool without

breaking the already processed files.
[Vibrant Android Development] webstar1:
Awesome work, a big fan of your work.
[Vibrant Android Development] ndwgs:
Niiicceeee...

I'm going to have to try this out.

Thanks always Untermensch!!!
[Vibrant Android Development] ndwgs:
I didn't see this, I barely saw this, was this updated in the OP, Untermensch?

If so, disregard my post.

Thanks! Again!
[Vibrant Android Development] untermensch:
yes the OP has been updated, that example line is added to the smali code, it is really

really useful to have an idea of what images/strings are being used by the code.
[Vibrant Android Development] untermensch:
minor update to fix an unlikely issue with resource arrays.
[Vibrant Android Development] aleadam:
I posted a similar jar file in the captivate forums two days ago. The only difference is that mine is just an amateur attempt of an app full of bugs still ;)

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

Any chance you will share the code?
[Vibrant Android Development] untermensch:
the source is included in the jar but if it wasn't then you could always use this

http://java.decompiler.free.fr/

my rough code looked like that but I was using a regular expression to find the res id's
[Vibrant Android Development] maddoggin:
how do you use this?
[Vibrant Android Development] Johnsondr80:
±1

I've ran it over and over trying to simply remap id's for the incoming call screen bug in which the incorrect images were pulled up. Every attempt has had undesirable results. I'm certain I'm not useing it right.

Can we get a little more info on how to use this?

Thanks
[Vibrant Android Development] Cezar`:
Amazing tool! Great work as always!

I would like to report a small bug though: when remapping, the utility does not look at what type of data it checks. For example, if you have

<public type="[B]string[/B]" name="ok" id="0x0104000a" />

and

<public type="[B]id[/B]" name="ok" id="0x010201dd" />

it doesnt know which one is the correct one for the specific field.

In my case it added the "id" ID instead of the "string" ID.

I like to do a bit of manual work as well, so this isn't such a big deal.
[Vibrant Android Development] DAGr8:
damn this thread is dying ?

yea what cezar posted above me , but its something easy to double check ..

what I would like to request , is this app only works for framework ids ,

it will look for 0x010*** while in the jar files it has 0x10***

can we have one for the rest of the apk , that dont have this 'added 0' ???
[Vibrant Android Development] pratyush.creed:
yup i noticed a similar problem ...there was some problem adding extended power menu to galaxy Y ...so with the help of this tool i ported all 8 power menus from galaxy fit to Y ....and there was a similar problem , string and drawable had same name "recovery" ...so instead of string it sometime took the drawable id !!!
[Vibrant Android Development] LegendK95:
I have found the source code here http://code.google.com/p/android-ap...ken=hiu_4ZYNl_rhrvRJA351ZJTy8pc:1353241718625

And I'm working on it to bring a more features one, including a lot of your requests, actually it's ready, and I'm testing it.
[Vibrant Android Development] untermensch:
the source can be found in the jar file, I added the last version I worked on to the first post.

I don't remember what changed possibly adding logging and more comments to the smali

files for manual fix ups when things don't go right.

I pretty much abandoned this because there is no way to tell the difference between literals

and resource id's without some code analysis.
[Galaxy S I9000 Q&A, Help & Troubleshooting] Jonathanho87:
Hello Guys,

Does anyone know about the Signal Strength Problem?

The Extreme Edition for Darky's Rom, Have some Wifi Error Problem and Lower Signal problem. While I am using 9.0.2 Version Signal for me is quite Strong. Yet, the change of the 9.1 and 9.2 version, i faced some Error Problem for Wifi and force to reboot all the time to get connect to Wifi. The Wifi Connection in setting will state Error but i try to reconnect to Wifi, it seem to keep connect and disconnecting.

I already have the Darky's Configurator and tick the alternative wifi driver but nothing changes. Darky's can you please help on this?? Is this because of the phone compatibility version do not cope with the Darky's Rom Version? Urgently need help..

Thank you

*Yet, i would like to thank darky for the continuing trying to improve the ROM.

Thank again.

Regards,

Jonathan
[Galaxy S I9000 Q&A, Help & Troubleshooting] Homer__Simpson:
Did u re flash after ticking the box in the Configurator aApp. The app only will only setup what gets flashed.
[Galaxy S I9000 Q&A, Help & Troubleshooting] Jonathanho87:
When I'm using 9.1 previously with the Configurator App. Then I re-flash everything again when go into 9.2.
[Galaxy S I9000 Q&A, Help & Troubleshooting] geskimo:
i had the same issue and did a research around XDA forums and Darky's ROM forums. I found a fix for this bug.

I have attached both fixes but i've used the v8.0 fix and it seems to be working great.

- put the ZIP file on your root directory of your internal SD

- reboot into recovery

- apply any zip from SD

- choose zip from SD

- apply and reboot

* steps above may not be the exact wording but u get the picture :)
[Galaxy S I9000 Q&A, Help & Troubleshooting] Jonathanho87:
Thank Very Much! Is working fine now for me.
[Galaxy S I9000 Q&A, Help & Troubleshooting] geskimo:
Don't forget to donate for darky's hard work if u haven't already done so. :)
[Galaxy S I9000 Q&A, Help & Troubleshooting] numskull:
ive tried both them zips n i still cant connect to our wifi, any ideas?
[Galaxy S I9000 Q&A, Help & Troubleshooting] Tuhoaja:
I had the same problem but its easy to solve:

Go to wireless settings on your phone

Find APN Settings, if theres nothing do a new apn with your internets name. ( I mean like, who you pay for, its hard to tell in english...) Like here in finland is dna, saunalahti etc.

Leave the default settings and done!
[EVO 4G General] chickut123:
My evo is starting to get really annoying with reboots. I want to go to sprint to get a replacement. I know I got to unroot, (I know this is not the problem), but what do I tell sprint in order to get a replacement? I've had the phone since July if that makes a difference. It's gotten so bad that I can barely stay in the browser for 5 minutes without a reboot. Or a game like mini squadron.

Any writing methods to perhaps fix this?

Any help is appreciated.
[EVO 4G General] tx_dbs_tx:
There is no fix for the power cycling problem. Sorry but you will have to get a replacement phone. Just go to your local corporate Sprint store and show them what it's doing and they will order you a warranty replacement. I had the same problem with my first EVO. This seems to be a fairly common issue on some of the early hardware version EVO's. flash the "s-on" tool from unrevoked.com website then run the stock ota 3.70 sprint rom from your computer to put your phone back to stock condition. GOOD LUCK.
[EVO 4G General] chickut123:
Thanks man. Sounds like a plan, but the reboots are pretty random, gonna be hard to prove. Or do I just have to tell them? I'm still in warrantee after 7 months? Dang.

Thanks, its been a frustrating month.
[EVO 4G General] m4xwellmurd3r:
If browsing 5min causes reboot just do some massively heavy browsing and hope it reboot.they can't really say oh well its not showing us any problems.
[EVO 4G General] chickut123:
Alright, I guess that's all I can do. Will report back with hopeful success. Thanks everyone for the help.
[EVO 4G General] IceCreaMan:
Fixed mine yesterday by formatting my sdcard
[EVO 4G General] chickut123:
Getting a new one after going to sprint today. They are back ordered so gotta stick with this one for a few more days. Thanks everyone!
[EVO 4G Android Development] jklong03:
This is the "OP" or the Original Post #1....read it before asking any questions that my be answered in this post or in any of the following links!

Background: I started this thread because of the explosive growth of MikFroyo's Roms. The thread got so clogged with total new user's questions that it became difficult to find real answers to real problems. Not that new users can't learn, but I wanted to try and create a place for people who don't depend upon RomManager to control their lives!

Look, the way I see it, if you were smart enough to root your phone and start flashing new ROMs (that is the correct way to spell it btw, not roms, it is an acronym after all!), then you deserve concise answers to your issues based upon my experience in flashing phones that I have gathered in the past 3 years since I first started flashing things for my Razr phone.

I will assume you know how to use, and have properly setup, adb on your home computer. Yes, many of the commands you may see me or others post could be done through a terminal window on your phone, but your life will be much easier and more efficient if you have adb setup and working correctly on your home computer or laptop!

Here as a begining are some of the more useful posts I and others have made regarding flashing MikFroyo ROMs and some of the issues associated with this endeavor:

No touch tone recognition using MikZ?? Check solution here!

Thread that deals with changing the Power Control Widget in Notification Bar

Nick's repost of Mitchellvii's solution to Market D/L problems

Stopping your Market from Updating and losing it's skin

Nick's updated adb installation guide

joeykrim's

adb getting started

links

My

"How to make apps2sd work"

on your phone guide

The most recent repository of

Netarchy Kernels

How to "flash_image"

a recovery image to your phone

Pushing "Removed apps"

from MikFroyo to your phone

Having

"Wifi scans constantly but cannot connect"

issues with MikFroyo?

Using a2sd "Sysinfo" command

to learn alot about your phone's current status

Info

about different Kernel types here

General statement I posted

about different hardware versions

A Hardware Engineer (me :o) view on

"Color vs Black and White"

Themes and battery useage

Much more to follow, but I thought this would get the ball rolling!
[EVO 4G Android Development] eVoKINGS:
You said razr Mr. Link man

sent from Kings Ultra UNleashed
[EVO 4G Android Development] Fr3sh2De4th:
Could you post how to get adb working? I tried it a while ago but havnt given it another shot
[EVO 4G Android Development] jklong03:
This is not my work, but a good starting point is provided at: http://xdaforums.com/showthread.php?t=694250

Browse the entire thread if you like, but the download links are in the 1st post. Thanks for the guide goes to joeykrim.
[EVO 4G Android Development] chefdrew:
I just flashed mikfroyo, got it working, then flashed the kernal that you suggested.

My wifi turns on for a second, does not connect, then turns off and says unable to scan for wifi??? I did do a full wipe, cache and dalvik before flashing mikfroyo.

Any suggestions?
[EVO 4G Android Development] luckylui:
All in one blow flash the rom and kernel back to back. Then reboot and enjoy! :-)
[EVO 4G Android Development] chefdrew:
thank you I will give it a try. do I need to wipe anything before or after the flash?
[EVO 4G Android Development] luckylui:
Do the regular wipe of everything and then just flash the rom n kernel all on the same time n reboot
[EVO 4G Android Development] chefdrew:
I just tried it and nothing has changed?
[EVO 4G Android Development] selders59:
Nice thought to start this thread ! Kudos my man!

"Walk by Faith-not by Sight"
[EVO 4G Android Development] luckylui:
Do u have the formatall.zip?
[EVO 4G Android Development] chefdrew:
Not sure I know what that us, so maybe not...
[EVO 4G Android Development] luckylui:
I want u to flash this zip ima link u too.

Flash the zip and then wipe everything again twice then from there flash the rom n kernel all in one recovery visit..

So

One- flash the formatall.zip

Two- wipe cache dalvik n data n sd ext two times

Three- flash rom

Four- flash kernel

On the same recovery session.

By the way what kernel u using?

Heres the formatall.zip link

http://db.tt/VKtEHjt
[EVO 4G Android Development] xlGmanlx:
flash cache after format all......i don't think so...... ;) i always boot into ROM before i do the kernel just in case, but i am paranoid haha
[EVO 4G Android Development] chefdrew:
I did a full wipe, cache/dalvik, system & boot wipe. Flashed mikfroyo then the kernal, reboot...viola!!! Everything is up & running...
[EVO 4G Android Development] luckylui:
:-D

Good Luck buddy! Enjoy your time w the rom, its a beauty.
[EVO 4G Android Development] nick1313:
Widget Text edit

Hey you might stick this in your popular solutions OP.

Link
[EVO 4G Android Development] nick1313:
Slow Market.

Thanks to Mitchellvii

JK you can just link to his post on this if you want since he actually found it. Here's the link

POSSIBLE SOLUTION TO SLOW MARKET:

As you use your Market, your /cache appears to fill up with .apk files call Download-1, Download-2, etc. Why Market chooses to just continually add these without deleting the older ones is beyond me. It eventually just eats up your /cache and slows Market Updates.

From what I can tell, there is absolutely no harm whatsoever in deleting these. You can delete them using Root Explorer + Multi-select or you can boot into Recovery and Wipe Cache. I am not sure if wiping /cache also clears Dalvik Cache if it is on /cache. However, if your phone takes a long time to reboot after wiping /cache then I would assume it does since your phone has to rebuild Dalvik. Either way, nothing is damaged.

I have looked at the various "cache cleaners" on the Market and have not found one that clears out these "Download-#.apk" files. If someone knows of one, please share it with the room.

The act of going into Applications and clearing MikMarket Data & Cache does NOT delete these extraneous files.

CONCLUSION:

If your Market is being unresponsive, use:

1. Root Explorer to delete all of the "Download-#.apk" files from your /cache (root), or

2. reboot into recovery and wipe cache.

After this, your Market should become much more responsive. Option #1 is easier.
[EVO 4G Android Development] nick1313:
Changing CPU Frequencies

Hey JK another solution for you. Here's a link to the post. I'll copy and paste the actual post in here too. If you want me to delete that just pm me and I'll edit it all out so the link to post is the only thing.

See this post regarding this, it's some comments from JsChiSurf about what that script is/might be doing.

You could do this option instead which doesn't set any screen off profiles, from strong steve. POST
[EVO 4G Android Development] nick1313:
Dialer Background

Here's a post on how to change your dialer background. Compliments of Localguyincali.

LINK
[EVO 4G Android Development] nick1313:
Kudzus SD Card access

Thanks to Kudzus for this. Original post here.

To access your sdcard from windows explorer,

go here to get the FTP server for your phone http://www.rapfox.com/

It’s free and very easy to set up.

I then went to windows explorer and mapped my sdcard as a network drive.

You can now access your phones sdcard from windows explorer without plugging into usb.

Just use explorer to move files to and from your phone.

I then used MS Sync toy on my laptop … http://www.microsoft.com/downloads/e...5-98d0592d8c52 … Also free … to sync music and photos.

Just start the ftp server on the phone and click sync on my laptop and everything syncs up.
[EVO 4G Android Development] jklong03:
MikZ, not recognizing your touch tones??

If your touch tones aren't being recognized when you use the keypad during a call, goto Menu>Settings>Sound, scroll down to Feedback section and under "Audible touch tones" select either "Off" or "Long tones" and that will fix the problem!

This comes from the OP in Myn's WarmZ.
[Android Software/Hacking General [Developers Only]] felix.akinyemi:
Check it out http://androidapproved.com/item/spr...screened-kyocera-echo-for-199-99-this-spring/

video here http://androidapproved.com/item/sprint-kyocera-echo-handson-video/
[Android Software/Hacking General [Developers Only]] cordell12:
Dont they (sprint) get it? We want dual CORE, not dual screens. Needless to say that phone will FOREVER be on 2.2 and have ZERO apps! A BIG thumbs DOWN for sprint, IMO.
[Android Software/Hacking General [Developers Only]] yentlequible:
Eh... needs better specs. I agree with the dual core, and maybe another 512mb of ram. Still would be cool to have two apps open at the same time though
[Android Software/Hacking General [Developers Only]] bigboidomo:
I'm upseti waited 4 extra months instead of getting the ego
[Android Software/Hacking General [Developers Only]] felix.akinyemi:
I agree, would be better with better specs and thinner!! dual core would have sold this phone!!
[Android Software/Hacking General [Developers Only]] drcrappants:
What are the best media playing apps, of any variety and quickly why? If there isn't a good one that does both, list individual ones for video and music!

I am compiling a list of best applications for android of many categories, so leave your choice and a quick reason to help out the community!

If the app costs $, be sure to say so!
[Android Software/Hacking General [Developers Only]] TheSonicEmerald:
Poweramp for music, includes 15 DAY trial and $5 unlocker.

To video, I use the stock video player that comes with my Galaxy S as it plays a ton of media formats.

Rockin' DJ05, Liberty Gingerbread, Clocked at 1.2ghz Voodoo5

-----------------------------------

DD username: TheSonicEmerald
[Android Software/Hacking General [Developers Only]] tebower:
I am pretty taken with Zimly. www.zim.ly

It does music and video, and has a great interface and lockscreen controls. Check it out in the market.
[Android Software/Hacking General [Developers Only]] soulofkorea:
Mixzing Media Player is by far the best I've tried

Pic 1 - Home Screen

Pic 2 - Now Playing Screen; ability to tag and identify songs + download album artwork within the app

Pic 3 - Large Widget for the Desktop; many widget sizes to choose from, with or without artwork displayed

Pic 4 - Lock Screen Widget

Pic 5 - Equalizer, ability to stay on at all times as well.

The free version has way more features than some of the paid version media player apps out there, in fact I don't even know what they include in the paid version considering the free version kicks enough ass. I don't even use the Equalizer that comes with it but the sound is still amazing.
[G Tablet General] Evil_Droid:
**used Android ID Changer.. worked exactly as i needed..**

Im running vegan rom

i play a couple games that are tied into the phone( or whatever) unique id..

When i installed these games, they already act like i already have an account and will not let me login with my user(one account per device). My question is how do i change my id? If i used the id from my phone would it just act as a clone? Im fairly android literate but i cant quite figure exactly what i need to do to (or exactly explain my delima) any help or direction would be appreciated :) ~evil
[G Tablet General] TheJesus:
I'm not sure how to change this, I only learned of it the other day. The Swype Beta uses the ID to register you for the beta, so if you lack one like we do then it won't work and say its unsupported. The IDs are usually unique and only appear on "phones" (devices with cell capability). However, HTC and Samsung have applied one ID to all of one device so this breaks some programs. This leads me to believe we lack the ID entirely. If you find out where the programs are looking and how to add or change the ID make sure to post the information up for everyone.

Good luck!
[G Tablet General] Evil_Droid:
Found it. :) find and install Android ID changer. It allowed me to do what I needed.

That's what I needed to change. Somehow someone else had to have the same as mine, hard to believe but that had to be the case. Not sure if its the same thing swype is looking at though
[Captivate Q&A, Help & Troubleshooting] coolhead64:
Ok first things first,

Samsung Captivate, Firefly 2.05, Firebird2 v.8, JK4

Now, every now and then, my phone will just stop sending or receiving data

(such as texts) and I have to reboot it to fix it, sometimes it will show no signal but usually it says I still have better than 35% signal. Then the other thing is it always does it at some point after I plug it in. I don't know exactly when, like I go to sleep and when I wake up its not working. Any ideas
[Captivate Q&A, Help & Troubleshooting] crystalhand:
Sending and receiving sms does not use any data only msms do. So I would guess your martin problem is the modem.give another once a shot