Help needed/wanted in altering an app once decompiled. - HTC One X

Help wanted/needed. I am currently trying to make my own rom. Not for the purpose of entering the world of development. Its just for self satisfaction and stuff.
The help i need is with altering an app within the rom i am using as a base. I have managed to decompile and all that but once inside i really cannot understand code so don't have a clue what i am looking at. The app I wish to adjust is the setup wizard. If anyone is interested in helping please get in touch. Much appreciated. I could always give the app to whom knows how to do what i want but then i wouldn't learn from it which for me is the most important part of the process. So hopefully there is someone out there that can help. Not expecting to learn code java from this small piece of help but I know if i can identify what needed changed to eliminate one part of the setup wizard process will have not just helped but open many doors for further altering. Cheers in advance and willing to reward the willing help......

Its likely to be a smali edit that you will need to do.
There are going to be very few people in these forums who would be able to perform the work you require.
Working with the source if its available is your best bet as modifying the recompiled byte code is a real pain.
Simple things in source like colour=black become a specific lines like const v4, -0x1
Depending on where they are in the code. If your not familiar with smali you probably have a long struggle ahead but I hope you get sorted
Sent from my HTC One X using xda app-developers app

bagofcrap24 said:
Its likely to be a smali edit that you will need to do.
There are going to be very few people in these forums who would be able to perform the work you require.
Working with the source if its available is your best bet as modifying the recompiled byte code is a real pain.
Simple things in source like colour=black become a specific lines like const v4, -0x1
Depending on where they are in the code. If your not familiar with smali you probably have a long struggle ahead but I hope you get sorted
Sent from my HTC One X using xda app-developers app
Click to expand...
Click to collapse
Thx n thought it would be over my head. But have just remembered my I had tried swapping the setup wizard app with another and it didn't change anything. This Rom has somehow incorporated there changelog to show during setup wizard app running. Instead of having it in aroma. Its very cleaver and the change of app gave me no result. Any ideas where to look for changelog much appreciated.

Related

[Q][DEV] What are you using to make the roms? [Software or whatnots]

I was curious to what you the Developers of the awesome stuff we have for the Epic are using? Are you using the SDK tools we get from Google to make new things? Or are you using some other stuff? I kind of want to make some stuff but I don't know how?
Can you tell me what you used or are using to get where you are now? How do you do it? Can you tell me where or something?
Anything would be helpful.
And please no random "I want to know this too" or arguing to whats better? That would be saved for another post/thread. I do apologize if this is a repeat thread. I didn't see it on the front. I think this should be though.
I'm not at my computer at home right now, I'll update it later all of the apk tools.
1) Version control - I use subversion
2) Diff tool - I use beyond compare
3) Zip tool - I use 7zip
4) Issue tracking - I use Google code
5) Text editor - gVIM
6) Graphics - Photoshop CS5
I am curious as well.
Plapczyn, do you know of any tutorials on developing ROMs for the Epic? Does it require a lot of coding?
Source.google.com
Read it follow instructions to get and compile code. That lets you build a rom from source code where you can alter the os. The only source code that is released for the Epic is 2.1 As of now. If you have specific problems with doing any thing in their directions pm me.
Sent from my SPH-D700 using Tapatalk
ryno502 said:
I am curious as well.
Plapczyn, do you know of any tutorials on developing ROMs for the Epic? Does it require a lot of coding?
Click to expand...
Click to collapse
There are lots and lots and lots of tutorials. Google is your friend.
It doesn't require much coding, but you can do plenty of coding if you want.
Will check it out, thanks.
I was just curious because I am not much of a programmer. XHTML, CSS, and Basic PHP is about my limit lol.
These might help...
http://forum.xda-developers.com/showthread.php?t=667298
ryno502 said:
I am curious as well.
Plapczyn, do you know of any tutorials on developing ROMs for the Epic? Does it require a lot of coding?
Click to expand...
Click to collapse
If you want to make roms, check out the Chef Central forum here on XDA. There are threads with a lot of info on how to do things. Also, you should check out what is going on the other Galaxy S forums. If you want to do dev stuff, you first need to figure out what you want to do, and then go from there. Making a rom (actually any development really, agnostic of device or system), is more about making and pulling in small incremental changes and testing them.
That's the best advice I can give you...is to always break things down into small incremental changes that can be tested in between. Use source control and CHECK IN your changes. This goes for simply swapping out pngs in apks, or doing kernel mods. That way, you always know where your latest working copy is and you what changes caused your system to break...which it inevitably will. Nobody codes things correctly the first time every time. We all have the urge to just make a whole bunch of changes at once and see if it works. The thought is that we don't have enough time to test everything in between. Trust me, you will spent 5 times more time fixing bugs by doing it this way, over just doing it right the first time.
thats good advice plapczyn, thank you. I will evaluate what I want to do and go from there. my #1 priority is app developement, to better my resume and help with my career, but I am interested is possibly experimenting in ROMs too.

Mod the HTC Clock Widget

