[android-developers] Re: Compiling and obfuscating by command line...

2010-08-16 Thread sblantipodi
I have created the ant build as suggested by you but I can't figure it out. Unfortunantly I haven't got a day for this... :( Can't understand how it is possible that there is no guide on how to do that in a fast way. On Aug 9, 5:54 pm, Bob Kerns wrote: > Well, I suggested a better approach to se

[android-developers] Re: Compiling and obfuscating by command line...

2010-08-09 Thread joebowbeer
After local.properties, the next problem sounds like your script is missing a "setup" call. It's not too difficult to incorporate Proguard, and the payback can be significant in some situations. For a sample template, see the "optimize" target in the zxing source: http://code.google.c

[android-developers] Re: Compiling and obfuscating by command line...

2010-08-09 Thread Bob Kerns
Well, I suggested a better approach to setting up your ant script, and we haven't heard back from you on that, so I guess that counts as no news... I've extracted the relevant sections from your reply below, in case you missed it. You haven't told us of any problem with ProGuard -- the last thing

[android-developers] Re: Compiling and obfuscating by command line...

2010-08-09 Thread sblantipodi
so no news about obfuscating with Proguard? On Aug 4, 10:47 pm, DanH wrote: > "And my experience (non-Dalvik, to be sure) is that 'Class loading > time > goes up, execution efficiency is reduced' is incorrect, that the > opposite results -- in fact, that's one of the reasons to consider > obfusca

[android-developers] Re: Compiling and obfuscating by command line...

2010-08-04 Thread DanH
"And my experience (non-Dalvik, to be sure) is that 'Class loading time goes up, execution efficiency is reduced' is incorrect, that the opposite results -- in fact, that's one of the reasons to consider obfuscation despite the pitfalls -- so I think bad advice is being handed out with the good her

Re: [android-developers] Re: Compiling and obfuscating by command line...

2010-08-04 Thread { Devdroid }
On 2 August 2010 16:22, dys wrote: > For one of my applications I had to use progard (more to strip unused > classes than really to obfuscate. I made a small bat script beginning > after the initial compilation (still made in Eclipse) and calling > AAPT, PROGARD, DX, APKBUILDER, JARSIGNER and ZIPA

[android-developers] Re: Compiling and obfuscating by command line...

2010-08-02 Thread dys
For one of my applications I had to use progard (more to strip unused classes than really to obfuscate. I made a small bat script beginning after the initial compilation (still made in Eclipse) and calling AAPT, PROGARD, DX, APKBUILDER, JARSIGNER and ZIPALIGN. Are you interested ? On 1 août, 14:08

[android-developers] Re: Compiling and obfuscating by command line...

2010-08-02 Thread Bob Kerns
I disagree. It's off topic. Except for the point about it being harder to decompile Dalvik byte codes, but that's just a matter of some tool development work. And my experience (non-Dalvik, to be sure) is that "Class loading time goes up, execution efficiency is reduced" is incorrect, that the op

[android-developers] Re: Compiling and obfuscating by command line...

2010-08-01 Thread Indicator Veritatis
Pointing out the pitfalls of obfuscation is NOT "moving the thread off topic". For in order for you to understand the answer to your immediate question, "has anyone had success" at it, you have to understand what 'success' could MEAN in the context. And DanH has been quite generous with exactly the

[android-developers] Re: Compiling and obfuscating by command line...

2010-08-01 Thread sblantipodi
Thanks for your reply, very appreciated. I'm hanging there... Since google recommends obfuscation, why don't ask it to release a guide on how to obfuscate apk? On Aug 1, 7:27 am, Miguel Morales wrote: > Looks like that's defined in: > ant/ant_rules_r2.xml and templates/android_rules.xml > not s

Re: [android-developers] Re: Compiling and obfuscating by command line...

2010-07-31 Thread Miguel Morales
Looks like that's defined in: ant/ant_rules_r2.xml and templates/android_rules.xml not sure where this is supposed to be included. you'll have to figure that out. On Sat, Jul 31, 2010 at 7:38 AM, sblantipodi wrote: > Wow, thanks this maked me goes forward to next error :) > thanks... > > Target "

[android-developers] Re: Compiling and obfuscating by command line...

2010-07-31 Thread sblantipodi
Wow, thanks this maked me goes forward to next error :) thanks... Target "package-resources" does not exist in the project what does it means, how can I specify package-resources? Thanks. On Jul 30, 11:34 pm, Miguel Morales wrote: > Make sure you have the included files such as: > > > Which sh

Re: [android-developers] Re: Compiling and obfuscating by command line...

2010-07-30 Thread Miguel Morales
Make sure you have the included files such as: Which should have: sdk.dir=/path/to/sdk_root Which should have: sdk-location=/path/to/sdk_root and Which should have: target=android-3 ##or whatever On Fri, Jul 30, 2010 at 12:00 PM, sblantipodi wrote: > done, same problem... :( > > On Jul 30

[android-developers] Re: Compiling and obfuscating by command line...

2010-07-30 Thread sblantipodi
done, same problem... :( On Jul 30, 7:46 pm, Mark Murphy wrote: > If this is a normal Android project, run android update project -p > ..., where ... is the path to your project, and it will create or > repair your local.properties file. > > On Fri, Jul 30, 2010 at 1:31 PM, sblantipodi > > wrote

[android-developers] Re: Compiling and obfuscating by command line...

2010-07-30 Thread sblantipodi
I have listed it in the main.xml, the problem seems that ant doesn't find the SDK... if you found my error on google "taskdef class com.android.ant.SetupTask cannot be found" you will find dozens of people with my same problem, but I can't find a solution yet... On Jul 30, 6:59 pm, Frank Weiss w

Re: [android-developers] Re: Compiling and obfuscating by command line...

2010-07-30 Thread Mark Murphy
If this is a normal Android project, run android update project -p ..., where ... is the path to your project, and it will create or repair your local.properties file. On Fri, Jul 30, 2010 at 1:31 PM, sblantipodi wrote: > I have listed it in the main.xml, the problem seems that ant doesn't > find

Re: [android-developers] Re: Compiling and obfuscating by command line...

2010-07-30 Thread Frank Weiss
On Fri, Jul 30, 2010 at 5:14 AM, sblantipodi wrote: > Ok, since I founded no way to automatically do it with netbeans now > I'm trying the ant way posted here: > http://just2us.com/2009/07/tutorial-obfuscate-an-android-application/ > previously in this thread. > > I followed all the instructions b

[android-developers] Re: Compiling and obfuscating by command line...

2010-07-30 Thread sblantipodi
You are so kind answering me and I really appreciate it but there are many answers, all are off topic. I haven't asked if it is good to obfuscate or if I need to switch to NDK, I asked if someone succeded obfuscating standard android class using ant. Please don't move this thread off topic. Thanks

[android-developers] Re: Compiling and obfuscating by command line...

2010-07-30 Thread DanH
Keep in mind that what goes onto the phone isn't Java bytecodes but rather the Dalvik translation. Much harder to back-translate than bytecodes. (I've seen obfuscated bytecodes and it's not pretty. Class loading time goes up, execution efficiency is reduced, the odds of hitting a bug, either in

Re: [android-developers] Re: Compiling and obfuscating by command line...

2010-07-30 Thread Jonas Petersson
Well, how about going native? (NDK) That should be somewhat more challenging than decompiling java. Good luck / Jonas On 07/30/2010 04:11 PM, sblantipodi wrote: Ok, thanks for the suggestions, any other idea? :) On Jul 30, 2:59 pm, DanH wrote: Just say no to obfuscation. On Jul 30

[android-developers] Re: Compiling and obfuscating by command line...

2010-07-30 Thread sblantipodi
Ok, thanks for the suggestions, any other idea? :) On Jul 30, 2:59 pm, DanH wrote: > Just say no to obfuscation. > > On Jul 30, 3:36 am, sblantipodi wrote: > > > Since I'm going mad trying obfuscating my projects on Netbeans and > > it's not reasonable > > at the moment for me to switch to Eclip

[android-developers] Re: Compiling and obfuscating by command line...

2010-07-30 Thread DanH
Just say no to obfuscation. On Jul 30, 3:36 am, sblantipodi wrote: > Since I'm going mad trying obfuscating my projects on Netbeans and > it's not reasonable > at the moment for me to switch to Eclipse I need a command line script > that let me > build and obfuscate my APK... > > Is there some ex

[android-developers] Re: Compiling and obfuscating by command line...

2010-07-30 Thread sblantipodi
Ok, since I founded no way to automatically do it with netbeans now I'm trying the ant way posted here: http://just2us.com/2009/07/tutorial-obfuscate-an-android-application/ previously in this thread. I followed all the instructions but I get this error from ant o_O taskdef class com.android.ant.