How to Deodex stock rom manually with Smali_baksmali Compiler (Tutorial) - Sony Xperia M

nah i will explain how to deodex stock rom with smali baksmali compiler, it's safe and simple way to deodex your firmware
first of all you must prepare this for your pc
Java JDK
Winrar
Smali Baksmali Compiler
and the last prepare your framework files from your /system/framework
- first make sure the application is already installed java jdk extract the files smali_baksmali anywhere if you've copied the files the framework of the folder system / framework folder into smali_baksmali
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
- if it is copy the apk file you want to deodex example odexnya SystemUI.odex SystemUI.apk and its file into the folder smali_baksmali
- after that do simultaneously press the shift key by right-clicking on the smali baksmali folder and select open command window here
- if open cmd like this
- enter the following command
java -jar baksmali.jar -x SystemUI.odex
if the above process is successful it will be in accordance with the picture below
- If you already enter this command again to remove the file classses.dex
******* java -Xmx1024m -jar smali.jar out -o classes.dex
- if the above process is successful it will appear classes.dex file in the folder you smali_baksmali
- if it is open earlier systemui.apk file using winrar right click and open with winrar until the demolition of the file systemui.apk
- if it drag classes.dex files into winrar to enter into one piece
completed and congratulations you have an application that is already in the file deodex well now just copy the file into the system / app and set permissions rw-r-r
nah may be that's my way, deodex with smali_baksmali compiler, if you have problem with java just tell me ok

Nice tutorial dude

Yap, but it little complicated but the result it's always working
Sent from my C1905 using XDA Free mobile app

Nicklas Van Dam said:
nah i will explain how to deodex stock rom with smali baksmali compiler, it's safe and simple way to deodex your firmware
first of all you must prepare this for your pc
Java JDK
Winrar
Smali Baksmali Compiler
and the last prepare your framework files from your /system/framework
- first make sure the application is already installed java jdk extract the files smali_baksmali anywhere if you've copied the files the framework of the folder system / framework folder into smali_baksmali
- if it is copy the apk file you want to deodex example odexnya SystemUI.odex SystemUI.apk and its file into the folder smali_baksmali
- after that do simultaneously press the shift key by right-clicking on the smali baksmali folder and select open command window here
- if open cmd like this
- enter the following command
java -jar baksmali.jar -x SystemUI.odex
if the above process is successful it will be in accordance with the picture below
- If you already enter this command again to remove the file classses.dex
******* java -Xmx1024m -jar smali.jar out -o classes.dex
- if the above process is successful it will appear classes.dex file in the folder you smali_baksmali
- if it is open earlier systemui.apk file using winrar right click and open with winrar until the demolition of the file systemui.apk
- if it drag classes.dex files into winrar to enter into one piece
completed and congratulations you have an application that is already in the file deodex well now just copy the file into the system / app and set permissions rw-r-r
nah may be that's my way, deodex with smali_baksmali compiler, if you have problem with java just tell me ok
Click to expand...
Click to collapse
Cant download Smali Baksmali Compiler can you please give any other link

yashgumaste said:
Cant download Smali Baksmali Compiler can you please give any other link
Click to expand...
Click to collapse
the link is completely working, ok wait i will give you another link

yashgumaste said:
Cant download Smali Baksmali Compiler can you please give any other link
Click to expand...
Click to collapse
here you go bro http://www.sharebeast.com/xey43d0hzc4i try to disable sharebeast downloader if you want to direct download

Nicklas Van Dam said:
here you go bro http://www.sharebeast.com/xey43d0hzc4i try to disable sharebeast downloader if you want to direct download
Click to expand...
Click to collapse
:good: downloaded

yashgumaste said:
:good: downloaded
Click to expand...
Click to collapse
Have try

First I copied the framework folder into my pc.
Then copied all the jar files from smali_baksmali.rar into framework folder and...
When I typed this commond -
java -jar baksmali.jar -x SystemUI.odex
it said cannot find SystemUI.odex
What to do?
My phone is LG-E455
Do I also have to copy LGSystemUI.apk ?

yashgumaste said:
First I copied the framework folder into my pc.
Then copied all the jar files from smali_baksmali.rar into framework folder and...
When I typed this commond -
java -jar baksmali.jar -x SystemUI.odex
it said cannot find SystemUI.odex
What to do?
My phone is LG-E455
Do I also have to copy LGSystemUI.apk ?
Click to expand...
Click to collapse
Ya you must copy the stock systemui.apk too

Nicklas Van Dam said:
Ya you must copy the stock systemui.apk too
Click to expand...
Click to collapse
I got classes.dex file but did not understand what to do next?

yashgumaste said:
I got classes.dex file but did not understand what to do next?
Click to expand...
Click to collapse
Next, open your systemui.apk with winrar only select open with and select winrar. After open drag your classes.dex file to your systemui.apk and after complete copy your systemui.apk to your phone and copy to /system/app and set permission to rw-r-r and delete SystemUI.odex file from there, after that reboot your phone and you have systemui app deodexed , but if you running on kitkat you must copy to /system/priv-app and do same thing like that

Nicklas Van Dam said:
Next, open your systemui.apk with winrar only select open with and select winrar. After open drag your classes.dex file to your systemui.apk and after complete copy your systemui.apk to your phone and copy to /system/app and set permission to rw-r-r and delete SystemUI.odex file from there, after that reboot your phone and you have systemui app deodexed , but if you running on kitkat you must copy to /system/priv-app and do same thing like that
Click to expand...
Click to collapse
Yup done with it. But how to confirm that rom is deodexed?
Previously when I was using the theme manager in rom tolbox pro, there showed a dialog box that my rom is not deodexed and themes wont apply
and now when I went there the dialog box did not show up but even the was not applied even after rebooting

yashgumaste said:
Yup done with it. But how to confirm that rom is deodexed?
Previously when I was using the theme manager in rom tolbox pro, there showed a dialog box that my rom is not deodexed and themes wont apply
and now when I went there the dialog box did not show up but even the was not applied even after rebooting
Click to expand...
Click to collapse
just check on your system/app folder in there you will find all your system apps and if deodexed you will not see any .odex file from any app on that folder. and if your system/app folder is deodexed and theme manager still tell you're not deodexed try to deodexed framework files too with this way and all almost same with this