I want to modify the HTC Clock Widget so that it will open a different clock/alarm program than the stock when touched. I've pecked around in the files contained within it and off the bat I don't see anything that links to the clock. Any thoughts anyone?
Modify:com/htc/widget/clockwidget/util/MyUtil
Code:
.method public static launchWorldClockAp(Lcom/htc/home/HostActivity;)V
...
......
const-string v1, "com.htc.android.worldclock"
const-string v2, "com.htc.android.worldclock.WorldClockTabControl"
hillside said:
Modify:com/htc/widget/clockwidget/util/MyUtil
Code:
.method public static launchWorldClockAp(Lcom/htc/home/HostActivity;)V
...
......
const-string v1, "com.htc.android.worldclock"
const-string v2, "com.htc.android.worldclock.WorldClockTabControl"
Click to expand...
Click to collapse
Thanks, but what am I editing here? I can't find any reference to anything you've got there. Sorry for my noobness, but...I'm lost.
I do not know English, I rely on google translation
Need to decompile classes.dex, with baksmali or apktool.
gilliduck said:
Thanks, but what am I editing here? I can't find any reference to anything you've got there. Sorry for my noobness, but...I'm lost.
Click to expand...
Click to collapse
Yep, you'll have to decompile to exit smali code, like posted above. You'll basically need to enter the package name for the app you want it to open...then recompile...it's a process that if you really don't know what you're doing, you'll need to learn.
You're best bet would be to PM one of the Bad Seeds Customs themers, as I know stoney666 may be able to help you out, since he's themed them before. He may be able to do it/or point you into the right direction.
You can also download Fancy Widget from the Market. It offers Sense-like clock widgets that looks exactly like the HTC Sense clock. You can change what it launches when you touch the clock, weather and date within the app. Now the clock in this widget doesn't actually flip and the weather animations aren't as good as Sense, so that's the compromise. If you want to keep the flip, then you'd have to keep the HTC clock, and would have to do the procedure stated above.
Beautiful Widgets also has Sense-like clocks that has the same functionality.
I know this doesn't actually answer your question, however, is an alternative to get to the function that you want.
RMarkwald said:
Yep, you'll have to decompile to exit smali code, like posted above. You'll basically need to enter the package name for the app you want it to open...then recompile...it's a process that if you really don't know what you're doing, you'll need to learn.
You're best bet would be to PM one of the Bad Seeds Customs themers, as I know stoney666 may be able to help you out, since he's themed them before. He may be able to do it/or point you into the right direction.
Click to expand...
Click to collapse
No problem on the decompiling/compiling. Figured that out. The code is interesting looking, not as straight forward as I was hoping. I found the references to the clock app and changed those over to what I want (Gentle Alarm), but after pushing it back no joy. Not sure what the problem is, my first guess is that I didn't have system properly mounted and the push never actually pushed. When I get another day off I'll look at the code again and see what's up.
If anyone is willing to save me the time and potential frustration though, I'd like for Gentle Alarm (com.mobitobi.android.gentlealarm-1.apk) to be the apk that gets opened when I touch the clock widget. If anyone is willing to tell me specifically what to edit, I'd appreciate it. I'll eventually figure it out, but it'll take me just shy of forever I imagine.

[Q] Location Icon remove from Sense 3.0?

Has anyone figured out how to remove the location icon from sense 3.0 based roms?
I decompiled the services.jar and searched for the htccdmastatusbar.smali but its not included there.
I also checked in systemui.apk and found the htccdmastatusbar.smali but was unable to locate line:
Code:
invoke-virtual {v0, v1, v4}, Lcom/android/server/status/StatusBarService;->setIconVisibility(Landroid/os/IBinder;Z)V
Here is the thread for REF: http://forum.xda-developers.com/showthread.php?t=780324 NOTE: This thread is froyo based mods not GB.
If anyone has any info on this please share and thank you in advanced.
Regards
+ 1
I have been searching everywhere for how to do this.
I have an evo 3d and this is one of the only threads I could find about it on sense 3.0
From what I have read it is in services.jar what Smali to edit and what edits to make are what I am trying to figure out.
There are a few guys that have done it but with no real explanation of how.
I guess my next step is to pm one of the devs and ask directly because comparing files isn't giving me what I need.
+1 on this, I would LOVE it if this icon could be hidden.
Couldn't you just do it by way of theming and create a crystal clear .PNG that shows up instead of the location thingy? Its always at the very end of the icons up there anyways, might as well just trick the phone into thinking it's displaying something.
I think I read somewhere jermaine had accidentally done it and was figuring out how he did it. There's a thread in the development section.
Sent from my ADR6300 using XDA App
pwned3 said:
I think I read somewhere jermaine had accidentally done it and was figuring out how he did it. There's a thread in the development section.
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
Correct, he did figure it out, and twenty minutes later I was able to figure it out. I actually asked him to review what I'd found, crazy coincidence there. There's a couple of ways to do it, here's the way I did it.
Link

[Q] App Creation.

