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.
Related
Ok, so I searched that exact search string and did not see anything like it so here is my question....
I am using Zone23's EVO-Zone Riptide Rom. I love the ROM and the theme has everything I like except for the little Android guy. I like the blue, but as much as I dislike Apple as well I can do without the little crossed out apple on Andy's chest. I modified photoshopped it and it came out just fine. I thought maybe that was the same one used in the list of contacts too but when I list my contacts, you can see the small Andy with the crossed out apple on his chest in the list. I am looking for what apk file find that little icon. I have tried the following apks and did not see it. I am hoping someone may know:
phone.apk
htcdialer
contacts provider
htccontacts
phone
I did find the large one in: Phone.apk\res\drawable-hdpi\phone_default.png
I have attached the examples of what I did thus far and the one icon I am trying to change.
Thanks in advance for any help!
I changed the avatars all at once....so I'm not sure what is what, but there are 2 more in
system\framework\com.htc.resources\res\drawable-hdpi
bluebeast213 said:
I changed the avatars all at once....so I'm not sure what is what, but there are 2 more in
system\framework\com.htc.resources\res\drawable-hdpi
Click to expand...
Click to collapse
Yep, that did it. Never would have thought to look there. Lots of good things to change in that folder. Thanks for the help!
No problem, man.
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
So I've been looking thru all the forums trying to find a similar instance but I cannot. I want to edit the SGS2 Digital Clock widget to where if you touch click it, it will open up the TW Clock Package app. I'm not a programmer or developer, but I know this can be done because I've been using the Weather and Clock Widget from the market and it does exactly this. If I touch click the clock portion of the widget it will open up the clockpackage.apk. It can even be customized to open up a different apk. Now I've searched thru some of the xml files trying to find the lines of code that enable such a feature but with no luck. Anyone willing to help me on this or point me in the right direction, I would appreciate it.
radugb out
radugb said:
So I've been looking thru all the forums trying to find a similar instance but I cannot. I want to edit the SGS2 Digital Clock widget to where if you touch click it, it will open up the TW Clock Package app. I'm not a programmer or developer, but I know this can be done because I've been using the Weather and Clock Widget from the market and it does exactly this. If I touch click the clock portion of the widget it will open up the clockpackage.apk. It can even be customized to open up a different apk. Now I've searched thru some of the xml files trying to find the lines of code that enable such a feature but with no luck. Anyone willing to help me on this or point me in the right direction, I would appreciate it.
radugb out
Click to expand...
Click to collapse
That would require that apk's source code, reverse engineering, programming experience, and a recompile. You could try looking up on how you'd go about decompiling apks? I'm also betting that you'll need android sdk, or at the least, Eclipse equivalent programming software for programming.
Sent from my SPH-D700 using XDA App
Wow. Thats a lot more work than I thought it would be. Probably best to leave it to the professionals.
radugb said:
Wow. Thats a lot more work than I thought it would be. Probably best to leave it to the professionals.
Click to expand...
Click to collapse
Since its something as simple as making a widget 'clickable' for launching a different app, I'm sure there's pre-made program templates of some sort made by other devs who have such function, the issue at hand would still be the same though.
Sent from my SPH-D700 using XDA App
Yeah I figure since it was more a widget question than an app submission I'd better post it in the Q&A forum.
Not sure if this belongs here or in the Android Development Forum. I want to modify the SGS2 Digital Clock widget by adding an "onClickpendingIntent"?? (I think that's what its called. Basically I when I tap on the widget I want it to open up a specific app (clockpackage.apk) so that I can access my alarms easily. Currently I am using Weather and Toggle Widget and it has this option built in. I have googled the subject and found a page on how to do it, but I am not a programmer nor a developer so this is way over my head. I know how to open an apk to modify the hdpi images it contains but that's about it. Here is the site that explain(somewhat) how to do it. http://stackoverflow.com/questions/3589741/how-to-open-a-application-from-widget-in-android
If someone could give me more info on what xml file I need to create or modify within the apk (and how to create or modify it). I imagine I might only need to insert the specific code into one of the xml files and then insert clock package.apk into the code somewhere and resign the apk, but I want to be sure. Any advice would be appreciated.
radugb out
radugb said:
Not sure if this belongs here or in the Android Development Forum. I want to modify the SGS2 Digital Clock widget by adding an "onClickpendingIntent"?? (I think that's what its called. Basically I when I tap on the widget I want it to open up a specific app (clockpackage.apk) so that I can access my alarms easily. Currently I am using Weather and Toggle Widget and it has this option built in. I have googled the subject and found a page on how to do it, but I am not a programmer nor a developer so this is way over my head. I know how to open an apk to modify the hdpi images it contains but that's about it. Here is the site that explain(somewhat) how to do it. http://stackoverflow.com/questions/3589741/how-to-open-a-application-from-widget-in-android
If someone could give me more info on what xml file I need to create or modify within the apk (and how to create or modify it). I imagine I might only need to insert the specific code into one of the xml files and then insert clock package.apk into the code somewhere and resign the apk, but I want to be sure. Any advice would be appreciated.
radugb out
Click to expand...
Click to collapse
Aren't you the same user who asked this in the apps section? I see you're still after it. Except this time with a much thorough study on what you want. I still say an xml edit won't suffice. I could be wrong though. I just thought most things that do with how an app runs require programming. Deccompiling, and recompiling.
Sent from my SPH-D700 using XDA App
Yup, that's me. I tend to be an absolute pest when I'm trying to figure these things out. In my research I found that this modification is possible if you edit the widget.xml file. Only thing is there are two of those in the res folder. Also, what program would I use to edit the xml file. I already have the Java Development Kit installed. To add to that, where in the xml file would I add the lines of code and where in that code where do I add the app name. The site I found doesn't give any of that info.
radugb said:
Yup, that's me. I tend to be an absolute pest when I'm trying to figure these things out. In my research I found that this modification is possible if you edit the widget.xml file. Only thing is there are two of those in the res folder. Also, what program would I use to edit the xml file. I already have the Java Development Kit installed. To add to that, where in the xml file would I add the lines of code and where in that code where do I add the app name. The site I found doesn't give any of that info.
Click to expand...
Click to collapse
I'm hoping someone can give you some kind of answer, as I'm looking to do some editing of an .Apk that doesn't release its source code.
Sent from my Samsung Legen-wait for it-dary! 4g
Depends on the modifications you want to make. The person who I emailed about this stated that because its a widget, and said widget has no click to open function already programmed into it, adding an onClickpendingIntent won't interfere with the functionality of the clock, and therefore doesn't require the source code. It might be different in your case depending on what you want to add/change.
Bumping my question. Maybe someone might know a different forum I can post in where I might get someone who can help?
radugb out
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.