[APP MOD REQ] Weather lockscreen background - HTC One X

I have always loved the weather lockscreen but the only thing that sets me back to not apply it is the background of it..
Can anyone please change the background to transparent so that it can show the lockscreen wallpaper or atleast give it a more gorgeous looking background??
I know there are awesome modders and themers with us here..
The wallpaper background image inside is a
.m10 file..
Here's the apk from stock 2.17 firmware..
http://db.tt/Gyi2SqgW
Thanks in advance..
Sent from my HTC One X using Tapatalk 2

push
same REQ
but for all 4 (IdleScreen_Photo, idlescreen_social, IdleScreen_Stock_Yahoo, IdleScreen_Weather)
Found them in system/app (in all one x sense roms i think...)
Anyone?
Sending it to YAHWEH! Insta-Prayer on all Devs-Computers...

sumeshd said:
I have always loved the weather lockscreen but the only thing that sets me back to not apply it is the background of it..
Can anyone please change the background to transparent so that it can show the lockscreen wallpaper or atleast give it a more gorgeous looking background??
I know there are awesome modders and themers with us here..
The wallpaper background image inside is a
.m10 file..
Here's the apk from stock 2.17 firmware..
http://db.tt/Gyi2SqgW
Thanks in advance..
Sent from my HTC One X using Tapatalk 2
Click to expand...
Click to collapse
Well, without the required tools avalible to edit the images for the background, all you can do is disable the background all together. This leaves it solid black(no wallpaper) Here it is. I just edited it & tested on 2.17 firmware.
Just push to system/app & set permissions.

Take a look into the Idlescreen_base.apk...
I think there is nothing that looks like a m10 File for a Backgoundimage...
so...
after deleting the 3 m10 files...
what about xml or smali editing to set the link to the selected Sense-BG?

rayford85 said:
Well, without the required tools avalible to edit the images for the background, all you can do is disable the background all together. This leaves it solid black(no wallpaper) Here it is. I just edited it & tested on 2.17 firmware.
Just push to system/app & set permissions.
Click to expand...
Click to collapse
Can it be edited with m.10 tools from virtuous team?I mean some background will be better than no background..
Sent from my HTC One X using Tapatalk 2

It fails...
Only one xml file decoded from each m10, with only the name in it...

Push
http://www.virtuousrom.com/p/ten-studio.html
Now we have x10 files... and I dont know how to open/edit that...
in Ten Studio it is only XML...
some Jpg files named... but where will i find one...
If my english is bad... sry i'm german...

sgtrhd said:
Push
http://www.virtuousrom.com/p/ten-studio.html
Now we have x10 files... and I dont know how to open/edit that...
in Ten Studio it is only XML...
some Jpg files named... but where will i find one...
If my english is bad... sry i'm german...
Click to expand...
Click to collapse
Even I have that..but I am not near a pc for another week to try editing it..that's y I posted in here so someone could help but no theme dev is interested unfortunately
Sent from my HTC One X using Tapatalk 2

sumeshd said:
Even I have that..but I am not near a pc for another week to try editing it..that's y I posted in here so someone could help but no theme dev is interested unfortunately
Sent from my HTC One X using Tapatalk 2
Click to expand...
Click to collapse
Can I do to u by tomorrow...u can just delete the pic inside if u
change the extension to .zip and find the pic and delete it...i think u can't delete the pic but u can extract but can't replace it back
Change them to .apk back again
Team Fire

