[Q] Is it possible to add another .apk to settings.apk? - Samsung Galaxy Gio GT-S5660

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

Related

[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!

[APP MOD REQ] Weather lockscreen background

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

[GUIDE] Proximity Sensor to Lockscreen (UPDATE! less battery consumption)

Lock your Galaxy Young Like a Boss
​
THREAD UPDATED
I manager to do this (and think of this) when I type *#*#0588#*#* on dialer.
It gives me an idea to go to lockscreen using our proximity sensor. This will also
avoid you to use the power button frequently, because power button is easy to
be broken
Update:​Less battery consumption! hehe. How? I catch intents if the screen was off or on,
if the screen is off, it unregisters the proximity so it will not drain your batt
when your phone is on your pocket, or any tiny place that will always
use the proximity sensor. It just activates when screen is on.
Watch this video on how this thing work:
https://www.youtube.com/watch?v=OH3j44UUTgM
WARNING! :
Doing this guide makes your battery to drain
faster than before. (Because Sensor is always active).​
Click to expand...
Click to collapse
​
Steps:
1.) Decompile SystemUI.apk
2.) Extract ProximityLock.zip on smali folder.
3.) Go to res/layout/status_bar.xml and add this code below line with an @id/icons:
Code:
<com.tenten.SensorLock android:layout_height="0.0dip" android:layout_width="0.0dip" />
4.) Recompile SystemUI.apk.
5.) Install CustomizableParts.apk to enable/disable it.
6.) Flash and Do some action like a boss. (Dont forget to jump high xD) if not working, please post a logcat!
Java source: (OUTDATED)https://github.com/tentenponce/Proximity_and_Shake/tree/Gingerbread
Credits
StackOverflow.com
*#*#0588#*#* Samsung Code xD
LenoxDevs
PotatoInc​
Reserve for more actions
EDIT: Actions were canceled.
Play/Pause: Proximity detects two times, so it just pause then play again music and vice versa. (It f*cks me).
STILL feel free to suggest what kind of action on proximity except going to lockscreen. Make sure it will be good/useful (And also make sure i can do it, because im not a magician and will just magic it for you xD)
wow! gonna try it
EDIT: works great! thanks..
waiting for the next update
This is too awesome
Thanks sir :good:
tentenponce said:
Lock your Galaxy Young Like a Boss
​Watch this video on how this thing work: https://www.youtube.com/watch?v=OH3j44UUTgM
How I made it: Type *#*#0588#*#*. This thing inspires me to do this xD
Steps:
1.) Decompile SystemUI.apk
2.) Extract ProximityLock.zip on smali folder.
3.) Go to res/layout/status_bar.xml and add this code below line with an @id/icons:
Code:
<com.tenten.SensorLock android:layout_height="0.0dip" android:layout_width="0.0dip" />
4.) Recompile SystemUI.apk.
5.) Install CustomizableParts.apk to enable/disable it.
6.) Flash and Do some action like a boss. (Dont forget to jump high xD) tell me if not working.
Credits
StackOverflow.com
*#*#0588#*#* Samsung Code xD
LenoxDevs
PotatoInc​
Click to expand...
Click to collapse
Freaking awesome man! Could you please make a single app ? For this mod? I MEAN, without the other options of the other mods of yours I hope you can. THANKS FOR THIS MOD. (Y)
Thx. it`s work for my LG P713 4.1.2
Pls make app for this mod without the other options of the other mods of yours
And can you make Proximity Unlock?
RikudouSennin said:
Freaking awesome man! Could you please make a single app ? For this mod? I MEAN, without the other options of the other mods of yours I hope you can. THANKS FOR THIS MOD. (Y)
Click to expand...
Click to collapse
Just transfer the checkbox preference to your settings, or just uninstall it because it will still work
tentenponce said:
Just transfer the checkbox preference to your settings, or just uninstall it because it will still work
Click to expand...
Click to collapse
Sorry for this question here, but, can you make a guide for this (put a preference of an app in settings)?
I already tried using smalis, ids, values, res, of original app to implement in a new activity of settings but i never can recompile again because give "short id" or others unknown (unknown to me xD) errors in smali's...
Sorry again for question, but i always wanted to learn this.
Thanks.
RBDoMGaM said:
Sorry for this question here, but, can you make a guide for this (put a preference of an app in settings)?
I already tried using smalis, ids, values, res, of original app to implement in a new activity of settings but i never can recompile again because give "short id" or others unknown (unknown to me xD) errors in smali's...
Sorry again for question, but i always wanted to learn this.
Thanks.
Click to expand...
Click to collapse
Decompile CustomizableParts.apk and get the smali and the res/xml/main, recompile then get the public id of the main.xml, go to tenten.smali find this line and replace it to your public id:
Code:
0x7f04
to:
Code:
(yourpublicid)
then go to res/xml/settings.apk and add this code BEFORE </PreferenceScreen>:
Code:
<com.android.settings.IconPreferenceScreen android:title="Proximity Settings" settings:icon="@drawable/ic_settings_about">
<intent android:targetPackage="com.tenten" android:action="android.intent.action.MAIN" android:targetClass="com.tenten.tenten" />
</com.android.settings.IconPreferenceScreen>
go again to res/xml/main and remove the preference you dont want.
It will make a shortcut to your settings.apk to customizableparts.
tentenponce said:
Decompile CustomizableParts.apk and get the smali and the res/xml/main, recompile then get the public id of the main.xml, go to tenten.smali find this line and replace it to your public id:
Code:
0x7f04
to:
Code:
(yourpublicid)
then go to res/xml/settings.apk and add this code BEFORE </PreferenceScreen>:
Code:
<com.android.settings.IconPreferenceScreen android:title="Proximity Settings" settings:icon="@drawable/ic_settings_about">
<intent android:targetPackage="com.tenten" android:action="android.intent.action.MAIN" android:targetClass="com.tenten.tenten" />
</com.android.settings.IconPreferenceScreen>
go again to res/xml/main and remove the preference you dont want.
It will make a shortcut to your settings.apk to customizableparts.
Click to expand...
Click to collapse
Can we make it without install Customizableparts.apk ? So preference in Customizableparts.apk moved to settings.apk
GSculerlor said:
Can we make it without install Customizableparts.apk ? So preference in Customizableparts.apk moved to settings.apk
Click to expand...
Click to collapse
Follow it and you dont need to install customizableparts.apk.
tentenponce said:
Decompile CustomizableParts.apk and get the smali and the res/xml/main, recompile then get the public id of the main.xml, go to tenten.smali find this line and replace it to your public id:
Code:
0x7f04
to:
Code:
(yourpublicid)
then go to res/xml/settings.apk and add this code BEFORE </PreferenceScreen>:
Code:
<com.android.settings.IconPreferenceScreen android:title="Proximity Settings" settings:icon="@drawable/ic_settings_about">
<intent android:targetPackage="com.tenten" android:action="android.intent.action.MAIN" android:targetClass="com.tenten.tenten" />
</com.android.settings.IconPreferenceScreen>
go again to res/xml/main and remove the preference you dont want.
It will make a shortcut to your settings.apk to customizableparts.
Click to expand...
Click to collapse
Decompile CustomizableParts.apk and get the smali and the res/xml/main, recompile then get the public id of the main.xml, go to tenten.smali find this line and replace it to your public id: -- Sorry sir but i dont really get it Can you please explain further sir ? Im so slow
very cool,i try for sure.great work.thx hitted!!!!
tentenponce said:
Lock your Galaxy Young Like a Boss
​Watch this video on how this thing work: https://www.youtube.com/watch?v=OH3j44UUTgM
How I made it: Type *#*#0588#*#*. This thing inspires me to do this xD
Steps:
1.) Decompile SystemUI.apk
2.) Extract ProximityLock.zip on smali folder.
3.) Go to res/layout/status_bar.xml and add this code below line with an @id/icons:
Code:
<com.tenten.SensorLock android:layout_height="0.0dip" android:layout_width="0.0dip" />
4.) Recompile SystemUI.apk.
5.) Install CustomizableParts.apk to enable/disable it.
6.) Flash and Do some action like a boss. (Dont forget to jump high xD) tell me if not working.
Credits
StackOverflow.com
*#*#0588#*#* Samsung Code xD
LenoxDevs
PotatoInc​
Click to expand...
Click to collapse
can you make a video step by step to do this ? i don't have any idea. decompile bla bla. please tell me how to do this step by step process. thanks in advanced. Good Job.
ChristianMonteon said:
can you make a video step by step to do this ? i don't have any idea. decompile bla bla. please tell me how to do this step by step process. thanks in advanced. Good Job.
Click to expand...
Click to collapse
Sorry
, but all i can make is a guide, before doing this, you need basic knowledge about decompiling/using apktool and a little xml thing.
RikudouSennin said:
Decompile CustomizableParts.apk and get the smali and the res/xml/main, recompile then get the public id of the main.xml, go to tenten.smali find this line and replace it to your public id: -- Sorry sir but i dont really get it Can you please explain further sir ? Im so slow
Click to expand...
Click to collapse
Learn first how to decompile using apktool, then after that, decompile customizableparts.apk, get the smali and transfer it on settings.apk, (you must also decompile settings.apk) then also the main.xml that will be found on customizableparts/res/xml/main.xml to settings.apk also. then follow the above instructions. I know there's a guide on how to add extra activity on settings.
Pls make app for this mod without the other options of the other mods of yours
And can you make Proximity Unlock?
the_vanya1 said:
Pls make app for this mod without the other options of the other mods of yours
And can you make Proximity Unlock?
Click to expand...
Click to collapse
try to follow the guide that i quote on rikudousennin. If i will put proximity unlock, it will be bug maybe if you put your phone on you pocket, facedown on something, etc.. because it will unlock, lock, unlock, lock , infinite. xD but still finding a solution, but for now, it will be impossible
-CALIBAN666- said:
very cool,i try for sure.great work.thx hitted!!!!
Click to expand...
Click to collapse
Thanks sir xD just got the idea on *#*#0588#*#* xD thanks to samsung xD
i know it, but it can be on or off, and you can upgrade this function later

[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!

[Quick Circle] LG G3 Quick Circles Clocks. Marshmellow[Soon], Lollipop & Kitkat

D85* variants, works (to my knowledge) on all roms that support lg quick circle.
marshmellow QC Coming soon as soon as i can.
*Warning: Although this is working fine for me and others, i cant guarantee the safty of your device. This is a very simple Flash and complications are very very VERY rare. However i am not responsible for any damages done to your device please Always Backup With TWRP Before hand. This Only Works With TWRP. And (as far as i know) Only for D855-D852. Flash at your own risk if your using a different model number​
I want to make more i have future ideas for a superman clock and a number of other clocks if you have any ideas im more than happy to try them out. Just Message me. I make clocks to work for Lollipop and Kitkat. If you Run lollipop on g3 and have a ROM and you chose Xposed over quick circle "DONT FLASH THESE"
Space Clock:
Lollipop: https://www.dropbox.com/s/zoi9o79v4xk5f64/space%20Clock%20for%20lollipop.zip?dl=0
Kitkat: https://www.dropbox.com/s/75lm8gelp2olcq8/space%20clock%20for%20kitkat.zip?dl=0
Update!!! Im working on bringing my space clock to marshmellow & working on a brand new clock called "around the world" which will have a number of moving objects a hot air balloon and clouds, a Plane and a number of monuments form countries around the world. While will also slowly rotate.
Click to expand...
Click to collapse
Contributors: Thanks to Lillo75 for zip And Ashrockr for assistance too.
I can't decompile it with apktool, so I can't help you.
Inorder to decrypt the file you need decompile the apk.( There are some great tool for easy decopilation of apk).
I've already modified these clock for g2 running g3 rom which has a rectangular case.
Moreover to remove the date which appears behind your second's hand you need to edit the smali file which you'll get by decompiling the apk.
Hence you need to learn how to decompile and edit smali file.
Ashrockr said:
Inorder to decrypt the file you need decompile the apk.( There are some great tool for easy decopilation of apk).
I've already modified these clock for g2 running g3 rom which has a rectangular case.
Moreover to remove the date which appears behind your second's hand you need to edit the smali file which you'll get by decompiling the apk.
Hence you need to learn how to decompile and edit smali file.
Click to expand...
Click to collapse
Have you successed in decompiling android 5.0 system apks using apktool? it fails for me.
yoavst said:
Have you successed in decompiling android 5.0 system apks using apktool? it fails for me.
Click to expand...
Click to collapse
I too couldn't decompile the apk from 5.0 even though it has been updated to decompile 5.0 apps.
Mmm well im running kitkat atm. So i night try that then. Ive got rid of date i just want to customise it more to behonest lol. I like digital but i want spinny clock. Is apktool the best to use??
well ive decompiled and im begining the smali edit lol ... this should be intresting
Green:- Hour
White:- Minute
Orange:- Second (All working good. Couldn't remove the date bg.)
I attached a zip file which will add digital clock to you analog clock (3rd clock), just flash using twrp.
It didn't add the files to change the clock face so that you can add your own style. Also it won't remove the date.
Flash at your risk. Also DO make a backup of LGAlarmClock.apk if you want to remove the mod.
Tested on cloudyG3 2.1 for G2 (G3A based rom).
Only for kitkat.
Is it possible to make it work on aosp based ROMs??
Thx
Ashrockr said:
View attachment 3072850
Green:- Hour
White:- Minute
Orange:- Second (All working good. Couldn't remove the date bg.)
I attached a zip file which will add digital clock to you analog clock (3rd clock), just flash using twrp.
It didn't add the files to change the clock face so that you can add your own style. Also it won't remove the date.
Flash at your risk. Also DO make a backup of LGAlarmClock.apk if you want to remove the mod.
Tested on cloudyG3 2.1 for G2 (G3A based rom).
Only for kitkat.
Click to expand...
Click to collapse
Wow thats awesome!, so i flash it like a normal rom?
Ashrockr said:
View attachment 3072850
Green:- Hour
White:- Minute
Orange:- Second (All working good. Couldn't remove the date bg.)
I attached a zip file which will add digital clock to you analog clock (3rd clock), just flash using twrp.
It didn't add the files to change the clock face so that you can add your own style. Also it won't remove the date.
Flash at your risk. Also DO make a backup of LGAlarmClock.apk if you want to remove the mod.
Tested on cloudyG3 2.1 for G2 (G3A based rom).
Only for kitkat.
Click to expand...
Click to collapse
Archtects said:
Wow thats awesome!, so i flash it like a normal rom?
Click to expand...
Click to collapse
Sorry How i decrypt the xml? stadard way lol
Ashrockr said:
View attachment 3072850
Green:- Hour
White:- Minute
Orange:- Second (All working good. Couldn't remove the date bg.)
I attached a zip file which will add digital clock to you analog clock (3rd clock), just flash using twrp.
It didn't add the files to change the clock face so that you can add your own style. Also it won't remove the date.
Flash at your risk. Also DO make a backup of LGAlarmClock.apk if you want to remove the mod.
Tested on cloudyG3 2.1 for G2 (G3A based rom).
Only for kitkat.
Click to expand...
Click to collapse
IGnore allll of that crap im just retarded i flashed it and its worked
soorta >_> lol, it doubles the BG Lol
https://www.dropbox.com/s/lsdqtugt1zh1nvt/Screenshot_2014-12-22-21-10-47.png?dl=0
okay i cant edit the XML at all its encrypted and ive tried loads to try edit it, and if you want to remove the date thing then you have to start coding from the WHITE analog Clock, but i cant edit the xml otherwise i might be able to stop the double bg, its only because "I imagine" the digital code is looking for a bg and because its been planted on top of the analog its using the same variable to call the same bg, there for reproducing it lol, but i cant do anything with the xml file i cant edit anything i cant view it at all lol, its encrypted.
and if i wanted to i cant seem to recompile the apk i edit wont do it so im still stuck at this lol
Ashrockr said:
View attachment 3072850
Green:- Hour
White:- Minute
Orange:- Second (All working good. Couldn't remove the date bg.)
I attached a zip file which will add digital clock to you analog clock (3rd clock), just flash using twrp.
It didn't add the files to change the clock face so that you can add your own style. Also it won't remove the date.
Flash at your risk. Also DO make a backup of LGAlarmClock.apk if you want to remove the mod.
Tested on cloudyG3 2.1 for G2 (G3A based rom).
Only for kitkat.
Click to expand...
Click to collapse
Okay! I think!! (This is me just assuming) Your xml works not by plonking all the digital code into the analoug code but your calling the digital code from the digial clock xml? So is it possible then to edit the digital.xml to remove it looking for a bg. And flash it? The same way you made itflash the clock? Sorry so many replies but i keep thinking of different things lol
Archtects said:
Okay! I think!! (This is me just assuming) Your xml works not by plonking all the digital code into the analoug code but your calling the digital code from the digial clock xml? So is it possible then to edit the digital.xml to remove it looking for a bg. And flash it? The same way you made itflash the clock? Sorry so many replies but i keep thinking of different things lol
Click to expand...
Click to collapse
Yes you are right!!
It is possible to edit the digital clack too. If you want to change the background of digital clock then edit the b2_quickcircle_digital_bg.png in raw-xxxhdpi folder.
Here's what i've edited in the analog_quick_circle_black.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:background="@android:color/black" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:custom="http://schemas.android.com/apk/res-auto">
<com.lge.clock.quickcover.view.AnalogQuickCircle android:gravity="center" android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" custom:dial="@raw/b2_quickcircle_analog_style03_bg" custom:hand_hour="@raw/b2_quickcircle_analog_style03_hour" custom:hand_minute="@raw/b2_quickcircle_analog_style03_minute" custom:hand_second="@raw/b2_quickcircle_analog_style03_second" custom:setStyle="style03" />
<RelativeLayout android:layout_width="190dp" android:layout_height="190dp" android:layout_centerInParent="true">
<com.lge.clock.quickcover.view.DigitalQuickCircle android:layout_width="wrap_content" android:layout_height="wrap_content" custom:digital_background="@raw/b2_quickcircle_digital_bg" custom:timeColorTop="#fff1f1f1" custom:timeColorBottom="#fff1f1f1" custom:amPmColor="#fff1f1f1" custom:dateColor="#fff1f1f1" custom:circleColor="#00f1f1f1" />
</RelativeLayout>
</RelativeLayout>
May be i've edited this a bit from the last time.
But you can get the idea from it.
And if you want to create the zip file for it then put this xml file in your decompiled folder of lgalarmclock.apk/res/layout and compile it. Then open the compiled apk with winrar and extract this file(analog_quick_circle_black.xml) from there and place the file in zip(vrtheme/system/priv-app/lagalarm.apk/res/layout). Compress and flash it.
Also i've created a new for g2's window case:- View attachment 3075006
That's awesome Clock haha!! Okay well I'm going to carry on having a play once its done it look awesome lol. But cheers dude. Really helped ! Ill keep updating if i find anything new or have done it lol
Ashrockr said:
Yes you are right!!
It is possible to edit the digital clack too. If you want to change the background of digital clock then edit the b2_quickcircle_digital_bg.png in raw-xxxhdpi folder.
Here's what i've edited in the analog_quick_circle_black.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:background="@android:color/black" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:custom="http://schemas.android.com/apk/res-auto">
<com.lge.clock.quickcover.view.AnalogQuickCircle android:gravity="center" android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" custom:dial="@raw/b2_quickcircle_analog_style03_bg" custom:hand_hour="@raw/b2_quickcircle_analog_style03_hour" custom:hand_minute="@raw/b2_quickcircle_analog_style03_minute" custom:hand_second="@raw/b2_quickcircle_analog_style03_second" custom:setStyle="style03" />
<RelativeLayout android:layout_width="190dp" android:layout_height="190dp" android:layout_centerInParent="true">
<com.lge.clock.quickcover.view.DigitalQuickCircle android:layout_width="wrap_content" android:layout_height="wrap_content" custom:digital_background="@raw/b2_quickcircle_digital_bg" custom:timeColorTop="#fff1f1f1" custom:timeColorBottom="#fff1f1f1" custom:amPmColor="#fff1f1f1" custom:dateColor="#fff1f1f1" custom:circleColor="#00f1f1f1" />
</RelativeLayout>
</RelativeLayout>
May be i've edited this a bit from the last time.
But you can get the idea from it.
And if you want to create the zip file for it then put this xml file in your decompiled folder of lgalarmclock.apk/res/layout and compile it. Then open the compiled apk with winrar and extract this file(analog_quick_circle_black.xml) from there and place the file in zip(vrtheme/system/priv-app/lagalarm.apk/res/layout). Compress and flash it.
Also i've created a new for g2's window case:- View attachment 3075006
Click to expand...
Click to collapse
can i push the xml to phone with out recompiling? for some reason my LGALARMCLOCK.apk Will not compile at all. im using apk tool
Archtects said:
can i push the xml to phone with out recompiling? for some reason my LGALARMCLOCK.apk Will not compile at all. im using apk tool
Click to expand...
Click to collapse
No you have to compile first.
https://www.dropbox.com/s/f54ljacx9ou9fs1/Screenshot_2014-12-23-22-20-19.png?dl=0
ive managed to get this so far.
need to work out how to change the color of the text now
Code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:background="@*android:color/black" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:custom="http://schemas.android.com/apk/res-auto">
<com.lge.clock.quickcover.view.AnalogQuickCircle android:gravity="center" android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" custom:dial="@raw/b2_quickcircle_analog_style03_bg" custom:hand_hour="@raw/b2_quickcircle_analog_style03_hour" custom:hand_minute="@raw/b2_quickcircle_analog_style03_minute" custom:hand_second="@raw/b2_quickcircle_analog_style03_second" custom:setStyle="style02" />
<RelativeLayout android:layout_width="190.0dip" android:layout_height="190.0dip" android:layout_centerInParent="true">
<com.lge.clock.quickcover.view.DigitalQuickCircle android:layout_width="wrap_content" android:layout_height="wrap_content" custom:digital_background="@null" custom:timeColorTop="#154C6F" custom:timeColorBottom="#435e6f" custom:amPmColor="#435e6f" custom:dateColor="#435e6f" custom:circleColor="@null" />
</RelativeLayout>
</RelativeLayout>
this above is the code that should finaly finish the job lol!.
once i can actualy compile the flaming APK lol. still wont compile ive tried everything multitool, apktool, Just wont do it :/ idk why, apparently something to do with the andriod manifest?
anyone had this problem while compiling the LGAlarmClock? lol even if i decompile then recompile without editing anything it just wont do it.

Categories

Resources