Besides knowing whether you can safely edit classes.dex (I'd recommend
putting the relevant information in a separate file in the apk),
you're not going to be able to do what you have in mind without also
re-signing the apk.

JBQ

On 1/5/09, sudha <[email protected]> wrote:
>
> can i make changes in classes.dex file like..can I replace any string
> in classes.dex file with some other string(which is of the same
> length) and rezip the file.
> will this work for .apk on android??
>
> Plz Help me Its urgent
>
> Thanks
> Sudha Gupta
>
> On Dec 5 2008, 5:39 pm, "Dianne Hackborn" <[email protected]> wrote:
>> An .apk is read-only, you can't modify it.
>>
>> On Thu, Dec 4, 2008 at 11:19 PM, Sudha Gupta
>> <[email protected]>wrote:
>>
>>
>>
>> > Hello,
>> >  I have a application in J2me, its a client server application. In this
>> > application user registers the handset(with the phone number) on the web
>> > site , In return server sends a message to the handset with the link to
>> > download the client application on the handset.
>> > before download of the client application, server appends few
>> > values(like
>> > device id, user id) in the jad file.
>> >  I am developing the same application for Android, I wanted to know how
>> > this information (device id, user id) will be added in the apk in run
>> > time.
>>
>> > Plz help me
>>
>> > Thanks
>> > Sudha gupta
>>
>> --
>> Dianne Hackborn
>> Android framework engineer
>> [email protected]
>>
>> Note: please don't send private questions to me, as I don't have time to
>> provide private support.  All such questions should be posted on public
>> forums, where I and others can see and answer them.
> >
>


-- 
Jean-Baptiste M. "JBQ" Queru
Android Engineer, Google.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to