razer1224 said:
Can I do to u by tomorrow...u can just delete the pic inside if u
change the extension to .zip and find the pic and delete it...i think u can't delete the pic but u can extract but can't replace it back
Change them to .apk back again
Team Fire
Click to expand...
Click to collapse
When apk renamend to zip you get the m10 files from assets land and port...
the Background-data in the "zip" is M10! only prewiev is jpg...
When opening the port/back_blue m10 in Ten Studio there is a "X10" File:
Code:
<m10 Filename="back_blue.m10" Version="2" Header="0E00000001000000">
<FxDefaultContainer Header="0x72aa706b" />
<FxDefaultContainer Header="0x150a8d11" />
<FxDefaultContainer Header="0x1d71483f" />
<FxDefaultContainer Header="0x6335ad0b" />
<FxDefaultContainer Header="0x1351047f" />
<FxDefaultContainer Header="0x41c0ddcf" />
<FxDefaultContainer Header="0x45821107" />
<FxDefaultContainer Header="0x20fb52a9" />
<FxDefaultContainer Header="0xdc10c5e">
<Childs>
<FxTimeLine Name="back_blue_p" Header="0x7c89ba8b" Type="0x19930c9c">
<Properties>
<String Name="Name" Header="239748898" IDC="true">back_blue_p</String>
<Bool Name="Visible" Header="239748898" IDC="true">true</Bool>
<Int Name="ID" Header="239748898" IDC="true">-1</Int>
<Float3 Name="Position" Header="239748898" IDC="true">0:0:0</Float3>
<Float3 Name="CenterScale" Header="239748898" IDC="true">1:1:1</Float3>
<Float3 Name="Offset" Header="239748898" IDC="true">0:0:0</Float3>
<Int2 Name="Size" Header="239748898" IDC="true">800:1280</Int2>
<Bool Name="Hidden" Header="239748898" IDC="true">false</Bool>
</Properties>
<Childs>
<FxDynamicImage Name="back_blue_p.jpg" Header="0x7c89ba8b" Type="0x51a63a9c">
<Properties>
<String Name="Name" Header="239748898" IDC="true">back_blue_p.jpg</String>
<Bool Name="Visible" Header="239748898" IDC="true">true</Bool>
<Int Name="ID" Header="239748898" IDC="true">0</Int>
<Float3 Name="Position" Header="239748898" IDC="true">400:640:0</Float3>
<Float3 Name="CenterScale" Header="239748898" IDC="true">1:1:1</Float3>
<Float3 Name="Offset" Header="239748898" IDC="true">-400:-640:0</Float3>
</Array>
</Array>
</Properties>
<Childs>
</Childs>
</FxDynamicImage>
</Childs>
</FxTimeLine>
</Childs>
</FxDefaultContainer>
</m10>
back_blue_p.jpg ???? Where is it????
back_blue_l.jpg
back_gray_p.jpg
back_gray_l.jpg
back_night_p.jpg
back_night_l.jpg
next: find/extract

Related

[Q] Transparent Statusbar/Dropdown Menu Gingerbread

Hello People!
I was wondering if someone knows if there is someone who can make a semi-transparent statusbar and dropdown menu? Or is there a ''how to'', to make it my own?
Hope this thread is on the right place.
Greets
[B-shorty]
Transparent status bar when on home screen on launcher pro is something I'm dying for since a very very long time...
you can make the background of the statusbar. The file ist in the framework-res.apk. Named "status_bar_background.9.png"
I uploaded an example for you
Ok thank you!
Had how can i implement and apply this adjustment?
Thank you!
Gunny© said:
you can make the background of the statusbar. The file ist in the framework-res.apk. Named "status_bar_background.9.png"
I uploaded an example for you
Click to expand...
Click to collapse
Doesn't work for gingerbread.
Have a look at SystemUI.apk/res/layout/status_bar_tracking.xml
scheichuwe said:
Doesn't work for gingerbread.
Have a look at SystemUI.apk/res/layout/status_bar_tracking.xml
Click to expand...
Click to collapse
How can i adjust that xml file? I'm totally new in adjusting such files.
Thank you!
B_sHorTy said:
How can i adjust that xml file? I'm totally new in adjusting such files.
Thank you!
Click to expand...
Click to collapse
scheichuwe is right. Change the status_bar_tracking.xml to point the background to a drawable.. Something like :-
<View android:background="@drawable/shade_bg" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />
Then make your drawable transparent. I've attached the one I use but you can always make your own if you want.
Hope this helps..
EDIT: The attachment should be called shade_bg.png. It seems to have been renamed when I attached it????
Rimmer1966 said:
scheichuwe is right. Change the status_bar_tracking.xml to point the background to a drawable.. Something like :-
<View android:background="@drawable/shade_bg" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />
Then make your drawable transparent. I've attached the one I use but you can always make your own if you want.
Hope this helps..
EDIT: The attachment should be called shade_bg.png. It seems to have been renamed when I attached it????
Click to expand...
Click to collapse
Do i need to past those lines in that XML file? how can i apply the changes i made?
Thanks!
Is this project finished?
Is it possible someone send modified xml file for transparent status bar in gingerbread ( 2.3.4)?
I would like that too..
I tried to make it my self but with no success.
Every time I changed something, the statusbar was gone. (like the whole status bar)
any progress on this?
same question.. somebody know?

