[Q] help with DSIXDA Kitchen - EVO 4G Q&A, Help & Troubleshooting

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.

Related

Request: change lockscreen

i love the modaco custom rom but would like to add the lockscreen from drizzys custom rom. (or any plain android looking lockscreen)
is there a way to extract the files i need and simply replacing them in the MRC? i guess its just an html file or something like that to replace, right?
I guess this is the HTCLockScreen.apk and .odex but since it's a system app, it cannot be installed or unistalled, and overwirting the apk in the system/app folder doesn't do anything.
If someone knows how to do it I will be very interested too.
im not sure if it will work but you can download my rom go to
system/framework
grab com.htc.resource.apk
now adb push com.htc.framework.apk /system/framework/
then reboot!
steps:
adb remount
adb push com.htc.framework.apk /system/framework/
adb shell
reboot
then if your phone loops then it didnt work, but if you go straight to you home screen then it should be fine!
good luck
"im not responsible for any wipes that you will have to do if you phone loops"
piflechien said:
I guess this is the HTCLockScreen.apk and .odex but since it's a system app, it cannot be installed or unistalled, and overwirting the apk in the system/app folder doesn't do anything.
If someone knows how to do it I will be very interested too.
Click to expand...
Click to collapse
its not in the lockscreen!
its in the framework!
Or you could do what I did, pull com.htc.resources.apk from the phone, extract it with 7zip edit the .png files in res/drawable-land-480x320/ and res/drawable-port-480x320/ then zipped it and built the apk using apkbuilder.
Then push it to the phone, as usual make backups.
soulehmoo said:
Or you could do what I did, pull com.htc.resources.apk from the phone, extract it with 7zip edit the .png files in res/drawable-land-480x320/ and res/drawable-port-480x320/ then zipped it and built the apk using apkbuilder.
Then push it to the phone, as usual make backups.
Click to expand...
Click to collapse
Thank you very much.
It works perfectly.
BR. Simemu
Thx it worked perfectly
I just pushed com.htc.resources.apk into the /system/framework folder.
Now is it also possible to change the notification bar with a similar method ?
I love the one from your Rom Drizzy Drake Rogers.
They are in framework-res.apk
A few jpg and png named status* in res/drawable-480x320/
Same method should apply.
As usual, would be smart to back up.
Edit: When I get some time off I may have a day messing with these files see about some different coloured UI's etc.
for me this does not work
what ive done is:
1. get the com.htc.resources.apk
2. extract it with rar
3. changed the mentioned png files
4. then i put them back into the archive (apk file, renamed as a zip file)
5. renamed the zip back to its original name
6. put the file as mentioned to the correct folder
there is no change.. is it a MUST to use apk builder, if yes, how to use that bat?
felikz said:
for me this does not work
what ive done is:
1. get the com.htc.resources.apk
2. extract it with rar
3. changed the mentioned png files
4. then i put them back into the archive (apk file, renamed as a zip file)
5. renamed the zip back to its original name
6. put the file as mentioned to the correct folder
there is no change.. is it a MUST to use apk builder, if yes, how to use that bat?
Click to expand...
Click to collapse
reboot and see if that works!
yes i did that, its not the case..
did you guys do it my way, or did you use adk builder?
Yeah use apk builder. Should work.
Edit: you sure its named right and in the right place?? It should have overwritten your old one.
and how to use apk builder??
okay, i signed the new apk with this http://www.anddev.org/signing_your_apk-application_for_release_keytooljarsigner-t3069.html
but that didnt work (the sign process worked, but then the hero looped)..
can anyone please tell how to sign the apk with apkbuilder??
Did you sign the .apk or the .png ????
Sorry...but i didn´t got a solution...i´m standing in front of the same problem like you
easier method here
http://forum.xda-developers.com/showthread.php?t=536271
no need to bother with apk builder with this method.
boomshaker said:
Did you sign the .apk or the .png ????
Sorry...but i didn´t got a solution...i´m standing in front of the same problem like you
Click to expand...
Click to collapse
signed the apk
soulehmoo said:
easier method here
http://forum.xda-developers.com/showthread.php?t=536271
no need to bother with apk builder with this method.
Click to expand...
Click to collapse
also this does not work for me --> phone loop
any idea, what i could do wrong? i am using windows paint (windows 7) to edit the files.. then i put the edited png files back into archive (thus, overwrite the files there) and push that apk file again back to its path.. after phone reboot the phone goes into endless loop
soulehmoo said:
Or you could do what I did, pull com.htc.resources.apk from the phone, extract it with 7zip edit the .png files in res/drawable-land-480x320/ and res/drawable-port-480x320/ then zipped it and built the apk using apkbuilder.
Then push it to the phone, as usual make backups.
Click to expand...
Click to collapse
I want to change my lockscreen, it all seems to make sense apart from editing the .png files..
What am I supposed to be changing in the files? Maybe I missed something, but that doesn't seem to have been explained
pookie1 said:
I want to change my lockscreen, it all seems to make sense apart from editing the .png files..
What am I supposed to be changing in the files? Maybe I missed something, but that doesn't seem to have been explained
Click to expand...
Click to collapse
tha background image of your lockscreen can be changed easily in the phone settings, but if you wanna change the other parts of the lockscreen, then you need to do it like told here ;-)
felikz said:
also this does not work for me --> phone loop
any idea, what i could do wrong? i am using windows paint (windows 7) to edit the files.. then i put the edited png files back into archive (thus, overwrite the files there) and push that apk file again back to its path.. after phone reboot the phone goes into endless loop
Click to expand...
Click to collapse
common guys, just a feedback!

ResettingOf Themes

Hi there could someone assist me how am I to go abt changing the to defaultThemes upon using a particular one in the Samsung Galaxy S, Android 2.2.1, Thanks s
salmannizam said:
Hi there could someone assist me how am I to go abt changing the to defaultThemes upon using a particular one in the Samsung Galaxy S, Android 2.2.1, Thanks s
Click to expand...
Click to collapse
I posted this in my theme thread, but here goes...
Using 7-zip or WinRAR, take a look inside the downloaded theme zip file. In there browse to the /system/framework and /system/app folders - these are the files that get installed.
What you need to do is make a note of the file names, then go to your phone and make a copy of the same files from /system/framework and /system/app to a folder on your sdcard.
Then copy this folder over to your pc.
Make a copy of the theme zip and call it e.g. mybackup.zip. Open mybackup.zip and copy the files you've backed up into their respective folders, overwriting the ones that are already there.
Close 7-zip/WinRAR and you're done.
Backup created. You can flash it using ClockworkMod recovery.
Each theme replaces different files. You need to check each time you want to try a new theme if you have the right files backed up that the theme is going to overwrite - if you hope to go back to 100% now it was before.

[Q] Force Close after re-compiling framework-res.apk

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.

[HELP]Implement Swipe to remove notification for GB

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.......

create apk to edit system files

hi,
i want to know how do devs create an apk file that can edit files in system folder. for example sound files etc. generally a flashable zip is created which will replace the stock file with a modified one. The same thing, this time without going into recovery but being able to do it with an app itself.
Yes, ready to learn.

Categories

Resources