Hello everyone,
I'm trying to deodex but i get everytime a .odex error.. Ive read somewhere that i need to delete that file and try it again.. but the program stops at every .odex file, i guess it isnt the meaning to delete every .odex file ??
AskinSavascisi said:
Hello everyone,
I'm trying to deodex but i get everytime a .odex error.. Ive read somewhere that i need to delete that file and try it again.. but the program stops at every .odex file, i guess it isnt the meaning to delete every .odex file ??
Click to expand...
Click to collapse
Hi
You have to delete/remove every .odex file from the folder were you have the .apk files.
Now the deodexing will work fine for you and you can pudh the files to the System/app folder with ADB
A thank you would be nice, if i helped you in any way.
Related
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!
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.
I really wanted the Motorola Weather widget, so I download the system app dump of the Defy, and found what I desired. An .APK file and an .ODEX file. I have no problem installing the .APK, but what is the .ODEX file? Is it important? And if yes, than how do I install it?
You should put the odex file in the same folder where apk was copied during the installation.
Or, without installing, copy apk + odex in /system/app folder.
anyone knows anythink about it?? I have tried building a rom from system.tar(backup file from nandroid) but it contains only the stock apps...
Extract the system.tar to get system folder
and if ur using kitchen
then copy it to the WORKING_XXXX folder or create such folder
and there is no other way...all u do is somehow get the system folder and then modify it
and thanks for the help dude
SSSidGGG said:
Extract the system.tar to get system folder
and if ur using kitchen
then copy it to the WORKING_XXXX folder or create such folder
and there is no other way...all u do is somehow get the system folder and then modify it
and thanks for the help dude
Click to expand...
Click to collapse
Already tried that but it contains only the apps which come with the original stock rom(stock apps) and not the ones I downloaded..
The apps that u install after getting the device started are not in the system folder but the data folder which can be found in data.rfs.tar
and then in data folder open app u will find them either there or a backup of those somewhere in the .tar file only dnt remeber properly
your downloaded app is stored in data.rfs.tar (if you put them on internal memory) or .android_secure.vfat.tar (if you put them on sdcard)
SSSidGGG said:
The apps that u install after getting the device started are not in the system folder but the data folder which can be found in data.rfs.tar
and then in data folder open app u will find them either there or a backup of those somewhere in the .tar file only dnt remeber properly
Click to expand...
Click to collapse
kurotsugi said:
your downloaded app is stored in data.rfs.tar (if you put them on internal memory) or .android_secure.vfat.tar (if you put them on sdcard)
Click to expand...
Click to collapse
ty both of u.. srry culdnt press the button cuz i hav reached my limit of 8 thnks
is it safe to place the files in /system/app folder and remove the old ones??
yup...if you already have the newer one its safe to remove the old one. but make sure you delete the odex files too. no need to press that silly button. I'm just a noob here, not a dev.
You can try but when i put vending.apk when 1st open it installing again on /data and operamini.apk can't put on system always force close in my case.
in DXLB and newer firmware market in system app is named phonesky.apk. vending.apk is the older version used in older firmware. we don't need them if we already have phonesky.apk.
So i tried many zip files, all failed.
Try this one. Works. Created myself, took zips of the internet and copied files across into one.
IMPORTANT!!!
Delete ALL Gallery.apk and GMSCore.apk from SYSTEM !!
WILL NOT WORK OTHERWISE
link
http://www.mediafire.com/?cr1i5rc6eghjhgp
has anyone tried this if it works!
Qwerty123 \m/ said:
So i tried many zip files, all failed.
Try this one. Works. Created myself, took zips of the internet and copied files across into one.
IMPORTANT!!!
Delete ALL Gallery.apk and GMSCore.apk from SYSTEM !!
WILL NOT WORK OTHERWISE
link
http://www.mediafire.com/?cr1i5rc6eghjhgp
Click to expand...
Click to collapse
Why is the /lib folder inside another /lib folder in your zip ?
This is it for exactly? Do not understand anything.
move second /lib folder content into first /lib folder, then delete the empty /lib folder
save, then flash it.
work for me