[DEV]Lockscreen without icons[WFSDev-Team]

Hello all,
is it possible with the stock android rom and the unlocked bootloader and root, that the sense 3.0 lockscreen is without the little icons? I don't use this icons and they made the unlockprocess slower, so it isn't much smooth.
UPDATE 14.01:
Now i have tried something and try to edit the HtcLockScreen.apk
In the file /res/values/public.xml:
Code:
[...]
<public type="layout" name="lockscreen_shortcut1" id="0x7f03000c" />
<public type="layout" name="lockscreen_shortcut2" id="0x7f03000d" />
<public type="layout" name="lockscreen_shortcut3" id="0x7f03000e" />
<public type="layout" name="lockscreen_shortcut4" id="0x7f03000f" />
[...]
If i delete these lines and delete the lockscreen_shortcut1.xml to lockscreen_shortcut2.xml in the /res/layout folder the apktool says, that line 115:
Code:
<public type="layout" name="sim_status_view" id="0x7f03001a" />
has an invalid length.
Then i have tried to delete the content of the lockscreen_shortcut1.xml and compile again with apktool.
Now the compile process was ok, but after i push the lockscreen to my phone the htc gingerbread stock lockscreen comes and not the sense 3.0 lockscreen without apps.
Here i have uploaded the whole apktool extracted files:
http://marvelics.pytalhost.com/data/files/theme/htc_lockscreen_files.zip
Can somebody help?
Ask jikantaru. He edited the lockrings, maybe he can edit it without the icons, then new lockring sucks.
Ps. you could use android kitchen
In android kitchen how i can edit the lockscreen?
Sent from my HTC Wildfire S A510e using XDA App
Download es file explorer, go to settings enable root and system read write.
Then go to system/app
Rename htclockscreen.apk to htclockscreen.apk.bak
Rename htclockscreen.odex to htclockscreen.odex.bak
Reboot.
Reverse order if you want to go back to stock.
Then i have the Stock Android Lockscreen, right. But i want the ring like in HTC Sense 3.0, but without the icons.
Bad answer
You cant do that, but does it really bother you?
You can always give an app a transparant icon, and put the app in the lockscreen then.
Google is your friend for that!
And you cant edit lockscreen in uot kitchen.
I will soon (few days) upload a deodexed rom which can be used as a base for theming with apktool or android utility.
In fact, the rom is made and tested already, but I cant post in the dev section yet.
Aaaagh!!! Hate that!

[MOD][DIY] Get Working MMS + SMS Auto-Split for CM10.1 and AOSP ROMs

