[Soot-list] Repackaging and signing apk

Modhi Alsobiehy m99m20 at hotmail.com
Fri Jun 13 12:13:57 EDT 2014


Thanks Steven!


I did not get how that would work!! the apk is already jimplified and modified!

I followed instrumenting Android  tutorial in which:

I used soot options to get the jimple files from apk source;

modified the jimple files;

used soot options to get dex file from jimple source;


now I have the modified classes.dex - found in sootoutput folder - and other “original” files /folders form the unpacked  apk - unpacked with 7z-.

in the tutorial, it is indicated that I should reassemble the apk, does that mean exchange the old classes.dex with the new dex file in the old apk and repack?? if so, how I should sign it?

if not, then what are the right steps to get the instrumented apk ready for installation?


Thank you!

-Modhi






Sent from Windows Mail





From: Steven Arzt
Sent: ‎Thursday‎, ‎June‎ ‎12‎, ‎2014 ‎7‎:‎42‎ ‎AM
To: soot-list at CS.McGill.CA





Hi,

You should not need to manually repackage the APK file by hand at all. 
Make sure the following Soot options are set:

-src-prec apk
-output-format dex
-process-dir <path-to-your-apk>
-android-jars <path-to-your-sdk-platforms-dir>

Afterwards, you need to manually sign the resulting file using 
jarsigner. Please then try to install your signed APK using adb install 
and send us the exact error message in case it fails.

Best regards,
   Steven

Am 11.06.2014 16:19, schrieb Modhi Alsobiehy:
> Hi all,
> 
> my question is regarding repackaging and signing apks
> I followed the tutorial of android instrumentation
> 
> since it was not mention specifically how to reassemble the package
> after “dexifying” the jimple files, I just unpacked the original
> apk and exchanged the old classes.dex file with the new modified one!
> I tried to install the new apk and it gave me “ installation
> failed!”
> did I repack it properly!!
> the added lines in the original apk are Log lines after other Log
> lines hence the class is already imported!
> Thanx in advance!
> 
> Sent from Windows Mail
> 
> 
> _______________________________________________
> Soot-list mailing list
> Soot-list at CS.McGill.CA
> https://mailman.CS.McGill.CA/mailman/listinfo/soot-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20140613/c6134b76/attachment.html 
-------------- next part --------------
_______________________________________________
Soot-list mailing list
Soot-list at CS.McGill.CA
https://mailman.CS.McGill.CA/mailman/listinfo/soot-list


More information about the Soot-list mailing list