AppVeil Milestone 1 Presentation by Joey Berringer and Iordanis Fostiropoulos

Goals of this Milestone The goals of this milestone have been to: ●

Research



Design



Document



Develop

Research A project of this nature requires a lot of research to determine the feasibility of the features and the approaches attempted. During this phase, we researched and determined which solution best fits the project at hand. We investigated how to manipulate Android APK files and learned how Android’ s Dalvik Bytecode is encoded.

Design After researching an overall design of the application was created and how it is expected to work.

Mockup Design - Main Page

Mockup Design - APK Install

Mockup Design - Permissions

Mockup Design - Log Files

Mockup Design - Main Page

Document Features Summary: User interface to patch apps and view log data Patching mechanism which modifies target apps Patched-in code that blocks access to certain features Patched-in code that records logs of feature accesses

Modifying APKs ●

Extract (unzip) classes.dex from the APK



Tweak dex file as needed ○

Use dexdump and docs to help understand dex files



Zip the modified dex file back into the APK



Compute SHA-1 checksum of the APK



Resign the APK with our own RSA key (jarsigner)



Use zip alignment on the APK (zipalign)

Modifying APKs - Example

Modifying APKs - Example $ mkdir demo1 $ cd demo1 $ wget https://f-droid.org/repo/org.droidparts.battery_widget_201205220.apk $ mkdir widget $ cd widget $ unzip ../*.apk $ build-tools/dexdump -d classes.dex > dump.txt $ less dump.txt $ tweak classes.dex $ zip -r ../battery1.apk classes.dex AndroidManifest.xml resources.arsc res $ cd .. $ keytool -genkey -v -keystore appveil.keystore -alias myalias \ -keyalg RSA -keysize 2048 -validity 10000 $ jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 \ -keystore appveil.keystore battery1.apk myalias $ build-tools/zipalign -v 4 battery1.apk battery2.apk $ platform-tools/adb start-server $ platform-tools/adb install battery2.apk

Modifying APKs - Example Hex diff: classes.dex -++ -++

00000000 00000000 00001e30 00001e30

64 64 1a 1a

65 65 05 05

78 78 bf bf

0a 0a 01 01

30 30 6e 6e

33 33 30 30

35 35 21 21

00 00 00 00

ef fc 59 59

f0 f0 06 06

fa 47 0a 0a

3e c9 03 03

b6 b6 12 12

ca ca 01 01

Dalvik instruction diff: -- 001e3e: 3a02 0800 ++ 001e3e: 2920 0800

|001b: if-ltz v2, 0023 // +0008 |001b: goto/16 0023 // +0008

Java source snippet: int level = 0; if (rawlevel >= 0 && scale > 0) { level = (rawlevel * 100) / scale; } mBatteryChargeLevel = level;

39 39 3a 29

23 23 02 20

|dex.035....>..9#| |dex.035...G...9#| |....n0!.Y.....:.| |....n0!.Y.....) |

Questions

AppVeil Milestone 1 Presentation

project at hand. We investigated how to manipulate Android APK files and learned how Android' s Dalvik Bytecode is encoded ... Y.....) |. Dalvik instruction diff: -- 001e3e: 3a02 0800 |001b: if-ltz v2, 0023 // +0008. ++ 001e3e: 2920 0800 |001b: goto/16 0023 // +0008. Java source snippet: int level = 0; if (rawlevel >= 0 && scale ...

1MB Sizes 3 Downloads 159 Views

Recommend Documents

Milestone 3 - Presentation Team Members : George Limniatis ...
Website/DB Initialization. ○ Able to create and view reports on individual students. ○ Currently hosted locally but easily portable to a dedicated server.

Presentation 2-1
Chip Block Diagram. Cur. MB. Ref. Pel. SRAMs ... IME Level C+ data reuse. CBn. CBn+1 CBn+2 ... Search Window Post-Mapping. Search Window Width. S e a.