So I've made this mod for myself for a long time now, I've had numerous requests from people to add this to CM's source, I have no idea nor interest in doing that but if anyone out there wants to, go ahead.
Anyway this mod is for users of CM 10.1 nightly's and other AOSP based ROMs (PACMan, Slim ROM, AOKP, etc) . I haven't used it in a while so I'm not sure if this is even needed.
This mod will get MMS working properly and will also allow you to send multiple messages without having to stop at 160 characters per message.
You need apktool to decompile the apk, I use this version (apktool.jar and aapt.exe)
-First, get these two apk's from your current CM 10.1 build onto your computer
*/system/app/Mms.apk
*/system/framework/framework-res.apk
-Next, place those apk's in your apktool directory. Open up a command prompt, CD your apktool folder and issue the following commands
Code:
apktool if framework-res.apk
apktool d Mms.apk
-In your decompiled Mms.apk folder, navigate to /res/xml/ and replace the mms_config.xml with this one
-Once that xml is replaced recompile the Mms.apk. In case you're not too familiar with apktool you do so my issuing this command
Code:
apktool b Mms Mms-mod.apk
-In your apktool folder you should see the Mms-mod.apk. Drag and drop the META-INF folder and AndroidManifest.xml from the original Mms.apk into your Mms-mod.apk
-Lastly, rename your modified apk to just Mms.apk and make a flashable zip for yourself. Here is a DIY I wrote up a while back for that.
I'm not on XDA much anymore so I won't take requests to this for every nightly, however if someone wants to add this to CM's code feel free!
Happy Holidays
if the link for the modified mms_config.xml isn't working use this:
Code:
<?xml version="1.0" encoding="utf-8"?>
<mms_config version="3">
<int name="maxMessageSize">307200</int>
<int name="maxImageHeight">480</int>
<int name="maxImageWidth">640</int>
<string name="userAgent">SAMSUNG-SPH-L710-Mms/2.0</string>
<bool name="enableMultipartSMS">true</bool>
<bool name="enableSplitSMS">true</bool>
<string name="uaProfUrl">http://device.sprintpcs.com/Samsung/</string>
</mms_config>
This doesn't seem to work for me. Got it all put together, pushed it to my device, and it runs but doesn't show the extra options.
bmxchampga said:
This doesn't seem to work for me. Got it all put together, pushed it to my device, and it runs but doesn't show the extra options.
Click to expand...
Click to collapse
It works, there's really no new options within the Settings menu besides the add a counter split, which folks should enable just to be safe.
Sent from my SPH-L710 using Tapatalk 2
nice work thank you
Anyway to get a zip for this so it's flashable? I'm not experience with code edits
interhawk1 said:
Anyway to get a zip for this so it's flashable? I'm not experience with code edits
Click to expand...
Click to collapse
Seconded, I'm currently at work and to be provided with a flashable zip would be awesome and I'd be eternally grateful.
This was the only thing I couldnt get working on this version of the rom but unfortunately the instructions are only for seasoned veterans and theres no way for anyone to learn anything here. Surely if nobodys going to teach people the full method then someone can make this a flashable zip and upload it.
xtool said:
This was the only thing I couldnt get working on this version of the rom but unfortunately the instructions are only for seasoned veterans and theres no way for anyone to learn anything here. Surely if nobodys going to teach people the full method then someone can make this a flashable zip and upload it.
Click to expand...
Click to collapse
Lol. What are you having trouble with? The only pre req is you have apktool set up. If you wanna get apktool set up, Google "How to Set up apktool Windows" (or Mac or whatever you have)
I gave a link to the apktool I use and I even typed out the commands needed. But don't say you can't learn anything here; when I was all into development I learned about 75% of easy mods on this site.
Sent from my SPH-L710 using Tapatalk 2
I've read it a bunch of times and haven't a clue where to start.
xtool said:
I've read it a bunch of times and haven't a clue where to start.
Click to expand...
Click to collapse
I edited my post above. The only pre req is you have apktool set up. Start there. I'll be @ my laptop later n can post a link to a tutorial for that. You only need to download JAVA, then use the link in my original post to get the latest apktool.jar and aapt.exe
Sent from my SPH-L710 using Tapatalk 2
Alright here is a guide on how to set up apktool (Windows)
Download JAVA found here. If you're not sure which version of Windows you have (x64 or x86) look under System Info, it'll be under System Type
After you install JAVA navigate to C:\Users\Owner (*Note: "Owner" can be your computer name. ex: C:\Users\Steve\)
Create a folder called apktool
Next, download this package I made for Windows users, it has the latest apktool files for Windows users
Extract it using 7-Zip
Open the extracted folder and copy/paste all of the contents into your C;\Users\Owner\apktool folder
Then follow the instructions in the OP
As soon as you open the command prompt type this
Code:
cd apktool
Then follow the rest as is. If you're having issues getting the framework-res.apk and Mms.apk from your phone to your computer you can email them to yourself or upload them to dropbox or some other file sharing site then download them to your computer
Thank you for the tutorial and how to unpackage (decompress) apks.
I did this for the JellyBean [4.2.1] Beta 2 Rom, got the MMS.APK outta there.
APKTooled it, added the splitsms to true.
Repackaged
Did the zip tutorial and made the zip.
Flashed the zip
It still doesn't auto split.
Any suggestions?
My MMS config:
"<?xml version="1.0" encoding="utf-8"?>
<mms_config version="3">
<int name="maxMessageSize">307200</int>
<int name="maxImageHeight">480</int>
<int name="maxImageWidth">640</int>
<bool name="enableMultipartSMS">true</bool>
<bool name="enableSplitSMS">true</bool>
<string name="userAgent">SAMSUNG-GT-I9100-Mms</string>
<string name="uaProfUrl">http://wap.samsungmobile.com/uaprof/GT-I9100.xml</string>
</mms_config>"
MadDucker said:
Thank you for the tutorial and how to unpackage (decompress) apks.
I did this for the JellyBean [4.2.1] Beta 2 Rom, got the MMS.APK outta there.
APKTooled it, added the splitsms to true.
Repackaged
Did the zip tutorial and made the zip.
Flashed the zip
It still doesn't auto split.
Any suggestions?
My MMS config:
"<?xml version="1.0" encoding="utf-8"?>
<mms_config version="3">
<int name="maxMessageSize">307200</int>
<int name="maxImageHeight">480</int>
<int name="maxImageWidth">640</int>
<bool name="enableMultipartSMS">true</bool>
<bool name="enableSplitSMS">true</bool>
<string name="userAgent">SAMSUNG-GT-I9100-Mms</string>
<string name="uaProfUrl">http://wap.samsungmobile.com/uaprof/GT-I9100.xml</string>
</mms_config>"
Click to expand...
Click to collapse
The mms_config.xml is wrong, I have the correct one for Sprint in the second post
Sent from my SPH-L710 using Tapatalk 2
fergie716 said:
The mms_config.xml is wrong, I have the correct one for Sprint in the second post
Sent from my SPH-L710 using Tapatalk 2
Click to expand...
Click to collapse
Do the differences have to be in order?
Yours:
<string name="userAgent">SAMSUNG-SPH-L710-Mms/2.0</string>
<bool name="enableMultipartSMS">true</bool>
<bool name="enableSplitSMS">true</bool>
<string name="uaProfUrl">http://device.sprintpcs.com/Samsung/</string>
vs a recompiled one:
<bool name="enableMultipartSMS">true</bool>
<bool name="enableSplitSMS">true</bool>
<string name="userAgent">SAMSUNG-SPH-L710-Mms/2.0</string>
<string name="uaProfUrl">http://device.sprintpcs.com/Samsung/</string>
because I did it like the bottom one but it still didn't work.
MadDucker said:
Do the differences have to be in order?
Yours:
<string name="userAgent">SAMSUNG-SPH-L710-Mms/2.0</string>
<bool name="enableMultipartSMS">true</bool>
<bool name="enableSplitSMS">true</bool>
<string name="uaProfUrl">http://device.sprintpcs.com/Samsung/</string>
vs a recompiled one:
<bool name="enableMultipartSMS">true</bool>
<bool name="enableSplitSMS">true</bool>
<string name="userAgent">SAMSUNG-SPH-L710-Mms/2.0</string>
<string name="uaProfUrl">http://device.sprintpcs.com/Samsung/</string>
because I did it like the bottom one but it still didn't work.
Click to expand...
Click to collapse
I'm not sure, I did use CM 10.1 last night for a bit and this worked. I'm back on a TW thing right nw but you can try replacing the entire mms_config.xml with the one I have in the OP. Just d/l the xml and overwrite the one in /res/xml
If tht doesn't do it I'll check out the new CM 10.1 build tomorrow and see if anything changed
Sent from my SPH-L710 using Tapatalk 2
I just made this mod for the latest build 1-5-13 and it works fine. Just follow directions to a T, including using the mms_config.xml in the Op
Also, after you reboot open up the messaging app and go to its settings, select Split Counter and Strip Unicode. But yea I tested it a bunch of times and it works fine
Sent from my SPH-L710 using Tapatalk 2
Here is a flashable zip for this mod, includes a framework-res mod as well. Made for the CM 10.1 build only (1-5-13)
http://db.tt/FcgSsazo
Sent from my SPH-L710 using Tapatalk 2
fergie716 said:
Here is a flashable zip for this mod, includes a framework-res mod as well. Made for the CM 10.1 build only (1-5-13)
http://db.tt/FcgSsazo
Sent from my SPH-L710 using Tapatalk 2
Click to expand...
Click to collapse
Man, I feel stupid now.
In your zip, you added the framework APK. That was probably important in adding to the flashable zip right?
Edit*
OMG It was even worse than that. I was addding the APK under the data/app folder instead of system/app.
Thanks for the zip, thanks for the info. Gave you as much thanks as I could.
Anyway to fix MMS rotation?
Sent from my SPH-L710 using xda app-developers app

