Hello, you all know that when you change screen density in build.prop a problem with some apps appears.
[MultiDPI]GalaxySpack-CWM.zip contains Dialer, Music Player, FMRadio, Calculator
all modded to support multiple DPI
You can just flash this via CWM or extract individual APKs and replace them in /system/apk/
Newest: Camera.apk
Video Player
How to do it yourself? (example on DialerTabActivity.apk)
* its quite easy, if you want do fix any app you need to know how to edit .xml files, have some basic knowledge about android layout files. If you just want to repack Dialer its easier, because I supply the layout file you just need to recompile the file with apkmanager replacing one of layout files
- download layout_resize.zip file attached (you are welcome to improve the app);
- download APK Manager;
*optional step, not sure if its needed: get framework files from your device and goto apk_manager_4.9\other and install framework files:
Code:
java -jar apktool.jar if "[dir]\apk_manager_4.9\twframework-res.apk"
Code:
java -jar apktool.jar if "[dir]\apk_manager_4.9\framework-res.apk"
- copy DialerTabActivity.apk from your device to "\apk_manager_4.9\place-apk-here-for-modding"
- start script.bat and select decompile apk (if it doesnt work you probably need to do optional step and then try with dependencies, skipping part where it asks for apks)
* now there comes my small commandline java utility - it resizes (replaces hardcoded dip values with 1,5 times bigger rounded px values) layouts in files passed by commandline.
-copy .xml files you want to modify to its dir;
-invoke by (or just use convert_all.bat, now working, thanks Einride!) (windows!):
Code:
for /f %a IN ('dir /b *.xml') DO call java LayoutResizer %a
(idk why resize_all.bat doesnt work)
- modified files are in converted directory, you need to copy them over files in apk_manager_4.9\res\
- hit compile apk
- select yes for system apk and yes for min # of errors
- delete \apk_manager_4.9\keep\resources.arsc and \apk_manager_4.9\keep\res\layout\dialer_app.xml (and any other xml file corresponding to one you have modified
- hit any key
- the apk you need to copy back to your phone is \apk_manager_4.9\place-apk-here-for-modding\unsignedDialerTabActivity.apk
If any rommakers would like to include these apks feel free to do so
Also you are welcome to fix remaining apps including:
-clock
-calendar
-allshare
kudos:
APKTOOL + SIGNAPK authors
APKMANAGER author
xan said:
Hello, you all know that when you change screen density in build.prop a problem with some apps appears. On my first attempt to correct that:
Modded TW calculator (which i kinda like), to work with 200dpi density.
It may not be pixel perfect but hell it works
kudos:
APKTOOL + SIGNAPK authors
Click to expand...
Click to collapse
So, this is for people who change the screen density to 200 dpi, right?
This is a great idea! Do you take requests?
Such a great idea! I'm on 170 density, but i'll give this a go anyway.
You'll become loved if you end up doing this to all the apps that don't scale correctly!
Sent from my GT-I9000 using XDA App
The dialler is the main one.
Sent from my GT-I9000 using XDA App
Hello,
How do you change the screen density?
kevnangel said:
Hello,
How do you change the screen density?
Click to expand...
Click to collapse
Hi you have to be rooted download lcddensity from the market.
Yes, this is for those who changed density to 200 or less (still looks better than stock one).
This was just a proof of concept, the main aim is to mod Phone.apk. At this stage I'm able to repack it, but due to its complexity and the fact its system apk, I'm doing something wrong. This needs more time, but I will try to figure it out today.
And yes, Samsung's layout files are a mess. Phone.apk >40 layout files.
No requests, since its kind of time demanding task, you can post list of STOCK apps that dont scale well for reference. After I'm done with Phone I'll write some guide.
Thanks for the great modification. I tried to onstall it on my Galaxy tab and it actually worked. Not perfect for the tab but Hey it works atleast, however, it keeps forcing close everytime i try to go landsacpe! It would be excellent if you would fix this cheers
Any screenshots of how the phone looks with a different DPI?
DistortedWisdom said:
Thanks for the great modification. I tried to onstall it on my Galaxy tab and it actually worked. Not perfect for the tab but Hey it works atleast, however, it keeps forcing close everytime i try to go landsacpe! It would be excellent if you would fix this cheers
Click to expand...
Click to collapse
Hm, I have no idea what is causing this.
About screenshots -> it looks almost exactly the same as 'normal' TW calculator on standard 240dpi.
xan said:
Yes, this is for those who changed density to 200 or less (still looks better than stock one).
This was just a proof of concept, the main aim is to mod Phone.apk. At this stage I'm able to repack it, but due to its complexity and the fact its system apk, I'm doing something wrong. This needs more time, but I will try to figure it out today.
And yes, Samsung's layout files are a mess. Phone.apk >40 layout files.
No requests, since its kind of time demanding task, you can post list of STOCK apps that dont scale well for reference. After I'm done with Phone I'll write some guide.
Click to expand...
Click to collapse
Thx for this!
Any news on this phone.apk?
STOCK apps that dont scale well are:
Phone (Keypad)
Calculator (Keypad)
FM-Radio (Pad and some button)
Camera (settings)
If you can these working that would be awsome!
I'm using the lowest possible setting without crashing contacts => 182
Rgds
SamHaLeKe said:
Thx for this!
Any news on this phone.apk?
Phone (Keypad)
Click to expand...
Click to collapse
Dialer uploaded to first post
any screen shots`?
first doc's kichen and now this
yeey!
happy newyear xan!
edit: tested and working, looking better now, using 182 ppi as that is perfect for me and the lowest setting without contacts crashing.
want to have the maximum space...
Sent from my GT-I9000 using XDA App
xan said:
Dialer uploaded to first post
Click to expand...
Click to collapse
working great! you did it xan!
can you please have a look to the other apk's like fm-radio? perhaps you can add more plus buttons to?
Sent from my GT-I9000 using XDA App
xan great work bud, wanted to ask something, i have a themed Samsung Dialer, and i'm guessing just copying/pasting the images from that to your modded one won't work properly? If so, is it possible to make the themed Dialer apk into 200DPI?
Cheers!
Yes it will overwrite. Yup, themed 200dpi dialer is possible, just attach DialerActivity.apk here
I am using 182 but I hope it still looks better than the stock one!
xan said:
Yes it will overwrite. Yup, themed 200dpi dialer is possible, just attach DialerActivity.apk here
Click to expand...
Click to collapse
Thanks mate, attached
Related
Hello everyone!
I have tried and tried to customize framework-res.apk, and what a nightmare!! I made a script that works all fine when using Defrost 2.9a and 2.5, but if i try Cyanogenmod or Defrost 3.0, i get force close. When I modify both xml and images.
What am I doing wrong?
Bestest of best regards,
Jonas Hald
Check this initially:
http://forum.xda-developers.com/showthread.php?t=722993
Daelyn said:
Check this initially:
Click to expand...
Click to collapse
As i get it, that doesnt work when I edit the xml, then it has to be recompiled?
Sure
If u change the code it has to be Recompiled ;-)
xtcislove said:
Sure
If u change the code it has to be Recompiled ;-)
Click to expand...
Click to collapse
Yeah, so I do
But i get force close in cyanogen and DF 3.0 - but the Circle Mod online framework modifier can do it, without force close.
Are you sure its not semi-edit the files? I think there are just various versions of the framework.
xtcislove said:
Are you sure its not semi-edit the files? I think there are just various versions of the framework.
Click to expand...
Click to collapse
Semi-edit the files?
So i'm trying to edit the status bar background.png file. I've made a copy of the framework, changed it to zip, replaced file, changed back to apk. But the systems folder is read only. how do i go about changing it to 'write' so I can replace the frameworks???
Also, if my background is transparent, do i also need to change something in the xml if I want the new background to be a solid color
Hello dear Forum...
First off I have to apologize if I missed something in a sticky,
since I'm new to the forum and the hole rooting/customizing on my GT I-9000.
I've successfully rooted my phone and I'm running Darky_v10_RC5_Final now.
Could anyone provide a link or an explanation how to:
# set own icons for apps
# set lockscreen (as its said there are 4 different ones on this ROM; plus changing the lockscreen image in the settings is not quite working for me)
# setting another theme - if not too complicated.
many thanks in advance - seems to be a truly nice community!
reimi said:
I've successfully rooted my phone and I'm running Darky_v10_RC5_Final now.
Click to expand...
Click to collapse
Final ?? When did it come out ?? Didn't find on Darky's website.
Sorry , wasn't logged in.
GT-I9000 said:
Final ?? When did it come out ?? Didn't find on Darky's website.
Click to expand...
Click to collapse
its the files name, I downloaded from somewhere in this thread:
http://forum.xda-developers.com/showthread.php?t=814091
reimi said:
Hello dear Forum...
First off I have to apologize if I missed something in a sticky,
since I'm new to the forum and the hole rooting/customizing on my GT I-9000.
I've successfully rooted my phone and I'm running Darky_v10_RC5_Final now.
Could anyone provide a link or an explanation how to:
# set own icons for apps
# set lockscreen (as its said there are 4 different ones on this ROM; plus changing the lockscreen image in the settings is not quite working for me)
# setting another theme - if not too complicated.
many thanks in advance - seems to be a truly nice community!
Click to expand...
Click to collapse
To change the icon in an apk, you need to get the apk, open it with winrar and go to drawable-hdpi
There are pngs there. Normally, the icon one is called icon.png, but on some apps, it has a different name, for example ic_launcher_phone.png
You edit it and substitute it.
Then you push the apk back into your phone into /system/app in case it's a system app or you just copy the apk to your sdcard and install it.
Lockscreen background may not work with some specific lockscreens.
For a theme, to make one you'd need to edit the pngs in framework-res.apk/drawable-hdpi (opening it with winrar) and then push it back. That's for changing icons and part of the appearance, but to change text colours and other things you'd need to decompile the apk and edit some xml's.
To apply a theme you just need the zip of the theme, copy it into your sdcard and install it through cwm.
coldflid said:
To change the icon in an apk, you need to get the apk, open it with winrar and go to drawable-hdpi
There are pngs there. Normally, the icon one is called icon.png, but on some apps, it has a different name, for example ic_launcher_phone.png
You edit it and substitute it.
Then you push the apk back into your phone into /system/app in case it's a system app or you just copy the apk to your sdcard and install it.
Lockscreen background may not work with some specific lockscreens.
For a theme, to make one you'd need to edit the pngs in framework-res.apk/drawable-hdpi (opening it with winrar) and then push it back. That's for changing icons and part of the appearance, but to change text colours and other things you'd need to decompile the apk and edit some xml's.
To apply a theme you just need the zip of the theme, copy it into your sdcard and install it through cwm.
Click to expand...
Click to collapse
thank you for the answer!
Is there no way to change the icons of stock applications?
And how may I change the lockscreen?
could you please give me a link, or something how to apply themes via cwm - to be honest I don't even know what cwm is.
sorry for all the questions - many thanks in advance!
reimi said:
thank you for the answer!
Is there no way to change the icons of stock applications?
And how may I change the lockscreen?
could you please give me a link, or something how to apply themes via cwm - to be honest I don't even know what cwm is.
sorry for all the questions - many thanks in advance!
Click to expand...
Click to collapse
Sorry, had lost track of this thread.
You can change the icon of stock applications in same way, but you must be rooted since they are located in system/app
For the lockscreen, to theme the glass lockscreen, you need to edit the pngs in framework-res.apk/res/drawable-hdpi named zzz_unlock_arrow_0000.png up to zzz_unlock_arrow_0009.png and the zzz_unlock_blackbg.9.png and zzz_blackbg_dual.9.png
To theme puzzle lockscreen:
edit zzz_unlock_puzzle_noti_icon_unlock and zzz_unlock_puzzle_noti_icon_unlock_fit
For android lockscreen (in framework-res.apk/res/drawable-land-hdpi):
ic_jog_dial_unlock
ic_jog_dial_sound on
ic_jog_dial_sound off
For epic unlock on framework-res.apk/res/drawable-hdpi
mod zz_unlock_lockbg_press
mod zz_unlock_lockbg_press
In case you want to get a stock framework and get aosp lockscreen:
To get aosp lockscreen you'd need to decompile classes.dex in android.policy.jar and edit a few files.
For that, i use ubuntu.
You open android.policy.jar and extract classes.dex
Then get baksmali and smali and place them in the same location as classes.dex
Open up a terminal and type cd and the location
Example:
cd /home/coldflid/Desktop
Then type java -jar baksmali-1.2.5.jar classes.dex
(if you've got another version of bajsmali change the 1.2.5 for the version you have).
You can type java -jar baksmali-1.2.5.jar classes.dex -o *
Where * is the name of the folder where you want classes.dex to be decompiled
Then you'd need to mod LockPatternKeyGuardView.smali or replace it with a modded one.
Then type in terminal
Then type java -jar smali-1.2.5.jar *
Where * is the name of the folder where classes.dex was decompiled
out.dex should be generated, rename it to classes.dex and copy it to android.policy.jar (replace the old one).
Then use root explorer to copy it to system/framework
coldflid said:
Sorry, had lost track of this thread.
You can change the icon of stock applications in same way, but you must be rooted since they are located in system/app
For the lockscreen, to theme...
Click to expand...
Click to collapse
thank you for the answer!
I'm currently using LockBot Pro to change the locksreen and its background, works fine for me.
I'll try to change the stock app icons as soon as I have time. Thanks!
coldflid said:
Sorry, had lost track of this thread.
You can change the icon of stock applications in same way, but you must be rooted since they are located in system/app...
Click to expand...
Click to collapse
I'm currently trying to substitute the stock app icons.
My question is, how I can find out, which of all those images is used for the menu and how can I browse the folders on my pc, which I can browse on my phone via root explorer...
thanks for the answer!
Is it even possible to remove default wallpaper? Sorry for the stupid question.
If what you mean is to change the default wallpaper, I think you could modify the framework-res.apk file. There's a resource file called default_wallpaper.png (or close to that, I forget ) change it with an image you want, I believe there's a tutorial about that in XDA
If you want to change your current wallpaper, you could do a long press at your homescreen and select wallpaper
Hope this helps,
Regards,
Reidzeibel
Sent from Ridwandroid-2.3.6 : 1804 MHz OC & Customized I8150DXLA2 Stock ROM w/ Cowithgun's kernel & Zeppelinrox V6 Script
reidzeibel said:
If what you mean is to change the default wallpaper, I think you could modify the framework-res.apk file. There's a resource file called default_wallpaper.png (or close to that, I forget ) change it with an image you want, I believe there's a tutorial about that in XDA
If you want to change your current wallpaper, you could do a long press at your homescreen and select wallpaper
Hope this helps,
Regards,
Reidzeibel
Sent from Ridwandroid-2.3.6 : 1804 MHz OC & Customized I8150DXLA2 Stock ROM w/ Cowithgun's kernel & Zeppelinrox V6 Script
Click to expand...
Click to collapse
Yeah yeah! Default wallpaper is what i meant. Where is this framework-res.apk file that i can change? Hmmm.
I found the framework-res.apk file, but couldn't find the default_picture.png?
SyzwnFrzRdz said:
Yeah yeah! Default wallpaper is what i meant. Where is this framework-res.apk file that i can change? Hmmm.
Click to expand...
Click to collapse
This is how I did it :
1. Your phone must be rooted
2. Install "root explorer" or such application (I assume you know how to use it, if not, google it, it's not hard,really)
3. Copy the original framework-res.apk (in /system/framework/framework-res.apk) to your SD card, copy it to your PC.
4. Use 7-zip to open the framework-res.apk from your phone
5. Move to "\framework-res.apk\res\drawable-hdpi\" (see screenshot)
6. Look for "default_wallpaper.jpg" (see screenshot again)
7. Now, you could just change that file with another file, choose the wallpaper of your choice, and resize it to match the resolution of the "default_wallpaper.jpg" (if it's 400x800, your new file SHOULD have the same resolution, to prevent... I don't know, just to be on the safe side )
8. Rename your new file to Default_wallpaper.jpg, and drag it to the 7-zip window with the original default_wallpaper.jpg, overwrite it
9. Push the new framework-res.apk to your phone (use root explorer or adb, I used the root explorer)
10. Reboot phone
NOTE!!
I haven't tried to change the default wallpaper, but I do change many parts of the framework-res.apk, DO AT YOUR OWN RISK!
Here's the screenshot of my expanded Notification bar :
http://s1-03.twitpicproxy.com/photos/full/502609161.png
Hope this helps,
Regards,
Reidzeibel
reidzeibel said:
This is how I did it :
1. Your phone must be rooted
2. Install "root explorer" or such application (I assume you know how to use it, if not, google it, it's not hard,really)
3. Copy the original framework-res.apk (in /system/framework/framework-res.apk) to your SD card, copy it to your PC.
4. Use 7-zip to open the framework-res.apk from your phone
5. Move to "\framework-res.apk\res\drawable-hdpi\" (see screenshot)
6. Look for "default_wallpaper.jpg" (see screenshot again)
7. Now, you could just change that file with another file, choose the wallpaper of your choice, and resize it to match the resolution of the "default_wallpaper.jpg" (if it's 400x800, your new file SHOULD have the same resolution, to prevent... I don't know, just to be on the safe side )
8. Rename your new file to Default_wallpaper.jpg, and drag it to the 7-zip window with the original default_wallpaper.jpg, overwrite it
9. Push the new framework-res.apk to your phone (use root explorer or adb, I used the root explorer)
10. Reboot phone
NOTE!!
I haven't tried to change the default wallpaper, but I do change many parts of the framework-res.apk, DO AT YOUR OWN RISK!
Here's the screenshot of my expanded Notification bar :
http://s1-03.twitpicproxy.com/photos/full/502609161.png
Hope this helps,
Regards,
Reidzeibel
Click to expand...
Click to collapse
Step 4 is not that clear Reidzeibel, you mean open it on my phone or PC?
Oh sorry, I mean, open the file on your PC (it's the one that you modify, and later push it to overwrite the original framework-res.apk)
And before doing anything to your handheld, prepare a nandroid backup just in case. I did a nandroid backup everytime I modify the Android system files.
Regards,
Reidzeibel
reidzeibel said:
Oh sorry, I mean, open the file on your PC (it's the one that you modify, and later push it to overwrite the original framework-res.apk)
And before doing anything to your handheld, prepare a nandroid backup just in case. I did a nandroid backup everytime I modify the Android system files.
Regards,
Reidzeibel
Click to expand...
Click to collapse
Dude :
-I extracted framework-res.apk using 7zip on my PC.
-I replaced the default wallpaper with my desired wallpaper.
-Now, i do not know how to compressed it back to .apk file.
No, don't extract it, just open it in 7-zip and leave it opened, don't extract, don't do anything, just find the image file you want to change, resize it to match the resolution of "default_wallpaper.jpg".
I've attached two more screenshots to show you, hope it helps
Regards,
Reidzeibel
P.S:
-In the "drag" screenshot, I replaced three files, those with entries on the "created" and "accessed" field are the ones I replaced, the files I edit are shown in the explorer window behind the 7-zip window
reidzeibel said:
No, don't extract it, just open it in 7-zip and leave it opened, don't extract, don't do anything, just find the image file you want to change, resize it to match the resolution of "default_wallpaper.jpg".
I've attached two more screenshots to show you, hope it helps
Regards,
Reidzeibel
P.S:
-In the "drag" screenshot, I replaced three files, those with entries on the "created" and "accessed" field are the ones I replaced, the files I edit are shown in the explorer window behind the 7-zip window
Click to expand...
Click to collapse
Bro,
I did exactly as you show the steps above and it suddenly reboots! Why it happened?
EDIT :
By doing all those methods, will it change the lockscreen a well?
P/S : Do you know how to modify the transition when locking the phone? Just asking!
SyzwnFrzRdz said:
Bro,
I did exactly as you show the steps above and it suddenly reboots! Why it happened?
EDIT :
By doing all those methods, will it change the lockscreen a well?
P/S : Do you know how to modify the transition when locking the phone? Just asking!
Click to expand...
Click to collapse
Uh, I had no reboot while doing the push, I rebooted manually after having several force close windows popped up (in my case), but then after reboot, it works normally. Is the default wallpaper changed?
No, Lockscreen wallpaper have it's own option in the settings->display
And for the transition, no I didn't have time to try it yet. But I do want to learn how to change my phone lockscreen transition into ICS manually (without theme) <--- this, or your question is about the crt-animation when screen turns off (locking phone)?
reidzeibel said:
Uh, I had no reboot while doing the push, I rebooted manually after having several force close windows popped up (in my case), but then after reboot, it works normally. Is the default wallpaper changed?
No, Lockscreen wallpaper have it's own option in the settings->display
And for the transition, no I didn't have time to try it yet. But I do want to learn how to change my phone lockscreen transition into ICS manually (without theme) <--- this, or your question is about the crt-animation when screen turns off (locking phone)?
Click to expand...
Click to collapse
1. My phone rebooted itself and then there were some FC's with the launcher. I clicked on Force Close and it is back to normal. My default wallpaper changed as i desired as well! Thanks to you Reidzeibel!
2. For lockscreen wallpaper, there's nothing related to modifying the framework, is it?
3. Due to lockscreen transition, i meant that by changing the transition into ICS manually because i LOVE the old-tv-like transition!
SyzwnFrzRdz said:
1. My phone rebooted itself and then there were some FC's with the launcher. I clicked on Force Close and it is back to normal. My default wallpaper changed as i desired as well! Thanks to you Reidzeibel!
2. For lockscreen wallpaper, there's nothing related to modifying the framework, is it?
3. Due to lockscreen transition, i meant that by changing the transition into ICS manually because i LOVE the old-tv-like transition!
Click to expand...
Click to collapse
1. Mine was : Force close ALL THE WAY =___=, then the notification bar screwed up, all applications icon turned to default, the phone became laggy, then I rebooted manually. There's the thanks button, click it, LOL
2. As far as I know, All theme-related files are :
-Framework-res.apk
-SystemUI.apk
-Settings.apk
These three files have some connection to the theme, I themed my notification bar as in the first post by modifying Framework-res and SystemUI. The ICS theme file in the Theme Thread has the three files included inside it. Thus to edit the lockscreen transition, I believe you have to edit the three files, in a more complicated way (might have to deodex, decompile, recompile, smali-ing, and so on)
3. Actually you could just apply the ICS theme, and then modify the framework-res.apk to enable the CRT-animation, it is easier than porting the ICS theme to your own framework-res.apk
reidzeibel said:
1. Mine was : Force close ALL THE WAY =___=, then the notification bar screwed up, all applications icon turned to default, the phone became laggy, then I rebooted manually. There's the thanks button, click it, LOL
2. As far as I know, All theme-related files are :
-Framework-res.apk
-SystemUI.apk
-Settings.apk
These three files have some connection to the theme, I themed my notification bar as in the first post by modifying Framework-res and SystemUI. The ICS theme file in the Theme Thread has the three files included inside it. Thus to edit the lockscreen transition, I believe you have to edit the three files, in a more complicated way (might have to deodex, decompile, recompile, smali-ing, and so on)
3. Actually you could just apply the ICS theme, and then modify the framework-res.apk to enable the CRT-animation, it is easier than porting the ICS theme to your own framework-res.apk
Click to expand...
Click to collapse
1. Clicked it already! Hehe.
2. I think i'm gonna opt that out as i do not how to do those complicated stuffs, well i'm not a dev.
3. ICS Theme? Where do i find it? And how do i modify to enable CRT-animation? I have so much to learn! Sorry for the excessive '?'.
1. Thanks for clicking thanks )
2. I'm not a dev too -_-, but I do learn some stuffs to modify my I8150, read many topics here, and I'm sure you'd be able to personalize your I8150
3. There's one at the Theme thread, But I haven't tried it yet, If you want to try it, make sure you create a nandroid backup beforehand.
No worries about the excessive "?"
Actually I have a thread in another forum that explains about the CRT-animations and modifying SystemUI & Framework-res.apk, read it somewhere in XDA. (forget where it is) Too bad it is in Indonesian Language, too busy to translate it into english, maybe later I'll post at the theme section, as it is all about theme. *and I just reached 10 post here on XDA, thanks to you too )*
reidzeibel said:
1. Thanks for clicking thanks )
2. I'm not a dev too -_-, but I do learn some stuffs to modify my I8150, read many topics here, and I'm sure you'd be able to personalize your I8150
3. There's one at the Theme thread, But I haven't tried it yet, If you want to try it, make sure you create a nandroid backup beforehand.
No worries about the excessive "?"
Actually I have a thread in another forum that explains about the CRT-animations and modifying SystemUI & Framework-res.apk, read it somewhere in XDA. (forget where it is) Too bad it is in Indonesian Language, too busy to translate it into english, maybe later I'll post at the theme section, as it is all about theme. *and I just reached 10 post here on XDA, thanks to you too )*
Click to expand...
Click to collapse
Mister Reidzeibel, thanks for the short reply as well as your helps. I appreciate it dude! Thanks AGAIN! For default wallpaper, i'm really quite satisfied with the outcome. For the lockscreen, maybe i'll just use my picture as one. HAHA! And for the lockscreen transition, i have posted a new thread about it and i'll just...wait for someone to provide me the tips to do so! Good day bro!
When locking the phone, the screen just simply blackens. What i prefer is the old-tv-like transition that is used in the Galaxy Nexus. Does anyone knows how to make it happen?
SyzwnFrzRdz said:
When locking the phone, the screen just simply blackens. What i prefer is the old-tv-like transition that is used in the Galaxy Nexus. Does anyone knows how to make it happen?
Click to expand...
Click to collapse
Found the XDA thread that give me the enlightenment, this works on my phone, Stock ROM I8150DXLA2, should work on most rom because we modified the framework-res.apk FROM OUR OWN ROM, manually.
Here
Regards,
Reidzeibel
reidzeibel said:
Found the XDA thread that give me the enlightenment, this works on my phone, Stock ROM I8150DXLA2, should work on most rom because we modified the framework-res.apk FROM OUR OWN ROM, manually.
Here, mortal, LOL )
Regards,
Reidzeibel
Click to expand...
Click to collapse
WOW! Thank a bunch dude! Will bear this in mind as i'll look into it!
reidzeibel said:
Found the XDA thread that give me the enlightenment, this works on my phone, Stock ROM I8150DXLA2, should work on most rom because we modified the framework-res.apk FROM OUR OWN ROM, manually.
Here
Regards,
Reidzeibel
Click to expand...
Click to collapse
Lots of errors using this method!
Tried even the crt.zip with CWM but nothing happens.
Well, the only errors I get was force close, after I rebooted my phone, it works normally and the CRT animation is applied.
Did you follow the steps exactly? Do not move the recompiled apk, use the modified original apk.
Regards,
Reidzeibel
Sent from Ridwandroid-2.3.6 : 1804 MHz OC & Customized I8150DXLA2 Stock ROM w/ Cowithgun's kernel & Zeppelinrox V6 Script
reidzeibel said:
Well, the only errors I get was force close, after I rebooted my phone, it works normally and the CRT animation is applied.
Did you follow the steps exactly? Do not move the recompiled apk, use the modified original apk.
Regards,
Reidzeibel
Sent from Ridwandroid-2.3.6 : 1804 MHz OC & Customized I8150DXLA2 Stock ROM w/ Cowithgun's kernel & Zeppelinrox V6 Script
Click to expand...
Click to collapse
Dude,
I have attached the screenshot regarding my problems with the framework-re.apk.
Note :
-There's ONLY "build" folder but no "dist" folder.
Ahh, I see, the problem is that your current framework-res.apk isn't original anymore, that error in the "2.jpg" tells everything, the png files replaced by the theme maker isn't 9-patched (what is 9-patch? here, and here )
Basically, 9-patch allows the image to be stretched by redrawing some parts of the image. if the image isn't 9-patched, it will still displayed correctly on your Phone, but when recompiling the apk files, you'll encounter problems.
I tried decompiling and recompiling the ported ICS theme in the Theme section, all went well, but when I tried to insert a non-9patched png files to the apk, the error shows up.
Thus, in order to enable CRT animations for your phone, the png files on the "2.jpg" screenshot must be 9-patched :
- menu_background.9.png
- status_bar_header_background.9.png
and so on
Hope this helps,
Reidzeibel
reidzeibel said:
Ahh, I see, the problem is that your current framework-res.apk isn't original anymore, that error in the "2.jpg" tells everything, the png files replaced by the theme maker isn't 9-patched (what is 9-patch? here, and here )
Basically, 9-patch allows the image to be stretched by redrawing some parts of the image. if the image isn't 9-patched, it will still displayed correctly on your Phone, but when recompiling the apk files, you'll encounter problems.
I tried decompiling and recompiling the ported ICS theme in the Theme section, all went well, but when I tried to insert a non-9patched png files to the apk, the error shows up.
Thus, in order to enable CRT animations for your phone, the png files on the "2.jpg" screenshot must be 9-patched :
- menu_background.9.png
- status_bar_header_background.9.png
and so on
Hope this helps,
Reidzeibel
Click to expand...
Click to collapse
Ohh no wonder it was always error! Ahaa. So what should i do now? I should do a NinePatch using the Draw-9 patch tool like in the links you gave me? Sorry bro, i am a TOTAL noob.
Yeah, if you want to do decompiling and recompiling your apk files (and modify the png files), you should start learning to draw the 9-patches, it'll be a little complicated though
Hope this helps ,
Reidzeibel
reidzeibel said:
Yeah, if you want to do decompiling and recompiling your apk files (and modify the png files), you should start learning to draw the 9-patches, it'll be a little complicated though
Hope this helps ,
Reidzeibel
Click to expand...
Click to collapse
Ahh shucks! :-( Where do i start actually? :/
Sent from my Super Galaxy White using xda premium
Warning:
This guide isn't orginally by me, I found it on internet and posting (with some edits) here to help people
The original post : http://epiccm.blogspot.com/2012/01/porting-touchwiz-apps-for-cm7.html
Click to expand...
Click to collapse
Many stock Samsung apps are awesome and beautifully looking, also cyanogen mod is fast and high customizable, you dont need to sacrfice CM& for good looking apps anymore
Click to expand...
Click to collapse
STEPS:
1- get your desired App from System/app + twframework.jar and twframework-res.apk from System/framework
2- Decompile all of them Using APK Manager OR Apktool OR Virtous Ten Studio or any other apps
Guide for decompile,compile : HERE
Click to expand...
Click to collapse
3- Remove the library dependence from the AndroidManifest.xml
The line looks like this:
Code:
and remove any lines contain ‘com.device.samsung’
This to make it install on non samsung roms
Click to expand...
Click to collapse
4- Copy the twframework code into the app source.
‘twframework.jar.out/smali/’
The app now contains both its own code, and all the needed TouchWiz code. There’s a small chance it might work if you recompile it now, but it probably also needs resources
Click to expand...
Click to collapse
.
5-Update the resources
a. Add the needed files/parts
search for any ‘@touchwiz:’ parts in any xml file under res/.
Next, you will need to merge everything under /res/ from the twframework-res.apk.
Copy over anything that doesn’t already exist. Files under /res/values/ (Except public.xml) will need to be merged, meaning insert all the values from the framework into the app, before the closing tag (Keep the XML valid). If your missing any resources, re-compiling the APK will fail
b. Remove the touchwiz references
Replace every ‘@touchwiz:’ with just an ‘@’
Example :
Code:
@touchwiz:color/
to
@color/
Copied directly from OP :
There are some calls to IDs in the 0x20 range, this is an issue because as far as I know, the 0x20 range can only be provided by the system somehow. For the Calendar app, I had to remove setIcon calls in a few activities to prevent ResourceNotFound exceptions.
If you remove them, then some things like images might not work. I also found that just removing them can cause random NullPointer errors.
Note: While working on the Task Manager, it became more complex. I had to update the old 0x20 references to the references within the new package.
After the resources are added, decompile it again, so the added resources show up in the /res/values/public.xml
Search for the old 0x20 value, and update it to the new value. If you include the /smali/touchwiz/ directory, then you can just search for the hex value and you will get the name of it from the TW R.smali files, and you can find the updated hex value in the /res/value/public.xml file
Click to expand...
Click to collapse
6. Re-compile
7. Sign the apk using platform key or testkey from HERE
GUIDE TO SIGN APK
Click to expand...
Click to collapse
Most apps uses testkey but if you had any permission error, use platform key or search google for the error
Click to expand...
Click to collapse
8. Install
adb push /system/app/
OR
using system app installer
OR
using any root explorer
Credits :
-Original poster
-Me, for simplifing it
Click to expand...
Click to collapse
Well this is useful!
I Will release some apps, after my exams finish
Sent from my GT-S5360 using Tapatalk 2
Is it possible to port stock fm radio to cm7?
bluestarfish said:
Is it possible to port stock fm radio to cm7?
Click to expand...
Click to collapse
you can try it, but it will not work anyway. there is a radio fm bug in cm7
yeah finaly i got this
many thanks sir
Well, I had it in my mind everytime but never tried doing it... #laziness
Anyways, this IS usefull :good:
Nachiket.Namjoshi said:
Well, I had it in my mind everytime but never tried doing it... #laziness
Anyways, this IS usefull :good:
Click to expand...
Click to collapse
Its a great honor for me that a good developer like you admires my work
On a side note : many devs ported stock apps (generally clock widget and launcher and task manager) to CM7 but no one ever shared, I don't like those who don't share their experiences
Sent from my GT-S5360 using Tapatalk 2
Perfect !
Just what i needed good job OP