{"action":"created","issue":{"url":"https://api.github.com/repos/iBotPeaches/Apktool/issues/1220","repository_url":"https://api.github.com/repos/iBotPeaches/Apktool","labels_url":"https://api.github.com/repos/iBotPeaches/Apktool/issues/1220/labels{/name}","comments_url":"https://api.github.com/repos/iBotPeaches/Apktool/issues/1220/comments","events_url":"https://api.github.com/repos/iBotPeaches/Apktool/issues/1220/events","html_url":"https://github.com/iBotPeaches/Apktool/issues/1220","id":147233979,"number":1220,"title":"Wrong forcedPackageId for framework-ext-res.apk from MiUI7 android 4.4.2","user":{"login":"Hikari-no-Tenshi","id":16803494,"avatar_url":"https://avatars.githubusercontent.com/u/16803494?v=3","gravatar_id":"","url":"https://api.github.com/users/Hikari-no-Tenshi","html_url":"https://github.com/Hikari-no-Tenshi","followers_url":"https://api.github.com/users/Hikari-no-Tenshi/followers","following_url":"https://api.github.com/users/Hikari-no-Tenshi/following{/other_user}","gists_url":"https://api.github.com/users/Hikari-no-Tenshi/gists{/gist_id}","starred_url":"https://api.github.com/users/Hikari-no-Tenshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hikari-no-Tenshi/subscriptions","organizations_url":"https://api.github.com/users/Hikari-no-Tenshi/orgs","repos_url":"https://api.github.com/users/Hikari-no-Tenshi/repos","events_url":"https://api.github.com/users/Hikari-no-Tenshi/events{/privacy}","received_events_url":"https://api.github.com/users/Hikari-no-Tenshi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-10T15:33:40Z","updated_at":"2016-04-11T11:05:55Z","closed_at":"2016-04-11T11:05:10Z","body":"1. Apktool Version: 2.1.0-180728-SNAPSHOT.\r\n2. Operating System: Windows.\r\n3. APK From: MiUI7 android 4.4.2.\r\n\r\nDecompiling APK with apktool writes wrong forcedPackageId to apktool.yml.\r\nFor framework-ext-res.apk it writes 16, but should be 17.\r\n\r\n```\r\n!!brut.androlib.meta.MetaInfo\r\napkFileName: framework-ext-res.apk\r\ncompressionType: false\r\ndoNotCompress:\r\n- arsc\r\nisFrameworkApk: true\r\npackageInfo:\r\n  forcedPackageId: '16'\r\n  renameManifestPackage: com.miui.rom\r\nsdkInfo: null\r\nsharedLibrary: false\r\nunknownFiles: {}\r\nusesFramework:\r\n  ids:\r\n  - 1\r\n  - 16\r\n  tag: null\r\nversion: 2.1.0-180728-SNAPSHOT\r\nversionInfo:\r\n  versionCode: '1010000'\r\n  versionName: 1.1.0.0\r\n```\r\n\r\nAPK\r\n[framework-ext-res.zip](https://github.com/iBotPeaches/Apktool/files/211822/framework-ext-res.zip)\r\n\r\nFrameworks\r\n[frameworks.zip](https://github.com/iBotPeaches/Apktool/files/211825/frameworks.zip)"},"comment":{"url":"https://api.github.com/repos/iBotPeaches/Apktool/issues/comments/208287614","html_url":"https://github.com/iBotPeaches/Apktool/issues/1220#issuecomment-208287614","issue_url":"https://api.github.com/repos/iBotPeaches/Apktool/issues/1220","id":208287614,"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":"2016-04-11T11:05:55Z","updated_at":"2016-04-11T11:05:55Z","body":"Took a different approach. `getCurrentResPackage` is used in APKs that are weird."}}