Comments (12)
Can you post the apktool.yml associated with that file?
from apktool.
I will post you the file later as i am at work. But Its standard apktool.yml for MIUI with 1 to 5 frameworks ids added. You can view this file on my github in miui_src_fix directory.
from apktool.
I updated the structure of apktool.yml, and that error makes it seem like some automated scripting inserted some lines where they shouldn't be.
Either way, still post it after work :p
from apktool.
Ok this is my apktool.yml after I decompile framework-miui-res.apk:
version: 1.4.10.f53a296
apkFileName: framework-miui-res.apk
isFrameworkApk: true
usesFramework:
ids:
- 1
And before recompilation my script add IDs from 2 to 5 with this bash script:
if [ ${framework_copy} == "framework-miui-res.apk" ]
then
echo " - 2" >>
echo " - 3" >>
echo " - 4" >>
echo " - 5" >>
fi
done
So the file when recompile looks like this:
version: 1.4.10.f53a296
apkFileName: framework-miui-res.apk
isFrameworkApk: true
usesFramework:
ids:
- 1
- 2
- 3
- 4
- 5
from apktool.
Just post the raw contents of the apktool.yml :p
I know it's wrong somewhere
from apktool.
i don't know what you're expecting but ok, heres apktool.yml when I decompile previously builded framework-miui-res from my polish pack from latest MIUI:
http://pastebin.com/u69hd4za
And this is the file before recompilation (after decompile when my bash script puts IDs):
http://pastebin.com/spYNg3pT
from apktool.
Then there isn't a problem. I don't think your giving me the right file. I know what happened and this isn't the problem.
Framework IDs are no longer the last part of the file. The SDK Info is, so if you just echo -2 it'll fail as that first error said.
Your still not giving me the apktool.yml thats used in the build, otherwise it would be working.
from apktool.
Your're right. I didn't know that 1.5.0 adds SDK info in the end of apktool.yml:
http://pastebin.com/ubTzLMbJ
So what now should I do to compile MIUI framework properly? Is it still necessary to add dummy frameworks IDs into that file?
If yes, then I should look for some other linux commands to insert IDs before certain lines of code.
from apktool.
if [ $(basename $i) == "framework-miui-res.apk" ]; then
sed -i '7i \
\ - 2\
- 3\
- 4\
- 5' $path/d_apks/$(basename $i)/apktool.yml
sed -i '7i
- Edit in place
- 7th line insert contents below
- new line
/ - 2\
/ = start contents
\ = end contents, to next line.
bash
from apktool.
Can you post the code via pastebin? Github comments messes up this :)
I understand the code (using sed command) but whould like to make sure..
from apktool.
I'll look at delaying the write, so I can control the order of contents.
As this might break existing tools (as just proved).
from apktool.
Yup, this works :) Framework-miui-res has been compiled properly and rom boots without issue. Thanks.
from apktool.
Related Issues (20)
- [BUG]removing/moding line in smali HOT 4
- [BUG] Cannot recompile firefox HOT 2
- [BUG] Dex 040 unsupported? HOT 2
- [BUG] Error while building APK HOT 1
- thank u for looking at this this is a new thing that started happening when 6.0 came out HOT 1
- [BUG]When the assets directory contains the Assets folder, the generated apk cannot run HOT 3
- [BUG]Using aapt2 to export packages, extra spaces appear in the meta-data value in AndroidManifest HOT 1
- NEED HELP ANALYZE MY GAME APK FILE, IT'S REPORTED AS VIRUS BY GOOGLE PLAY PROTECT
- [BUG] Resources$NotFoundException for drawable when decompile and build apk HOT 1
- "error: expected enum but got (raw string) 1" HOT 1
- [BUG] Add all classes*.dex to doNotCompress HOT 4
- [BUG] Incorrect default setting of minSdkVersion HOT 2
- [BUG]Hello, I am suffering from the problem of not being able to integrate Payload with the Android application. I searched on several sites and did not find the solution, Knowing that I installed the version and it did not work every time I was asked to install 2.9.2 HOT 2
- Error while unpacking an .apk HOT 6
- [BUG] Error parsing styled strings HOT 1
- Reproducible Builds - Part 2 HOT 1
- [BUG] apktool d xx.apk generate minSdkVersion and targetSdkVersion as empty '', but aapt not HOT 7
- [BUG]apktool d xx.apk generate packageInfo.renameManifestPackage as empty '' HOT 3
- [BUG]
- [BUG] Couldn't Find Library, crash after recompiling without modify
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apktool.