I was wondering if any of you were talented at creating an app, would mind assisting me in the creation of a app. I have the idea, and I know what I need and want it to do, I just have no idea how to create an app. The tool I use to use to create is down, untill sometime early 2012. So what I need is someone to.create it for me, you can take all credit for it, just a small thanks or a mention of my name in it is all I need. Pm me if anyone is interested.
XperianceIT
sent from my Xplay R800X, using XDA App!
Shameless bump.
Also did some checking around i found Eclipse and I have SDK, and JRE, but I have no flippin clue what the hell to do!
I know we have some app creators out there, little advice, something, anything.... thanks.
XperianceIT said:
Shameless bump.
Also did some checking around i found Eclipse and I have SDK, and JRE, but I have no flippin clue what the hell to do!
I know we have some app creators out there, little advice, something, anything.... thanks.
Click to expand...
Click to collapse
Tell us what it needs to do if you can give us an idea someone might feel more comfortable then
Sent from my R800x using XDA App
odst0016 said:
Tell us what it needs to do if you can give us an idea someone might feel more comfortable then
Sent from my R800x using XDA App
Click to expand...
Click to collapse
What i want it to do is to change the Carrier Name on the notification bar. I know how to do it all by hand, but i think it would be nice to turn it into a app. So the app would need to be able to access the eri.xml and be able to modify .xml, particularly the carrier name, then save it. So if the app had a screen where you could type in your carrier name, it can search the xml for a match, then it would have another box below that or something with what you want to change it to, then it replaces it and saves it. The app would also have to have some sort extraction, xml editor, and a repackage ability. There are a few apps i currently have that each individually can do 1 part of it, such as Ninjamorph for the extraction and reassembly, havent found a good xml editor yet, tried HEX Editor, it can modify but it does it in a way i currently dont understand.
So thats basically the jist of it, the other thing is it would only be able to work on CDMA devices, since i havent figured out how to change the carrier for GSM yet.

Rom Development / Modding How to get started?

Hey everybody,
I recently bought the galaxy nexus because I wanted to start getting into Rom Development.
I can programm Java and also programmed some simple apps..
But what I really wanted to do is to modify a Rom.
Can anybody tell me where to start? I read guides on how to compile from source and so on, but I don't know if that's what I need.
I want to add things like Notification bar quick settings to the rom.. Are there tutorials on how to develop these things?
Every help is appreciated, maybe you've got some great links for me, thanks!
00hero00 said:
Hey everybody,
I recently bought the galaxy nexus because I wanted to start getting into Rom Development.
I can programm Java and also programmed some simple apps..
But what I really wanted to do is to modify a Rom.
Can anybody tell me where to start? I read guides on how to compile from source and so on, but I don't know if that's what I need.
I want to add things like Notification bar quick settings to the rom.. Are there tutorials on how to develop these things?
Every help is appreciated, maybe you've got some great links for me, thanks!
Click to expand...
Click to collapse
start with decompiling apks (SystemUI.apk and framework-res.apk for example) , if u've wrote android apps before (and u said u did), then it shouldn't be that hard to look into the .xml and .jar files. when u finish, compile the .apk back. if u've worked with Eclipse then u probably know the android structure.
Edit: Here is an example of a "ROM modification" - just posting it to give u an example..
Well first thing is first. You need to have the bare basics of Android thoroughly understood obviously. Often overlooked as a first step in this process, just learning about(different than knowing about)the Android Open Source Project first will give you a specific sense of direction, purpose, as well as an identity in the community..
So again- I don't just mean knowing about it- I mean knowing exactlyhow the whole project is structured. Read about all the different types of contributions you/anyone can make to the Android ecosystem. Are you an aesthetics kind of person who would excel at UI designs for apps or whatever; Are you a person who has a good eye for problem solving? Maybe you should be scouring source code, trying to fix little-noticed "bugs" that "bug" the hell out of you. Once you know what you want to do, make sure you find out exactly how much Google provides for you, and what your own roles/responsibilities would be in the whole scheme of things.) This should give you a good idea of where you might fit in (with your current skill-set)and hopefully, it gives you some inspiration about the direction you might want to take it in the future.
Once you do this and "find your calling", post back here, and I'm sure that others qualified in that field will be more than happy to share how they got started.
There is no substitute to just jumping in and trying things though. Everybody makes their own journey differently, so do what comes naturally, and you can't go wrong.
Here ya go
http://forum.xda-developers.com/showthread.php?t=1661770
and maybe this as well?
http://www.xda-developers.com/andro...rs/ShsH+(xda-developers)&utm_content=FaceBook
Wow thank you every body for these great comments! I think I'll compile a Rom from source first and look through all the files..
Decompiling apks looks interesting too.
Thanks for the fast responses & links, you're awesome!
Okay so I've got another question..
One thing I always liked on some custom roms was the lockscreen flashlight..
If I would hold power for 3 seconds, the flashlight would turn on until I let go the power button.
I decompiled the framework-res.apk but didn't find anything there, just .xml files.
Where are the files where I can actually code / programm something for the lockscreen?
Try android.policy.jar
Usually the jar files contain the code, xml are for visual stuff.
But my question is, are u sure it is a lockscreen feature? (I mean the torch option) . Tbh this is the first time i hear of such a mod and i've been using android devices for over 2 yrs
Sent from my Galaxy Nexus using xda premium

Categories

Resources