Nicklas Van Dam said:
just check on your system/app folder in there you will find all your system apps and if deodexed you will not see any .odex file from any app on that folder. and if your system/app folder is deodexed and theme manager still tell you're not deodexed try to deodexed framework files too with this way and all almost same with this
Click to expand...
Click to collapse
The .odex files of other system apps are still there, that means I have to follow the same procedure with all other jars and apks in the framework folder to completely deodex my rom ?

yashgumaste said:
The .odex files of other system apps are still there, that means I have to follow the same procedure with all other jars and apks in the framework folder to completely deodex my rom ?
Click to expand...
Click to collapse
yap you're all completely deodex your rom bro
Have Fun

Related

[HOW TO][Windows]Extract Deodex Sign and Zipalign an official ROM

Hi,
Just want to share tools I found in order to :
- Extract SGS2 stock firmwares :
* Use sgs2toext4.jar Application from drphrozen to convert .img files to ext4.img
* Then MOUNT ans EXTRACT ext4.img with Diskinternals Linux Reader : Here
- Deodex, sign and zippalign :
with this deodex kit : _Kit_Deodexage.zip
- Create your CWM customROM (wype script)
using a Skeleton ROM : Custom_ROM GS2 by SicOpaT.zip
Click to expand...
Click to collapse
Nothing from me, just reporting for you
Links at the end of post (or in changeLog)
EDIT 16/08 :
1/ update of Kit_deodexage with last versions of smali/baksmali v1.2.7 to avoid LAG bug of browser
2/ add of Custom_ROM GS2 by SicOpaT_v2.zip with a new CWM script NON WIPE
To customise the CWM script, go to Custom_ROM GS2 by SicOpaT.zip\META-INF\com\google\android and edit updater-script with notepad ++
Step by step guide ​:
Preparation :
1/ Extract Custom_ROM GS2 by SicOpaT.zip in order to have a folder with the same name (your future customROM)
2/ Extract sgs2toext4.zip to sgs2toext4.jar and put it in C:\
3/ Extract _Kit_Deodexage.zip to a folder of the same name
4/ install Diskinternals Linux Reader : Here
5/ Install Java SE Development Kit (JDK) if not already installed : Here
Click to expand...
Click to collapse
Extracting the stock ROM :
1/ open your stock__firmware.tar with 7-zip or winRAR
2/ extract in C:\ :
factoryfs.img,
cache.img (if you have 3 tar files in your firmware, extract cache.img from CSC.tar)
modem.bin
zImage : your kernel
Click to expand...
Click to collapse
* Extracting KERNEL and PHONE part :
3/ put zImage and modem.bin in the root folder of : Custom_ROM GS2 by SicOpaT (next to META_INF)
Click to expand...
Click to collapse
* Extracting Factoryfs.img :
4/ Double click sgs2toext4.jar, a windows is opening :
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
5/ drag factoryfs.img in the sgs2converter.jar windows
factoryfs.ext4.img is created
6/ Open Diskinternals Linux Reader
Code:
> Drives > Mount Image > browse to your factoryfs.ext4.img > Mount
Then a new drive appears in the Diskinternals window, called Linux native Volume > double click on it
7/ Select all and press Save > Next > Browse to Custom_ROM GS2 by SicOpaT/System/ check for Save directory structure and then press Next > Next > Finish
8/ In Diskinternals click Back and then right click to your Linux volume and select unmount
Click to expand...
Click to collapse
* Extracting cache.img :
9/ Double click sgs2toext4.jar
10/ drag cache.img in the sgs2converter.jar windows
cache.ext4.img is created
11/ Mount cache.ext4.img in diskinternals
12/ In your linux drive goto \recovery and save sec_csc.zip
Don't save it in your Custom_ROM GS2 by SicOpaT folder
13/ Extract sec_csc.zip (same structure as an update.zip)
14/ Copy everything in /system exept /app to Custom_ROM GS2 by SicOpaT/system
like here :
Now you can unmount and close diskinternal, we have done with extracting the ROM
Click to expand...
Click to collapse
Now time to Deodex, sign and zipalign : with the _Kit_Deodexage script
1/ in Custom_ROM GS2 by SicOpaT/system/ MOVE everything in the app folder to _Kit_Deodexage/app
3/ in Custom_ROM GS2 by SicOpaT/system/ MOVE everything in the framework folder to _Kit_Deodexage/framework
4/ Press : Deodex_Gingerbread.cmd and it will
- deodex
- sign
- zipalign
4 bis/ edit after beginning of deodexing process the NePasSigner.txt and add samsung apps
5/ 2 folders are created : Deodex_framework and Deodex_app
6/ verify that the /app and /framework folders are empty
6/ Move everything from /Deodex_framework exept java.awt.jar to Custom_ROM GS2 by SicOpaT/system/framework
7/ Move everything from Deodex_app to Custom_ROM GS2 by SicOpaT/system/app
Click to expand...
Click to collapse
Buid your CWM update.zip :
With WinRAR : CTRL A in your custonROM root folder and Right Click > Add to Archive > ZIP and None or Normal compression
Click to expand...
Click to collapse
That's all ! You have a stock customROM fully deodexed, signed and zipaligned
PS : You should change the Kernel for the CF-Root Kernel (CWM Manager ...) changing the zImage with the zImage from ChainFire CF-Root
PS 2 : You can add some apps (like Titanium backup) in the /data/app folder of your customROM
EDIT 1 : The deodexed browser.apk obtained will be bugy : Lag scrolling
Since pulser_g2 found the FIX, DEVs used an old deodexed browser.apk (from KE2 ROM for example).
So pulser_g2 foung the FIX, in order to avoid this Lag trouble using the last deodexed browser.apk (KF2 for example). You can see the How To FIX yourself the laggy browser.apk following advices from pulser_g2 in the changeLog of 07/03/2011.
EDIT 2 : just added a zip of an META_INF folder witch can be used for update over a previous deodexed customROM with same signature (a previous ROM built with the same script).
With this META_INF, you will not loose any data/cache
Credits :
Thanks to drphrozen for sgs2toext4.jar and sgs2converter.jar tools
Thanks to xeudoxus for his custom java.awt.jar (deodexing some apks without errors)
Thanks to Okarin for his Deodex script
Thanks to Pulser-g2 for the laggy Browser Fix
Thanks to omrij for showing us an alternative to _Kit_Deodexage : AutoDeoTool (see below)
Click to expand...
Click to collapse
ChangeLog of the HOW TO :
07/04/2011 :
* Switch bugy sgs2converter.jar to new sgs2toext4.jar from drphrozen
* Re-Add the Convert_sgs2img.exe tool to extract .img to .ext4.img (end of post)
CMD command :
Code:
Convert_sgs2img.exe factoryfs.img factoryfs_ext4.img
07/02/2011 :
Modification of _Kit_deodexage.zip in order to add the custom java.awt.jar from xeudoxus
07/01/2011 :
Add the new version of drphrozen sgs2converter.jar, available HERE
Now you just need to double click on the sgs2converter.jar, without opening any CMD promt command.
You drag and drop your stock .img file and the tool will convert it in <inputname>.ext4.img in the same folder
06/30/2011 :
How to manually deodex Email.apk and MobilePrint.apk : (working for others APKs)
Code:
[QUOTE][B]1/[/B] In the same folder, you put :
[QUOTE]*Email.apk
*Email.odex
*MobilePrint.apk
*Mobileprint.odex
AND
all the content of the initial ODEXED framework folder (with all JAR files)
PLUS custom [B]java.awt.jar[/B]
AND
*smali.jar ---> found in _Kit_Deodexage/_binaires/
*baksmali.jar ---> found in _Kit_Deodexage/_binaires/[/QUOTE]
[B]2/[/B] Then open a [B]CMD promt[/B] in the target folder
[B]3/[/B] Then type :
[CODE]java -Xmx1024m -jar baksmali.jar -c :am.jar:android.policy.jar:android.test.runner.jar:bmgr.jar:bouncycastle.jar:com.android.location.provider.jar:com.google.android.maps.jar:com.samsung.device.jar:com.yamaha.android.media.jar:core.jar:core-junit.jar:ext.jar:framework.jar:ime.jar:input.jar:java.awt.jar:javax.obex.jar:libvtmanagerjar.jar:monkey.jar:pm.jar:sec_feature.jar:seccamera.jar:sechardware.jar:secmediarecorder.jar:services.jar:sqlite-jdbc.jar:svc.jar:twframework.jar -x Email.odex
You have a new OUT folder created
4/ Then type :
Code:
java -Xmx1024m -jar smali.jar out -o classes.dex
A classes.dex file is created
5/ Open (without extracting) Email.apk with 7-zip
Push classes.dex in Email.apk with 7-zip
6/ Put the new deodexed Email.apk in app folder, in _Kit_Deodexage
Press Deodex_Gingerbread.cmd
You now have a fully deodexed signed zipalligned Email.apk
Now Mobileprint.apk :
7/ DELETE classes.dex ans Out folder created before
8/ Same procedure, in CMD pompt, type :
Code:
java -Xmx1024m -jar baksmali.jar -c :am.jar:android.policy.jar:android.test.runner.jar:bmgr.jar:bouncycastle.jar:com.android.location.provider.jar:com.google.android.maps.jar:com.samsung.device.jar:com.yamaha.android.media.jar:core.jar:core-junit.jar:ext.jar:framework.jar:ime.jar:input.jar:java.awt.jar:javax.obex.jar:libvtmanagerjar.jar:monkey.jar:pm.jar:sec_feature.jar:seccamera.jar:sechardware.jar:secmediarecorder.jar:services.jar:sqlite-jdbc.jar:svc.jar:twframework.jar -x MobilePrint.odex
You have a new OUT folder created
9/ Then type :
Code:
java -Xmx1024m -jar smali.jar out -o classes.dex
A classes.dex file is created
10/ Open (without extracting) MobilePrint.apk with 7-zip
Push classes.dex in MobilePrint.apk with 7-zip
11/ Put the new deodexed MobilePrint.apk in app folder, in _Kit_Deodexage
Press Deodex_Gingerbread.cmd
You now have a fully deodexed signed zipalligned MobilePrint.apk[/CODE]
Important !! You should NOT have error while deodexing
Click to expand...
Click to collapse
06/27/11 :
added : old version of sgs2converter.jar from drphrozen get it HERE
How To :
Extract sgs2converter.zip to sgs2converter.jar
Put in the same folder : Stock .IMG file, sgs2converter.jar
Open CMD Promt in the folder
run command :
Code:
java -jar sgs2converter.jar factoryfs.img factoryfs.ext4.img
factoryfs.ext4.img is created in same folder. You can pen it with Diskinternals Linux Reader
*AutoDeoTool an alternative to the "kit_deodexage" from HERE thanks to omrij
[/QUOTE]
BONUS :
To personalise your customROM, you can change the name of the ROM shown in Parameters > Version number :
with Notepad++, open the file "\Custom_ROM GS2 by sicOpaT\system\build.prop" and look for the line beginning with : "ro.build.display.id=" (often the 4th). Example : ro.build.display.id=GINGERBREAD.XXKF2
Replace everything after the "=" with what you want. Example : ro.build.display.id=SicOpaT's ROM KF2
Then save the file
Thanks for the infor .. but what does the " - CWM GS2 Skeleton ROM (wype script) : Custom_ROM GS2 by SicOpaT.zip" do ??
anyway of getting a step by step guide.
Thanks
I've used Ubuntu until now... Testing this one
xinfinityoO said:
Thanks for the infor .. but what does the " - CWM GS2 Skeleton ROM (wype script) : Custom_ROM GS2 by SicOpaT.zip" do ??
anyway of getting a step by step guide.
Thanks
Click to expand...
Click to collapse
This is the begining oh a CWM update.zip with the structure folders and I just added : busybox, superuser an su.
I am going to add a step by step guide
nice thanks
Email.apk and MobilePrint.apk are leftover. Trying to do them manually but can't find superclass Ljava/awt/componet;
Mackzen said:
nice thanks
Email.apk and MobilePrint.apk are leftover. Trying to do them manually but can't find superclass Ljava/awt/componet;
Click to expand...
Click to collapse
got the same problem, i took deodexed ones from other deodexedROM
Couldn't flash using cwm (maybe battery low, don't know)
better luck tomorrow I guess
How does the script take care of the Linux file permissions in Windows?
Thanks for the info.
That was some info which i was looking for the last few weeks, but mostly ended in apps that didn't work for everything.
Gonna give it a shot tomorrow.
Thnx for the info.
very well defined and this will sure help some newcomers to build thier own custom roms. you deserve a star from me !!
Thanks for this Guide!
1.) The last step would be to put the new CustomRom Folder to a Zip and flash via CWM?
...or is it a problem with signing then?
EDIT: you have to put the files back into the original ZIP!
2.) why do we have to put cache.img and modem.bin to the customrom root folder?
Thanks
Flashed via cwm 4.0.2 -> Bootloop :/
No modifications done at the moment
walda said:
Thanks for this Guide!
1.) The last step would be to put the new CustomRom Folder to a Zip and flash via CWM?
...or is it a problem with signing then?
EDIT: you have to put the files back into the original ZIP!
Click to expand...
Click to collapse
Yes you have to create an update.zip archive with all in your CustomROM root folder
walda said:
2.) why do we have to put cache.img and modem.bin to the customrom root folder?
Thanks
Click to expand...
Click to collapse
No you have to put :
- zImage (your kernel)
- modem.bin (phone part in ODIN)
Mackzen said:
Couldn't flash using cwm (maybe battery low, don't know)
better luck tomorrow I guess
Click to expand...
Click to collapse
walda said:
Flashed via cwm 4.0.2 -> Bootloop :/
No modifications done at the moment
Click to expand...
Click to collapse
I have forgotten wype.sh in the /system folder of the skeleton customROM.
The wype.sh will wype everything in the /data folder in order to prevent bootloops
I reuploaded the CustomROM GS2 with the wipe.sh
Thanks! Works now
walda said:
Thanks! Works now
Click to expand...
Click to collapse
You're welkome
Sorry for the forgotten wype.sh
thanks for this!
i am running per instructions, trying to deodex KF2 rom. but i face problem at the deodex/sign/zipalign. after running the script file, there are still a lot of files in the "app" and "frameworks" directory. what am i doing wrong?
edit: 2nd round works, no idea why?? but left email and mobileprint, and as per you suggestion get it from another deodex rom.
This is EXACTLY the thing i was looking for since getting my SGS2 this week.
Wanted this since the Hebrew/RTL routine fixing i did on other devices needed deodexed ROMs to work (modifies framework.jar/libwebcore.so).
I'll give it a shot today or tomorrow and report back.
Either way, THANK YOU very much for the effort!
I know this is a stupid question, but where can i find my factoryfs_out.img iv done the cmd bit but cannot find the factoryfs_out.img to mount??

