Someday I found this:
[HOWTO]Implement Swipe to Remove Notification
I like this function but my phone can't update to 4.1.2 (I8160-TGY don't have JellyBean Firmware...)
So I tried to modify it.
But deodex the whole ROM is a hard work.
So I found this:
[Toturial][Windows] How Editing The ODEX framework files? [Simplified]
I tried to decompile framework.odex ,and compile without modifications ,then my phone can boot normally.
So I'm sure this method is possible.
========================
So now I know how to decompile and compile.
And I find many thread about this but I still have no idea...
Even if I can compile it after modify, I still got bootloop.
Here is my deodexed framework.jar and SystemUI.apk:
https://www.dropbox.com/s/vj5u68g4qfo7zwp/Desktop.rar
Can any devs help me to modify it?
THANKS A LOT!!!
changes umanalm
I found that if I compile and decompile again, some string become different.
So now I don't know how to decompile correctly........
I use baksmali1.4.2 and decompile via command line:
java -jar baksmali-1.4.2.jar -a 10 -x framework.odex
When you compile apk your output is not signed. that is reason why you cant boot
here is what to do
1. Open output apk with 7-zip
2. Open original apk with 7-zip
3. Take meta-inf folder from original and drag to new apk
4. You will have signed apk and you can push it to your device
hope this will help you
btw. for decompiling i use
apktool d path\original.apk path\outputfolder
for compiling
apktool b path\outputfolder path\output.apk
Rox said:
When you compile apk your output is not signed. that is reason why you cant boot
here is what to do
1. Open output apk with 7-zip
2. Open original apk with 7-zip
3. Take meta-inf folder from original and drag to new apk
4. You will have signed apk and you can push it to your device
hope this will help you
btw. for decompiling i use
apktool d path\original.apk path\outputfolder
for compiling
apktool b path\outputfolder path\output.apk
Click to expand...
Click to collapse
I know that.
Because my phone haven't DEODEX, so I Just put classes.dex into framework.jar and odex it.
So it's not my question, but thank you for reply.
Why dont you just deodex rom using android kitchen and do your mods?
Sent from my GT-I8160
Rox said:
Why dont you just deodex rom using android kitchen and do your mods?
Sent from my GT-I8160
Click to expand...
Click to collapse
I tried.
But I can't boot after I deodex my rom.
I use system.tar.md5 to make CWM Flashable ROM.
These is my method: (Android Kitchen version is 0.223, I already download 0.224 but I never use it....)
1.Choose 1 to decompress system.tar.md5 and make Work Folder.
2.Then choose 0 to Advanced option, and choose 11 to de-odex the whole ROM.
3.Repack a CWM Flashabe ROM.
4.Format all partition and flash it.
5.Reboot, and the screen stay in "SAMSUNG GT-I8160".
Is there any wrong? or I have to use Android Kitchen 0.224?
You probably make some mistake.
Can you post updater script to see if problem is there.
Btw. You can try copying system folder to sd card from root directory and than use it as working folder for kitchen
Edit:
Oh, you formatted all partitions? You dont need to format them you possibly lost some device specific files required for boot. Try without formatting
Sent from my GT-I8160
Rox said:
You probably make some mistake.
Can you post updater script to see if problem is there.
Btw. You can try copying system folder to sd card from root directory and than use it as working folder for kitchen
Edit:
Oh, you formatted all partitions? You dont need to format them you possibly lost some device specific files required for boot. Try without formatting
Sent from my GT-I8160
Click to expand...
Click to collapse
Thanks!
This time I make a deodexed ROM via kitchen 0.224, And flash it without formatting.
It still can't boot, and when I enter to CWM, it can't mount any partition.
So I reflash stock ROM via Odin v3.07....
Oh, few days ago I tried to make a CWM flashable zip with only de-odexed /system/app and /system/framework.
It also can't boot.......
Related
can I extract the contents of a mod.zip and take the .jar or .apk and copy and paste them into the framework dir of the working working folder? i tried copying a custom .apk file into the framework dir of the working folder and it went into a boot loop.
alucke
There could be several reasons for a boot loop. If I understand you correctly, you are working on a ROM using dsixda's kitchen, and you want to add an apk before flashing? Could you provide more information like what apk and what folder you are trying to add it to? I suspect it might have something to do with the signature of the apk. I'm not 100% sure but I believe that the system apks all need the same signature when flashing a new ROM.
alucke said:
can I extract the contents of a mod.zip and take the .jar or .apk and copy and paste them into the framework dir of the working working folder? i tried copying a custom .apk file into the framework dir of the working folder and it went into a boot loop.
alucke
Click to expand...
Click to collapse
If you are changing things within the framework you also need to edit the .xml files within the framework. The best way to learn is to take the stock rom and load it into a working folder. then take a custom rom that you can find all the differences to stock on when loaded on your phone and load that into the kitchen. Compare the stock roms working folder with the custom rom working folder and take note of all the differences and figure out how they were achieved. Dont just look at apk files. Look at the update script as well as the xml files in all the folders too. Repeat with another ROM and you will start to see how to change things around yourself.
Hi,
I'm trying to make some changes to framework-res.apk.
I user APK Manager 4.9 to decompile the file, then made one trivial change to a XML file (changed one auto brightness related value).
I then compiled back to APK without signing and pushed to the phone in recovery mode the deleted Dalvik cache just to be on the safe side.
No matter how I play with it I always get FC from all the system apps immediately after the phone completes the boot process.
Some more information:
1. My original APK had directories like /res/drawable-hdpi-v4 while after decomplie they become res/drawable-hdpi (without the "v4")
2. After I recompile the "v4" directories are not created back and the generated APK contains the directories without the v4
3. If I use the "Reduce errors" feature of the APK manager complie option then I end up with APK that contains both the directories with v4 and those without.
4. I tried with the "reduce errors" option and without it (in which case I manually copied the signature directory into the APK) but got same FC.
5. It seems that once the FCs begin to happen they don't stop until a full nandroid restore. Even if I put the original framework.res.apk file I still get FCs after rebooting.
6. I'm using Revolution HD 2.0.11 ROM
7. The APK file I'm trying to modify was generated by the UOT kitchen.
Any idea what am I doing wrong?
No one knows?
erank said:
No one knows?
Click to expand...
Click to collapse
You dont need to decompile the framework to edit the files, heres the best way, take the the original framework-res.apk, and copy it to your pc, use 7zip to extract the .apk and extract any files you want to edit from the extracted framework, now go back to your original framework-res.apk and right click on it, find 7zip in the contex menu and click open, the contents of the apk will appear in a new window, now just drag and drop your edied files in the right directorys, once done, close 7zip, push the framework back to /system/framework/, wipe the dalvik cache and your done
AndroHero said:
You dont need to decompile the framework to edit the files, heres the best way, take the the original framework-res.apk, and copy it to your pc, use 7zip to extract the .apk and extract any files you want to edit from the extracted framework, now go back to your original framework-res.apk and right click on it, find 7zip in the contex menu and click open, the contents of the apk will appear in a new window, now just drag and drop your edied files in the right directorys, once done, close 7zip, push the framework back to /system/framework/, wipe the dalvik cache and your done
Click to expand...
Click to collapse
The files I want to edit are XML files which are compiled to reasources.arsc, as far as I know 7zip can't extract those, it has to be decompiled.
erank said:
The files I want to edit are XML files which are compiled to reasources.arsc, as far as I know 7zip can't extract those, it has to be decompiled.
Click to expand...
Click to collapse
Too true, the only other thing you could try is to sign the .apk before pushing it....
Sent from my Desire HD using Tapatalk
AndroHero said:
Too true, the only other thing you could try is to sign the .apk before pushing it....
Click to expand...
Click to collapse
Thanks AndroHero.
Everywhere I was looking they always say not to sign system APKs, but just to be sure I also tried signing it and not signing but copying the original META-INF directory - always got the same result - FC in all systems apps after boot.
Hi everyone,
I'm having a few questions regarding the theming of framework-res.apk on Android Revolution (No-Sense/Sense)..
After I pull the .apk, and decompile it, I edit the images so that the .9.png files stay intact. Then after that I compile the entire .apk and use WinRar to only push the images to the origional framework-res.apk..
But everytime I flash it I get bootloops and it won't boot into Android, any idea what I do wrong in the proces?
Thanks in advance!
if your using apk manager when you recompile the framework-res.apk it will ask you if its system app click yes then it will ask if you want to keep signature also click yes then you will have to delete the icons you changed in the keep folder then press enter in cmd window
it will compile and be called unsignedframework-res.apk rename to framework-.apk then open the rom using winrar (DO NOT EXTRACT) then just drag and drop the new framework-res.apk into the framework folder click ok let it do its thing then close winrar drop it on sd card and flash
leith51 said:
if your using apk manager when you recompile the framework-res.apk it will ask you if its system app click yes then it will ask if you want to keep signature also click yes then you will have to delete the icons you changed in the keep folder then press enter in cmd window
it will compile and be called unsignedframework-res.apk rename to framework-.apk then open the rom using winrar (DO NOT EXTRACT) then just drag and drop the new framework-res.apk into the framework folder click ok let it do its thing then close winrar drop it on sd card and flash
Click to expand...
Click to collapse
Or do what i do, make a copy of the zip file then extract the files you want to view, put them in a folder, then the icons you wanna swap put straight into the orig zip folder in there place, this method works for me fine & without any bootloops
deanr1977 said:
Or do what i do, make a copy of the zip file then extract the files you want to view, put them in a folder, then the icons you wanna swap put straight into the orig zip folder in there place, this method works for me fine & without any bootloops
Click to expand...
Click to collapse
I too do all my mods this way.. I find apk manager way to complicated to use lol when its so much easier to just swap the icons back into the original apk using 7zip...
apaquette420 said:
I too do all my mods this way.. I find apk manager way to complicated to use lol when its so much easier to just swap the icons back into the original apk using 7zip...
Click to expand...
Click to collapse
I find it much easyer this way. Can i ask you a question if you know abit about framework modding can you see were i have gone wrong here - http://forum.xda-developers.com/showthread.php?t=1195549
I can live with it but i would rather change it to a light gray or a different color? Any help would be very nice & not had a reply about this yet? Can you help?
i had the same issue and i found it easier to update the old framework and overwrite existing files. once you have completed compiling your new framework APK extract the contents and copy into the old framework... and that seems to work fine
I made some mods in my framework-res.apk using apk-manager.
now I have the framework-res.apk file on my PC, and I'd like to know how can I turn it into a .zip file which I could flash using CWM.
Thanks in advance!
L1VE said:
I made some mods in my framework-res.apk using apk-manager.
now I have the framework-res.apk file on my PC, and I'd like to know how can I turn it into a .zip file which I could flash using CWM.
Thanks in advance!
Click to expand...
Click to collapse
Ummmm....you don't have to.
Just make a backup of your phone with CWM and then use something like Root Explorer and then go to the system folder, scroll down to the framework folder and paste your new framework-res there and wait for your phone to auto reboot. Then your done.
Someone please guide me on how to recompile framework-res.apk from stock rom
using advanced apktool.
Because when I tried to recompile as other apks and replaced it with older one I got boot-loop:crying: .
[email protected][email protected]@ said:
Someone please guide me on how to recompile framework-res.apk from stock rom
using advanced apktool.
Because when I tried to recompile as other apks and replaced it with older one I got boot-loop:crying: .
Click to expand...
Click to collapse
You must set right permision after copy app to system
First you need to recompile the folder
Code:
ApkTool b (foldername)
after that you need to mod the system permissions or sign with an other system apk
How to do that?
copy meta inf folder and the xml file from the original apk
TecnoTailsPlays said:
First you need to recompile the folder
Code:
ApkTool b (foldername)
after that you need to mod the system permissions or sign with an other system apk
How to do that?
copy meta inf folder and the xml file from the original apk
Click to expand...
Click to collapse
yes, but i now dont understand his problem
My problem is when I recompile framework-res.apk and copied to /system/framework
and changed the permissions to rw-r-r and restarted my phone it stucked on bootloop .
:crying:
Thanks TechnoTailPlays I will try your solution .
Guys use advanced apk tool for editing apk files , after recompile apk file change resources.arsc by using 7-zip or winrar
Thank you so much @technotailsPlays it worked. :good: