[Soot-list] Regenerating Androidmanifest.xml file after Instrumenting Android

Steven Arzt Steven.Arzt at cased.de
Mon Sep 29 08:20:10 EDT 2014


Hi Modhi,

 

After you have done your changes to your instance of AXmlHandler, you can call toByteArray(). This function will give you the new manifest file with all your changes as a byte array that you can then save to disk using normal Java IO classes.

 

Best regards,

  Steven

 

Von: Modhi Alsobiehy [mailto:m99m20 at hotmail.com] 
Gesendet: Montag, 29. September 2014 09:24
An: Steven Arzt
Cc: soot-list at sable.mcgill.ca; soot-list at CS.McGill.CA
Betreff: Re: AW: [Soot-list] Regenerating Androidmanifest.xml file after Instrumenting Android

 

Hi Steven,

Thanx a lot for your quick response!

Thanx to you, I am now able to read the manifest through the AXmlHandler but could not figure out how to remove or add permissions!

Would you please elaborate on that! I tried creating a new AXmlNode and called addSiblingBefore() to insert it but did not work!

 

Another question, after modifying the manifest, where i should find the regenerated AndroidManifest.XML file??

-Best,

Modhi


On Sep 27, 2014, at 2:13 PM, "Steven Arzt" <Steven.Arzt at cased.de> wrote:

Hi Modhi,

 

The “ProcessManifest“ class in FlowDroid support this feature. You can call “getAXml()” to get the AXmlHandler on which the class is based. The AXmlhandler can read and write binary xml files in the Android format.

 

Best regards,

  Steven

 

Von: soot-list-bounces at CS.McGill.CA [mailto:soot-list-bounces at CS.McGill.CA] Im Auftrag von Modhi Alsobiehy
Gesendet: Samstag, 27. September 2014 08:16
An: soot-list at sable.mcgill.ca; soot-list at CS.McGill.CA
Betreff: [Soot-list] Regenerating Androidmanifest.xml file after Instrumenting Android

 

Hi Soot users,

 

I managed to insert some profiling instructions into some android apks (using jimple IR) , however, because of the new addition, the Androidmanifest.xml files of the apps need to be updated to include some other required permissions!

 

Is there a way to regenerate the manifest file using soot? or this should be done separately??

 

Your quick response is highly recommended!

 

Thank you!

Modhi

 

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20140929/ad18a2b2/attachment-0003.html 


More information about the Soot-list mailing list