ok so i like the android shaped battery meter thats in the froyo 2.2 cm6 extreme blue and vanilla rom,right, so my question is it possible to import that into the rom im running and change my regular battery to that one, is there a specific file i can swap
You have to pull your framework-res.apk file from your phone, extract the images from the original framework-res.apk (in this case the one in CM6 extreme), then add those files to your framework-res.apk and push it into the phone. It's 3:15 A.M. here and I'm not in conditions to explain that with detail, tomorrow if noone has explained it I'll tell you how to do it, you only need WinRAR or 7zip and the SDK to pull/push the modified file into your phone
well i do appreciate the lil bit of insight you provided me ill see if i can try to figure it out but i would like some help when you get a chance tomorrow if i cant figure it out
My girlfriend will kill me tonight...
Okay, excuse my bad english, I'll do what I can... Grab the ROM you want to take the battery icons from in the update.zip and download somewhere to your computer, then unzip it and in the folders you just have created navigate to /system/framework/
Here select the framework-res.apk file and open it with WinRAR (you can do that with 7zip I think but I use WinRAR), once opened navigate inside the zip to /res/drawable-mdpi/ folder and extract all the images there to a new empty folder.
Once extracted all the images, search for the images called
stat_sys_battery_0.png
stat_sys_battery_10.png
stat_sys_battery_20.png
stat_sys_battery_40.png
...
stat_sys_battery_charge_anim4.png
stat_sys_battery_charge_anim5.png
stat_sys_battery_unknown.png
There are 14 battery images in total, at least in my ROM. You can delete all the other images as they have nothing to do with battery status and it will be more easy to do the next step if you only have the battery images.
Connect your phone to your PC, boot your phone into recovery and select "USB-MS toggle". In your computer open a CMD (MS-Dos) prompt window, navigate to the 'tools' directory of your SDK folder (I recommend to unzip SDK in C:/AndroidSDK or something like that for easy access) and write
Code:
adb
adb pull /system/framework/framework-res.apk framework-res.apk
DON'T CLOSE THE CMD WINDOW, if you do, you will have to start ADB again for the "push" step.
That will take the framework-res.apk file from your phone and download it into your computer.
Next you have to do is to open the file you have pulled from your phone with WinRAR, navigate inside that file into /res/drawable-mdpi/ and drag&drop the battery images you have extracted from the original framework-res.apk to that folder.
Close the file, go back to the CMD prompt window and type
Code:
adb push framework-res.apk /system/framework
Once done, the only thing left to do is typing
Code:
adb reboot
And when your phone finishes rebooting you should see the new battery icons you just uploaded to the phone.
I think I've explained it well, as I said I'm kinda sleepy
I'll be back tomorrow, hope to read you have succeed on changing the battery icons
hells yeah, thank you that worked for me just like you explained it. now i just need to make it fit in with my black theme. but thanks again hope i didnt get cursed out by your girl
She didn't noticed, or so I hope Now I'm leaving to work but you have two options now, change all the rest of your icons and also your current statusbar background so the icons fits with the statusbar or edit the battery icons so it fits with your background.
Here's how my screen looks this morning (thanks UltraLinx for the walppaper) to give you an idea of the background bar thing, I changed mine to a full black bar, If I can help you with your customization I'll be back in like 6 hours or so
{
"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"
}
Coming from the incredible I have a circle battery meter from the desire ported over and there are 100 ,pngs in the framework , 1 for each % as battery dies. But the phone is only showing only the 20% increments like the normal battery indicator shows. any idea how I can get it to show each percent as phone dies?
Sent from my Htc Incredible
lolingu said:
My girlfriend will kill me tonight...
Okay, excuse my bad english, I'll do what I can... Grab the ROM you want to take the battery icons from in the update.zip and download somewhere to your computer, then unzip it and in the folders you just have created navigate to /system/framework/
Here select the framework-res.apk file and open it with WinRAR (you can do that with 7zip I think but I use WinRAR), once opened navigate inside the zip to /res/drawable-mdpi/ folder and extract all the images there to a new empty folder.
Once extracted all the images, search for the images called
stat_sys_battery_0.png
stat_sys_battery_10.png
stat_sys_battery_20.png
stat_sys_battery_40.png
...
stat_sys_battery_charge_anim4.png
stat_sys_battery_charge_anim5.png
stat_sys_battery_unknown.png
There are 14 battery images in total, at least in my ROM. You can delete all the other images as they have nothing to do with battery status and it will be more easy to do the next step if you only have the battery images.
Connect your phone to your PC, boot your phone into recovery and select "USB-MS toggle". In your computer open a CMD (MS-Dos) prompt window, navigate to the 'tools' directory of your SDK folder (I recommend to unzip SDK in C:/AndroidSDK or something like that for easy access) and write
Code:
adb
adb pull /system/framework/framework-res.apk framework-res.apk
DON'T CLOSE THE CMD WINDOW, if you do, you will have to start ADB again for the "push" step.
That will take the framework-res.apk file from your phone and download it into your computer.
Next you have to do is to open the file you have pulled from your phone with WinRAR, navigate inside that file into /res/drawable-mdpi/ and drag&drop the battery images you have extracted from the original framework-res.apk to that folder.
Close the file, go back to the CMD prompt window and type
Code:
adb push framework-res.apk /system/framework
Once done, the only thing left to do is typing
Code:
adb reboot
And when your phone finishes rebooting you should see the new battery icons you just uploaded to the phone.
I think I've explained it well, as I said I'm kinda sleepy
I'll be back tomorrow, hope to read you have succeed on changing the battery icons
Click to expand...
Click to collapse
Im getting this error: device not found?
Anyone know why?
stifler05 said:
Im getting this error: device not found?
Anyone know why?
Click to expand...
Click to collapse
Have you installed the adb drivers for your phone?
Coolsaber57 said:
Have you installed the adb drivers for your phone?
Click to expand...
Click to collapse
Everything was installed, but there was some problem, fixed now.
Now Im getting new error: remote object /system/framework/framework-res.apk does not exist.
stifler05 said:
Everything was installed, but there was some problem, fixed now.
Now Im getting new error: remote object /system/framework/framework-res.apk does not exist.
Click to expand...
Click to collapse
How did you resolved the issue? Care to share?
JokerAce said:
How did you resolved the issue? Care to share?
Click to expand...
Click to collapse
Sure mate.
I uninstalled all Android drivers(cause mass storage) with USBDeview(Ill post this software if you want), connected the phone while it was running then manually installed drivers that you get with SDK. And everything is working. But cant fix second error now
I'm trying to do the same thing, but I get a different error:
Code:
C:\Users\Eric\Desktop\Android Dev\AndroidSDK\tools>adb push framework-res.apk /s
ystem/framework
failed to copy 'framework-res.apk' to '/system/framework/framework-res.apk': Per
mission denied
Fix? I'm rooted, what do I need to do to get permission? adb noob.
E_man5112 said:
I'm trying to do the same thing, but I get a different error:
Code:
C:\Users\Eric\Desktop\Android Dev\AndroidSDK\tools>adb push framework-res.apk /s
ystem/framework
failed to copy 'framework-res.apk' to '/system/framework/framework-res.apk': Per
mission denied
Fix? I'm rooted, what do I need to do to get permission? adb noob.
Click to expand...
Click to collapse
/system is mounted read-only. "adb shell mount" will show that.
Code:
adb remount
This will fix it. Note, no "shell" there, alternative:
Code:
adb shell mount -o remount,rw /system
I do use this one, instead, because I then do whatever and issue that command again, changing rw to ro, to clear write permission.
Related
I did some searching but didn't find anything.
Is there a way to bulk install applications if you have all the apks for those applications?
Mr17 said:
I did some searching but didn't find anything.
Is there a way to bulk install applications if you have all the apks for those applications?
Click to expand...
Click to collapse
Emm haven't tried it but it should work.
You could use wildcards.
So let's say you have a bunch of .apk's all in one folder, you could use adb to install them on your phone using this syntax:
Code:
adb install folder/*.apk
This should install all files ending with .apk in the folder
sweet, I'll give that a try and let you know how it works. Would make testing different roms alot easier.
Do you think this would bypass the market? If it did notification of updates would not work. hmm, ill have to test.
Mr17 said:
Do you think this would bypass the market? If it did notification of updates would not work. hmm, ill have to test.
Click to expand...
Click to collapse
use atrackdog
Create a batch script with:
Code:
for %%f in ("C:\path\to\apks\*.apk") do adb install "%%f"
The easiest way (imo) if you are rooted:
1. Put all the apks into a folder structure \data\app
2. Create a text file with the following and rename it update-script (with no extension) then put it into a folder structure \META-INF\com\google\android
Code:
show_progress 0.5 0
copy_dir PACKAGE:data DATA:
show_progress 0.5 10
3. Zip both folder structures into a zip file (you should have folders data and META-INF at the root of the zip).
4. Sign it with signapk and you're done
Whenever you want to bulk reinstall, just put the signed zip file into your sdcard and reboot into recovery. When you want to add or remove apks from the bulk installer, just drag it into your zip file and resign.
Or you can backup all your apps into one folder on your sdcard and run this in terminal:
Code:
su
cd sdcard/apps
busybox install *.apk /data/app
I might add this feature into my ADB File Explorer app
I've added a basic feature to install apps into my ADB file explorer, it can do one off apk's or bulk install from a directory. See my sig for more details.
wow, that was fast! thanks!
jashsu said:
The easiest way (imo) if you are rooted:
1. Put all the apks into a folder structure \data\app
2. Create a text file with the following and rename it update-script (with no extension) then put it into a folder structure \META-INF\com\google\android
Code:
show_progress 0.5 0
copy_dir PACKAGE:data DATA:
show_progress 0.5 10
3. Zip both folder structures into a zip file (you should have folders data and META-INF at the root of the zip).
4. Sign it with signapk and you're done
Whenever you want to bulk reinstall, just put the signed zip file into your sdcard and reboot into recovery. When you want to add or remove apks from the bulk installer, just drag it into your zip file and resign.
Click to expand...
Click to collapse
Thank you for this. This will come in handy a LOT next ROM flashes :]
Seems so easy looking back on it, not sure why I didn't think of it earlier. I may even just edit the rom files to include my installed apps if I need to wipe.
someone made an app for the computer if you have the .apks you just plug in your phone double click the apk and run it and itll install on to your phone, try looking for that.
Bavilo said:
Emm haven't tried it but it should work.
You could use wildcards.
So let's say you have a bunch of .apk's all in one folder, you could use adb to install them on your phone using this syntax:
Code:
adb install folder/*.apk
This should install all files ending with .apk in the folder
Click to expand...
Click to collapse
I just wiped my phone completely clean and reflashed to Cyanogen 3.6.1.
When I try this method, it gives me an error that I don't have enough space. Again, this is after a *complete* wipe.
Screenshots:
{
"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"
}
-----
I'm not sure whether it's using the 5 MB free or the 42 MB space, but Any Cut is 32 kb, so that's a non-issue.
Any ideas on why it's not working?
Paul22000 said:
I just wiped my phone completely clean and reflashed to Cyanogen 3.6.1.
When I try this method, it gives me an error that I don't have enough space. Again, this is after a *complete* wipe.
Screenshots:
-----
I'm not sure whether it's using the 5 MB free or the 42 MB space, but Any Cut is 32 kb, so that's a non-issue.
Any ideas on why it's not working?
Click to expand...
Click to collapse
Do you have your sdcard partitoned to fat32 as the first one and then ext2(3) as your next partition?
PlatinumMOTO said:
Do you have your sdcard partitoned to fat32 as the first one and then ext2(3) as your next partition?
Click to expand...
Click to collapse
I don't think so. If there is an ext2 or ext3 partition, I didn't set it up.
By the way, I got InstallAPK, which lets you double click on APKs on your PC and install them to phone immediately.
http://forum.xda-developers.com/showthread.php?t=521295
It worked just fine at installing all my apps after the wipe.
Minus the fact that I had to double click on an app, wait for it to install, double click the next, wait for it to install, double click.... ad nauseum.........
I'm still interested in finding out why the method I posted in the screenshots isn't working.
Has anyone actually gotten it to work?
We're getting off topic but this is what you need to do in all likelihood you're gonna have to reflash Cy 3.6.1 again but before you do you're gonna need to setup your sdcard like this:
you can use either Paragon Partition Manager (above) Gparted, or SDSplit but you should set it up like the picture to run apps to sd and to fully get the Cy experience
PlatinumMOTO said:
We're getting off topic but this is what you need to do in all likelihood you're gonna have to reflash Cy 3.6.1 again but before you do you're gonna need to setup your sdcard like this:
you can use either Paragon Partition Manager (above) Gparted, or SDSplit but you should set it up like the picture to run apps to sd and to fully get the Cy experience
Click to expand...
Click to collapse
I'm not trying to do apps to sd though.
All I want to do is run "adb install apk".
well how many apps are you trying to install?
PlatinumMOTO said:
well how many apps are you trying to install?
Click to expand...
Click to collapse
29 apps
Which is why I'd like to get a quick adb install *.apk, 1 command and done.
Here is a pack of 3 files that, if pushed to your rom will give you the white task bar. This will change status icons and is just a work in progress "fill in the the gap" type of thing until I can write a proper update script for an update.zip. Currently this has only been tested to work 100% with:
Evil Eris 2.0.1 (It will, however, break the Sense launcher. So if you want the white bar, use another launcher)
Ic3Rom 2.0
It DOES NOT work on
TaintedVanilla 1.3.1
Or any rom that has it's System/Framework apk's and jar's odexed.
Please let me know if it works with any others.
Also, please not that this will change the status bar highlights to green.
http://www.multiupload.com/4YV5D61YRX
Click to expand...
Click to collapse
Just push the three files and reboot. Reboot will take about 5 min, so don't freak out if it takes forever. If you get into a boot loop, however, it didn't work.
DISCLAIMER: I'm not responsible if this bricks your phone. Please don't yell at me if it does. Also, be smart: do a nandroid backup before you try this.
Click to expand...
Click to collapse
This tutorial is for a white menu bar. It's still kind of a work in progress, but it works for the most part. When done, it looks 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"
}
Ok. Here is the extremely long way to do this, but it should work with any rom and will give you a full (date/time/notifications) white/vanilla task bar.
(Seriously, this may take 30 minutes or more if you're unfamiliar with some of these commands)
DOWNLOAD: http://www.multiupload.com/VZWCE0A0FN
Unzip the files and there should be 4 folders and 1 file: framework-res, com.htc.resources, PCSCII, Tools, and StatusBarIcon.smali.
Also included are the tools needed to crack open the .dex file from services.jar, smali.jar and backsmali.jar
First you'll need to pull the proper files to modify from whatever rom you're using. Open up your command line program of choice and do this:
cd [your tools folder in the android sdk]
adb remount
adb pull /system/framework/framework-res.apk framework-res.apk
adb pull /system/framework/com.htc.resources.apk com.htc.resources.apk
adb pull /system/app/PCSCII.apk PCSCII.apk
adb pull /system/framework/services.jar services.jar
Click to expand...
Click to collapse
Copy all these files into a new folder.
Things can get messy so name them whatever you'd like to keep things organized.
After all this you can start copying files. First we need to open up services.jar. Easiest way is to change the .jar ending to .zip and expand it with whatever program you'd like. Copy the classes.dex into a new folder. Keep the original folder of the expanded services.jar, it makes things easier in a few minutes.
Here is where things get a little complicated. You'll need to open up the classes.dex file with backsmali.jar. First, make sure Backsmali.jar is in the same folder as classes.dex. Next enter this command into the terminal:
cd [the folder with backsmali and classes.dex file]
java -Xmx512M -jar baksmali.jar -o classes/ classes.dex
Click to expand...
Click to collapse
This will expand classes.dex into a folder. Click through this folder until you find a folder called Status. Now drag the StatusBarIcon.smali into the Status folder. Allow the replacement.
Now we need to close the classes.dex file back up. Make sure smali.jar is in the same folder as the classes folder (make a new folder just to avoid a conflict with your original files) and use these commands:
cd [the folder with smali and the classes folder]
java -Xmx512M -jar smali.jar -o classes.dex classes/
Click to expand...
Click to collapse
You should have a fresh classes.dex file now. Now put this new classes.dex file into the original services.jar folder (that you expanded from a zip) and rezip that file. Then change the name from a .zip to .jar.
Step 1: done.
The next few parts are a lot easier, so stick with me here.
Now we need to open up the Framework-res.apk and replace all of the image files needed for a sexy white menu bar. All of the needed files are in the folder named (you guessed it) framework-res. First, you'll need to expand this .apk, do so by changing it into a .zip. After you expand it, copy the files from my folder to the matching folders. Don't drag and drop the folders, it won't work. Select all inside them and paste/drag/whatever over to the one from your phone. There should be a folder of image files, and a folder with two xml files. Once done return to the top folder of the framework-res.zip you expanded and re-zip the contents. Make sure you select the contents and zip them.
**DO NOT ZIP THE FRAMEWORK-RES FOLDER ITSELF, SELECT THE FILES INSIDE THE FOLDER AND RE-ZIP THEM**
You should now how have a new archive. Rename it to framework-res.apk and set it aside for later use.
The last parts are essentially the same things, but with the other two folders I've included: PCSCII and com.htc.resources. Copy the files, and re-zip them into .apk files.
Ok. Almost done.
Now it's time to send the files back to your phone. Place the new versions of these files into your Tools folder in the Android SDK.
Now let's push them back to your phone:
cd [your tools folder... again]
adb remount
adb push PCSCII.apk /system/app/PCSCII.apk
adb push framework-res.apk /system/framework/framework-res.apk
adb push com.htc.resources.apk /system/framework/com.htc.resources.apk
adb push services.jar /system/framework/services.jar
adb reboot
Click to expand...
Click to collapse
Reboot can take a while, so be patient. I'm thinking rebooting into recovery and clearing your dalvik cache may help, but haven't tried it.
If everything worked correctly, you should have a brand spankin' new notification bar.
Just a note, I have tested this on Evil Eris 2.0 and IceRom 2.0 and it works perfectly. However, it should work with whatever rom you're using. Also, this will change some of your icons to Vanilla ones. If you don't want them changed, don't copy the files that will change them. Those should be apparent when copying the image files from the folders I've included.
If you have any questions, feel free to ask.
Also, if anyone knows how to wrap this all up into a nice little update.zip, please do it or let me know how to do it. It would be greatly appreciated.
Hello, I appreciate the tutorial! I'm attempting to get this set up for my Tainted Vanilla rom and ran into a snag at the beginning. Our services.jar file contains no classes.dex file. All it contains is MANIFEST.MF. Any ideas about how I should proceed?
Ok, I think I've figured it out.
The .odex file is basically the .dex file in an uncompressed format. To break it open you do the same thing you would do with a dex file. Plug it into baksmali and it should yield you a Classes folder. You do have to reassemble it though, which requires you to first deodex it... and it's kind of a pain in the ass. I've figured out the first portion of it, but deodexing the file is decently complicated for a n00b like me. I'll continue to work on it and will hopefully have a solution tomorrow.
Here's where I'm stuck if anyone wants to figure it out:
$ java -Xmx512m -jar baksmali.jar -x services.odex
Error while disassembling method Lcom/android/server/ConnectivityService;-><init>(Landroid/content/ContextV. Continuing.
org.jf.dexlib.Code.Analysis.ValidationException: class Lcom/htc/connectivity/DummyStateTracker; cannot be resolved.
at org.jf.dexlib.Code.Analysis.ClassPath$UnresolvedClassDef.unresolvedValidationException(ClassPath.java:535)
at org.jf.dexlib.Code.Analysis.ClassPath$UnresolvedClassDef.getClassDepth(ClassPath.java:543)
at org.jf.dexlib.Code.Analysis.ClassPath.getCommonSuperclass(ClassPath.java:383)
at org.jf.dexlib.Code.Analysis.RegisterType.merge(RegisterType.java:274)
at org.jf.dexlib.Code.Analysis.AnalyzedInstruction.mergeRegister(AnalyzedInstruction.java:199)
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.propagateRegisterToSuccessors(MethodAnalyzer.java:479)
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.setPostRegisterTypeAndPropagateChanges(MethodAnalyzer.java:459)
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeInvokeDirectCommon(MethodAnalyzer.java:2968)
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeInvokeDirectRange(MethodAnalyzer.java:2927)
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeInstruction(MethodAnalyzer.java:856)
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyze(MethodAnalyzer.java:202)
at org.jf.baksmali.Adaptors.MethodDefinition.getMethodItems(MethodDefinition.java:290)
at org.jf.baksmali.Adaptors.MethodDefinition.writeTo(MethodDefinition.java:130)
at org.jf.baksmali.Adaptors.ClassDefinition.writeMethods(ClassDefinition.java:322)
at org.jf.baksmali.Adaptors.ClassDefinition.writeDirectMethods(ClassDefinition.java:291)
at org.jf.baksmali.Adaptors.ClassDefinition.writeTo(ClassDefinition.java:135)
at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:187)
at org.jf.baksmali.main.main(main.java:277)
opcode: invoke-direct/range
CodeAddress: 811
Method: Lcom/android/server/ConnectivityService;-><init>(Landroid/content/ContextV
Click to expand...
Click to collapse
I know that in order for successfully deodex, all the file paths have to be correct. I, however, do not have them yet.
More info here for anyone interested: http://code.google.com/p/smali/wiki/DeodexInstructions
Good work, this should be an update.zip once we have confirmed it working successfully.....
stopxstart said:
Ok, I think I've figured it out.
The .odex file is basically the .dex file in an uncompressed format. To break it open you do the same thing you would do with a dex file. Plug it into baksmali and it should yield you a Classes folder. You do have to reassemble it though, which requires you to first deodex it... and it's kind of a pain in the ass. I've figured out the first portion of it, but deodexing the file is decently complicated for a n00b like me. I'll continue to work on it and will hopefully have a solution tomorrow.
Here's where I'm stuck if anyone wants to figure it out:
I know that in order for successfully deodex, all the file paths have to be correct. I, however, do not have them yet.
More info here for anyone interested: http://code.google.com/p/smali/wiki/DeodexInstructions
Click to expand...
Click to collapse
I get the same error. I posted a issue about this on the project page.
EDIT: Figured it out. Add -c :com.htc.resources.jar
You will need to deodex it first thou.
Can we see screenshots of this notification bar
If you look at the IC3 rom screenshots, this should be the same.
Also, stopxstart, thanks for the hard work! Really appreciate it. Should the phone be connected this whole time? Thanks!
gritts said:
If you look at the ICQ rom screenshots, this should be the same.
Also, stopxstart, thanks for the hard work! Really appreciate it. Should the phone be connected this whole time? Thanks!
Click to expand...
Click to collapse
ICQ ROM do you mean IC3 ROM?
Yes, thanks, I corrected it.
gritts said:
If you look at the IC3 rom screenshots, this should be the same.
Also, stopxstart, thanks for the hard work! Really appreciate it. Should the phone be connected this whole time? Thanks!
Click to expand...
Click to collapse
It's easy just to keep it connected but it's not required. Just make sure you adb remount before pushing and pulling the files.
Going to try out a workaround for all of this, I'll report back sometime tonight.
Also, if this works it will allow me to write a sufficient update.script for a standalone zip.
For those following the progress of this, I am currently testing some standalone files to push that should make this whole process easier.
So far works on: Evil Eris 2.0 and Ic3Rom 2.0 (well, fixes it).
Testing others now.
I'm looking forward to your testing on Tainted Vanilla
hoban_eris said:
Hello, I appreciate the tutorial! I'm attempting to get this set up for my Tainted Vanilla rom and ran into a snag at the beginning. Our services.jar file contains no classes.dex file. All it contains is MANIFEST.MF. Any ideas about how I should proceed?
Click to expand...
Click to collapse
I second that.
ok so these are the things i can't get
the verizon wireless text is white
and the clear button is black with white text
how can i fix these
Re: [Tutorial] White Notification Bar
Did you follow the tut
-------------------------------------
Sent via the XDA Tapatalk App
gritts said:
Did you follow the tut
-------------------------------------
Sent via the XDA Tapatalk App
Click to expand...
Click to collapse
ok ive tried several times and failed every time could someone put up the final zip I could flash
iloveandroid said:
ok so these are the things i can't get
the verizon wireless text is white
and the clear button is black with white text
how can i fix these
Click to expand...
Click to collapse
Let me double check the XML files in the Framework-res.apk to make sure I put the right ones in. I literally have 60 folders filed with the same file from different testing so I could have easily posted the wrong one.
Also, there isn't a zip to flash because I haven't written the update script for it. If you would like to, please do.
stopxstart said:
Let me double check the XML files in the Framework-res.apk to make sure I put the right ones in. I literally have 60 folders filed with the same file from different testing so I could have easily posted the wrong one.
Also, there isn't a zip to flash because I haven't written the update script for it. If you would like to, please do.
Click to expand...
Click to collapse
I would make a flashable but i dont know how
Ok, I fixed the button problem.
You're using Ic3Rom right? Pretty sure the files I have will work with it straight up but let me test it.
Also, I added screenshots to first page.
Ok guys here's my first contribution to the community I guess.
First of all thanks to;
frostman89 - for the iphone pngs
zHk3r - for the new iphone pngs
teslacoil - for the widgetlocker for sure!
others - those that contributed that i forgot.
I take no credit at all, i created this thread because many people have PM'ed me for the pngs and tutorial.
Ok lets start shall we? You will need;
- Widgetlocker(Buy it first cuz its not free)
- Root Explorer(Buy it too and this is optional if you dont know adb)
- the PNG files;
Original Post :
1) http://forum.xda-developers.com/showpost.php?p=8731533&postcount=31 >> Thanks frostman89!
2) http://forum.xda-developers.com/showpost.php?p=8933650&postcount=56 >>Thanks zHk3r! - check it out, its not as in my screenshot.
OR from my dropbox;
frostman89 :
slider - http://dl.dropbox.com/u/11246427/Android/Mod/Widgetlocker iphone mod/slider_iphone.png
background - http://dl.dropbox.com/u/11246427/Android/Mod/Widgetlocker iphone mod/slider_iphone_background.png
zHk3r :
slider - http://dl.dropbox.com/u/11246427/Android/Mod/Widgetlocker iphone mod/slider_iphone-1.png
background - http://dl.dropbox.com/u/11246427/Android/Mod/Widgetlocker iphone mod/slider_iphone_background-1.png
Here's some alternatives/goodies/pngs' contributed by other members;
- http://forum.xda-developers.com/showpost.php?p=8869261&postcount=59
- http://forum.xda-developers.com/showpost.php?p=8872442&postcount=61
- http://forum.xda-developers.com/showpost.php?p=8875029&postcount=28
- http://forum.xda-developers.com/showpost.php?p=8894543&postcount=30
Thanks guys!
Because you want 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"
}
Got 2 steps on how to do this;
1) ADB
2) Root Explorer
3) My own steps(this is what i did to get it working!!)
4) Ninjamorph(S-OFF required)
5) Paypal buyer~~
6) Easier method - simple script
7) What if FC after applied the mod? Link to original post - http://forum.xda-developers.com/showpost.php?p=8928204&postcount=51
BEFORE THAT, NANDROID first!!!!!!!!!!!!!
-------------------------------------------------------------------------
1) ADB(google would help a lot)
*Btw make sure you have your widgetlocker completely removed/uninstalled before doing this.
a. You will need Android SDK installed (google for it will ya?).
b. "adb pull" your widgetlocker(anyone who did this can tell me please?)
c. Open your "pulled" apk using winrar.
d. Browse to /res/drawable-hdpi
e. Drop those 2 images you downloaded in there(make sure it is the exact name as the original so it will overwrite it.
f. Now for adb push part(make sure you in the recovery mode and make sure the widgetlocker.apk is put inside android-sdk-windows/tools folder - the default folder for adb);
Code:
adb remount
adb push com.teslacoilsw.widgetlocker-1.apk /system/app/com.teslacoilsw.widgetlocker-1.apk
adb reboot
g. Tada! Enjoy!
---------------------------------------------------------------------------
2) Root Explorer
*Btw make sure you have your widgetlocker completely removed/uninstalled before doing this.
a. Browse the app in data/app, it is called com.teslacoilsw.widgetlocker-1.apk
b. Copy it to your SD card.
c. Modify it(see step d and e above)
d. Put it back into system/app(you need to be in R/W mode)
e. After that, long click the app, select permissions, and do checkmarks like this: (the * represents a checkmark) - this is courtesy of frostman89
* . * . -
* . - . -
* . - . -
f. Reboot and voila!
==========================================================
3. My own steps!
Actually my steps is mixed between those 2 because, I can't pull using adb so i had to pull using Root Explorer. Then I cant push it using Root Explorer so i had to adb push them.
So there you go, if you have problems like me, just did what i did.
a. Browse the app in data/app, it is called com.teslacoilsw.widgetlocker-1.apk
b. Copy it to your SD card.
c. Modify it(see step d and e above)
f. adb push(make sure you in the recovery mode and make sure the widgetlocker.apk is put inside android-sdk-windows/tools folder - the default folder for adb);
Code:
adb remount
adb push com.teslacoilsw.widgetlocker-1.apk /system/app/com.teslacoilsw.widgetlocker-1.apk
adb reboot
I'll tell you guys too why i cant use adb pull and push using root explorer;
adb pull - easy, i dont know how to adb at that time...haha~~
paste using root explorer - i pasted it but nothing appeared? i was like wtf and that leads me to learn how to adb.
--------------------------------------------------------------------------------------
4) Ninjamorph(S-OFF required)
I'm not sure how but here is what faceqt told me;
Or, if you have S-OFF you can use Ninjamorph to replace the 2 .png's and reboot your phone.
Click to expand...
Click to collapse
-------------------------------------------------------------------------------------
5) Paypal buyer~~
Quoted from jayhan73;
For people who have purchaed WidgetLocker off paypal, the steps to do this only involves replacing the png files (i.e. opening the apk file sent to your email and adding the png files into the required directory). After that, reinstall the widgetlocker. You may also choose to push the apk via adb. Either way, it works.
Click to expand...
Click to collapse
But i believe once you mod it you can't install it normally, so its either adb or root explorer.
6)Easier method - Smple script as posted by brady;
brady1uk said:
There is a much easier way to get this on your phone using the files from the OP without faffing around on adb, rom manager etc...
download APK manager from here
http://forum.xda-developers.com/showthread.php?t=695701
put the apk file in the "place-apk-here-for-modding"
run the script.bat and extract it, (basically unzips it) drop the new PNG files in /res/drawable-hdpi (replace already existing) then run zip.apk from script and (select option 2 Regular apk) then use option 4 sign apk.
look in the pace-apk-here-for-modding folder will be a new file called 'something'-signed.apk. (this is the new edited Widgetlocker
This file you can put on your SD card and Install and Uninstall like a normal apk using ASTRO etc. no need for ADB and root explorer.
Takes literally 5 minutes to do with NO RISK to your phone
Click to expand...
Click to collapse
7) What if FC after applying the mod? - link to original post - http://forum.xda-developers.com/showpost.php?p=8928204&postcount=51
Is WidgetLocker Force Closing after you've applied the mod?
Quoted from zHK3r
Then try these steps:
Requirements:
Android SDK
HTC Sync Drivers
WidgetLocker
Two PNGs
7zip/WinRAR
1) ADB pull /data/app/com.teslacoilsw.widgetlocker-1.apk
2) Rename the .apk to .zip and open the folder - Drop the two PNGs in drawable-hdpi
3) Rename the .zip back to .apk
On your phone: Uninstall WidgetLocker and then re-install.
Start WidgetLocker, but once you've started it. Press home.
Don't apply any settings or continue the tutorial
4) ADB push com.teslacoilsw.widgetlocker-1.apk /data/app/teslacoilsw.widgetlocker-1-apk
On your phone: Start WidgetLocker > Menu > Settings > Look and Feel > Slider & Layout > iPhone
Code:
adb devices
adb remount
adb pull data/app/teslacoilsw.widgetlocker-1-apk
adb push com.teslacoilsw.widgetlocker-1.apk /data/app/teslacoilsw.widgetlocker-1-apk
Click to expand...
Click to collapse
Btw if you have any problems pushing an apk, try this;
Quoted from Zaphyr;
Ok, so I figured out the problem.
/system wasn't mounted. Even in recovery when I tried to push it over, I needed to go in the Clockwork settings and choose mount system before I could push it.
But now it works perfectly! YAY!!
Click to expand...
Click to collapse
*I'm pretty sure it'll work the same for other lockscreen you wanted as long as you have the needed files.
Feel free to comment and give feedbacks, and correct me if i got wrong in some part. Enjoy!
good what is the name of the clock?
^ That's Semicuda's TypoClock widget. Check out his creation here.
http://forum.xda-developers.com/showthread.php?t=814054
what am i doing wrong? i have pulled the apk, edited and pushed it back... but it does not get installed
ahh... never mind, got it done, at last
Miister-Ot said:
what am i doing wrong? i have pulled the apk, edited and pushed it back... but it does not get installed
ahh... never mind, got it done, at last
Click to expand...
Click to collapse
Nice. glad you got it working. Enjoy!
What about apkmanager to extract the apk from your phone and unbundle it for editing. Its alot easier in my opinion, and it easily re compresses the file and can push it back to the phone for you.
Sorry I don't have a link, but just do a search.
Sent from my HTC Magic using XDA App
It worked like a charm! Thanks, I LOVE IT!!
twigster said:
What about apkmanager to extract the apk from your phone and unbundle it for editing. Its alot easier in my opinion, and it easily re compresses the file and can push it back to the phone for you.
Sorry I don't have a link, but just do a search.
Sent from my HTC Magic using XDA App
Click to expand...
Click to collapse
Will consider this when I confirm it is confirmed done by other members. cuz i'm not really sure how it works so better not include this yet. But thanks for the info!
qureshali said:
It worked like a charm! Thanks, I LOVE IT!!
Click to expand...
Click to collapse
Cool. Enjoy!
Worked brilliantly
Thanks .. worked very nicely ...
Btw got any plans for new mods ??
Hehe i learned this mod from other guys but i'll post/update this thread when i have another mod.
I'm just sharing as i'm not a dev/designer(yet). Still a student studying software engineering.
methodes with adb doesn work for me =( and either do Root Explorer trick, nothing happend
adb remount first or not? and you need to be inside the recovery.
Can anyone mod the custom slider to make it fit better with this? thanks
Hi
I am having trouble when pushing the apk in adb
I already managed to pull the apk and edited the png files
after that i uninstalled the widgetlocker
the adb remount gives me error "remount failed: Invalid argument" if i run it from recovery mode.
so i run it when the phone on.
then i go to recovery mode and run the push command, which is successful.
then i reboot the phone, but nothing happened.
no widget locker installed.
any idea?
thanks
bloody_mary said:
Hi
I am having trouble when pushing the apk in adb
I already managed to pull the apk and edited the png files
after that i uninstalled the widgetlocker
the adb remount gives me error "remount failed: Invalid argument" if i run it from recovery mode.
so i run it when the phone on.
then i go to recovery mode and run the push command, which is successful.
then i reboot the phone, but nothing happened.
no widget locker installed.
any idea?
thanks
Click to expand...
Click to collapse
Easy, go into the Clockwork settings and choose mount system. then adb remount, and adb push. Should be working 100%!
great, it works.
thanks a lot for your help
bloody_mary said:
great, it works.
thanks a lot for your help
Click to expand...
Click to collapse
cool, glad it worked out for you.
adb not found in Apk Manager
Im trying to run this for my Droid x but i keep getting "adb not found, you will not be able to manipulate the files on your phone" everytime i open it. Im in a man down situation. Lol. Please show me the way.
awesome work. Got this up and running on my droid1 in minutes using the root explorer method. Thanks OP.
ckeyes1106 said:
Im trying to run this for my Droid x but i keep getting "adb not found, you will not be able to manipulate the files on your phone" everytime i open it. Im in a man down situation. Lol. Please show me the way.
Click to expand...
Click to collapse
Do you have android sdk installed btw? And if you have, have u cd to the adb directory?
Sent by S-OFF International Postage
After a lot of trial and error, here it is. Pretty simply you will be able to change your lockscreen background to whatever your liking is.
This has been mentioned to be working on both MDPI and HDPI resolutions.
This mod works only for CM7, as it includes the rotary lockscreen code.
IMPORTANT This will alter your framework-res.apk folder, and this means you will lose your current accounts and sync settings. So backup with titanium first (or whatever you use). ALSO, NANDROID TO BE SAFE
I've made 2 versions so far:
1) First version is your normal lockscreen, with altered background. Nothing else is changed.
2) Lockscreen with altered clock. Moved to the top-left to leave more space for your new background to show. Here's how it looks:
{
"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"
}
FIRST STEP - How to apply Lockscreen for the first time
1) Included are 2 CustomLockscreen .zip files. Choose wether you want the edited clock version or not, then go ahead and download
2) Use either metamorph, or simply overwrite in your own framework-res.apk files the contents of the zip file (if you overwrite, make sure you leave out the .xml file in the ROOT of the zip)
3) Apply Metamorph, or use your own framework-res.apk and push it via adb.
4) Reboot. Note this also changes your home background picture, just simply change it to your normal one. Don't worry, the lockscreen one won't change after you change your home background.
STEP TWO - After having applied the first step, you need to do this to change image everytime you want to
1) Download the ChangeLockscreen.zip
2) Use metamorph to extract the zip then exit metamorph
3) Mount your phone to your pc and place your 320x480(MDPI) or 480x766(HDPI) picture in /sdcard/AndroidThemes/ChangeLockscreen/framework-res/drawable
4) Go back to metamorph, choose "Pick existing theme" and Navigate to the ChangeLockscreen folder, and choose the ChangeLockscreen.xml
5) Apply
6) Reboot
7) Change home wallpaper again.
NOTE Use a 320x480 JPG IMAGE (MDPI) OR 480x766 JPG IMAGE (HDPI) of your liking and place it in /drawable named as default_wallpaper.jpg
IF SOMETHING GOES WRONG
Extract your framework-res.apk from your current rom
Boot in recovery and enable USB toggle
Code:
adb shell mount /system
adb shell rm /system/framework/framwork-res.apk
adb push /the-folder-you-extracted-your-framework-res/framework.res.apk /system/framework
Reboot
NOTES MDPI devices use the normal zips. HDPI devices use the HDPI zips.
If you like this, please THANK away
Contact me
Twitter
Suggestions, problems etcetera, please post here so others can help as well. Let me know if this works for you.
Changelog
V1.0 Out 25/1/2011
Just wanted to confirm that this also works on HDPI devices. I built the keyguard XML into my framework on my EVO and it works perfectly.
where´s the difference to [Custom] Lockscreen Background ? (besides of not changing frameworks-res.apk)
rori~ said:
where´s the difference to [Custom] Lockscreen Background ? (besides of not changing frameworks-res.apk)
Click to expand...
Click to collapse
I haven't actually seen what is edited in your xml, but seeing the name of the files they seem to have the same layout, except yours targets /drawable-hdpi (which doesn't exist in MPDI or LDPI screens).
Tried to morph it (because as i said i was too bored to decompile your xml), and it doesn't seem to work. Have you included the rotary lockscreen code?
+ the small edit to the clock position.
I'm sorry for not seeing it earlier (i did search online, but didnt come across it, could have made my life easier). All i found on the net was an eclair edit of the lockscreen, and based on that, and on what png's were already included on the framework-res.apk files in CM7, i decided to use that obvious choice (default_wallpaper)
@gomorrah
Thanks for letting me know
petsasj said:
I haven't actually seen what is edited in your xml, but seeing the name of the files they seem to have the same layout, except yours targets /drawable-hdpi (which doesn't exist in MPDI or LDPI screens).
Tried to morph it (because as i said i was too bored to decompile your xml), and it doesn't seem to work. Have you included the rotary lockscreen code?
+ the small edit to the clock position.
I'm sorry for not seeing it earlier (i did search online, but didnt come across it, could have made my life easier). All i found on the net was an eclair edit of the lockscreen, and based on that, and on what png's were already included on the framework-res.apk files in CM7, i decided to use that obvious choice (default_wallpaper)
Click to expand...
Click to collapse
No prob
What I did was for cm6 and could been used on any resolution, just has to be updated to cm7 and can be easily used as a morph after every nightly.
For cm7 I did this now
im a little lost on how to change the whole lockscreen like your where u have the 4 lock/unlock . how do i get my lockscreen like that. please help
notnice564 said:
im a little lost on how to change the whole lockscreen like your where u have the 4 lock/unlock . how do i get my lockscreen like that. please help
Click to expand...
Click to collapse
Can you be a little more specific? What's going wrong with your case?
1)You need metamorph. Download it from the market.
2) Flash either CustomLockscreen_petsasj.zip (normal clock in lockscreen) or CustomLockscreen_WITHCLOCK.zip (edited clock)
Then for simply changing the picture, use the other script, ChangeLockscreen.zip.
Extract it in Metamorph, insert the picture of your liking in /sdcard/AndroidThemes/drawable/default_wallpaper.jpg (use the mentioned picture sizes depending on MDPI/HDPI)
Edit: Wrote the steps again, should be easier to understand (was in a hurry yesterday, sorry)
gomorrah said:
Just wanted to confirm that this also works on HDPI devices. I built the keyguard XML into my framework on my EVO and it works perfectly.
Click to expand...
Click to collapse
Can you tell my how you did this on your EVO? I have tried applying both ZIPs through metamorph and I always end up with this grass screen. Also, the clock is higher in my image than the one in the original post.
If there is a way to do it through Root Explorer, I don't mind doing...just need to know the steps. Metamorph has never wanted to work correctly on my phone that's why I had abandoned it long ago.
thetaman said:
Can you tell my how you did this on your EVO? I have tried applying both ZIPs through metamorph and I always end up with this grass screen. Also, the clock is higher in my image than the one in the original post.
If there is a way to do it through Root Explorer, I don't mind doing...just need to know the steps. Metamorph has never wanted to work correctly on my phone that's why I had abandoned it long ago.
Click to expand...
Click to collapse
Seems like the xml edits in HDPI phones are a bit off, as the screens are higher, and that makes sense.
Thetaman, i posted an update for HDPI Devices, get that from the first post.
Petsasj,
Thanks for trying to help. I extracted your CustomLockscreen_WITHCLOCKHDPI.zip in Metamorph. I get some kind of error message when extracting in Metamorph, I think, but it flashes so quickly and is a long message I'm not sure what it says or means. Do you get a message?
I then select Pick Exiting Theme and see a CustomLockscreen_WITHCLOCKHDPI folder. I click on it and there is a CustomLockscreen_WITHCLOCKHDPI.xml file and a framework-res file. If I dig into the framework-res file and get to drawable-hdpi and click on it, it shows no files. Screenshot below. However, if I follow the same path through Root Explorer to the same location it shows the default_wallpaper.jpg. Why do I see it in Root Explorer and not in Metamorph? I'm guessing whatever the problem is, this is why when I apply it in Metamorph...it never changes off the Green Grass screen (default Android)?
I have no idea what could be wrong. I'm sorry =/
What can be done is this:
Get your Rom's framework-res.apk, then:
1) Navigate to the HDPI zip file from the first post, and copy the /res/layout folder content.
2) Open your framework-res.apk (the one you extracted from your rom) with Winrar, navigate to /res/layout and paste (this should overwrite the two files)
3) Use a picture of your liking, sized @ 480x766, named it default_wallpaper.jpg and place it in /res/drawable-hdpi
4) After having added those two files in your framework, use adb to adb push your framework back in place
This is how, if you don't know:
Code:
adb remount
adb shell rm /system/framework/framework-res.apk
adb push C:\framework-res.apk /system/framework
adb reboot
You can copy these lines in, so long as the edited framework-res.apk file is in the root of your C:\ drive. Let me know.
Just want to confirm this is working on my G2 running GingerVillian 1.5
Caused a bootloop on my inc running CM7
Is it possible to tell me which changes i have to do in the keyguard_screen_tab_unlock.xml? I want port it for the Milestone CM7 by nadlabak. I've tried to use your version but it ends in reboot loop.
Also to add the content from yours into the MS Version fails. Hopefully u can help me. In attachement the original framework-res.apk from the lastet Version.
TIA
bandit79
downloading now
fckd my dell , via this lockscreen help needed
petsasj said:
After a lot of trial and error, here it is. Pretty simply you will be able to change your lockscreen background to whatever your liking is.
This has been mentioned to be working on both MDPI and HDPI resolutions.
This mod works only for CM7, as it includes the rotary lockscreen code.
IMPORTANT This will alter your framework-res.apk folder, and this means you will lose your current accounts and sync settings. So backup with titanium first (or whatever you use). ALSO, NANDROID TO BE SAFE
I've made 2 versions so far:
1) First version is your normal lockscreen, with altered background. Nothing else is changed.
2) Lockscreen with altered clock. Moved to the top-left to leave more space for your new background to show. Here's how it looks:
FIRST STEP - How to apply Lockscreen for the first time
1) Included are 2 CustomLockscreen .zip files. Choose wether you want the edited clock version or not, then go ahead and download
2) Use either metamorph, or simply overwrite in your own framework-res.apk files the contents of the zip file (if you overwrite, make sure you leave out the .xml file in the ROOT of the zip)
3) Apply Metamorph, or use your own framework-res.apk and push it via adb.
4) Reboot. Note this also changes your home background picture, just simply change it to your normal one. Don't worry, the lockscreen one won't change after you change your home background.
STEP TWO - After having applied the first step, you need to do this to change image everytime you want to
1) Download the ChangeLockscreen.zip
2) Use metamorph to extract the zip then exit metamorph
3) Mount your phone to your pc and place your 320x480(MDPI) or 480x766(HDPI) picture in /sdcard/AndroidThemes/ChangeLockscreen/framework-res/drawable
4) Go back to metamorph, choose "Pick existing theme" and Navigate to the ChangeLockscreen folder, and choose the ChangeLockscreen.xml
5) Apply
6) Reboot
7) Change home wallpaper again.
NOTE Use a 320x480 JPG IMAGE (MDPI) OR 480x766 JPG IMAGE (HDPI) of your liking and place it in /drawable named as default_wallpaper.jpg
IF SOMETHING GOES WRONG
Extract your framework-res.apk from your current rom
Boot in recovery and enable USB toggle
Code:
adb shell mount /system
adb shell rm /system/framework/framwork-res.apk
adb push /the-folder-you-extracted-your-framework-res/framework.res.apk /system/framework
Reboot
NOTES MDPI devices use the normal zips. HDPI devices use the HDPI zips.
If you like this, please THANK away
Contact me
Twitter
Suggestions, problems etcetera, please post here so others can help as well. Let me know if this works for you.
Click to expand...
Click to collapse
I tried to install this lockscreen and i ****ed my dell, it just restart again and again, like blinking screen on dell logo again and again, please help guys tried factory reset via recovery mode,nothing happened
cannot make it....return boot loop on my CM7
any help?
doesnt work with GSB CM7. It either puts it in a bootloop or doesnt change it period.
btw, great surprise with the changelockscreen.zip wallpaper
Cant get this to work on G2 using cm7 rc1 meta freeze when installing the costum lockscreen zip
Sent from my G2 using XDA App =)
Hello
I want to keep things simple and very easy. I will write a 5 step guide for setting up apktool and start modifying your app's or any other android framework. This guide will be strictly for windows users, since setting up and using apktool in windows is the easiest.
So lets begin -
What you need before you learn how to use apktool -
A computer running windows
A working internet connection for downloading the following -
JAVA SDK and JRE
Android SDK
Apktool core tool
Sign apk tool
Basic command prompt commands and path knowledge
A good linux format code editing program like NotePad ++ [Get it from HERE]
STEP 1 - Install JAVA - Go HERE
{
"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"
}
Just go to the above website and download java SDK and JRE.
We mostly use only SDK libraries but JRE is required when you want to modify games or apps like whatsapp. So its best if we install both.
install them in any directory for example C:\ drive and you are good to go to next step 2.
STEP 2 - Install Android SDK- Go HERE
Just go to the above website and download the SDK.
Install it in an easy path. For example - C:\android
The short path will be useful when you are using adb for logcat purposes, since typing in a long path every-time you want to access the adb executable file is painful.
So once you installed the SDK move on to next step 3
STEP 3 - Download Apktool - Go HERE
For downloading apktool related files, you need to go HERE
Download latest apktool version, currenlty 1.5.2
Download the batch file and aapt.exe
Create a folder anywhere in the pc and put all the apktool.jar, aapt.exe and the batch script in that folder. [see screenshot]
This will be the operating folder for you now.
Next move to next step 4
STEP 4 - Using apktool for decompiling anything
Open command prompt
navigate to the folder where you placed apktool.jar, batch script and the aapt.exe [see screenshot]
For this guide i am using a simple framework-res.apk for reference.
Once you are in the folder via cmd prompt, you need to install the file using the " IF " command
type the following command -
Code:
[B]apktool if [I]name-of-the-app[/I] .apk[/B]
For example, once the command is executed correctly, it will look like this -
Code:
[B]apktool if framework-res.apk[/B]
Once the app is installed you need to decompile it.
For decompiling use the command "d". The "d" stands for decompile.
Code:
[B]apktool d [I]name-of-the-app[/I] .apk[/B]
For example -
Code:
[B]apktool d [I]framework-res.apk[/I][/B]
After the app is correctly decompiled, a new folder will be created in the same folder where you placed your app. This contains all the xml's and smali files which can be edited for different mod's.
For example, here's how it will look once the app is decompiled -
Then after you are finished with your modding, you need to recompile your app for using it.
To recompile the app use the following command " B ". The "b" simply means recompile.
Code:
[B]apktool b [I]name-of-the-app-folder[/I][/B]
NOTE - While recompiling the app, you just need to type the name of the folder the app's files contains.
For example -
Code:
[B]apktool b [I]framework-res[/I][/B]
framework-res is the name of the folder
The final modded app will be in the dist folder located inside the original app folder created by apktool.
For example -
Congrats ! If everything went well, you successfully created a modified app !
Now the most important step is below in step 5
NOTE - You MUST follow the step 5. Or else the app wont work and when you try to push it into system, the rom will be stuck in bootloop XD
Click to expand...
Click to collapse
STEP 5 - Signing the apk
to sign an apk download the "sign-apk.rar" from below attachements
extract it to any place.
open a new command prompt and change into the sign-apk directory using cmd
move the modified-unsigned apk into this folder [see screenshot] -
then type the following command -
Code:
[B]java -jar signapk.jar certificate.pem key.pk8 [I]path-of-the-folder-contaning-the-apk .apk path-of-the-new-signed-apk .apk[/I][/B]
For example -
Code:
[B]java -jar signapk.jar certificate.pem key.pk8 [I]framework-res.apk framework-res-signed.apk[/I][/B]
Once compiled, the signed apk will be found in the same folder.
This is FINAL APK.
Simply rename it to the original apk and push it into the system ! DONE !
If you have any errors or problems related to apktool, post them here, I will try to solve them.
STEP 1 : Rooting MAC
If you have a mac, apk manager doesn't work on macs. So, you must use apktool. To set up apktool, you must have root mode enabled on your mac. To do that, simply follow these steps:
Open system preferences
Open accounts
Go to login options
Hit join next to network account server
Select open directory utility
Click the lock at the bottom of the window that pops up and enter an admin password
Then, go to the top bar on your mac, hit edit, and select enable root mode
STEP 2 : SETTING UP APKTOOL
Once you have root mode enabled, you're ready to set up apktool :
From the apktool website, download apktool-latest-version.tar.bz2 and apktool-install-macosx-latest-version.tar.bz2
Next, open terminal type :
Code:
[B]su
tar -C /usr/local/bin -xvf <zipped file name>
tar -C /usr/local/bin -xvf <zipped file name> (for the second file)[/B]
Now to confirm it worked, type "apktool" no quotes
You should get a help menu for apktool
If you got it, you're good to go to next step.
STEP 3 : USING APKTOOL
Now, once you have it set up, you're ready to go! After typing apktool, you'll see the help menu which'll give you the commands available for apktool, but I'll go over the basic ones here.
For installing frameworks or apps
Code:
apktool if
This command will decompile the apk
Code:
apktool d "apk path here"
This command will build an apk from a previously decompiled one
Code:
apktool b "decompiled apk path here"
----------------------------------------------------------
Download the apktool.java file along with other files, as shown above. Extract them to the desktop.
Now open terminal and type line by line :
Note : "android" in all the below commands is my username. So it changes according to your pc name
We are giving root permissions for the 3 files that you extracted above.
Code:
chown -R android:android '/home/android/Desktop/apktool.jar'
press enter
Code:
chown -R android:android '/home/android/Desktop/aapt'
press enter
Code:
chown -R android:android '/home/android/Desktop/apktool'
press enter
Next make all 3 files executable by doing the same thing one at a time pressing enter in between each one:
Code:
sudo chmod +x '/home/android/Desktop/apktool.jar'
after the first it will ask you for your password type it, you shouldnt need it after that for the rest
Code:
sudo chmod +x '/home/android/Desktop/aapt'
Code:
sudo chmod +x '/home/android/Desktop/apktool'
now we need to move all three files to bin folder to do it type this command and enter your password:
Code:
gksudo nautilus
a new window should pop up on the left click on "filesystem/usr/local/bin, then drag all three folders into the bin folder and close it.
APKTOOL is now ready and make your modifications on a linux distro easily
for decompiling - compiling apk, use apk multi tool, waaay simpler. (and stable).
Thanx will read it
Sent from my GT-S5570 using xda app-developers app
dzeig said:
for decompiling - compiling apk, use apk multi tool, waaay simpler. (and stable).
Click to expand...
Click to collapse
yea its easier but i prefer apktool simply...
Any tuto for Mac? :s Dunno how to access use folder to put the apktool in mac
Sent from my GT-S5570 using xda app-developers app
The Alchemist said:
yea its easier but i prefer apktool simply...
Click to expand...
Click to collapse
You really rock! You wrote a while awesome thread just cause one Guy mentioned he couldn't get it up and running and he didn't even ask for help.... you are awesome..,
Sent from my GT-S5570 using Tapatalk 2
Big thanks to this Guy named Alchemist will try install windows here and try It
Sent from my GT-S5570 using xda app-developers app
gabrielking9 said:
Any tuto for Mac? :s Dunno how to access use folder to put the apktool in mac
Sent from my GT-S5570 using xda app-developers app
Click to expand...
Click to collapse
will write that first thing tomo morning...but why not dual boot windows ? can that be done in mac ? i dont know since i never used mac...
The Alchemist said:
will write that first thing tomo morning...but why not dual boot windows ? can that be done in mac ? i dont know since i never used mac...
Click to expand...
Click to collapse
Yeah it can but my father... but I can with parallels app without him discover I just need found one cracked :x
Sent from my GT-S5570 using xda app-developers app
gabrielking9 said:
Yeah it can but my father... but I can with parallels app without him discover I just need found one cracked :x
Sent from my GT-S5570 using xda app-developers app
Click to expand...
Click to collapse
lol u r installing windows...not watching porn XD...just tell him i need it for studies or watever...
mac tutorial updated
Hey i am stuck at the part
" tar -C /usr/local/bin -xvf <zipped file name> "
What i need to do? I have the "apktool-install-macosx-r05-ibot.tar.bz2" file and the folder "apktool-install-macosx-r05-ibot" which one should i put in it? and i need put it with directory For example: /user/gabriel/desktop/apktool-install-macosx-r05-ibot ??? and i need put this "><" ??????
i think the u need to put the contents of that tar file in bin folder and not the zip..
and could u unquote my post ? its a bit annoying to scroll down..
The Alchemist said:
i think the u need to put the contents of that tar file in bin folder and not the zip..
and could u unquote my post ? its a bit annoying to scroll down..
Click to expand...
Click to collapse
Done!
I need to put this " < >" ????
1st try with <> if it doesnt work, just remove and execute..
sorry i am not able to remember bcoz i just checked my frnds laptop at the office when he was working...so i had to hurry things up..
Having this problem
tar: could not chdir to '/usr/local/bin'
gabrielking9 said:
having this problem
Code:
tar: could not chdir to '/user/local/bin'
Sorry i made a big mistake lol
Click to expand...
Click to collapse
are u rooted ? and did u try with <> removed and unremoved ?
EDIT: Tried some solutions and did not worked :/ dunno why i am stuck on this part
Thanks, this tutorial is really simple