Hi,
This is a tutorial to explain how to make a theme with some APKs modified.
Note : This HOWTO is for people who have a minimum knowledge in informatic, i will not answer to questions like "what's a CMD?" etc.
FACULTATIVE STEP
The first thing we have to do, it's set up a working folder, this will help you to make your theme easily
Create a folder "Skin blabla", like you want.
After, create 3 folders like this screen :
{
"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"
}
We will make a backup of ALL APKs of your tattoo (if you do a wrong modification & you brick), make a copy of this backup into "Modded APKs" (there will be the modified APKs), and "Decompressed" will be the folder which has all PNGs.
SOME EXPLICATIONS
The only risk is Android, all APKs which are using on android have to be signed, if one of your APKs isn't signed, you will semi-brick your Tattoo and have to go on recovery and push the original APK.
Note : You have to have (woh) a custom recovery, if you don't and you semi-brick your tattoo, the only way to restart it is the GOLDCARD.
So, the only way to keep your APK signed is to use the drag&drop.
FIRST STEP : Backup
Connect your device. (with USB debug)
Open a CMD.
(We say your skin's folder is on c:\Skin to make it simple, if you choose an other destination, change what i have writed after)
adb shell pull /system/app/*.apk "c:\Skin\Original APK"
adb shell pull /system/framework/*.apk "c:\Skin\Original APK"
copy "c:\Skin\Original APK\*.apk" "c:\Skin\Modded APK"
You can delete the APKs you will never modify on Modded.
It's finished, we can start
SECOND STEP : Drag & Drop
I'm using WinRAR.
Like i said before, we have to keep our APKs signed.
Select which APKs you want to modify of "Modded" folder, right click, and select "extract...".
Select "Decompressed" folder, and extract all APKs.
You will have many folders with the name of which APK. (Rosie, framework-res, etc etc)
Modify all PNGs you want to modify on which folder. (Note : All images are on res/drawable*)
Then, return on modded folder, open which APKs you modified on the other folder, and open framework-res.apk for example, let the APK open with WinRAR. Open "Decompressed"s folder, select some folders/PNGs you have modified (we will select "drawable" for example), drag&drop it in WinRAR. (of course, you have to be on /res folder in winRAR, the folder have to match...)
Copy the modified APK with : adb push blabla.apk /system/originaldirectoryoftheapk
Some advices
- All notifications icons are on framework-res.apk & com.htc.resources.apk.
- The only APKs which are on /system/framework/ are the both APKs one line before. All others are on /system/app/.
- Rosie.apk is HTC Sense.
- Some notifications icons are on Calendar.apk (1), HtcContacts.apk (1), HtcLocationService.apk (1), HtcMusic.apk (2+), HtcTwitter.apk (1), Mail.apk (1), Mms.apk (1+), Talk.apk (1).
- If you modify Rosie.apk, or some others APKs, Sense will be strange, wait or reboot the device.
- ...
Hi JoOoSs
I have modified Browser.apk, but when I try
Code:
adb push Browser.apk /system/app/Browser.apk
I receive the next message:
Code:
failed to copy 'Browser.apk' to '/system/app/Browser.apk': Out of memory
Also, before this I was receiving this message:
Code:
failed to copy 'Browser.apk' to '/system/app/Browser.apk': Directory not empty
Any ideas about what could be the problem?
Thanks!
It's a problem with your ROM.
Modaco ? Fyodor ? Stock ?
I have the MoDaCo ROM, the weird thing is that yesterday I installed your Black skin, and today I tried to do it again and have the above errors.
At each reboot you have to do:
adb shell
insmod /system/lib/modules/tattoo-hack.ko
mount -o rw,remount /dev/block/mtdblock3 /system
JoOoSs said:
At each reboot you have to do:
adb shell
insmod /system/lib/modules/tattoo-hack.ko
mount -o rw,remount /dev/block/mtdblock3 /system
Click to expand...
Click to collapse
Actually, I did it.
I've noticed something really weird. I flashed a fresh ROM (MoDaCo), then I pushed your files (from Black Skin) and some mine, everything worked perfect. But, later, when I try to push another file (yours or mine), I get this error:
Code:
adb push WorldClock.apk /system/app/WorldClock.apk
failed to copy 'WorldClock.apk' to '/system/app/WorldClock.apk': Directory not empty
I don't know what is happening
I think you lose the RW when you exit your CMD, did you retry to mount /system ?
If it's yes, i don't know it works in my Modaco Oo
Thanks JoOoSs
I don't know why this was happening, but I installed the stock ROM and everything works perfect know! Regards!
It would be nice to have default android skin on our tattoo. Do you think is it possible?
Yep, you have to flash 2.1 ROM which is on Dev forum, backup all PNG from his ROM & re-insert them on an other ROM.
JoOoSs said:
Yep, you have to flash 2.1 ROM which is on Dev forum, backup all PNG from his ROM & re-insert them on an other ROM.
Click to expand...
Click to collapse
Actually, you don't need to flash the 2.1 rom, remember that is a .zip, so just extract the apps from /system/app directory and then extract the pngs...
In the zip there are only the *.img ?
We have to uncompress boot.img etc it's more long!
So...what we could do to have a default 2.1 lock screen and skin and nothing else?
Please help us poor noobs
JoOoSs said:
In the zip there are only the *.img ?
We have to uncompress boot.img etc it's more long!
Click to expand...
Click to collapse
Not really, I downloaded the update.zip file from the 2.1, and it doesn't have .img files... I've changed all my apps icons using the 2.1 version.
Is there anyone that can answer to my ask?
HTCDevil said:
Is there anyone that can answer to my ask?
Click to expand...
Click to collapse
Hi, actually, change all the skin and the lock screen is going to be almost impossible, I changed all the main apps icons, but the skin itself is more complex, we have to go through all system APKs and find the png files related with the skin, but even doing that the change is complex.
This is how my icons looks like:
Can you upload icons & the wallpaper ?
yes, wallpaper please
Thank you arturo
I'd like also the only white bar rather than black
APKs with eclair icons and wallpaper
Hello all,
Here are the modified apk files with the eclair icons and also a nice wallpaper.
I highly recommend to do a nandroid backup before replace the apk files (we never know ).
APKs: http://www.megaupload.com/?d=GG7LPC9C
Enjoy it!
Related
-based on Bueffels "Mini goes black theme"
-Android stock like Lockscreen
-white statusbar
-Nexus One icons + wallpaper
You need:
-Update to Android 2.1
-root
CREDITS goes to Bueffel for his Black Theme and help me to edit this.
framework-res:
framework-res-nexus.zip in Attached Files
UPDATE
Update.zip for FW2.0.A.0.504
with all Nexus One Icons for systemapps
http://dl.dropbox.com/u/16236290/xda theme/2.0.A.0.504_Stock_Theme_update.zip
2.0.2.A.0.24 Framework-res
2.0.2.A.0.24_framework-res.rar in attached Files
Update.zip for FW2.0.2.A.0.24
with all Nexus One Icons for systemapps
http://dl.dropbox.com/u/16236290/xda theme/2.0.2.A.0.24_Stock_Theme_update.zip
system apps:
system-nexus.zip in Attached Files
Nexus One Icons
http://dl.dropbox.com/u/16236290/xda theme/Nexus-icons.zip
Nexus One Wallpaper
http://dl.dropbox.com/u/16236290/xda theme/Nexus-wallpaper.zip
U can use Adw or Launcher pro for an Stock like launcher
I dont know much about ADB Shell so I used RootExplorer.
installation:
You can easy install framework-res if u use RootExplorer.
1. copy the framework-res.apk to your sd-card
2. open RootExplorer go to /system and mount to r/w
3. go to /sd-card , long press on framework-res and move to /system
4. long press on framework-res and set permission to 644
{
"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. move framework-res to /framework and overwrite.
6. close RootExplorer and reboot.
You can easy install system apps if u use RootExplorer.
1. copy the SYSTEM.apk to your sd-card
2. open RootExplorer and go to /system and mount to r/w
3. go to /sd-card , long press on System.apk and move to /system
4. long press on System.apk and set permission to 644
5. move System.apk to /system/app and overwrite.
6. Make this with every SYSTEM.apk from theme.
Red SYSTEM.apk = SemcHome.apk, Phone.apk, etc from theme
7. close RootExplorer and reboot.
I'm not responsible if you brick your device, use at your own risk.
--------------------------------------------------------------------------------------------------------------------------------------
Add ON
Stock Gallery
Gallery3D-nexus.rar inAttached Files
installation:
Put on sd-card and install.
Stock Musicplayer:
Music-nexus.zip in Attached Files
Installation:
Please make Backup if anything goes wrong
First you must deinstall the SE music app.
1.SemcMusic.apk with for example Titanium Backup deinstall.
2.reboot
3.deinstall rest from app in Settinge/Applications/Application manager/com.sonyericsson.music(or something like that) deinstall
4.put Music.apk on Sd-card und install
GenieWidget(News and Weather)
GenieWidget-nexus.rar in Attached Files
Installation:
put on sd-card ans install.
Stock Kalender
Please make Backup if anything goes wrong and sync your calendar with google
calendar-nexus.rar in Attached Files
install:
http://forum.xda-developers.com/wiki/index.php?title=Xperia_X10_Mini_Applications#Calendar
I'm not responsible if you brick your device, use at your own risk.
Thanx mate!
Beauty!
oh man u released it ... i was working on it and was to release in 2-3 days .... nice work bro ...
Amazing work!, well done
shivenjuneja said:
oh man u released it ... i was working on it and was to release in 2-3 days .... nice work bro ...
Click to expand...
Click to collapse
How about if you combine the transisition effect with this nexus theme ? I think it would be great...
Nice and great work ....thanks
I tried the gallery and calendar only, but those are much more better that the original X10mini ones..
Can you post more screenshots ? I'm intereset how the system apps looks like (messaging, dialer, ...) and how it works.
beny6 said:
Can you post more screenshots ? I'm intereset how the system apps looks like (messaging, dialer, ...) and how it works.
Click to expand...
Click to collapse
most looks like this:
http://www.mobil-talk.de/android/6857-theme-mini-goes-black.html
Can you make exactly the same theme with black colour? I think it would be amazing
I love the stock look but the lock screen seems wrong.
The sliders in the lock screen seem wrong in size (smaller than normal android) and they are cutoff. Are there any plans to fix/update/improve the theme?
The rest is just perfect, I love the theme.
Thanks a lot!!
rex_hauser said:
I love the stock look but the lock screen seems wrong.
The sliders in the lock screen seem wrong in size (smaller than normal android) and they are cutoff. Are there any plans to fix/update/improve the theme?
The rest is just perfect, I love the theme.
Thanks a lot!!
Click to expand...
Click to collapse
No there is no fix. Its the stock SE lockscreen. I only can changed the PNGs.
But you can take widgetlocker lockscreen, it has stock look.
Sent from my HTC Desire using XDA App
thx to Gallery 3D app.
Is my phone bricked?
I moved the framework to system/framework/ and while it was pasting it the phone restarted and now i'm stuck with the SE logo. I only had the battery charged 20%, do i have to reflash my U20i?
if it hangs on the se logo for a while you have to do a reflash with seus (sony ericsson update service).
ps: did you change the permission of your apk before you copied it to system/framework?
Yes , I did ,i had the black theme before and i set the permissions to 755. It happened to me every time i tried to install a framework through Root Explorer, i reflashed my phone 5 times since 30th Of November. It is a painful process to do that through the flasher tool provided by Binr4y and install a root,app2sd,configure the apps,enable JIT, change VM heapsize etc. . And my phone doesn't ring anymore or work in portrait , i dropped it on the ground.
Thanks. Amazing!
i think, the handling of rootexplorer is very easy if you do that in a right way.
copy the apk to /system, then change the permission to 644 then move the apk to /system/folder_you_want. very easy
I am unable to install the Music Player. Can you tell me how to Uninstall the Music Player that is already installed?
When i try to install the Music.apk that you have provided, it says that the application already exists.
Please help me out.
?? the rootexplorer ask you if you want to override the existing file. click OK.
but before you can copy anything in /system/... you have to mount it with the small button at the top of rootexplorer. click mount r/w and than you can copy your file in /system/... and override the old one
http://forum.xda-developers.com/showthread.php?t=853938 there you find a manual for using rootexplorer
lets try something new today..
before I start let me ask you this questions.
do you like customizing your phone?
do you want to edit your apk's without a pc?
do you have belief in xrecovery (&me probably)
if you answered YES for the above questions. I've something good for you.
our map for the treasure in this journey would be a small application named
METAMORPH
MetaMorph, at heart, is simply a program that takes files from a directory and adds them to an already existing zip package.
In this case, our zip packages are apk and jar files.
Click to expand...
Click to collapse
THINGS YOU'LL NEED :
Metamorph (attached)
RootExplorer (any apk which can edit xml files)
Androzip/Astro (zip app)
Creativity & Willingness to take the Risk
Metamorph uses a zip file to apply the customize apk on your phone.
the zip file contains two things
a xml file
folder containing your mods
lets cut it sweet with an example.
----------------------------------------------------------------------------------------------------------------------------------------------------
lets suppose I want to change the icon of my apk. lets say I want to change icon of Calculator
{
"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"
}
to
----------------------------------------------------------------------------------------------------------------------------------------------------
Metamorph is CaseSensitive. Following Steps need the correct name & case
Click to expand...
Click to collapse
we'll do it in 2 parts
PART - 1
to do this I'll first need to create a folder named Calculator
now the icon of calculator is in the folder res\drawable-mdpi
so I'll create those folders in the Calculator folder
so the line is Calculator->res->drawable-mdpi
all I need to do now is the monster icon into this folder and name it exactly the same way it is in the original so lets rename monster.png to icon.png
PART - 2
the xml file should contain this code
Code:
[B]<?xml version="1.0"?>
<themename>[COLOR=Red]theme_name[/COLOR]</themename>
<themeversion>0.1beta</themeversion>
<screenshot></screenshot>
<author>Suhel</author>
<authorweblink>N/A</authorweblink>
<phone>Xperia X8</phone>
<rom>Sony Xperia X8 2.1 </rom>
<themedescription>Converted Theme</themedescription>
<item>[COLOR=Red]your_apk.apk[/COLOR]</item>
<path>[COLOR=Red]path_of_your_apk[/COLOR]</path>
<description></description>
[/B]
ok the red things in the above code are crucial.
1. theme_name (I'll come to this later)
2. your_apk.apk this is the name of your apk
3. path_of_your_apk this is the path of your apk
for our Calculator it should be something like this
Code:
<?xml version="1.0"?>
<themename>X8Champ</themename>
<themeversion>0.1beta</themeversion>
<screenshot></screenshot>
<author>Suhel</author>
<authorweblink>N/A</authorweblink>
<phone>Xperia X8</phone>
<rom>Sony Xperia X8 2.1 </rom>
<themedescription>Converted Theme</themedescription>
<item>[B][COLOR=Red]Calculator.apk[/COLOR][/B]</item>
<path>[COLOR=Red][B]/system/app/[/B][/COLOR]</path>
<description></description>
hope you understand. now you need to save the xml file.
now the first point. the theme_name you are going to type should be the same name as of your xml file name
ok now you're done.
all you need to do now is create a zip file and place the folder & xml file in that zip file. again make sure the name of the zip file should be the same as the xml file
put the zip file in your sdcard root
-------------------------------------------------------------------------------------------------------------------------
Applying theme with Metamorph
Tap Unzip/Extract new theme
Select the Zip file
Tap the apk you want to apply and tap apply it
Reboot your phone
-THE END-
Why Metamorph?
1. Easily Edit your Apk's & Jar files on your phone without hazzle of extracting and replacing.
(Jar files will need pc. awww but you dont edit jars too much )
2. You can Mod multiple Apk's
Code:
[B]<item>[COLOR=Red]your_apk1.apk[/COLOR]</item>
<path>[COLOR=Red]path_of_your_apk[/COLOR]</path>[/B]
[B]<item>[COLOR=Red]your_apk2.apk[/COLOR]</item>
<path>[COLOR=Red]path_of_your_apk[/COLOR]</path>
[/B]
[B]<item>[COLOR=Red]your_apk3.apk[/COLOR]</item>[/B]
[B] <path>[COLOR=Red]path_of_your_apk[/COLOR]</path>
<description></description>
[/B]
you can even edit your Framework-res.apk. just make sure the path of it is /system/framework and not /system/app
3. I don't know. I need to try it out more. I'm trying to edit a jar file for now. will tell you the results. but the potential of it are endless
4. However it doesn't work with market apps. its intended to only bug the stock things
IMPORTANT : Meta is very stringent about its filenames and fonts case and name. If you miss one thing the apk will disappear from your menu. so make sure you've a
BACKUP B4 U MESS-UP
WOW IT RHYMES LOL
Click to expand...
Click to collapse
EDIT : well you don't need to entirely backup just copy/paste the apk you want to edit. entire backup may require if you are playing with jar files or crucial apk's.
I'm not responsible for any mess done to your phone
Edit 2 : Works with framework-res.apk too
Ok. How can I change icon Phone or Music Player? I try your method and I can change only Calculator, Calender and Settings. Any ideas?
bananoss said:
Ok. How can I change icon Phone or Music Player? I try your method and I can change only Calculator, Calender and Settings. Any ideas?
Click to expand...
Click to collapse
folder path
SemcMusic\res\drawable
icon name
music_app_icon.png
Code:
[B]<?xml version="1.0"?>
<themename>SemcMusic</themename>
<themeversion>0.1beta</themeversion>
<screenshot></screenshot>
<author>Suhel</author>
<authorweblink>N/A</authorweblink>
<phone>Xperia X8</phone>
<rom>Sony Xperia X8 2.1 </rom>
<themedescription>Converted Theme</themedescription>
<item>SemcMusic.apk</item>
<path>/system/app/</path>
<description></description>[/B]
Nice tut
edit: if i need to change a app on sdcard whats the path? :S
/sdcard/foldername
Foldername would be the folder in which your app is stored
Click to expand...
Click to collapse
WHOOAA. Can I get a source for the background please? And what font are you using there?
Edit: This looks so damn good, holy crap.
a-k-t-w said:
WHOOAA. Can I get a source for the background please? And what font are you using there?
Edit: This looks so damn good, holy crap.
Click to expand...
Click to collapse
sure buddy
what about folders in zip file for framework.apk ? Where should be semc_bg.png and fonts ? Near .xml or in folder .......
Sorry for offtopic... But: Which framework do you (suhel) use? It's so awesome
thanks for this tutorial!
herbi69 said:
what about folders in zip file for framework.apk ? Where should be semc_bg.png and fonts ? Near .xml or in folder .......
Click to expand...
Click to collapse
the semc_bg should be placed in /res/drawable-mdpi
for the fonts refer this topic http://forum.xda-developers.com/showthread.php?t=933406
[email protected] said:
Sorry for offtopic... But: Which framework do you (suhel) use? It's so awesome
Click to expand...
Click to collapse
are you talking about the blue background??? I've already attached the file and fonts two posts above your post
thanks for sharing~
-= Ribbon Status Bar Icons =-
{
"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"
}
What includes in the package?
- Modified framework-res.apk with menu background patch
- Modified SystemUI.apk
- MDPI/HDPI Ribbon icons
How do i put them in my apps?
0. Copy the MDPI folder or download and extract Ribbons MDPI.zip in your SDcard
1. Download Ninjamorph from the Market and sideload Gmail to /system/app + give rw-r--r-- permissions
2. Open ninjamorph and select new project
3. Navigate to /system/app and select com.google.android.gm-1.apk at this point
ninjamorph expands the file and stores it on your SDcard as a folder.
4. select Res folder
5. Select drawable-hdpi
6. scroll down and select stat_notify_email.png (Remember that name), you will be asked what to replace it with
7. At this point touch the Home button, open ES file explorer and navigate to /Sdcard/MDPI/Gmail folder
8. Check that the .png is named as stat_notify_email.png, if not then rename it
9. Go back to ninjamorph it will show the screen as you leave it, just navigate to the modified file /Sdcard/MDPI/Gmail/stat_notify_email.png and select it. It will replace the original
10. Once you've done the above click back button and then click on finish project
11. Select the project, click YES to the warnings and NO to zip align it
It will do it's thing, once rebooted your menus will have the colour of the file you gave it as a replacement
* Repeat the process with other apps, folders and name of the .png's will vary.
Where is the link?
MDPI: http://min.us/mWC0VBN2A
HDPI: http://min.us/mfmp8knaW
Can i mirror it?
Yeah sure go ahead
Can i post this somewhere else?
Yes but as always give credits and that means to mention all the users that created this including me to port them to MDPI
Can i get some screenies ?
Here you go...
THANKS!
@collins521 for start this project included in his MIUI suave HD theme
@CelticWebSolutions i based the ninjamorph tutorial from his and for the menus background patches
@lavero.burgos <<ME>>for spend hours figuring out the best way to port the icons and recreate battery icons as MIUI battery icons is way different than stock and CM.
~ Veronica
Awesome write up, thank you. I'll give this a shot in the morning
Sent from my Nexus S using xda premium
Thanks for the modified framework-res.apk. I thought is was funny on the last step of the splash screen when it said "HACK" by Barnes and Noble. I had to reboot again to make sure it was really there. That was very good.
Thanks again.
Nice setup. On a side note, you can also install these with adb.
open an adb terminal
adb devices (to make sure you are connected)
adb remount
adb pull /system/framework/framework-res.apk c:\location to save file
adb pull /system/app/SystemUI.apk c:\location to save file
Download the files.
open the framework-res.apk with winrar or 7-zip (do not extract)
navigate to the res/drawable-mdpi folder
drag the entire contents into the rar file
click ok on the popup box
Repeat for the SystemUI.apk
go back to adb
adb push c:\location of framework-res.apk /system/framework/framework-res.apk
adb push c:\location of SystemUI.apk /system/app/SystemUI.apk
adb shell chmod 644 /system/app/SystemUI.apk
adb reboot
All changes should show up. Thats the way I did mine. I tried ninjamorph on the menu background image and it failed about 10 times until I finally gave up and replaced the image in my framework-res file and now it's fine.
OMG YOUR SUCH A GIRL!!!! LOL. they are very nice.
I used adbwireless and did the same...
Know-Fear said:
Nice setup. On a side note, you can also install these with adb.
open an adb terminal
adb devices (to make sure you are connected)
adb remount
adb pull /system/framework/framework-res.apk c:\location to save file
adb pull /system/app/SystemUI.apk c:\location to save file
Download the files.
open the framework-res.apk with winrar or 7-zip (do not extract)
navigate to the res/drawable-mdpi folder
drag the entire contents into the rar file
click ok on the popup box
Repeat for the SystemUI.apk
go back to adb
adb push c:\location of framework-res.apk /system/framework/framework-res.apk
adb push c:\location of SystemUI.apk /system/app/SystemUI.apk
adb shell chmod 644 /system/app/SystemUI.apk
adb reboot
All changes should show up. Thats the way I did mine. I tried ninjamorph on the menu background image and it failed about 10 times until I finally gave up and replaced the image in my framework-res file and now it's fine.
Click to expand...
Click to collapse
I used adbwireless and did the same, see pictures below...
Out of curiousity, is there any way to make the size of the ribbons for the battery and wifi, ever so slightly, larger. They are somewhat difficult to read and I keep telling my self that I am not that old, no matter what my son says to me. I still hope to learn how to do these things you all do. I guess I just need to try and follow your directions until I get it right.
Thanks again....
I have HDPI version too.. OP updated!
Sent from XDA premium using my Nook Tablet
I made it all the way to step 3! Haha...
I don't see "com.google.android.gm-1.apk" in the /system/app folder though, does anyone have any suggestions?
Thanks!
cubfan80 said:
I made it all the way to step 3! Haha...
I don't see "com.google.android.gm-1.apk" in the /system/app folder though, does anyone have any suggestions?
Thanks!
Click to expand...
Click to collapse
com.google.android.gm-1.apk is in /data/app
Know-Fear said:
com.google.android.gm-1.apk is in /data/app
Click to expand...
Click to collapse
So does that mean I want to navigate to data/app instead of :
3. Navigate to /system/app and select com.google.android.gm-1.apk at this point
ninjamorph expands the file and stores it on your SDcard as a folder. ??
Thanks btw for your response so quickly Know-Fear.
cubfan80 said:
So does that mean I want to navigate to data/app instead of :
3. Navigate to /system/app and select com.google.android.gm-1.apk at this point
ninjamorph expands the file and stores it on your SDcard as a folder. ??
Thanks btw for your response so quickly Know-Fear.
Click to expand...
Click to collapse
You have to move it to /system/app, i updated the instructions in OP anything else that i miss please let me know.
~ Veronica
lavero.burgos said:
-= Ribbon Status Bar Icons =-
What includes in the package?
- Modified framework-res.apk with menu background patch
- Modified SystemUI.apk
- MDPI/HDPI Ribbon icons
How do i put them in my apps?
0. Copy the MDPI folder or download and extract Ribbons MDPI.zip in your SDcard
1. Download Ninjamorph from the Market and sideload Gmail to /system/app + give rw-r--r-- permissions
2. Open ninjamorph and select new project
3. Navigate to /system/app and select com.google.android.gm-1.apk at this point
ninjamorph expands the file and stores it on your SDcard as a folder.
4. select Res folder
5. Select drawable-hdpi
6. scroll down and select stat_notify_email.png (Remember that name), you will be asked what to replace it with
7. At this point touch the Home button, open ES file explorer and navigate to /Sdcard/MDPI/Gmail folder
8. Check that the .png is named as stat_notify_email.png, if not then rename it
9. Go back to ninjamorph it will show the screen as you leave it, just navigate to the modified file /Sdcard/MDPI/Gmail/stat_notify_email.png and select it. It will replace the original
10. Once you've done the above click back button and then click on finish project
11. Select the project, click YES to the warnings and NO to zip align it
It will do it's thing, once rebooted your menus will have the colour of the file you gave it as a replacement
* Repeat the process with other apps, folders and name of the .png's will vary.
Where is the link?
MDPI: http://min.us/mWC0VBN2A
HDPI: http://min.us/mfmp8knaW
Can i mirror it?
Yeah sure go ahead
Can i post this somewhere else?
Yes but as always give credits and that means to mention all the users that created this including me to port them to MDPI
Can i get some screenies ?
Here you go...
THANKS!
@collins521 for start this project included in his MIUI suave HD theme
@CelticWebSolutions i based the ninjamorph tutorial from his and for the menus background patches
@lavero.burgos <<ME>>for spend hours figuring out the best way to port the icons and recreate battery icons as MIUI battery icons is way different than stock and CM.
~ Veronica
Click to expand...
Click to collapse
What widget did you use for the clock on top and what theme did you use (dolphin browser is shown on homescreen)
Joseph777 said:
What widget did you use for the clock on top and what theme did you use (dolphin browser is shown on homescreen)
Click to expand...
Click to collapse
I can't give you a link right now because im in my NT but I posted all that info in the "post your screenshoots" thread, tomorrow I can give you a link.
Edit: http://forum.xda-developers.com/showpost.php?p=21569303&postcount=231
~ Veronica
Sent from XDA premium using my Nook Tablet
Who have the ribbon battery PSD? Might sharing out?
Changing the Notification Bar to look like your ROM's?
How can I get this just this part of the Notification bar?
shawnshine2 said:
How can I get this just this part of the Notification bar?
Click to expand...
Click to collapse
Its the ICS tweaked tablet theme.
http://forum.xda-developers.com/showpost.php?p=18581052&postcount=1
How did you get those soft buttons on a stock rom.
Sorry, my fault. I should have explained. I'm running stock v1.4.1 - rooted. I want to add just those soft bottons without the extra ribbons. I see a lot of stuff about cm7, but I haven't seen any posts about getting those in stock. Veronica's mod is the only place I've seen that has it with stock. So my question is really to her, how where u able to get that into stock? The reason I ask is, while it would just be easier to flash her rom, I wouldn't really learn anything. So the 'how' is just as important to me as the 'what'. Anyway I give you credit for your answer and tossed you a thanks.
And just because I'm here, where can I get just the boot animation with the "hack by barnes and noble", because quite frankly, that is just bad ass.
shawnshine2 said:
Sorry, my fault. I should have explained. I'm running stock v1.4.1 - rooted. I want to add just those soft bottons without the extra ribbons. I see a lot of stuff about cm7, but I haven't seen any posts about getting those in stock.
Click to expand...
Click to collapse
Look about 4 pages back in the "themes and apps* board. There is a thread called *Ice Cream Sandwich Status Bar Icons." Skim the whole thread, especially for screenshots. (Try page 4.) There are flavors which retain an ICS style "keep reading* button, replace that with a standard home button, slide the buttons down to the left, get rid of the clock, replace the numbers to look more ICS-ey, etc. Remember to back up your SystemUI.apk in case something breaks, and good luck!
Can anyone mirror the MDPI version link?
WHAT IS THIS, AND WHAT IS IT FOR?
This is a guide for creating a new odex file from a deodexed file, one at a time – manually, or with the tool provided. There are tools/methods for doing the entire system at once, but I have not had any luck with those. Plus, typically, one does not need the entire system re-odexed. This is more for those who want to personally mod their stock odexed systems, or create an odexed ROM maybe.
For starters, you can get away with modding a lot on an odexed system, without needing to deodex. You really only need to deodex in order to edit the smali files within the classes.dex (which is required to achieve the cooler mods). See cogeary’s great guide for deodexing tips.
-------------------------
MANUAL METHOD:
I will use the services.jar in this example. Just change the file name and path to existing .odex accordingly for other files. (thanks! to jhotmann for helping me to nail down this method)
Requirements:
odexed system
root
adb
busybox installed
dexopt-wrapper
Put this dexopt-wrapper file in /system/bin with 775 permissions:
X X X
X....X
X....X
Put the deodexed services.jar (or other jar/apk file you want to make a new odex of) on the root your /sdcard (on some phones that means internal storage).
Make sure USB Debugging is enabled.
Put your USB connection to MTP or PTP mode.
The bootclasspath is located in the /init.rc file at the root of your phone. Just make sure that all jars listed in init.rc are actually in your /system/framework folder and only include those in your bootclasspath in the command below. The one from Moto A2/Razr/other ICS is used below (minus the extra jar paths). To replace it with that of a different device, change the word bootclasspath with yours, using the path style as shown in the example below: dexopt-wrapper services.jar new.odex bootclasspath...
Connect with adb (do a adb devices check to make sure you're all good).
To create the new odex, enter the following one line at a time:
Code:
adb shell
su
cd /sdcard/
dexopt-wrapper services.jar new.odex /system/framework/core.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/framework-ext.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar:/system/framework/filterfw.jar:/system/framework/com.motorola.android.frameworks.jar:/system/framework/com.motorola.android.widget.jar:/system/framework/com.motorola.frameworks.core.addon.jar
To copy the signature from the existing odex (change path to /system/app/.. if necessary):
Code:
busybox dd if=/system/framework/services.odex of=new.odex bs=1 count=20 skip=52 seek=52 conv=notrunc
Done! Rename new.odex (created on your /sdcard) to services.odex since that is your new signed odex file... and move to your phone using the method of your choice.
---------------------
SCRIPT METHOD (using the 1by1_ReOdexer):
I made this script to speed up the process a little bit (thanks! to jimbridgman and cogeary for their input). Note: This will not hurt your phone if you are on an odexed system and just want to play around with it…
Requirements:
Windows OS (for now – Linux coming soon)
odexed system
root
busybox installed
DOWNLOAD the 1by1_ReOdexer_v1.0.zip for Windows
Unzip it on your desktop or other convenient place (with no spaces in the file path)
Place the DEODEXED file you wish to make an odex out of on your /sdcard
Make sure you have busybox installed (in /system/bin or /xbin)
MAJOR NOTE: The script is currently set up based on the SystemUI.apk/.odex and Motorola’s ICS bootclasspath.
To change the file name/path and/or the bootclasspath, right-click on the .bat file and open with a text editor (preferably something like Notepad++) and edit accordingly for the proper path to the apk/jar and odex. The bootclasspath was taken from /init.rc minus the jars that are not in /system/framework.
Connect to PC in MTP or PTP usb mode
Make sure usb debugging is enabled
Double-click 1by1_ReOdexer.bat to begin.
Here’s a successful screenshot (look for the bytes transferred to confirm it worked):
{
"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"
}
When finished you should have a new.odex file on your /sdcard.
CHANGE LOG:
8/25/12 (v1.0)
-initial release
Thanks to the following for testing!:
-DX2Trip on the A2 ICS
-RETIEF on the RAZR Maxx ICS
-iwabashu on the RAZR ICS
(I tested it on GB - but I am not high-fiving myself )
-----------------
Some vague notes on what to do next:
Depending on what you are after by re-odexing, there are different routes. For example, if you only edited or copied smali files, then you only need the new.odex file. Meaning that all of the smali code was inside of that classes.dex of the deodexed file on your sdcard, and you just made that into a new odex file (and copied the signatures from the existing .odex in /system).
If you have a deodexed apk with more edits than just smali (you could really just copy those edits over to your existing odexed apk with 7-zip or similar), but – if you want to, you will need to remove the classes.dex from the deodexed apk, and make sure that the signatures (/META-INF folder) and AndroidManifest.xml are the same as your existing apk (check, and or copy with 7-zip or similar).
.
.
.
It worked! I have new.odex on the /sdcard! But it is significantly smaller than the original Mms.odex. 1.08mb compared to 1.21mb. Will there be a problem? Do I now change new.odex to Mms.odex and push it to system/app with the same permissions as the original one??
daveyannihilation said:
It worked! I have new.odex on the /sdcard! But it is significantly smaller than the original Mms.odex. 1.08mb compared to 1.21mb. Will there be a problem? Do I now change new.odex to Mms.odex and push it to system/app with the same permissions as the original one??
Click to expand...
Click to collapse
Thanks for trying! - I see another method also worked for you.. what was the size of the resulting odex created by that method? But, it should be no problem with the smaller size - all of my new odex files were smaller also and worked fine. I believe the process just compresses the new odex more.
And, yes, you would rename it and replace your existing with the same permissions. Good luck!
Sent from my phone's mind
links broken
Dude I want to do it...but your links are broken.
i need help
i'm trying to re-odex services.jar and i'm getting process failed error
what seems to be the problem ?
Thanksfor info
Thanks for this info but links do not seem to be working
The best tutorial for editing/creating .odex files. Thanks a lot for this!
Help me please
Hi, I have Huawei Phone, to be specific, here are the short spec:
Honor 4C
Android 5.1.1
ROOTED
My concern now is, I really don’t like the Stock Music Player ( V7.1.12 ) its because it does not support online music streaming and downloading, but I have an old version of it ( V6.10 ) which is it support online streaming and downloading. I really want to replace my system music app to my old version, just like before. By the way, before I update my phone to lollipop, my OS is Kitkat ( obviously ) and was able / successfully replace my stock music player to my old version, but now I can't even do it in lollipop. I tried several times to replace and update it, but it result boot problem, my phone needs to reflash OS and root again and again, Im tired of that ( honestly ). Im afraid my phone will go to trash if do it again.
I search on the google and found out about .odex file ( something like that ) I also check my stock player directory and found HwMediaCenter.odex under system/app/arm64.. so. I am wondering if someone can help me create .odex file out of my old version of music player, so that I can replace both APK and ODEX file in my system and use old version again
THANK YOU SO MUCH!
[email protected]
I'm currently using Android Oreo (RevolutionRemix) and I really don't like the circular TimePicker dialog that's presented to me when I create an alarm in the default clock or when I make a new event in my calendar (Nine).
Currently I get a dialog like this:
{
"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"
}
But I really would like it more like this:
I found this link https://android--code.blogspot.com/2015/08/android-timepickerdialog-theme.html (where I got the above screenshots), and it seems like this is something that can be changed with a theme.
Is this a default that can be changed (or forced) system-wide? If so, how? FYI, I have root and I'd rather edit an XML file somewhere to get this done than download a whole theming app or something.
Thanks in advance!
raphidae said:
I'm currently using Android Oreo (RevolutionRemix) and I really don't like the circular TimePicker dialog that's presented to me when I create an alarm in the default clock or when I make a new event in my calendar (Nine).
Currently I get a dialog like this:
But I really would like it more like this:
I found this link https://android--code.blogspot.com/2015/08/android-timepickerdialog-theme.html (where I got the above screenshots), and it seems like this is something that can be changed with a theme.
Is this a default that can be changed (or forced) system-wide? If so, how? FYI, I have root and I'd rather edit an XML file somewhere to get this done than download a whole theming app or something.
Thanks in advance!
Click to expand...
Click to collapse
You should be able to do this easily by editing the theme in res/values/styles.xml. If you know how to decompile apps with apktool, this should be an easy ordeal. You will need to decompile framework-res.apk and edit Theme. Material.Light and Theme.Material
To avoid bootloop, do not resign the app once edited and recompiled! Open the new apk with winrar or 7zip and add in the original manifest and meta folder located in the "originals" folder when using apktool.
Sent from my LG-Q710AL using Tapatalk
RealWelder said:
You should be able to do this easily by editing the theme in res/values/styles.xml. If you know how to decompile apps with apktool, this should be an easy ordeal. You will need to decompile framework-res.apk and edit Theme. Material.Light and Theme.Material
To avoid bootloop, do not resign the app once edited and recompiled! Open the new apk with winrar or 7zip and add in the original manifest and meta folder located in the "originals" folder when using apktool.
Click to expand...
Click to collapse
I don't know how, but I'm going to learn it Where is this apk normally in the filesystem, in the same location as installed apps? And would it be in the same location on a custom ROM as RR, or would it possibly be a custom theme with a different apk? Also, I thought apk files were just renamed zip files, what needs to be decompiled exactly (if that has an easy answer, otherwise I'll google it)? Thanks!
You will need some tools. Apk files are similar to zip files, but there are some things that are hidden. You will need apktool, adb, Notepad++, and java jdk installed. Adb and apktool are simple files that I can provide for you. They run on the command line in windows. What I do is put the files associated with adb and apktool in the C:\Windows directory so that they are installed system wide, meaning you can open the command prompt from anywhere and use the tools. Java jdk you will have to download and install.
I'm pretty sure on remix it will be framework-res.apk and it will be located in /system/framework/ directory. Apktool you will use to decompile and recompile the app. Adb is just to make things faster. You can use it to push or pull files from computer to phone and vice versa, reboot the phone, etc. You will have to enable USB Debugging in the developer options. You can also use adb to open a shell. (Like terminal in linux) but for our purposes we probably won't get into that.
Here is a link to my basic modding tools. Extract the files out and copy them to C:\Windows\.
https://drive.google.com/file/d/1Ywa3SWd_420uO-nyi2-iqVWp1vu0V_D9/view?usp=drivesdk
You'll need to copy any app that might be in /system/framework. I'm not super familiar with remix but we will get through it. Most likely it will be framework-res.apk unless remix uses something like RRframework-res or something. You can check that out with a root file manager. You may also need your SystemUI.apk located in /system/priv-app/. This is just to install the frameworks into the apktool.
Once you get all of your tools in place, create a folder named workspace on your desktop or somewhere easy to get to. Copy the above mentioned apk files into that folder. Next hold shift and right click the mouse. You want to open a command window here. In the command window type
apktool if framework-res.apk (then hit enter)
This is how you install the frameworks for apktool the if means install framework. You may also have to do this with SystemUI.apk.
Now were ready to decompile our framework! Lol. In cmd type
apktool d framework-res.apk
This will decompile the app. After you make your edits, you will use
apktool b framework-res
To build the app. (If you have any errors decompiling/recompiling report here)
At this point hopefully your app is decompiled and we can make our edit. Open /res/values/styles.xml with Notepad++ (a great computer program for coding) You will want to scroll down to Theme.Material.Light and find the TimePickerDialog. Then scroll down to Theme.Holo.Light and find TimePickerDialog. Copy the attribute from Holo theme to Material theme. Save. Recompile app. The new app will be located in the "dist" folder. Open the app with 7zip and add in the AndroidManfiest.xml and meta folder from the originals folder to retain the app's stock signature. Now we need to move our new apk to the phone. Type
adb push (drag and drop apk into cmd window) /sdcard/
This should push the app to the phone.
You can also use
adb pull (path and file)
to pull files from the phone to your workspace.
Once you get your new apk file ready and pushed onto the /sdcard/, open root file explorer and rename it to framework-res1.apk. This is so we can copy it into /system/framework/ without immediately overwriting the original. Next use root file explorer to change app's permissions to 0644. Once the permissions are changed correctly you can rename it to framework-res.apk and overwrite the original. Then reboot and enjoy.
Sent from my LG-Q710AL using Tapatalk
RealWelder said:
(snip instructions)
Click to expand...
Click to collapse
Thanks for the detailed instructions, really appreciated! Seems clear enough that I won't have any problems, I'll try it tomorrow or so and report back.
Just one question remaining: how can one retain the original signature by copying manifest files back into the apk? Isn't the whole idea of a signature to prevent changes to the files in the package? Or is it a different kind of "signature"?
raphidae said:
Thanks for the detailed instructions, really appreciated! Seems clear enough that I won't have any problems, I'll try it tomorrow or so and report back.
Just one question remaining: how can one retain the original signature by copying manifest files back into the apk? Isn't the whole idea of a signature to prevent changes to the files in the package? Or is it a different kind of "signature"?
Click to expand...
Click to collapse
It prevents you from modifying the AndroidManifest.xml. If you changed anything in it you would have to resign... But then it's signature won't match the rest of the signatures in the OS, which causes bootloop. Copying the original manifest and meta folder is just a workaround to keep it's signature in tact.
Sent from my LG-Q710AL using Tapatalk
RealWelder said:
It prevents you from modifying the AndroidManifest.xml. If you changed anything in it you would have to resign... But then it's signature won't match the rest of the signatures in the OS, which causes bootloop. Copying the original manifest and meta folder is just a workaround to keep it's signature in tact.
Click to expand...
Click to collapse
OK, that makes sense, thanks! I noticed that a wrong signature can cause a boot loop, I'm guessing that other problems with this file can also cause a boot loop? If so, is there an easy way to bypass this file should that happen (safe more or something)?
Just FYI, I'm using full-disk encryption and TWRP can't decrypt the data partition, but I assume I can just put the original file back to the /system filesystem if necessary?
raphidae said:
OK, that makes sense, thanks! I noticed that a wrong signature can cause a boot loop, I'm guessing that other problems with this file can also cause a boot loop? If so, is there an easy way to bypass this file should that happen (safe more or something)?
Just FYI, I'm using full-disk encryption and TWRP can't decrypt the data partition, but I assume I can just put the original file back to the /system filesystem if necessary?
Click to expand...
Click to collapse
It could, but generally the signature issue is the main reason for bootloop. The xmls and png images are safe to edit. Be careful with images, if one has a .9.png extension it is a nine-patch file. They have a one pixel border around the image that lets android know where to stretch said image. They are black dots/lines. Make sure they stay black and not opaque at all.
Sent from my LG-Q710AL using Tapatalk
raphidae said:
OK, that makes sense, thanks! I noticed that a wrong signature can cause a boot loop, I'm guessing that other problems with this file can also cause a boot loop? If so, is there an easy way to bypass this file should that happen (safe more or something)?
Just FYI, I'm using full-disk encryption and TWRP can't decrypt the data partition, but I assume I can just put the original file back to the /system filesystem if necessary?
Click to expand...
Click to collapse
I would make a fresh backup with TWRP before doing any of this, just in case. It is pretty safe though. I've been tinkering with rooted phones for a few years doing this. My latest venture is in a way even more impressive. With the newer LG phones, they have a built in theme system. I've been able to create my own theme and apply it to the phone all without root.
Sent from my LG-Q710AL using Tapatalk