Presentation 2-1
Search range H:[-96,95] V:[-64,63] with 1 reference ... Engine. Ref. Pel. SRAMs. RD-Cost. Main Ctrl. (MeP Core). SiS-DRAM I/F .... IME SAD Tree Optimization.

Sprint 1 Presentation -
Changes in Redmine and task traceability. Moving from research to actual code. Early integration has started today. Documentation. Hardware delivery ...

21-Milestone-CtoC
Page 1. MS – 21 : Maths Std. 3 Size : 7 Inch x 9.25 Inch. Page 2 ... riven an sua = | u a soo + uo a seo || 3 || > | o soo + eo o sec | * | * | < | Soo + so 2 see e e e  ...

10 Mitchell Milestone v3.pdf
Page 1 of 2. MILE HIGH CADET SQUADRON. Billy Mitchell Milestone. 1. Leadership Test – Comprehensive closed book exam (1 hour). __ /__ __ /__ ______.

Career Development Education - Presentation Slides (1).pdf ...
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Career ...

Biodiversity Presentation 1.pdf
Biodiversity Presentation 1.pdf. Biodiversity Presentation 1.pdf. Open. Extract. Open with. Sign In. Main menu. Displaying Biodiversity Presentation 1.pdf.

RF-Presentation-CHapter-1.pdf
prudently making low interest, fixed-rate, flexible. loans to eligible local borrowers (i.e., prospective. investors) to help them build the local tax base and. create or ...

Presentation
A fast, cheap and simple analytical method. .... limited data from Jordan ... data. • Some of those: Mishor Yamin,. Revivim – Mashabim, Sde-. Boker, Shivta ...

40-Milestone-E4-2011-CtoC.cdr
and Radian. o &LLullyrdsleyield-RLeClairl-uÅ¿&cil R.Luci Rots andla air. o risquield-RL (see Lastlaold dial. (23. MS-40 EnV. 4. Size: 7 Inch x 9.25 inch ...

PURN KAREL MILESTONE NI VIGAT DARSHAVATU PATRAK.pdf ...
Whoops! There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. PURN KAREL MILESTONE NI VIGAT DARSHAVATU PATRAK.pdf. PURN KAREL MILESTONE NI VIGAT DARSHAVATU PATRAK

Presentation Title Presentation Sub-Title
April 2010, Prahran, Melbourne. • Direct impacts ... Victoria. Currently infrastructure and facilities are designed based on past climate, not future climate. ... Sensitivity of Materials to Climate Change Impacts. Material. CO. 2. Cyclones. & Stor

Presentation Title Presentation Sub-Title
Climate change impacts – impact upon cycling conditions and infrastructure. Infrastructure and climate change risks for Vic. Primary impacts – impact upon ...

Milestone 3-1 Identification of major cuts in the 1980s - abstract.pdf ...
Page 2 of 8. Page 2 of 8. Page 3 of 8. Milestone 3-1 Identification of major cuts in the 1980s - abstract.pdf. Milestone 3-1 Identification of major cuts in the 1980s - abstract.pdf. Open. Extract. Open with. Sign In. Main menu. Displaying Milestone

Peds WPW ABEM Milestone PC1
Prioritizes critical initial stabilization action and mobilizes hospital support services in the ... o Discusses management of irregularly irregular wide complex tachycardia ... o Obtains new set of vitals after each administration of medication or.

Presentation Title Presentation Sub-Title
Helen Millicer, Member, Glen Eira BUG and Bicycle. Victoria Board. Thanks for permission to use slides from presentations given to PACIA members in Vic and ...

Kingdom East Governance Presentation 8.11.16 (1).pdf
Try one of the apps below to open or edit this item. Kingdom East Governance Presentation 8.11.16 (1).pdf. Kingdom East Governance Presentation 8.11.16 (1).

12-16-15 Ossining High School Balanced Scorecard Presentation (1 ...
12-16-15 Ossining High School Balanced Scorecard Presentation (1).pdf. 12-16-15 Ossining High School Balanced Scorecard Presentation (1).pdf. Open.

Meeting the Needs - Presentation Slides (1).pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Meeting the ...