[Q] Is it possible to add another .apk to settings.apk?

Hi,
Can anyone tell me about adding an .apk or adding its features to settings.apk.
I have added togglebar to MMB-ICS 4.0.4 but it requires an apk to modifiy it and i want to add this apk or its features into system.apk 'cos i don't want to app to be seen in the menu.is it possible to do that.
ThankYou :good:
toorentz said:
Hi,
Can anyone tell me about adding an .apk or adding its features to settings.apk.
I have added togglebar to MMB-ICS 4.0.4 but it requires an apk to modifiy it and i want to add this apk or its features into system.apk 'cos i don't want to app to be seen in the menu.is it possible to do that.
ThankYou :good:
Click to expand...
Click to collapse
It's possibble. You put the app in app folder and in one of xml file in settings.apk you add a line for run this app.
And I know is possibble to hide this application from menu but I do not know how to do it.
WYPIERDAALAAC said:
It's possibble. You put the app in app folder and in one of xml file in settings.apk you add a line for run this app.
And I know is possibble to hide this application from menu but I do not know how to do it.
Click to expand...
Click to collapse
which app folder and which xml file????
Ask saldymhmd he did it in his jellybread v4 rom.
Sent from my GT-S5660 using xda app-developers app
toorentz said:
which app folder and which xml file????
Click to expand...
Click to collapse
I think I understand you.
For example if you want have LiveWallpapersPicker.apk in Settings, put this app in system/app folder next
recompile the Settings.apk and go to Settings\res\xml.
Find the xml file (in this case) about Wallpaper and write a line.
For example
Code:
<PreferenceScreen android:title="Live Wallpaper" android:summary="LiveWallpaperPicker">
<intent android:targetPackage="com.android.wallpaper.livepicker" android:action="android.intent.action.MAIN" android:targetClass="com.android.wallpaper.livepicker.LiveWallpaperListActivity" />
</PreferenceScreen>
all lines you can find in AndroidManifest.xml file in app folder.
If this is not what you meant I'm sorry.
WYPIERDAALAAC said:
I think I understand you.
For example if you want have LiveWallpapersPicker.apk in Settings, put this app in system/app folder next
recompile the Settings.apk and go to Settings\res\xml.
Find the xml file (in this case) about Wallpaper and write a line.
For example
Code:
<PreferenceScreen android:title="Live Wallpaper" android:summary="LiveWallpaperPicker">
<intent android:targetPackage="com.android.wallpaper.livepicker" android:action="android.intent.action.MAIN" android:targetClass="com.android.wallpaper.livepicker.LiveWallpaperListActivity" />
</PreferenceScreen>
all lines you can find in AndroidManifest.xml file in app folder.
If this is not what you meant I'm sorry.
Click to expand...
Click to collapse
Thanks,thats what i wanted to know
WYPIERDAALAAC said:
Code:
<PreferenceScreen android:title="Live Wallpaper" android:summary="LiveWallpaperPicker">
<intent android:targetPackage="com.android.wallpaper.livepicker" android:action="android.intent.action.MAIN" android:targetClass="com.android.wallpaper.livepicker.LiveWallpaperListActivity" />
</PreferenceScreen>
all lines you can find in AndroidManifest.xml file in app folder.
If this is not what you meant I'm sorry.
Click to expand...
Click to collapse
I can't find the required xml file to edit.Actually the apk i want to put in setting is a 3rd part.need help here.
toorentz said:
I can't find the required xml file to edit.Actually the apk i want to put in setting is a 3rd part.need help here.
Click to expand...
Click to collapse
settings.xml can be.
like for launcher
Code:
<com.android.settings.IconPreferenceScreen android:title="@string/launcher_settings_title" android:key="launcher_settings" settings:icon="@drawable/ic_settings_launcher">
<intent android:targetPackage="com.android.launcher" android:action="android.intent.action.MAIN" android:targetClass="com.android.launcher.MyLauncherSettings" />
</com.android.settings.IconPreferenceScreen>
in this case you must add icon in drawable-mdpi and name in the line.
Just try

