Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,782,883 Members 41,538 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Need some help modding APK

Tip us?
 
David 617
Old
#1  
David 617's Avatar
Senior Member - OP
Thanks Meter 234
Posts: 540
Join Date: May 2011
Default [Q] Need some help modding APK

I was trying to mod dotview apk to replace HTC voice assist with Google Now and maybe you can help me.
I decompiled the apk and stuck in logcats so I can follow the execution path but I cannot seem to get it to run.
First time I forgot to sign it, so that crashed.
But even once I signed it and pushed it to priv-app I couldn't boot my phone. It may be because I'm in ART... Idk.

I guess I'm a bit lost... Lol. Maybe you can help me...

How does odex/deodex affect apk modding?
Does art affect apk modding?
Do I need HTCs certificates or is the default test cert OK?

What would be the rough outline to mod an apk?

(I'm comfortable modding the smali, I just don't know how to put the apk back properly)

Thank you so much.


Sent from my HTC6525LVW using Tapatalk
 
scrosler
Old
#2  
scrosler's Avatar
Recognized Developer
Thanks Meter 51,122
Posts: 23,360
Join Date: Feb 2007
Location: Fargo

 
DONATE TO ME
Quote:
Originally Posted by David 617 View Post
I was trying to mod dotview apk to replace HTC voice assist with Google Now and maybe you can help me.
I decompiled the apk and stuck in logcats so I can follow the execution path but I cannot seem to get it to run.
First time I forgot to sign it, so that crashed.
But even once I signed it and pushed it to priv-app I couldn't boot my phone. It may be because I'm in ART... Idk.

I guess I'm a bit lost... Lol. Maybe you can help me...

How does odex/deodex affect apk modding?
Does art affect apk modding?
Do I need HTCs certificates or is the default test cert OK?

What would be the rough outline to mod an apk?

(I'm comfortable modding the smali, I just don't know how to put the apk back properly)

Thank you so much.


Sent from my HTC6525LVW using Tapatalk
You should place the original HTC certs in the Apk. I always do.

I Have noted that ART will not allow APK's to be modded easily and have to switch back to Dalvik Execution. I had this problem with APM.

As far as rough outline to Mod an apk that is a pretty open question.

I would say, downloaded it, decompile it, edit it, re-compile it. Push it / flash it.
The Following User Says Thank You to scrosler For This Useful Post: [ Click to Expand ]
 
David 617
Old
#3  
David 617's Avatar
Senior Member - OP
Thanks Meter 234
Posts: 540
Join Date: May 2011
Quote:
Originally Posted by scrosler View Post
You should place the original HTC certs in the Apk. I always do.

I Have noted that ART will not allow APK's to be modded easily and have to switch back to Dalvik Execution. I had this problem with APM.

As far as rough outline to Mod an apk that is a pretty open question.

I would say, downloaded it, decompile it, edit it, re-compile it. Push it / flash it.
Thanks

How did you get the original certs? Is that the meta.inf folder?
Do I need to 'Sign' the apk after recompiling or is moving meta.inf enough?

Should I worry about odex/deodex?

Sent from my HTC6525LVW using Tapatalk
 
nuts77
Old
#4  
nuts77's Avatar
Senior Member
Thanks Meter 60
Posts: 251
Join Date: Dec 2011
Hi,

just found out your thread,
no clue on how to help you here but i'd definitely be interested in your mod!

I'm using autovoice (a plugin for tasker for voice commands)... Once you find out hew to have google now work do you think it would be possible to make a mod for autovoice as well? (I'll pay a few beers for that!)

thanks for your work on that anyway

[HTC One M8] [HBOOT 1.53.0000 | Sunshine S-OFF | 1.54.401.10] [ARHD 8.1 with HK audio mod]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes