Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Q] Need some help modding APK

OP David 617

8th May 2014, 01:41 AM   |  #1  
David 617's Avatar
OP Senior Member
Thanks Meter: 246
 
590 posts
Join Date:Joined: May 2011
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
8th May 2014, 01:48 AM   |  #2  
scrosler's Avatar
Recognized Developer
Flag Fargo
Thanks Meter: 56,161
 
24,933 posts
Join Date:Joined: Feb 2007
Donate to Me
Quote:
Originally Posted by David 617

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: [ View ]
8th May 2014, 01:52 AM   |  #3  
David 617's Avatar
OP Senior Member
Thanks Meter: 246
 
590 posts
Join Date:Joined: May 2011
Quote:
Originally Posted by scrosler

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
1st June 2014, 09:18 AM   |  #4  
nuts77's Avatar
Senior Member
Thanks Meter: 64
 
286 posts
Join Date:Joined: Dec 2011
More
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
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes