----- Original message -----
From: Michael Comella <[email protected]>
To: "mobile-firefox-dev" <[email protected]>,
[email protected]
Subject: [Android eng] FYI Android Studio 3.0 may inject profiler files
into APK
Date: Thu, 30 Nov 2017 12:00:21 -0800

Hey Android devs.

I discovered that Android Studio 3.0 will inject some files for the new
profiler
<https://developer.android.com/studio/preview/features/android-profiler.html>
(libperfa_x86.so, perfa.jar, perfd) into the APK under certain
conditions:
- Build the APK with Android Studio 3.0+ (i.e. not Gradle)
- Running on an API 26+ device (or perhaps explicitly enabled advanced
debugging on prior API levels)
- Have opened the “Android Profiler” tab at least once since the AS
process
started

These will go in the data directory, e.g.
`/data/data/org.mozilla.focus.debug`. You might care if you're making
some
assertions about what is in the app's data directory, like we were for
Focus after deleting the user's browsing session.

You can find the investigation of this in the corresponding
focus-android
github issue
<https://github.com/mozilla-mobile/focus-android/issues/1842>
and a (honestly, very) few additional details in my blog post
<http://mcomella.xyz/blog/2017/as-3-profiler-injects-files.html>.

Let me know if you have questions!
- Mike (:mcomella)
_______________________________________________
mobile-firefox-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/mobile-firefox-dev


-- 
  Nathan of Guardian
  [email protected]
_______________________________________________
List info: https://lists.mayfirst.org/mailman/listinfo/guardian-dev
To unsubscribe, email:  [email protected]

Reply via email to