Related
Hello
I changed some png images with 7zip and copied back to system/framework/ but i got boot loop.
I would like to know how to modify and replace .apk that will work normal?
Thanks
How exactly did you replace the png's? Because the 'normal' proces of unzip-replace-rezip doesn't work.
The most easy way to changes png's:
1. Open framework-res.apk in 7-zip
2. Search for the files you want to change and copy them to your hard disk (do not unzip!!)
3. change the files. Make sure the name stays EXACT the same.
4. Open framework-res.apk and copy your new files in the desired place. By doing so, the original files will be replaced by your files. DO NOT USE ANY COMPRESSION (if asked select 'store').
5. Go into recovery, mount /system and replace the framework-res.apk by the new one. Reboot phone.
Take home message: never unzip
Hope it works now!
Erwin
i went to recovery and hit mount/system. But how can i replace it?
Thanks
urkotheone said:
i went to recovery and hit mount/system. But how can i replace it?
Thanks
Click to expand...
Click to collapse
You have to use adb to do is. I assume you know how to work with it. If not, you have to search for a little tutorial (can't link you right now because I'm using the xda app)
Put the new framework-res.apk in the same folder as adb.exe. Open the command prompt and brows to that same folder. Type in your command prompt:
Code:
adb shell mv system/framework/framework-res.apk system/framework/framework-res.old
adb push framework-res.apk system/framework
adb reboot
Due to the first command, you have a backup of your original framework-res.apk. To restore it, you have to boot in recovery, mount /system and again by the use of the command prompt, type:
Code:
adb shell rm system/framework/framework-res.apk
adb shell mv system/framework/framework-res.old system/framework/framework-res.apk
adb reboot
Erwin
Yeeeeey i did it
Thank you
One more problem
When discharging it's working, but when I charge phone i don't get no battery icon. I believe it's because in original framework i had 100 png animations for charging and now i have only 20. Is there a way to fix this?
urkotheone said:
One more problem
When discharging it's working, but when I charge phone i don't get no battery icon. I believe it's because in original framework i had 100 png animations for charging and now i have only 20. Is there a way to fix this?
Click to expand...
Click to collapse
Then it is going to be much more complicated than that. Perhaps I can explain you in more detail tomorrow, but you will have to look up some things for yourself.
First, you should decompile the framework-res.apk first using apktool. You will notice that it almost looks like it just dezips your apk, but when you look closely, you will see now that you can open and read the xml files.
Second, you have to open res\drawable\stat_sys_battery.xml (or something similar, perhaps it depends on your ROM). Try to understand what is written and make some changes (it is really not that hard) so that your system shows only 20 different images, in stead of 100.
Third, you have to recompile your modified framework-res.apk. Then pull stat_sys_battery.xml out of "your" framework-res.apk into the original framework-res.apk, but again, without unzipping one of them. Do, of course, the same thing with your images.
I must admit, I've been busy with the battery icons myself. It was my plan to do something similar like you did, but I didn't do it yet. So all the things I've written above where the things I was planing to do, but I don't know if it will work, as I never tried it myself. So please, keep me/us informed ;-)
Good luck!
EDIT: I used this site to know how to decompile apk's.
This is an old thread but I wanted to edit my systemUI.apk file with changing out a couple images... if I was to upload the file I edited (by just swapping out the images) to the UOT kitchen and use a mod, say the battery mod, would it make the file usable on my phone or would I get a bootloop or worse?
Basically what I did was opened up the SystemUI.apk file using 7zip and just swapped out the images I wanted (making sure I saved the original ones of course). I didn't unzip/zip anything.. I just opened it using 7zip and then closed it. It didn't ask me if I wanted to save anything though??
Sorry for the stupid question... but I thought it would be an idea as I want to use the UOT to make a mod to the theme I have anyways.
crazy_dragonlady said:
This is an old thread but I wanted to edit my systemUI.apk file with changing out a couple images... if I was to upload the file I edited (by just swapping out the images) to the UOT kitchen and use a mod, say the battery mod, would it make the file usable on my phone or would I get a bootloop or worse?
Basically what I did was opened up the SystemUI.apk file using 7zip and just swapped out the images I wanted (making sure I saved the original ones of course). I didn't unzip/zip anything.. I just opened it using 7zip and then closed it. It didn't ask me if I wanted to save anything though??
Sorry for the stupid question... but I thought it would be an idea as I want to use the UOT to make a mod to the theme I have anyways.
Click to expand...
Click to collapse
I don't know if I understand you fully, but I believe it would: only if the UOT changed the images that you have changed, you will not see the things you have changed.
What I did some time ago was upload my framework en systemui to the UOT, apply the battery mod and than change the battery images with my own. I did that just by opening the apk in WinRAR and adding my images, just like you did.
But if you only want to swapp some images, there is no need for uploading it to the UTO. Just continue as you did. Just make sure that you keep the original systemui.apk on your hdd. In case of a bootloop, you can easely revert.
Is that een answer to your question?
Erwin
Yes, it does.. and thanks. I ended up following the instructions on another thread I found on here... don't remember exactly which one but it basically omitted uploading the files to the UOT. It was a guide on how to theme your phone... sorry but I didn't save the link.
thanks again!
CDL.
urkotheone said:
Hello
I changed some png images with 7zip and copied back to system/framework/ but i got boot loop.
I would like to know how to modify and replace .apk that will work normal?
Thanks
Click to expand...
Click to collapse
Same thing happened to me!
I Wiped Cache, Dalvik Cache, but nothing happened!
I had to flash 2.3.6 Stock ROM via Odin, to make my phone work!
I always work with Winrar, and in there you have the option for compression, which is selected at "medium compression" by default, and that causes bootloops.
So make sure that you don't compress your apk when adding your new png, or it will not work.
Erwin
I change my framework-res.apk from another rom. the problem is when I push long power button, my device going to BOOTANIMATION with out I choose shutdown, restart n etc.. what's wrong with my device??
sorry for my bad eng..
The problem is its another roms framework so things are in different places and some things will be missing, put the framework-res.apk from your rom back and things should go back to normal, mind me asking what tweak or mod you are after using?
Sent from my HTC Wildfire using xda premium
first time I must say sorry, I know this not my device place on XDA, I use MB525.. but I see the same problem here..
I use Ms3ginger mod rom by walter, n I take framework-res.apk from 2.3.6_4.5.2-109 DHT25_themed MultiLanguage, I try to change battery sys-stat but I get bootloop..
once again sorry for my bad eng
If not possible try
Adb remount
First
HI EVERY BODY, I REALLY NEED HELP IN PATCHING this files to get Arabic support. I am not an expert with patching and code stuffs . Last days i was trying to root my nook. First i rooted with Slasicha but i was not able to run android market,
then restored and rooted again with minimal touch. i was afraid of it because it involves installing cwm which i don't know any thing about it, but with following steps and instructions, It worked . also Google apps and market
files that i need to try patching it
framework.jar
libwebcore.so
framework.jar takes care of shaping texts in android on all texts except Gmail and the browser, while libwebcore.so takes care of shaping texts in the default Browser and Gmail app.
This patcher will attempt to get you Arabic support in both of these files.
This should work with all Android phones sporting Android
these steps taken from here :
http://blog.devasque.com/?page_id=11
by madmack member
http://forum.xda-developers.com/member.php?u=1436971
Requirements:
Your device needs to be rooted.
Your Android version is 2.1 or newer
Your ROM needs to be deodexed. To find out if your installed ROM is deodexed, navigate to /system/framework on your phone. If you see a file called framework.odex then this patch will NOT work for you.
Your rom is not based on MIUI.
Steps to apply the patch:
Download the patch below and extract it to a folder on your computer.
Pull /system/framework/framework.jar from your phone and place it in the subfolder input that you extracted in step 1
If you’re not using a CyanogenMod ROM, then you’ll also need to pull /system/lib/libandroid_runtime.so from your phone and place it in subfolder input that you extracted in step 1
If you’re interested in getting arabic shaping in the Browser, pull file /system/lib/libwebcore.so from your phone and place it in subfolder input as well.
Double click on commands.exe. Do not close the black cmd screens that will pop up. Once the patch is done, you should get a patched framework.jar in the subfolder output
Version 0.800 provides a recovery flashable file in folder output. Place that on your sdcard, reboot into recovery and flash it. If the flashing through recovery didn’t work for some reason, you’ll need to do the following manually:
Put file output/framework.jar in your phone at /system/framework/
Put file output/libandroid_runtime.so in your phone at /system/lib/ (if this file exists, it shouldn’t if you’re arabizing CM6).
Put file output/libicuuc-arabic.so in your phone at /system/lib/ This is extremely important, failing to place this file will result in a boot loop of your deivce
If file exists: Place file output/libwebcore.so in your phone at /system/lib/
If file exists: Place file output/lib__bcore.so in your phone at /system/lib/
I’ve also included the Aljazeera fonts in fonts. You can place these in /system/fonts and reboot
Sometimes permissions and xml data doesn’t get updated correctly resulting in corrupted data entries. If you receive a bunch of Force Closes after a reboot, you’ll need to Factory Reset.
member: dark hawk, on this post
http://forum.xda-developers.com/showpost.php?p=22521341&postcount=17
said ,
dark_hawk said:
As for how to add Arabic, I'll add a guide soon, it involves patching the Framework.jar only, as I found that patching the lib files causes crashes in the anything related to the stock browser , like gmail and such. But all in all, You'll have Arabic in everything else.
Click to expand...
Click to collapse
but he did not answer, i hope he is ok
can someone help me with that a screenshot with these website :
www.ce4arab.com
www.bbc.co.uk/arabic/
, it would be a great help
I did a search but could not find a theme that changes all the notification icons in the notification bar (i.e. for talk/ gmail/ whatsapp etc etc) + the alarm clock & vibrate icon to ICS blue.
Is there a theme out there that does exactly that?
I already made a few of these for a widget, I can make a set and upload them. You would have to adb pull SystemUI.apk, replace the png's, and then push it back to system/app.
Thank you very much!
But before you go any length, let me please read up on what you just said
What rom are you using? I can throw them in for you.
Without doing it for me- that just deserves another thank you
At this moment I'm on AOKP b27 but that varies quite a bit
So instead of you doing all the work for me (may be it is best to learn it myself since I change ROMS fairly often), would you care to help me a bit?
This is what I've found:
1. Root is prerequisite. If you're using stock rom, you can obtain cf-root from here.
2. Install android sdk from here. Eclipse is optional. The essential stuff we need is the adb from the sdk.
3. Please make a backup using cwm in case you end up deleting or corrupting your phone.
4. Connect your phone to the pc.
5. Open cmd and type cd C:\android\tools . (Depends on where is your sdk tools folder)
6. type adb pull /system/app/SystemUI.apk (Status Bar Modding)
7. Alright, now edit the .apk to .zip in your tools folder.
8. Open up the zip and replace the mdpi files inside with the one you prepared.
9. After all the changes, change the .zip back to .apk
10. Open cmd and type cd C:\android\tools . (Depends on where is your sdk tools folder)
11. type adb push SystemUI.apk /system/app/SystemUI.apk
12. Reboot your phone.
Courtesy of terrymcnuggets in this topic.
My questions; regarding
7. Alright, now edit the .apk to .zip in your tools folder; and
9. After all the changes, change the .zip back to .apk
Do i rename the .apk to .zip or do I create a .zip?
AND
8. Open up the zip and replace the mdpi files inside with the one you prepared.
the files you would be prepared to share are mdpi files? not .png?
The icons I want in ICS blue (#FF33B5E5 - or same color as the time etc in te notifcation (top) bar) are: Bluetooth icon, Vibrate icon, Alarm icon, and all of the notication icons (talk/ gmail/ whatsapp etc)
If you'd rather point me out in the directio on how to change them myself that would be great too (Photoshop?)
Many many thanks for your time
Ti2 said:
Without doing it for me- that just deserves another thank you
At this moment I'm on AOKP b27 but that varies quite a bit
So instead of you doing all the work for me (may be it is best to learn it myself since I change ROMS fairly often), would you care to help me a bit?
This is what I've found:
1. Root is prerequisite. If you're using stock rom, you can obtain cf-root from here.
2. Install android sdk from here. Eclipse is optional. The essential stuff we need is the adb from the sdk.
3. Please make a backup using cwm in case you end up deleting or corrupting your phone.
4. Connect your phone to the pc.
5. Open cmd and type cd C:\android\tools . (Depends on where is your sdk tools folder)
6. type adb pull /system/app/SystemUI.apk (Status Bar Modding)
7. Alright, now edit the .apk to .zip in your tools folder.
8. Open up the zip and replace the mdpi files inside with the one you prepared.
9. After all the changes, change the .zip back to .apk
10. Open cmd and type cd C:\android\tools . (Depends on where is your sdk tools folder)
11. type adb push SystemUI.apk /system/app/SystemUI.apk
12. Reboot your phone.
Courtesy of terrymcnuggets in this topic.
My questions; regarding
7. Alright, now edit the .apk to .zip in your tools folder; and
9. After all the changes, change the .zip back to .apk
Do i rename the .apk to .zip or do I create a .zip?
AND
8. Open up the zip and replace the mdpi files inside with the one you prepared.
the files you would be prepared to share are mdpi files? not .png?
The icons I want in ICS blue (#FF33B5E5 - or same color as the time etc in te notifcation (top) bar) are: Bluetooth icon, Vibrate icon, Alarm icon, and all of the notication icons (talk/ gmail/ whatsapp etc)
If you'd rather point me out in the directio on how to change them myself that would be great too (Photoshop?)
Many many thanks for your time
Click to expand...
Click to collapse
7. Yes, change the extension to zip. Alternatively simply open it with 7zip/winrar or another archiver.
8. mdpi is the name of the folder. when you open the apk with the archiver you will see a folder called /res/ and inside a couple of drawable[xxx] folders. in theory you should only have to modify files in the drawable xhdpi folder (since the gnex is a xhdpi device). I would suggest extracting the whole /res/ folder and looking in it.
9. if you changed the extension to .zip, change it back to apk. otherwise simply drag and drop the modified files in the correct folders.
PS: make sure you save the original SystemUI.apk somewhere, in case the modifications don't work as expected and you want to revert to the original one
Good luck!
Ok, just to be safe.
1. I connect my phone with usb and type adb pull /system/app/SystemUI.apk in cmd
2. I copy that file to 2 different locations (1 to be sure I have the original in case I screw up , 1 to try and modify)
3. I type adb push /system/app/SystemUI.apk so that my phone is still in good state
Then I go to 1 of the saved SystemUI.apk and rename it to SystemUI.zip
I search for the folder /res/ and look for the notification icons etc which I would like to change the color
Change the color of the .png files with the ICS color in photoshop and replace them
Rename SystemUI.zip back to SystemUI.apk
In cmd I type adb push /system/app/SystemUI.apk and reboot
Did I understand it all correctly? Thanks
Ti2 said:
Without doing it for me- that just deserves another thank you
At this moment I'm on AOKP b27 but that varies quite a bit
So instead of you doing all the work for me (may be it is best to learn it myself since I change ROMS fairly often), would you care to help me a bit?
This is what I've found:
1. Root is prerequisite. If you're using stock rom, you can obtain cf-root from here.
2. Install android sdk from here. Eclipse is optional. The essential stuff we need is the adb from the sdk.
3. Please make a backup using cwm in case you end up deleting or corrupting your phone.
4. Connect your phone to the pc.
5. Open cmd and type cd C:\android\tools . (Depends on where is your sdk tools folder)
6. type adb pull /system/app/SystemUI.apk (Status Bar Modding)
7. Alright, now edit the .apk to .zip in your tools folder.
8. Open up the zip and replace the mdpi files inside with the one you prepared.
9. After all the changes, change the .zip back to .apk
10. Open cmd and type cd C:\android\tools . (Depends on where is your sdk tools folder)
11. type adb push SystemUI.apk /system/app/SystemUI.apk
12. Reboot your phone.
Courtesy of terrymcnuggets in this topic.
My questions; regarding
7. Alright, now edit the .apk to .zip in your tools folder; and
9. After all the changes, change the .zip back to .apk
Do i rename the .apk to .zip or do I create a .zip?
AND
8. Open up the zip and replace the mdpi files inside with the one you prepared.
the files you would be prepared to share are mdpi files? not .png?
The icons I want in ICS blue (#FF33B5E5 - or same color as the time etc in te notifcation (top) bar) are: Bluetooth icon, Vibrate icon, Alarm icon, and all of the notication icons (talk/ gmail/ whatsapp etc)
If you'd rather point me out in the directio on how to change them myself that would be great too (Photoshop?)
Many many thanks for your time
Click to expand...
Click to collapse
That's a great attitude!!! Good for you for taking it in your own hands!!!
Sent from my Galaxy Nexus using Tapatalk
Ti2 said:
Ok, just to be safe.
1. I connect my phone with usb and type adb pull /system/app/SystemUI.apk in cmd
2. I copy that file to 2 different locations (1 to be sure I have the original in case I screw up , 1 to try and modify)
3. I type adb push /system/app/SystemUI.apk so that my phone is still in good state
Then I go to 1 of the saved SystemUI.apk and rename it to SystemUI.zip
I search for the folder /res/ and look for the notification icons etc which I would like to change the color
Change the color of the .png files with the ICS color in photoshop and replace them
Rename SystemUI.zip back to SystemUI.apk
In cmd I type adb push /system/app/SystemUI.apk and reboot
Did I understand it all correctly? Thanks
Click to expand...
Click to collapse
1. the command is: adb pull /system/app/SystemUI.apk <location>
<location> would then be, for example, c:\temp
so, adb pull /system/app/SystemUI.apk c:\temp
2. then you create a copy of the SystemUI.apk from you c:\Temp folder
3. no need to push it back. adb pull simply copies a file from the filesystem
Then you go about and do all the other stuff (extract, edit, etc.)
Finally, when all is done you must do this:
In cmd type:
mount -o rw,remount /dev/block/mmcblk0p1 /system
adb push <location/SystemUI.apk> /system/app
where <location> is the place where you have the file. so the command would be, for example:
adb push c:\temp\SystemUI.apk /system/app
can you provide the zip with the png images. I would like it so i can install via root explorer. thanks in advance!
Hey guys, I finished the set, the download link is in my icon thread since that's where the rest of my holo themed/ics blue work is.
http://forum.xda-developers.com/showthread.php?p=22296313
mrfenyx said:
1. the command is: adb pull /system/app/SystemUI.apk <location>
<location> would then be, for example, c:\temp
so, adb pull /system/app/SystemUI.apk c:\temp
2. then you create a copy of the SystemUI.apk from you c:\Temp folder
3. no need to push it back. adb pull simply copies a file from the filesystem
Then you go about and do all the other stuff (extract, edit, etc.)
Finally, when all is done you must do this:
In cmd type:
mount -o rw,remount /dev/block/mmcblk0p1 /system
adb push <location/SystemUI.apk> /system/app
where <location> is the place where you have the file. so the command would be, for example:
adb push c:\temp\SystemUI.apk /system/app
Click to expand...
Click to collapse
I'll start from here (when I can find some time), when I have further questions I'll post them here. Thanks for your help mate
Ti2 said:
I'll start from here (when I can find some time), when I have further questions I'll post them here. Thanks for your help mate
Click to expand...
Click to collapse
No problem, good luck. Shoot me a pm if you get stuck somewhere, don't forget to make a nandroid, etc.
Zer0_Cool said:
Hey guys, I finished the set, the download link is in my icon thread since that's where the rest of my holo themed/ics blue work is.
http://forum.xda-developers.com/showthread.php?p=22296313
Click to expand...
Click to collapse
And also a thanks to you for your help!
So, besides pulling them from systemUI.apk and putting thenm back, what more can I do? You told me you could "put them in my ROM" of choice. Since I regularly flas a diff rom, could you please explain to me how to do this before I flash the new rom?
Ti2 said:
And also a thanks to you for your help!
So, besides pulling them from systemUI.apk and putting thenm back, what more can I do? You told me you could "put them in my ROM" of choice. Since I regularly flas a diff rom, could you please explain to me how to do this before I flash the new rom?
Click to expand...
Click to collapse
What I meant was that I could take the SystemUI.apk file from whatever rom you are currently running. Different roms have different tweaks done here and there, and that's one of the larger areas of change, so I wanted to give you the correct one to avoid any potential complications.
Ok so I managed to pull the systemUI.apk an rename it to zip.
I found the following .png I ould like to change to ICS blue:
C:\noticons\SystemUI.zip\res\drawable-sw600dp-xhdpi
stat_sys_alarm.png
stat_sys_data_bluetooth.png
C:\noticons\SystemUI.zip\res\drawable-xhdpi
stat_notify_image.png
stat_notify_image_error.png
stat_notify_more.png
stat_sys_alarm.png
stat_sys_ringer_silent.png
stat_sys_ringer_vibrate.png
Now what I couldn't find the notification icons for Gmail/ Gtal/ Whatsapp etc etc; where can I find these? As well as bluetooth connected/ usb debugging icon etc
Ti2 said:
Ok so I managed to pull the systemUI.apk an rename it to zip.
I found the following .png I ould like to change to ICS blue:
C:\noticons\SystemUI.zip\res\drawable-sw600dp-xhdpi
stat_sys_alarm.png
stat_sys_data_bluetooth.png
C:\noticons\SystemUI.zip\res\drawable-xhdpi
stat_notify_image.png
stat_notify_image_error.png
stat_notify_more.png
stat_sys_alarm.png
stat_sys_ringer_silent.png
stat_sys_ringer_vibrate.png
Now what I couldn't find the notification icons for Gmail/ Gtal/ Whatsapp etc etc; where can I find these? As well as bluetooth connected/ usb debugging icon etc
Click to expand...
Click to collapse
wild guess: in the gmail, gtalk, whatsapp apks...
good luck
PS: editing non-system apps (also called market apps) is a bit tricky
Why is that tricky please?
So how do I change those icons?
adb pull /system/app/Gmail.apk c:\temp
rename to .zip
search for the icon, change
rename to .apk
mount -o rw,remount /dev/block/mmcblk0p1 /system
adb push C:/temp/SystemUI.apk/system/app
like that? Or should I really leave that alone as a n00b?
Ti2 said:
Why is that tricky please?
So how do I change those icons?
adb pull /system/app/Gmail.apk c:\temp
rename to .zip
search for the icon, change
rename to .apk
mount -o rw,remount /dev/block/mmcblk0p1 /system
adb push C:/temp/SystemUI.apk/system/app
like that? Or should I really leave that alone as a n00b?
Click to expand...
Click to collapse
Those app's weren't included in the set provided by google. What I (or you) will have to do is download the application you want to modify, extract it and find the png that is going to be changed, edit it, name it the same thing as it was before. Then, double click and open the original apk with the archive manager (to avoid re-signing), navigate to the folder the image was in (probably /res/drawable_something) and then drag the new file over. It will overwrite the old image without needing to extract/re-sign/etc. then you adb push theapp.apk /data/app/ and see if it works.
*do you really need to rename it to a .zip to extract on windows?
Zer0_Cool said:
Those app's weren't included in the set provided by google. What I (or you) will have to do is download the application you want to modify, extract it and find the png that is going to be changed, edit it, name it the same thing as it was before. Then, double click and open the original apk with the archive manager (to avoid re-signing), navigate to the folder the image was in (probably /res/drawable_something) and then drag the new file over. It will overwrite the old image without needing to extract/re-sign/etc. then you adb push theapp.apk /data/app/ and see if it works.
Click to expand...
Click to collapse
can this be actually done without having to resign the apk? I remember trying to change the icon for facebook once. I simply copied the new icon inside the apk and overwrote the existing one (same name but obviously, different size). It seemed to work at first but then the app disappeared from the app drawer (it was still in /data/app/ but I could not use it anymore). had to manually delete it and download and install again from market...
In order to get it to work I had to resign it but we know that is not the optimal way to work...
I think every body should have the source to information so they can better understand what they are messing with... why waste time waiting and begging for food when you can learn to cook for yourself?! ... so here is my tutorial on breaking down CyanogenMod9 on the Acer A100( although most of this should be a general guideline to most roms) ***** I am not responsible for you breaking your stuff nor responsible what you do with this information... you have been warned! u can soft brick your tab in a heartbeat***
okay so there are countless tutorials on how to build a ROM from source... just google it.. but some ppl obviously don't have the need to spend the hours compiling because there is already a build for the ROM that they like... but on the other hand they want to add some mods and tweaks to the zip before flashing to tweak the tab to how they want it... after all it is your device and your the one that uses it most so why wouldn't you want personalized tweaks... and theres only one way to learn.. trial and error! haha but hopefully this guide will help you grasp some basic to advanced Android tweaks and mods ... again this tutorial is written for CM9 for the acer a100 but the "general" idea is about the same on the basic stuff... this tutorial is written by me from many sources too many to name but thanks for all the tutorials or I wouldn't know a lot of what I know about Android... This guide is for Ubuntu 12.04... but I would assume 10.04+ it would be compatible but don't quote me on that as I don't know so its your fault if you f* something up!!!!
First off you have your cm9.zip... its simply a zipped archive.. dur... sometimes a signed zip.. now you can simply open nautilus file explorer and go to your .zip and extract it with archive manager.. I suggest when the dialog comes up as where to extract the files that you click make a new folder and name it extractedCM9 and let it extract... okay not so hard quite yet 'eh?.. hang in there it gets a lot better ... you should now have a folder named extractedCM9 with some files in it... copy the extractedCM9 folder and paste it into the same directory that your copying from... rename the folder tweaked then cut and past that folder into extractedCM9... next open the extracted CM9... you should see the following: META-INF(a directory), system(a directory), and boot.img( this holds your initrd which is your "ramdisk", your zImage which is your kernal, and on extracting you'll also find a boot.cfg... we will get to extracting the boot image latter.. stick with the easier things to get us going!... now create another directory called stock .. you should now have the following... META-INF/(a directory), system/(a directory), stock/(a directory), tweaked(a directory), and boot.img.. okay a little more copying and pasting.. all this will be used later so if following this tutorial all the way throu you should do as instructed lol... CUT META-INF/, system/, and boot.img and paste it into stock.. you should be left with the two directories tweaked/ and stock/ both having extracted CM9 in them go into your tweaked/ directory and lets begin.... so some of the things you can tweak just from a simple extraction of the zip are as follows...
You can edit your /system directory and make tweaks as needed before ever installing the rom! .. just some of the things held in /system is the boot animation and it can be found at /system/media/bootanimation.zip its also a simple zip composed of images to be ran concurrent to appear as a single animation.. the resolution for the a100 boot animation is 1024x600 and a simple google search for either a100 custom boot animations or basically any low-def 1024x600 boot animation should work simply delete the existing bootanimation and copy the new one in its place.. remember NO MATTER WHAT THE DOWNLOAD FILE NAME is you MUST rename it to be bootanimation.zip or it wont work( I say should because I obviously have not tried every boot animation and I know there is a limit to the size for the acer animation so sticking with <6mb bootanimations should be just fine).. now if you decide to go further and extract the cm9 boot animation you will find part0( a directory), part1( a directory) and desc.txt.. the part0 and part1 directories hold the images that are to be ran and desc.txt simply states the resolution and then below that it list the directories that are included in the zip... part01 will be ran before part02.. for the novice I recommend just sticking to finding cool bootanimations already zipped for our resolution that some has posted for download so you can simply copy and past!...
also in system/media/ you will find a directory named audio.. dive into that and you find where the default sounds(aka ringtones, notifacations) that are stored for your fresh rom go back up a directory to system/media/ again and you'll see the video.. those are just some mp4's stored for the ROM.... that about it for editing in media.. lets recap.. you can basically edit/ change your boot animation and the default ringtones and notification sounds in /system/media... lets move back up to /system..
from /system you see another directory user/ ... lets go in there for a second.. what do we find.. MORE directories of course lol.. what else would we find... keychars( a directory) and keylayout( a directory) contain your configuration files for the input keys.. you can find things for the way game controllers and keyboards input are handled and what codes on keypresses.. now for our device if you proceed into keylayout/ (system/usr/keylayout/) you will see a file called gpio-keys.kl right clicking on that file and selecting open with and choosing gedit will bring up the file and you will see someything like
key 136 SEARCH WAKE_DROPPED
key 139 MENU WAKE
key 102 HOME
... and so on.....
these are what your hardware buttons do.. basically to explain whats going on is the key ### is the hardwired part... the SEARCH or MENU or what ever action you see is simply that.. an action to be called... and the WAKE_DROPPED and WAKE... well to be honest I'm not for sure what those do lol I assume having WAKE associated with a key would wake the device when pressed.. not for sure on that one thou haven't tried it.. but a quick google search and you can find list of commands that you can choose from.. one of them is being the command to call the camera.. so in essence you could bind any of your hardware keys to the camera function and it would open the camera... my little tweak to this file is to completely disable the HARDWARE HOME KEY... the only key on the front of our devices.. now I have seen some tutorials no disabling it by changing the...
key 102 HOME
... to ...
key 102 UKNOWN
... my problem with that is it does seem to disable the key.. sorta.. and what I mean by that is when you are in certain apps it will trigger the select/ hover action like if you were using a keyboard... so to completely disable it where it will call NO action simply DELETE that line! change ..
key 102 HOME
... to ...
... lol just delete that line out of the file and save it... voila! no more hitting it on mistake while playing a game or browser or w.e it is your doing *** note that this will not disable the light on the button.. it will still flash for notifications and the like...
alright once you have that saved you can exit out of gedit and go back to nautilus showing your extracted cm9 files go up your directory tree until your back in tweaked/ looking at META-INF/, system/, boot.img ... highlight all three of those... right click again and hit compress.. name the file myCM9tweak.zip or w/e you want to call it... make sure .zip is selected in the drop down menu of type of format to compress and compress... once its done you have an unsigned tweaked CM9.zip that if you didn't make any mistakes will boot.. and even if you made mistakes it could possibly boot and you will find your errors as you use it.. now if you just stuck with the simple tweaks I should you above you should be pretty safe and not worry to much about the device not booting.. if it doesn't boot a stock .zip then go back to your tweaked/ folder and try and find out what you did wrong and compress again about try it out! ... okay my fingures are tired of typing so I'm done with the tutorial for tonight.. well I might add more tonight but don't hold me to it... but this tutorial is in NO WAY finished... we are just beginning.. I haven't even showed you how to unpack-edit- and repack your boot.img to swap out kernals and from there extracting your initrd( aka "ramdisk") so you cant edit things at the very core of the ROM... don't be mad if you made the stock/ and tweaked/ directories and are wondering what the hell i had you make two directories of the same crap... just remember this tutorial is at its very begin if you plan on unpacking boot.img's with me then you need to just follow along... for what I have showed you tonight you can do this from windows of course and using notepad instead of gedit... for the advanced stuff sorry your going to need Ubuntu! ...
MORE TO COME...
--more simple system tweaks and mods--
--unpacking-modifying- and repacking boot.img's--
--extracting initrd's( aka "ramdisk") to make edits to the core of your rom and of course repacking them--
I hope someone finds some kind of useful information out of this.. tonight was pretty basic stuff but theres a lot more coming... including but not limited to a whole bunch of command prompt!
*~ENJOY~*
(please excuse any typo's.. I don't think theres any where it count's ..)
This is the guide I wish I had read the day I rooted, you rock man!
sent from your future.
Hello everyone !
As some of you probably know, to be able to send and receive mms in japan (sms are not used most of the time, lots of phone are not even able to use them), you need to modify the mms.apk, to make your phone a fake iphone.
After some research and tests, I have been able to find a way to modify any mms.apk of any rom, as long as the phone is rooted.
But as I update my phone really often with CM, I didn't wanted to do the all process over and over again.
Then I created some little batch files, which I share to you now, for the ones who want the same things.
Those batch files should work on any rom and phones, as long as they are rooted, with adb right.
I have no credit for the tools used by those scripts, I only created the batch files which use them.
And I am not responsible of any damage those scripts could do to your phone !!
/!\ This script is available for windows only /!\
Installation process :
1.unzip the file somewhere (if updating, delete everything and unzip again)
2.connect your phone to your computer and check if you can access to your phone in adb root mode. For JB roms, I saw that changing the usb mode to PTP helps sometime.
3.launch "mms_mod.bat" in admin mode
4.if at the end of the process your phone doesn't reboot and you sms icon doesn't disappear from your android home, which happens most of the time, launch the "put_mms_again.bat" in admin mode.
5(a).if everything work, your phone should reboot, and your sms icon should disappear from your android home. It is normal, don't panic, just take it back from your applications launcher.
5(b).if everything work except pushing the file inside your phone (inside /system/app), do it manually with root explorer for example (don't forget to change the Mms.apk file permission after copying it), you can find the modded Mms.apk in "Output\[device model]\[date&time]\Modded_file\". Then reboot your phone.
Now it's ok, your phone should now works on softbank network!!
Don't forget to use mms mode when you want to send something to a japanese phone!
Please note that if anything goes wrong, you can find a backup of your Mms.apk in "Output\[device model]\[date&time]\Backup_file\"
Oh, and if it is not done already, don't forget to setup the softbank's APN.
For that, just download the program named "Tweakker" on google play, it is perfect for that. But be careful, the default APN to use depends of your phone plan.
Tell me if you have any suggestion or bug !
Change log :
2013/09/20 - release 0.2
- cleaning code and adding a backup feature which keeps the original and modded Mms.apk for each operation
2013/09/20 - initial release
Stremon said:
Hello everyone !
As some of you probably know, to be able to send and receive mms in japan (sms are not used most of the time, lots of phone are not even able to use them), you need to modify the mms.apk, to make your phone a fake iphone.
After some research and tests, I have been able to find a way to modify any mms.apk of any rom, as long as the phone is rooted.
But as I update my phone really often with CM, I didn't wanted to do the all process over and over again.
Then I created some little batch files, which I share to you now, for the ones who want the same things.
Those batch files should work on any rom and phones, as long as they are rooted, with adb right.
I have no credit for the tools used by those scripts, I only created the batch files which use them.
And I am not responsible of any damage those scripts could do to your phone !!
/!\ This script is available for windows only /!\
Installation process :
1.unzip the file somewhere
2.connect your phone to your computer and check if you can access to your phone in adb root mode. For JB roms, I saw that changing the usb mode to PTP helps sometime.
3.launch "mms_mod.bat" in admin mode
4.if at the end of the process your phone doesn't reboot and you sms icon doesn't disappear from your android home, which happens most of the time, launch the "put_mms_again.bat" in admin mode.
5.if everything work, your phone should reboot, and your sms icon should disappear from your android home. It is normal, don't panic, just take it back from your applications launcher.
Now it's ok, your phone should now works on softbank network!!
Don't forget to use mms mode when you want to send something to a japanese phone!
Oh, and if it is not done already, don't forget to setup the softbank's APN.
For that, just download the program named "Tweakker" on google play, it is perfect for that. But be careful, the default APN to use depends of your phone plan.
Tell me if you have any suggestion or bug !
Click to expand...
Click to collapse
I get the error message "adbd cannot run as root in production builds" on step after I run adb root.
Doug_74 said:
I get the error message "adbd cannot run as root in production builds" on step after I run adb root.
Click to expand...
Click to collapse
this is because your rom doesn't allow adb to run in root mode
was the Mms-signed.apk created successfully inside the script folder ?
if there was no error before, it should be the case.
in that case, rename Mms-signed.apk to Mms.apk, and put it manually to your /system/app/ phone folder.
Don't forget to save your Mms.apk before, and to change the access rights of Mms.apk after copying it to system folder.
Stremon said:
this is because your rom doesn't allow adb to run in root mode
was the Mms-signed.apk created successfully inside the script folder ?
if there was no error before, it should be the case.
in that case, rename Mms-signed.apk to Mms.apk, and put it manually to your /system/app/ phone folder.
Don't forget to save your Mms.apk before, and to change the access rights of Mms.apk after copying it to system folder.
Click to expand...
Click to collapse
No error and the file shows up, but is very small only 1.69kb. Shouldn't the file be closer to the original which is 8.56mb? I have s Samsung GS4 and the original file is SecMms.apk. I noticed the twframework-res did not run on the script just framework-res does this matter?
After messing with this for sometime I can see where the script is looking for Mmm.apk, but since I have a Samsung phone the file is SecMms.apk, so this is the problem I believe. Looks like you would need to have additional script just for Samsung to include twframework-res and framework-res, also to look for SecMms.apk. This is a nice script you built, BTW.
Doug_74 said:
No error and the file shows up, but is very small only 1.69kb. Shouldn't the file be closer to the original which is 8.56mb? I have s Samsung GS4 and the original file is SecMms.apk. I noticed the twframework-res did not run on the script just framework-res does this matter?
After messing with this for sometime I can see where the script is looking for Mmm.apk, but since I have a Samsung phone the file is SecMms.apk, so this is the problem I believe. Looks like you would need to have additional script just for Samsung to include twframework-res and framework-res, also to look for SecMms.apk. This is a nice script you built, BTW.
Click to expand...
Click to collapse
Be careful, if your GS4 use a special samsung mms program, this script will not work with it anyway, because the script modify some file inside the Mm.apk, which are probably not the same inside your SecMms.apk.