HELP!.. I can't recompile framework-res.apk - Lenovo Z5 Pro GT Themes, Apps, and Mods

HELP!.. I can't recompile framework-res.apk
Zui 11.1.021
:สับสน:
Apktool apktool_2.4.1
Windows 10

Related

I can not edit string.xml, why? (apkmanager 5.0)

Hello guys, I state that I am no expert.
When decompiling a apk with apkmagager I find the folder with values ​​in the file string.xml, when I go to compile it can not find the folder inside the folder keep values/ string.xml, why?
How do I edit the file string.xml?
Thanks to all
Sorry for the inconvenience
make sure when you decompile the SystemUI.apk you also put framework-res .apk in your apktool folder. Then in cmd type
apktool if framework-res .apk
apktool d SystemUI.apk
Accidentally sent from my Google Nexus S using XDA Premium

Error during decompile

I have 4 files in c drive:
apktool.jar
baksmali
smali
***.apk
I write this in cmd: apktool d ***.apk edit
but it error that : apktool doesn't regonzid an internal command....
what should I do?
Amin` said:
I have 4 files in c drive:
apktool.jar
baksmali
smali
***.apk
I write this in cmd: apktool d ***.apk edit
but it error that : apktool doesn't regonzid an internal command....
what should I do?
Click to expand...
Click to collapse
You will need the resource apks
Command example for dhd
apktool if com.htc.resources.apk
apktool if framework-res.apk
The above is required for dhd for some system apps these or not required for all makes and models
Then apktool d ****. Apk
Sent from my HTC Desire HD using XDA App
I thought everything had to be in c:windows/ and the .apk to work with had to be in the 'user' folder(the one with my documents and blah).
That's how I do it on windows.
Still no luck!
I haven't any problem in win7...but now with xp....
I found the problem!
it's from my windows...my win is damaged so I install a new one

Apktool with our XS

Well, im having problems with apktool. Im using this version: http://forum.xda-developers.com/showthread.php?t=1755243
But its not working... i extract the files into a fodler, i put the java file there (it gives me an error if the java file is not on the folder) and i put framework-res and SemcGenericUxpRes apks on the folder, then from the console "apktool if "both resources" and then "apktool d SystemUI.apk" and even if i dont touck anything, after "apktool b SystemUI" when i push the new SystemUI bak to the phone its not working
im missing something?

Apktool fix for windows PC

We all suffer a lot for apktool error.....
This is so annoying isn't it !!:crying::crying::crying:
Most of us canrt recompile successfully
I am going to give the fix for this:cyclops::cyclops::cyclops:
Download this apktool in attachment
Now extract is to your windows pc C;//users/(your name)/apktool
Now download JDK from java.com and remove all java softs you used before!!!:silly:
Now take these from your ROMS system/framework framework-res.apk,semcgenericuxpres.apk and mediatek-res.apk(if you have ).
Copy jre(whole folder) from programme files java to C;//users/user/apktool
THen open control panel > java > go to java tab > now click view > then click find > now take it to the apktool folder and then click next and minimize it dont maximize.
Not open command promt from the apktool folder and type apktool if framework-res.apk , apktool if semcgenericuxpres.apk and all other frameworks you have :laugh::laugh::laugh::laugh:
Code:
apktool if framework-res.apk
You have to chose chose frameworks with your brain :good::good::good::good:
Now take any thing from that rom like settings.apk
To decompile type apktool d settings.apk
Code:
apktool d settings.apk
Then do your works and then to recompile type
Code:
apktool b settings
The command for signing is given in the apktool use that for signing the apk :victory::victory::victory::victory:
You are done ! Any problem comment here !!!!:fingers-crossed::fingers-crossed::fingers-crossed:
Yasinarefin said:
We all suffer a lot for apktool error.....
This is so annoying isn't it !!:crying::crying::crying:
Most of us canrt recompile successfully
I am going to give the fix for this:cyclops::cyclops::cyclops:
Download this apktool in attachment
Now extract is to your windows pc C;//users/(your name)/apktool
Now download JDK from java.com and remove all java softs you used before!!!:silly:
Now take these from your ROMS system/framework framework-res.apk,semcgenericuxpres.apk and mediatek-res.apk(if you have ).
Copy jre(whole folder) from programme files java to C;//users/user/apktool
THen open control panel > java > go to java tab > now click view > then click find > now take it to the apktool folder and then click next and minimize it dont maximize.
Not open command promt from the apktool folder and type apktool if framework-res.apk , apktool if semcgenericuxpres.apk and all other frameworks you have :laugh::laugh::laugh::laugh:
Code:
apktool if framework-res.apk
You have to chose chose frameworks with your brain :good::good::good::good:
Now take any thing from that rom like settings.apk
To decompile type apktool d settings.apk
Code:
apktool d settings.apk
Then do your works and then to recompile type
Code:
apktool b settings
The command for signing is given in the apktool use that for signing the apk :victory::victory::victory::victory:
You are done ! Any problem comment here !!!!:fingers-crossed::fingers-crossed::fingers-crossed:
Click to expand...
Click to collapse
No idea what issues your having as many of us here have no issues with apktool
zelendel said:
No idea what issues your having as many of us here have no issues with apktool
Click to expand...
Click to collapse
Use the Bangladeshi phones like symphony walton ! Then you will understand !
Yasinarefin said:
Use the Bangladeshi phones like symphony walton ! Then you will understand !
Click to expand...
Click to collapse
Not likely as there is no access to those devices in most places in the world. I also searched for the device and it seems like it is a china based import which now makes sense.,

Modifying APKs on Lollipop

Hello everyone,
I hope I'm posting this to the right forum.
Up until Android 4.4 KitKat we were able to use apktool for decompiling an apk, making modifications and then recompiling it.
In case we were dealing with an ODEXed ROM, we could also use backsmali and various other tools to deodex before using apktool.
Now, in Lollipop, which uses ART, we get an APK file, but also a .odex file in a '/arm' subfolder.
From what I've read so far, that's not really an odex file, but rather an Android runtime .OAT file.
My question is - how does this affect our abilities to edit APKs?
Is it possible to "deodex" the OAT file to get an all-inclusive APK to use with apktool? If so, how?
After we rebuild the APK, can we just run it 'deodexed' or do we need to recreate an OAT file?
Any insight would be appreciated
purpleman2k said:
Hello everyone,
I hope I'm posting this to the right forum.
Up until Android 4.4 KitKat we were able to use apktool for decompiling an apk, making modifications and then recompiling it.
In case we were dealing with an ODEXed ROM, we could also use backsmali and various other tools to deodex before using apktool.
Now, in Lollipop, which uses ART, we get an APK file, but also a .odex file in a '/arm' subfolder.
From what I've read so far, that's not really an odex file, but rather an Android runtime .OAT file.
My question is - how does this affect our abilities to edit APKs?
Is it possible to "deodex" the OAT file to get an all-inclusive APK to use with apktool? If so, how?
After we rebuild the APK, can we just run it 'deodexed' or do we need to recreate an OAT file?
Any insight would be appreciated
Click to expand...
Click to collapse
Files needed:
1. bootoat2dex.jar
2. Cygwin
3. APKTOOL
4. Java will need to be installed also
Install Cygwin and run it once so your userfolder is created, will be in c:/cygwin/home/<User Name>
Copy bootoat2dex.jar into this folder
Go to priv/app/SystemUI/arm/ and use 7zip to extract SystemUI.odex from the SystemUI.odex.xz file
Copy SystemUI.odex to your cygwin folder c:/cygwin/home/<User Name>/
Open cygwin and run the following command:
java -jar bootoat2dex.jar SystemUI.odex
This will output 2 folders dex and odex, if you look in the odex folder you should see SystemUI.odex.
Rename this file to classes.dex and drop it into the SystemUI.apk file
Follow the same instructions for the twframework-res.odex file also.
now copy the files SystemUI.apk, framework-res.apk and twframework-res.apk into you apktool folder and install framework ex. apktool if framework-res.apk, apktool if SystemUI.apk, apktool if twframework-res.apk
After the framework install you should be able to decompile SystemUI.apk, you should be able to do this with all the apk files.
C13v3r0n3 said:
Files needed:
1. bootoat2dex.jar
2. Cygwin
3. APKTOOL
4. Java will need to be installed also
Install Cygwin and run it once so your userfolder is created, will be in c:/cygwin/home/<User Name>
Copy bootoat2dex.jar into this folder
Go to priv/app/SystemUI/arm/ and use 7zip to extract SystemUI.odex from the SystemUI.odex.xz file
Copy SystemUI.odex to your cygwin folder c:/cygwin/home/<User Name>/
Open cygwin and run the following command:
java -jar bootoat2dex.jar SystemUI.odex
This will output 2 folders dex and odex, if you look in the odex folder you should see SystemUI.odex.
Rename this file to classes.dex and drop it into the SystemUI.apk file
Follow the same instructions for the twframework-res.odex file also.
now copy the files SystemUI.apk, framework-res.apk and twframework-res.apk into you apktool folder and install framework ex. apktool if framework-res.apk, apktool if SystemUI.apk, apktool if twframework-res.apk
After the framework install you should be able to decompile SystemUI.apk, you should be able to do this with all the apk files.
Click to expand...
Click to collapse
Great info! Thanks! I have used oat2dex.py to extract the OAT file, baksmali'd, modified smali code, recompiled it but that's where I'm stuck. How do I get it back into the original OAT format for inclusion in an Odexed rom? Any help would be greatly appreciated.
P.S. I'm working with SystemUI.odex.
jermaine151 said:
Great info! Thanks! I have used oat2dex.py to extract the OAT file, baksmali'd, modified smali code, recompiled it but that's where I'm stuck. How do I get it back into the original OAT format for inclusion in an Odexed rom? Any help would be greatly appreciated.
P.S. I'm working with SystemUI.odex.
Click to expand...
Click to collapse
I haven't been able to find anything that will take the files the other direction.

Categories

Resources