{"action":"opened","issue":{"url":"https://api.github.com/repos/iBotPeaches/Apktool/issues/990","labels_url":"https://api.github.com/repos/iBotPeaches/Apktool/issues/990/labels{/name}","comments_url":"https://api.github.com/repos/iBotPeaches/Apktool/issues/990/comments","events_url":"https://api.github.com/repos/iBotPeaches/Apktool/issues/990/events","html_url":"https://github.com/iBotPeaches/Apktool/issues/990","id":93593701,"number":990,"title":"Keep original 'IDs' around for string/file resource values","user":{"login":"mmastrac","id":512240,"avatar_url":"https://avatars.githubusercontent.com/u/512240?v=3","gravatar_id":"","url":"https://api.github.com/users/mmastrac","html_url":"https://github.com/mmastrac","followers_url":"https://api.github.com/users/mmastrac/followers","following_url":"https://api.github.com/users/mmastrac/following{/other_user}","gists_url":"https://api.github.com/users/mmastrac/gists{/gist_id}","starred_url":"https://api.github.com/users/mmastrac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmastrac/subscriptions","organizations_url":"https://api.github.com/users/mmastrac/orgs","repos_url":"https://api.github.com/users/mmastrac/repos","events_url":"https://api.github.com/users/mmastrac/events{/privacy}","received_events_url":"https://api.github.com/users/mmastrac/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-07T18:11:50Z","updated_at":"2015-07-07T18:11:50Z","closed_at":null,"body":"The Android on-device implementation for TypedValue uses the underlying data value as a cache key in various places (ie: the Drawable cache in Resources). This allows it to ensure that the various configuration versions of a resource don't overwrite each other in the cache without having to compute a hash each time. \r\n\r\nFor projects where interacting with these on-device caches is important, we need a way to extract the raw version of the ResFileValue's data, ie: the index passed to mTableStrings to look up the string value in ARSCDecoder.java:\r\n\r\n```\r\n        return type == TypedValue.TYPE_STRING\r\n                ? mPkg.getValueFactory().factory(mTableStrings.getHTML(data))\r\n                : mPkg.getValueFactory().factory(type, data, null);\r\n``` \r\n\r\nI can provide a patch for this if it's something you'd accept. \r\n"}}