Thanks for the 'adb install -l' hint...very useful :)
I think that what I do is actually ok, but it doesn't work when installing
with the 'app encryption' (-l option).
This is what I do:
Resources appResources =
packageManager.getResourcesForApplication(appPackageName);
InputStream is = appResources.getAssets().open("drawable.xml");
...
In this example 'appPackageName' is the package name of the app installed
using app encryption. (while this code runs from another app)
By using the app encryption the
line appResources.getAssets().open("drawable.xml") fails with a
"java.io.FileNotFoundException: drawable.xml", while if I install it
without using app encryption it works fine.
Is there maybe another way to access the assets of another package?
Thanks,
Yuvi
On Tue, Oct 16, 2012 at 3:05 AM, Nikolay Elenkov
<[email protected]>wrote:
> On Tue, Oct 16, 2012 at 6:07 AM, YuviDroid <[email protected]> wrote:
> >
> > I'm experiencing the same issues...did you manage to find any solution?
> >
>
> Fix your apps to support Jelly Bean properly. Even on JB, APK resources are
> public and you can read them if you use the proper path or APIs. You can
> simulate 'app encryption' (forward locking) by installing using
>
> adb instal -l myapp.apk
>
> for testing.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
--
YuviDroid
Check out Launch-X <http://android.yuvalsharon.net/launchx.php> (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en