[Guide] Add OGBatteryMod to your ROM

I found this guide here and this is what I did differently from it to make this work for us. You can use the linked file to click an app to change the icon or you can add it into settings in your rom. For those that don't know what this does this probably isn't the thread for you. Just wait until you see it popping up in the roms you use. This should work universally for ND8 builds.
http://forum.xda-developers.com/showthread.php?t=2730108
Now instead of following all of his steps and not finding what you're searching for I will simplify this some to make it quicker. You will want to search for this and replace it throughout the smali file in your decompiled systemui.apk (\SystemUI\smali\com\android\systemui\statusbar\ph one\PhoneStatusBar.smali)
Find all instances of
Code:
Lcom/android/systemui/statusbar/policy/BatteryController;
and replace with
Code:
Lcom/ghareeb/BatteryMod/BatteryController;
Then open (\SystemUI\res\layout\status_bar.xml) and find [This may already be changed if you used tdunham's 1% battery mod]
Code:
<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="12.0dip" android:layout_height="18.0dip" android:layout_marginBottom="0.33000004dip" android:layout_marginStart="5.0dip" />
and replace it with
Code:
<ImageView android:gravity="center" android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="0.0dip" android:layout_marginStart="2.0dip" />
Now most importantly you need to add these smali files to your systemui so they're in (systemui/smali/com/ghareeb/BatteryMod)
http://forum.xda-developers.com/attachment.php?attachmentid=2706746&stc=1&d=1398368939
Then add the OGBatterymod.apk of your choice to system/app. I didn't provide one in this guide sorry but maybe I will upload one eventually. You can easily look for one to add, all the old ones should work.
To add it to secsettings under display
Decompile secsettings.apk and open (\SecSettings\res\xml\display_settings.xml)
Find
Code:
<PreferenceScreen android:title="@string/notification_panel_title" android:key="notification_panel_edit" android:fragment="com.android.settings.NotificationPanelMenu" />
Add this under that line
Code:
<PreferenceScreen android:title="@string/battery_mod" android:summary="@string/battery_mod_desc">
<intent android:targetPackage="com.ghareeb.battery" android:action="android.intent.action.MAIN" android:targetClass="com.ghareeb.battery.Settings" />
</PreferenceScreen>
Now open (\SecSettings\res\values\string.xml) and add this
Code:
<string name="battery_mod">OGBattery Mod</string>
<string name="battery_mod_desc">Change battery icon and charging animation.</string>
For those who don't want to add this to settings for some reason you can find one with the icon so you can just open the app here: http://forum.xda-developers.com/showthread.php?t=2758088
Thanks to @OsamaGhareeb and @meawww also @axel06 for his that I linked with the icon instead of having to have it in settings if anyone would like to do it this way.
Dude you are awesome! I can't wait to get on this. Have to wait till the weekend though.
BTW this works great! Thanks again.
talkingmonkeys said:
I found this guide here and this is what I did differently from it to make this work for us. You can use the linked file to click an app to change the icon or you can add it into settings in your rom. For those that don't know what this does this probably isn't the thread for you. Just wait until you see it popping up in the roms you use. This should work universally for ND8 builds.
http://forum.xda-developers.com/showthread.php?t=2730108
Now instead of following all of his steps and not finding what you're searching for I will simplify this some to make it quicker. You will want to search for this and replace it throughout the smali file in your decompiled systemui.apk (\SystemUI\smali\com\android\systemui\statusbar\ph one\PhoneStatusBar.smali)
Find all instances of
Code:
Lcom/android/systemui/statusbar/policy/BatteryController;
and replace with
Code:
Lcom/ghareeb/BatteryMod/BatteryController;
Then open (\SystemUI\res\layout\status_bar.xml) and find [This may already be changed if you used tdunham's 1% battery mod]
Code:
<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="12.0dip" android:layout_height="18.0dip" android:layout_marginBottom="0.33000004dip" android:layout_marginStart="5.0dip" />
and replace it with
Code:
<ImageView android:gravity="center" android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="0.0dip" android:layout_marginStart="2.0dip" />
Now most importantly you need to add these smali files to your systemui so they're in (systemui/smali/com/ghareeb/BatteryMod)
http://forum.xda-developers.com/attachment.php?attachmentid=2706746&stc=1&d=1398368939
Then add the OGBatterymod.apk of your choice to system/app. I didn't provide one in this guide sorry but maybe I will upload one eventually. You can easily look for one to add, all the old ones should work.
To add it to secsettings under display
Decompile secsettings.apk and open (\SecSettings\res\xml\display_settings.xml)
Find
Code:
<PreferenceScreen android:title="@string/notification_panel_title" android:key="notification_panel_edit" android:fragment="com.android.settings.NotificationPanelMenu" />
Add this under that line
Code:
<PreferenceScreen android:title="@string/battery_mod" android:summary="@string/battery_mod_desc">
<intent android:targetPackage="com.ghareeb.battery" android:action="android.intent.action.MAIN" android:targetClass="com.ghareeb.battery.Settings" />
</PreferenceScreen>
Now open (\SecSettings\res\values\string.xml) and add this
Code:
<string name="battery_mod">OGBattery Mod</string>
<string name="battery_mod_desc">Change battery icon and charging animation.</string>
For those who don't want to add this to settings for some reason you can find one with the icon so you can just open the app here: http://forum.xda-developers.com/showthread.php?t=2758088
Thanks to @OsamaGhareeb and @meawww also @axel06 for his that I linked with the icon instead of having to have it in settings if anyone would like to do it this way.
Click to expand...
Click to collapse
Great guide man. I've been trying to get this mod going using some of the other guides out there, but no luck. Glad I found this. A couple of questions; I don't see a \ph one\ folder in my statusbar smali. Is that typo? Should it be: \SystemUI\smali\com\android\systemui\statusbar\PhoneStatusBar.smali. If so, I followed all steps but I get the following error when trying to recompile. Is it a syntax error?
Edit: Sorry about the path question. Dummy me. As for the recompile error, I think it has something to do with one of the smali files in the Ghareeb zip?
nyfl2004 said:
Great guide man. I've been trying to get this mod going using some of the other guides out there, but no luck. Glad I found this. A couple of questions; I don't see a \ph one\ folder in my statusbar smali. Is that typo? Should it be: \SystemUI\smali\com\android\systemui\statusbar\PhoneStatusBar.smali. If so, I followed all steps but I get the following error when trying to recompile. Is it a syntax error?
Edit: Sorry about the path question. Dummy me. As for the recompile error, I think it has something to do with one of the smali files in the Ghareeb zip?
Click to expand...
Click to collapse
Try using a different apktool. I think I used 2 beta. The different apk tools use different parameters and I can't remember exactly what you need to change it to for it to recompile just this minute
talkingmonkeys said:
Try using a different apktool. I think I used 2 beta. The different apk tools use different parameters and I can't remember exactly what you need to change it to for it to recompile just this minute
Click to expand...
Click to collapse
Thanks man. I can recompile your edits with no problem. I can't recompile once I add the Ghareeb smali files. I'll keep trying. Thanks again..
nyfl2004 said:
Thanks man. I can recompile your edits with no problem. I can't recompile once I add the Ghareeb smali files. I'll keep trying. Thanks again..
Click to expand...
Click to collapse
Try tickle my android. Chad suggested it to me and it worked. You can send me the file too and I'll have a look. Might not have a chance until Thursday to look at it but I think I know whats wrong its just explaining it drunk isn't too easy
talkingmonkeys said:
Try tickle my android. Chad suggested it to me and it worked. You can send me the file too and I'll have a look. Might not have a chance until Thursday to look at it but I think I know whats wrong its just explaining it drunk isn't too easy
Click to expand...
Click to collapse
Thanks man. I'll give Trickle my Android a shot later after work. If I can't manage, I'll send you the file. I really appreciate your help!

Categories

Resources