[TUTORIAL] [Sense 2.1+3.5 only] Remove recent apps from Notification bar

Many of the user has requested for removing of RECENT APPS from notification...so i am presenting here..do it Urself...i have confirmed it..it is working
===============================================================​This mod is based on file "StatusBarFlag.smali" which is found in systemui.apk file (search for it in systemui folder after decompiling it using apktool.
Modify the below line in the "StatusBarFlag.smali" file using text editor Notepad++.
Insert "const/4 v0, 0x0" between ":goto_0 and sput-booleen v0,..." The code should be like
this-->
:goto_0
const/4 v0, 0x0
sput-boolean v0, Lcom/android/systemui/statusbar/StatusBarFlag;->HTC_RECENT_APP:Z
-Systemui.apk decomilation and recompilation method:
Required softwaregoogle for the tools to get them):
- APKtool (apktool1.4.3.tar, apktool-install-windows-r04-brut1.tar)
- an enhanced text editor to edit the XML/smali files with (i use Notepad++);
- *Root Explorer or any other root explorer out there (i use ES File Explorer);
- any archive utility that can open .ZIP files (7zip, WinRAR etc.);
- Windows PC.
*Note: yes, you have to have root.
Step 1 (installing the tools):
- Download and install the latest Java Runtime Environment (APKtool needs at least ver. 1.6);
- Download "apktool-install-windows-r04-brut1.tar" and "apktool1.4.3.tar" and unzip
them into a folder of your choosing;
Step 2 (preparing to decompile):
- In order to properly decompile/compile SystemUI.apk, you need to install the framework with
APKtool;
- Open your root explorer of choice and navigate to /system/framework;
- Copy both "framework-res.apk" and "com.htc.resources.apk" to the SD card, then move them to
your PC either via cable or via a software of your choosing (i use AirDroid);
- Put both "framework-res.apk" and "com.htc.resources.apk" into the folder where you've
extracted APKtool;
- Open a command prompt (Windows button + R then type "cmd") and navigate to the folder
where you have APKtool and the framework APKs;
- Type "apktool if framework-res.apk" then "apktool if com.htc.resources.apk". Your files will be
processed and the required bits will be "installed" in "C:/Users//apktool
/framework";
- You can now delete both APKs from the folder.
Step 3 (proper decompilation):
- Copy your SystemUI.apk from "/system/app" to the folder where you've extracted APKtool;
- Open a command prompt, navigate to the APKtool folder, type "apktool d SystemUI.apk" and
wait 'till APKtool has finished. You should get no errors whatsoever and your APK should now be
decompiled into "readable format" in "/SystemUI". Edit the file StatusBarFlag.smali with the text editor of your choosing.
Step 4 (proper compilation):
- After making the desired changes in the systemui.apk, it's now time to compile it;
- Open a command prompt, navigate to the APKtool folder then type "apktool b SystemUI". Your
APK will now be compiled to "/SystemUI/dist" (again, you should get no
errors whatsoever). DON'T USE IT YET!
- Being a system app, SystemUI.apk must first be signed with the proper keys else odds are it
won't work. To do that, you need to rename the SystemUI.apk you're editing (the original one)
into SystemUI.zip, open it with an archive manager then extract META-INF and
AndroidManifest.xml to the "/SystemUI/build/apk" folder, then run the
"apktool b SystemUI" command again. Your APK will now be built with the proper keys included,
and is now fully functional. You may "pick it up" from the "/SystemUI/dist"
folder;
- You can now flash the resulting (modded) APK to your device either via ADB or via a way of
your choosing (.ZIP from recovery etc.) or just replace the old systemui.apk with modified systemui.apk using esfile manager, rootexplorer etc.
Enjoy
Thanks to
Upadhyay
Plz dont say this is not working for me....just read it carefully than do it..
Screen shot...
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
(Note:this notification bar transperancy is Moded by mee)
Its actualy sense only not sense 2.1 only as it worsk on 3.5 too.
Also confirm it works, though I had to make a flashable zip. I had previously tried to use a file manager as soon as the new apk overwrote the old I was spammed with FCs (rebooting, setting permissions, and rebooting again did nothing, the whole notification bar wouldn't load). So, if you do encounter errors, try it as a flashable zip.
lol i posted this the other day!!
elspanish88 said:
lol i posted this the other day!!
Click to expand...
Click to collapse
You actualy linked it not posted and he did say its not his invention or anything just spreading the word.
baluuu said:
You actualy linked it not posted and he did say its not his invention or anything just spreading the word.
Click to expand...
Click to collapse
thanks man...i havent said that give me credit...
baluuu said:
Its actualy sense only not sense 2.1 only as it worsk on 3.5 too.
Click to expand...
Click to collapse
if u have tried and if confirmed than tell me, i will change the title
i dont care?? im not saying he has stolen my post :/ its freely available on the net
elspanish88 said:
i dont care?? im not saying he has stolen my post :/ its freely available on the net
Click to expand...
Click to collapse
Plz give him credit officialy on xda
Lol(stolen post)
Sent from my HTC Wildfire S A510e using xda app-developers app
smartboy0668 said:
if u have tried and if confirmed than tell me, i will change the title
Click to expand...
Click to collapse
Yep tried and confirmed here
that's really worth trying, thanks for putting all of this in one place, what about removing the operator name with that "clear" button ? any clue ?
Sent from my HTC Wildfire S A510e using xda app-developers app
Thanks for this!
damnit I cant get this to work -__-
danielstar13 said:
damnit I cant get this to work -__-
Click to expand...
Click to collapse
Try it with each step carefully read...it happened with mee too...just check you have installed your apktool properly ...
Sent from my HTC Wildfire S A510e using xda app-developers app
so do I have to install apktool too? i thought you just extract that..
danielstar13 said:
so do I have to install apktool too? i thought you just extract that..
Click to expand...
Click to collapse
Try to search tutorial for apktool on xda...
Sent from my HTC Wildfire S A510e using xda app-developers app
I dont get the dist folder when compiling.. what is wrong?
danielstar13 said:
I dont get the dist folder when compiling.. what is wrong?
Click to expand...
Click to collapse
that happened to me, make sure you install JDK (Java Development Kit)...that solved the problem for me....
Sent from my HTC Wildfire S A510e using xda app-developers app
Can't Find "StatusBarFlag.smali" on SystemUI Folder
Hi,
I've installed all necessary tools on my PC.
I don't find this file on any of the SystemUI folder after decompiled.
Take a look at this image of the Folders List.
How to accomplish this...?

[compilation][guide] battery icon pack!

[TUTORIAL][GUIDE][BATTERY ICON PACKS COMPILATION]​
Assalamualaikum and hi everyone...
i make this thread for compilation of battery icon pack
you can download it from attachment at 1st, 2nd and 3rd post
Note: those icon packs are not flashable..you need to extract them and put to your framework-res.apk
screenshot for compilation of battery icon packs
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
GUIDE
This guide is about how to change battery icon and make it changing by 1% and continuously increasing animation by 1% while charging.
Actually this is very simple guide and many of you already know this.
Some of roms out there already have this animation so this guide is for users of rom that not have this animated battery icon.
Note: Since it is a flow animation so i don't know how to show you..i just upload some screenshots
I'm not responsible for any damage done to your phone.
Use at your own risk!
Click to expand...
Click to collapse
things needed:-
1. knowledge about how to decompile and recompile apk files
2. APKTool
3. framework-res.apk of your rom
4. XML editor
5. XML file that i attached at the attachment
6. PNG icon (download it at attachment or you can choose your own)
Make sure you make a back up for your current framework-res.apk
Click to expand...
Click to collapse
steps:-
1. download my xml file that i attached at the attachment
2. take out framework-res.apk from your device system and decompile it
3. copy downloaded xml files and go to folder framework-res/res/drawable paste and replace there
4. next put png image i attached or choose your own png to framework-res/res/drawable-ldpi
5. recompile framework-res.apk and push to your system
6. Done! (try to put charger to see whether charging animation working or not)
IF ABOVE STEPS NOT WORKING TRY THIS!
steps:-
1. download xml file that i attached at the attachment
2. take out framework-res.apk from your device system and decompile it
3. go to framework-res/res/drawable
4. open stat_sys_battery.xml with xml editor
5. find this line and delete all text below that
Code:
xmlns:android="http://schemas.android.com/apk/res/android">
6. open stat_sys_battery.xml file that i attached and copy text inside it starting from
Code:
<item android:drawable="@drawable/stat_sys_battery_0" android:maxLevel="0" />
until the end of text and paste it below text at step no 5. (take note about lines and alignment)
7. save that xml file
8. next open stat_sys_battery_charge.xml in your drawable folder
9. find this line and delete all text below that
Code:
xmlns:android="http://schemas.android.com/apk/res/android">
10. open stat_sys_battery_charge.xml that i attached and copy text inside it starting from
Code:
<item android:duration="1500" android:drawable="@drawable/stat_sys_battery_charge_anim0" />
until the end of text and paste it below line at step no 9. (i can't put here because they too long)
11. save both xml files
12. next put png image i attached or choose your own png to framework-res/res/drawable-ldpi
13. recompile framework-res.apk and push to your system
14. Done! (try to put charger to see whether charging animation working or not)
Credit:
-Google
-creator of those png icon
Sorry for my bad english
more battery icon packs
more battery icon packs
nice...
can i put it up in my upcoming website???
Blaze said:
can i put it up in my upcoming website???
Click to expand...
Click to collapse
Sure!!! and don't forget to give me link to that website,,,
Hey ! all is Good! Very Nice !
Will Try And Report !
it's not work on stock DXLF2 rom.
but it can work on CREED v4 rom.
can u tell me the problem?
fajarfuad said:
it's not work on stock DXLF2 rom.
but it can work on CREED v4 rom.
can u tell me the problem?
Click to expand...
Click to collapse
stock odex or deodex? this mode will not work on stock odex? but for stock deodex i'm not sure working or not
Asmy Yuh said:
stock odex or deodex? this mode will not work on stock odex? but for stock deodex i'm not sure working or not
Click to expand...
Click to collapse
my stock rom is deodex. but it still not working :'(
fajarfuad said:
my stock rom is deodex. but it still not working :'(
Click to expand...
Click to collapse
i'll check it and report
fajarfuad said:
it's not work on stock DXLF2 rom.
but it can work on CREED v4 rom.
can u tell me the problem?
Click to expand...
Click to collapse
i have try this mode on stock deodex DXLL1 and it works..
Asmy Yuh said:
i have try this mode on stock deodex DXLL1 and it works..
Click to expand...
Click to collapse
really?
can you tell me step by step when decompiling and compiling framework-res.apk ?
i'm confused.
thanks before
fajarfuad said:
really?
can you tell me step by step when decompiling and compiling framework-res.apk ?
i'm confused.
thanks before
Click to expand...
Click to collapse
do u really know how to recompile and decompile?
did u copy META-INF folder from original framework-res.apk?
Asmy Yuh said:
do u really know how to recompile and decompile?
did u copy META-INF folder from original framework-res.apk?
Click to expand...
Click to collapse
i'm sure i following the guide to decompile and recompile with apktool.
and i'm succes to decompile original framework-res.apk and edit this.
when i recompile. it says...
W: couldn't find sources
I: checking wheter resources has changed . . .
I: building resources . . .
Warning: AndroidManifest.xml already defines minSdkVersion (bla. . .bla. . .)
is this normal?
but build and dist folder was appear..
fajarfuad said:
i'm sure i following the guide to decompile and recompile with apktool.
and i'm succes to decompile original framework-res.apk and edit this.
when i recompile. it says...
W: couldn't find sources
I: checking wheter resources has changed . . .
I: building resources . . .
Warning: AndroidManifest.xml already defines minSdkVersion (bla. . .bla. . .)
is this normal?
but build and dist folder was appear..
Click to expand...
Click to collapse
after that did u copy META-INF folder from original framework to modified framework?
Asmy Yuh said:
after that did u copy META-INF folder from original framework to modified framework?
Click to expand...
Click to collapse
so i must copy META-INF folder from original framework to build folder?
fajarfuad said:
so i must copy META-INF folder from original framework to build folder?
Click to expand...
Click to collapse
YES! copy META-INF folder to modified framework-res.apk
Asmy Yuh said:
YES! copy META-INF folder to modified framework-res.apk
Click to expand...
Click to collapse
okay, i will try it
thank you very much.
dosen't work here
test
#Luan said:
dosen't work here
Click to expand...
Click to collapse
thanks, i'm test

[Q] twframework.apk not getting extracted!!!

@wali01x i tried decompiling twframework.apk for adding the crt animation in my gt i9082. i refered to the post that u have written here. But its not getting extracted. It is showing few errors!!(screenshot attached for ur ready referrence). So will u plz edit it for me as i wanted the horizontal crt animation in a new rom which i m making.
n will u please also tell me that where i m going rong! n yes...i have java installed. @balliboxer @chotu222 @kk9999gada and other xda members if u know the solution then i nedd ur help too!!!
(Please open the images by right clicking on the thumbnail and then opening it in a new tab. Thankyou.)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
- Error
- Log
Thanking u all in anticipation!:fingers-crossed:
adityab721 said:
@wali01x i tried decompiling twframework.apk for adding the crt animation in my gt i9082. i refered to the post that u have written here. But its not getting extracted. It is showing few errors!!(screenshot attached for ur ready referrence). So will u plz edit it for me as i wanted the horizontal crt animation in a new rom which i m making.
n will u please also tell me that where i m going rong! n yes...i have java installed. @balliboxer @chotu222 @kk9999gada and other xda members if u know the solution then i nedd ur help too!!!
(Please open the images by right clicking on the thumbnail and then opening it in a new tab. Thankyou.)
- Error
- Log
Thanking u all in anticipation!:fingers-crossed:
Click to expand...
Click to collapse
First of all I recommend you to use apktool for decompiling apks.
Tools Required:
Apktool (Download)
7-zip (Don't use WinRAR) (Download from Here)
Notepad++ (Download from Here)
Installing Apktool:
Download it from the attachment.(Apktool.zip)
Now Extract 3 files present inside zip to "C:\Windows" without any folder.
You have now installed apktool.
Installing frameworks:
Create a folder named "Apktool" here "C:\Apktool" or on any location with any name you want.
Copy "framework-res.apk" and "twframework-res.apk" (without quotes) to that folder you created.
Now hold Shift key and right click anywhere on the empty area in explorer. (See Image)
Select "Open Command Window Here" (See Image)
Now you will get a command window (See Image).
Now type "apktool if framework-res.apk" (without quotes). It will be installed. (See Image)
Now type "apktool if twframework-res.apk" (without quotes). (See Image)
Now both the frameworks are installed.
Compiling & Decompiling Apks:
To decompile the Apk place desired the apk inside the folder you created.
Once again hold Shift key and right click anywhere on the empty area in explorer.
Now type "apktool d framework-res.apk" or any **.apk you want to decompile (without quotes).
Similarly you can also decompile "twframework-res.apk" (See Image)
Now to compile back type "apktool b framework-res" (without quores and without .apk extension). (See Image)
Now you have successfully compiled apk.
Lockscreen CRT-OFF Animation:
Decompile framework-res.apk using the above tutorial.
Now navigate to \framework-res\res\values\bools.xml
Now edit bools.xml using Notepad++ (Don't use the inbuilt notepad of windows it will corrupt the file as it is not linux based)
Find "<bool name="config_animateScreenLights">true</bool>"
Now change "true" to "false" and save the file and exit Notepad++
Now compile back the apk using the above tutorial.
Now open the decompiled folder you will see two new folders "build" and "dist"
Go inside "build\apk" folder you will find a file named "resources.arsc"
Now open the original apk say, "framework-res.apk" that is inside C:\Apktool using 7-zip
Drag the "resources.arsc" from framework-res\build\apk\ to the original apk
Now you have successfully applied CRT-OFF Animation.
You can now replace the apk inside the phone with the modded one using root explorer.
Don't forget to keep a Nandroid Backup and a separate backup of original framework-res.apk just in case something goes wrong
kk9999gada said:
First of all I recommend you to use apktool for decompiling apks.
Tools Required:
Apktool (Download)
7-zip (Don't use WinRAR) (Download from Here)
Notepad++ (Download from Here)
Installing Apktool:
Download it from the attachment.(Apktool.zip)
Now Extract 3 files present inside zip to "C:\Windows" without any folder.
You have now installed apktool.
Installing frameworks:
Create a folder named "Apktool" here "C:\Apktool" or on any location with any name you want.
Copy "framework-res.apk" and "twframework-res.apk" (without quotes) to that folder you created.
Now hold Shift key and right click anywhere on the empty area in explorer. (See Image)
Select "Open Command Window Here" (See Image)
Now you will get a command window (See Image).
Now type "apktool if framework-res.apk" (without quotes). It will be installed. (See Image)
Now type "apktool if twframework-res.apk" (without quotes). (See Image)
Now both the frameworks are installed.
Compiling & Decompiling Apks:
To decompile the Apk place desired the apk inside the folder you created.
Once again hold Shift key and right click anywhere on the empty area in explorer.
Now type "apktool d framework-res.apk" or any **.apk you want to decompile (without quotes).
Similarly you can also decompile "twframework-res.apk" (See Image)
Now to compile back type "apktool b framework-res" (without quores and without .apk extension). (See Image)
Now you have successfully compiled apk.
Lockscreen CRT-OFF Animation:
Decompile framework-res.apk using the above tutorial.
Now navigate to \framework-res\res\values\bools.xml
Now edit bools.xml using Notepad++ (Don't use the inbuilt notepad of windows it will corrupt the file as it is not linux based)
Find "<bool name="config_animateScreenLights">true</bool>"
Now change "true" to "false" and save the file and exit Notepad++
Now compile back the apk using the above tutorial.
Now open the decompiled folder you will see two new folders "build" and "dist"
Go inside "build\apk" folder you will find a file named "resources.arsc"
Now open the original apk say, "framework-res.apk" that is inside C:\Apktool using 7-zip
Drag the "resources.arsc" from framework-res\build\apk\ to the original apk
Now you have successfully applied CRT-OFF Animation.
You can now replace the apk inside the phone with the modded one using root explorer.
Don't forget to keep a Nandroid Backup and a separate backup of original framework-res.apk just in case something goes wrong
Click to expand...
Click to collapse
Ok! Thanku! I have decompiled my frawework successfully! Bt that animateScreenLights in my bools is already false! So waht should I do? Should I make it true? Or should I compile the apk without making any changes?
Sent from my GT-I9082 using XDA Premium 4 mobile app
adityab721 said:
Ok! Thanku! I have decompiled my frawework successfully! Bt that animateScreenLights in my bools is already false! So waht should I do? Should I make it true? Or should I compile the apk without making any changes?
Sent from my GT-I9082 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Looks like Samsung is trying to block developers from editing the apks by removing some features. Sorry bro but I know this much only about crt off animation.
However you can try this app from play store as it has CRT-OFF ANIMATION
https://play.google.com/store/apps/details?id=com.katecca.screenofflock&hl=en
kk9999gada said:
Looks like Samsung is trying to block developers from editing the apks by removing some features. Sorry bro but I know this much only about crt off animation.
However you can try this app from play store as it has CRT-OFF ANIMATION
https://play.google.com/store/apps/details?id=com.katecca.screenofflock&hl=en
Click to expand...
Click to collapse
Yes I know about that app..bt I wanted the animation as integrated in ur inspiration rom! Unlucky Me! :crying: Anywayz...thanks a ton for ur concern!
Sent from my GT-I9082 using XDA Premium 4 mobile app

[HOW-TO] Change framework background

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
WOAH!!!YOUR A MIND READER:highfive:
Zpik said:
WOAH!!!YOUR A MIND READER:highfive:
Click to expand...
Click to collapse
XD
enricocid said:
XD
Click to expand...
Click to collapse
So throughout the whole rom, this background will show?
Zpik said:
So throughout the whole rom, this background will show?
Click to expand...
Click to collapse
Yes. Only dialer remain untouched
would be nice if there were an xposed framework installer for this.
EDIT: Google search ftw.
http://forum.xda-developers.com/showthread.php?t=2342570
I'm not seeing a file named values in my framework-res apk. I'm not sure if this matters, but I used a file Explorer and extracted the apk on my phone. I use my phone to make zipthemer mods, so I figured this method would work for that too. Any reason it wouldn't show up?
Sent from my Galaxy Nexus using Tapatalk
NeverSeparate said:
I'm not seeing a file named values in my framework-res apk. I'm not sure if this matters, but I used a file Explorer and extracted the apk on my phone. I use my phone to make zipthemer mods, so I figured this method would work for that too. Any reason it wouldn't show up?
Sent from my Galaxy Nexus using Tapatalk
Click to expand...
Click to collapse
No no... You should decompile using apktool this is the only say to add trasparent background, modifying the .xml
enricocid said:
No no... You should decompile using apktool this is the only say to add trasparent background, modifying the .xml
Click to expand...
Click to collapse
This is what I got when extracting the apk. I can open and modify the xml files on my phone, but there isn't a folder named values. Are you certain the folder isn't specific to certain devices or roms? I'm on carbon at the moment on a GNex.
Sent from my Galaxy Nexus using Tapatalk
NeverSeparate said:
This is what I got when extracting the apk. I can open and modify the xml files on my phone, but there isn't a folder named values. Are you certain the folder isn't specific to certain devices or roms? I'm on carbon at the moment on a GNex.
Sent from my Galaxy Nexus using Tapatalk
Click to expand...
Click to collapse
You have to actually decompile framework res apk, take apart all the pieces instead of just extracting the apk. Decompiling and extracting are not the same thing
Link for apktool http://forum.xda-developers.com/showthread.php?t=2213985
NeverSeparate said:
This is what I got when extracting the apk. I can open and modify the xml files on my phone, but there isn't a folder named values. Are you certain the folder isn't specific to certain devices or roms? I'm on carbon at the moment on a GNex.
Sent from my Galaxy Nexus using Tapatalk
Click to expand...
Click to collapse
No... the problem is that You can't modify .apk using the phone....
This is because You can't decode an .apk with a file manager ... and You can't modify .xml if You don't decode it using apktool
If You don't use apktool You won't be able to exctract & decode the .apk
This folder must be in framework-res.apk and all .apk
Try use apktool to properly decompile it and You will be able to see all resources from .apk
If You try to exctract an .apk with a zip manager and You open an .xml, You won't see anything... only unreadable simbols
https://code.google.com/p/android-apktool/downloads/detail?name=apktool1.5.2.tar.bz2&can=2&q=
https://android-apktool.googlecode.com/files/apktool-install-windows-r05-ibot.tar.bz2
extract aapt.exe, apktool.bat and apktool.jar to a folder You will call apktool and that You will create in C:/:
C:\apktool
copy the framework-res.apk inside this folder
Press shift+leftmouse and click to "open command prompt here"
In cmd do the following
1) Install the framework-res.apk
Code:
apktool if framework-res.apk
2) Decompile framework-res.apk
Code:
apktool d framework-res.apk
3) Modify the .xml using notepad++
4) Recompile back
Code:
apktool b framework-res
5) Once done
Delete the compiled .apk in dist folder inside the framework-res folder you will find in apktool folder
open original framework-res.apk 7zip
Go to build folder
then open apk folder
Drag & drop folder META-INF & androidmanifest overwriting the original
6) Go again in CMD terminal and
Code:
apktool b framework-res
The compiled framework-res.apk is the good one
You can use the same steps I used in this guide to properly decompile/compile the framework-res.apk
http://forum.xda-developers.com/showthread.php?p=44997467#post44997467
Thanks. And I wasn't trying to argue. I know there is a difference on decompiling and extracting. And I know I can't modify the apk directly from my phone, but I use my method of extracting to locate png piles to make zipthemer zips, and it works fine for that. I wasn't looking to modify an apk. I was just going to attempt to make a zip with an edited xml and see if it would overwrite the existing one the same as it does with pngs. And I can open and edit xml using an xml app. But, if the extraction technique won't show me the file, then it doesn't matter. I'm just trying to learn a bit myself.
I was hoping to make a way that people could use the framework mods I've made without having to be in dark mode. Many of the people using mods off these threads wouldn't consider taking the time to learn any of this, they just want to use what's made. So a simple flashable zip that included an edited xml would be great. But if it won't work, it won't work.
Sent from my Galaxy Nexus using Tapatalk
NeverSeparate said:
Thanks. And I wasn't trying to argue. I know there is a difference on decompiling and extracting. And I know I can't modify the apk directly from my phone, but I use my method of extracting to locate png piles to make zipthemer zips, and it works fine for that. I wasn't looking to modify an apk. I was just going to attempt to make a zip with an edited xml and see if it would overwrite the existing one the same as it does with pngs. And I can open and edit xml using an xml app. But, if the extraction technique won't show me the file, then it doesn't matter. I'm just trying to learn a bit myself.
I was hoping to make a way that people could use the framework mods I've made without having to be in dark mode. Many of the people using mods off these threads wouldn't consider taking the time to learn any of this, they just want to use what's made. So a simple flashable zip that included an edited xml would be great. But if it won't work, it won't work.
Sent from my Galaxy Nexus using Tapatalk
Click to expand...
Click to collapse
You can try to make vrthemes
I already resolved my problem in Step 1 by editing the "Environment Variables".
Step 4
I'm stuck with step 4 ( recompiling ):
there's no "META-INF" folder under build/apk folder
Question: after I overwritten the "META-INF & androidmanifest" from the original framework-res.apk (C:\apktool\framework-res.apk)
and recompiled it using "apktool b framework-res", how can I flashed the compiled framework-res.apk w/c is located at
(C:\apktool\framework-res\dist) to system/framework? many thanks to this one, new learning
genkralyz said:
I'm stuck with step 4 ( recompiling ):
there's no "META-INF" folder under build/apk folder
Question: after I overwritten the "META-INF & androidmanifest" from the original framework-res.apk (C:\apktool\framework-res.apk)
and recompiled it using "apktool b framework-res", how can I flashed the compiled framework-res.apk w/c is located at
(C:\apktool\framework-res\dist) to system/framework? many thanks to this one, new learning
Click to expand...
Click to collapse
I will prepare You, as soon as possible, a template to flash it
enricocid said:
I will prepare You, as soon as possible, a template to flash it
Click to expand...
Click to collapse
Thanks! btw is it ok if I only overwrite the original "androidmanifest" because there's no "META-INF" under build/apk,
or there should be a "META-INF"?
genkralyz said:
Thanks! btw is it ok if I only overwrite the original "androidmanifest" because there's no "META-INF" under build/apk,
or there should be a "META-INF"?
Click to expand...
Click to collapse
You must copy also the meta-inf
enricocid said:
You must copy also the meta-inf
Click to expand...
Click to collapse
but when I tried to re-compiled, there's no META-INF showing up under build/apk folder as you can see from my screenshot..
did I missed some steps?
genkralyz said:
but when I tried to re-compiled, there's no META-INF showing up under build/apk folder as you can see from my screenshot..
did I missed some steps?
Click to expand...
Click to collapse
After first compilation Meta-inf is missing... it's normal don't worry
but without a meta-inf Your .apk wouldn't work
So you must delete the first compiled apk from dist folder, copy meta-inf and androidmanifest from the original .apk to build/apk folder and recompile 2nd time to get the framework correctly working
You can use this mod to flash the framework
http://d-h.st/0lL
there's already a framework-res inside it... delete it using 7zip and replace with Your framework and flash it

Categories

Resources