{"action":"created","issue":{"url":"https://api.github.com/repos/iBotPeaches/Apktool/issues/934","labels_url":"https://api.github.com/repos/iBotPeaches/Apktool/issues/934/labels{/name}","comments_url":"https://api.github.com/repos/iBotPeaches/Apktool/issues/934/comments","events_url":"https://api.github.com/repos/iBotPeaches/Apktool/issues/934/events","html_url":"https://github.com/iBotPeaches/Apktool/issues/934","id":72676383,"number":934,"title":"APKTool 2.0.0 Loses Data","user":{"login":"IaguCool","id":8811086,"avatar_url":"https://avatars.githubusercontent.com/u/8811086?v=3","gravatar_id":"","url":"https://api.github.com/users/IaguCool","html_url":"https://github.com/IaguCool","followers_url":"https://api.github.com/users/IaguCool/followers","following_url":"https://api.github.com/users/IaguCool/following{/other_user}","gists_url":"https://api.github.com/users/IaguCool/gists{/gist_id}","starred_url":"https://api.github.com/users/IaguCool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IaguCool/subscriptions","organizations_url":"https://api.github.com/users/IaguCool/orgs","repos_url":"https://api.github.com/users/IaguCool/repos","events_url":"https://api.github.com/users/IaguCool/events{/privacy}","received_events_url":"https://api.github.com/users/IaguCool/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/iBotPeaches/Apktool/labels/Waiting%20for%20issuer","name":"Waiting for issuer","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-02T17:54:09Z","updated_at":"2015-05-02T18:41:22Z","closed_at":null,"body":"APKTool 2.0.0 just throws away a lot of data - properties and style attributes, missing folders...\r\nJust compare the 2 folders with WinMerge and you'll see how much mess there is.\r\n\"original\" folder is the original APK decompiled, while \"recompiled\" folder is the recompiled APK which was decompiled again.\r\n\r\nhttps://mega.co.nz/#!qVgSlKSL!vXRPIO8G12v6Q48-sNMCSQnzaHcSyq43I4Hj5Z5GVCI"},"comment":{"url":"https://api.github.com/repos/iBotPeaches/Apktool/issues/comments/98384853","html_url":"https://github.com/iBotPeaches/Apktool/issues/934#issuecomment-98384853","issue_url":"https://api.github.com/repos/iBotPeaches/Apktool/issues/934","id":98384853,"user":{"login":"iBotPeaches","id":611784,"avatar_url":"https://avatars.githubusercontent.com/u/611784?v=3","gravatar_id":"","url":"https://api.github.com/users/iBotPeaches","html_url":"https://github.com/iBotPeaches","followers_url":"https://api.github.com/users/iBotPeaches/followers","following_url":"https://api.github.com/users/iBotPeaches/following{/other_user}","gists_url":"https://api.github.com/users/iBotPeaches/gists{/gist_id}","starred_url":"https://api.github.com/users/iBotPeaches/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iBotPeaches/subscriptions","organizations_url":"https://api.github.com/users/iBotPeaches/orgs","repos_url":"https://api.github.com/users/iBotPeaches/repos","events_url":"https://api.github.com/users/iBotPeaches/events{/privacy}","received_events_url":"https://api.github.com/users/iBotPeaches/received_events","type":"User","site_admin":false},"created_at":"2015-05-02T18:41:22Z","updated_at":"2015-05-02T18:41:22Z","body":"Attributes going missing is usually an indication of a framework problem. This apk has a dependency on resources with `pkgId` 1 and `pkgId` 2. I don't think the framework I have installed as `pkgId` 2 is what this application wants, which would explain the missing attributes.\r\n\r\nAccording to `aapt`. This application requires\r\n\r\n```\r\nPackage Group 0 id=0x7f packageCount=1 name=com.sonyericsson.usbux\r\n  DynamicRefTable entryCount=1:\r\n    0x02 -> com.sonyericsson.uxp\r\n```\r\n\r\nApplication `com.sonyericsoon.uxp` with `pkgId` of 2.\r\n\r\n\r\nHowever, I follow this method for testing.\r\n\r\n`apktool d orig.apk`\r\n`apktool b orig -o new.apk`\r\n`apktool d new.apk`\r\n\r\nThen I compare the decoded folders of `orig.apk` and `new.apk`. However, decoding `new.apk` left me with this.\r\n\r\n```\r\nI: Regular manifest package...\r\nI: Decoding file-resources...\r\nI: Decoding values */* XMLs...\r\nException in thread \"main\" java.lang.ClassCastException: brut.androlib.res.data.value.ResStyleValue cannot be cast to brut.androlib.res.data.value.ResAttr\r\n\tat brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:65)\r\n\tat brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:496)\r\n\tat brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:252)\r\n\tat brut.androlib.Androlib.decodeResourcesFull(Androlib.java:134)\r\n\tat brut.androlib.ApkDecoder.decode(ApkDecoder.java:104)\r\n\tat brut.apktool.Main.cmdDecode(Main.java:165)\r\n\tat brut.apktool.Main.main(Main.java:81)\r\n```\r\n\r\nApktool does currently ignore no extension files. This is a regression from a previous fix confirmed in bug #921.\r\n\r\nSo yes there is a problem here somewhere, or its a side effect of the above problem. If you can find that framework file and upload it. That'll be great!\r\n"}}