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!
Related
No as such device or specific fw requirements for this guide/How-to to work.
Ok, so this would be my first ever tutorial on XDA so bear with me. I would try to explain as much as possible.
This How-to focuses on adding another info section in settings.apk. This guide is intended to be used by ROM Devs and Themers. I did a thorough research if their is any guide similar to this in this forum section but couldnt find any so here it goes.
Prequistes:
Be able to Decompile/Compile apks
Notepad++
Patience
Firstly you have to decompile SecSettings.apk (If you are using JB fw) or Settings.apk (If you are using ICS fw) it doesn't matter which fw you are using the rest of the guide will be the same.
After you have decompiled the SecSettings.apk or Settings.apk, go into the folder you decompiled to then res/values/strings. Open strings with any code editor such as Notepad++ after that add these two lines before the end line:
<string name="mod_version">XenonMOD version</string>
<string name="mod_version_info">Xenon-v2.00.00</string>
Click to expand...
Click to collapse
NOTE: You can change XenonMOD version to anything you like and also Xenon-v2.00.00. I am using these as a example.
Next go to res/xml/device_info_settings.xml and add these lines before the ending line:
<Preference android:key="mod_version" style="?androidreferenceInformationStyle" android:title="@string/mod_version android:summary="@string/mod_version_info" />
Click to expand...
Click to collapse
Now recompile everything. If you have done everything as stated you should end up with a perfectly good SecSettings.apk or Settings.apk that has a another info/thread added to it. Congratulations!
NOTE: You can use this guide to add whatever info you want to the Settings section.
Follow me on twitter @TaimurAkmal. I would be able to solve any problem that you may have quicker, if you reach me with a tweet.
Don't forget to leave a Thanks by pressing the Thanks button which is placed bottom-left of this post!
Nyc Work
Leave a Thanks and it would make my day.
ahh sorry i forgot to
now done
Nice, unfortunately this didn't work on my Nexus, when I copy paste then it's not normal if I follow the other lines in that file I put the texts the correct sequence then I can successfully compile settings.apk and when I replace settings.apk it is not shown and not working, I have also tried by signing apk via Dsixda's android kitchen but still the same issue, btw: I use latest Android version on my Nexus and I don't think that is the issue...
Maybe something to do with SettingsProvider.apk or does smali files need editing?
Thanks
manumanfred said:
Nice, unfortunately this didn't work on my Nexus, when I copy paste then it's not normal if I follow the other lines in that file I put the texts the correct sequence then I can successfully compile settings.apk and when I replace settings.apk it is not shown and not working, I have also tried by signing apk via Dsixda's android kitchen but still the same issue, btw: I use latest Android version on my Nexus and I don't think that is the issue...
Maybe something to do with SettingsProvider.apk or does smali files need editing?
Thanks
Click to expand...
Click to collapse
the problem is the parsing, he forgot to add another " after
this is the correct code
Code:
<Preference android:key="mod_version" style="?android:preferenceInformationStyle" android:title="@string/mod_version" android:summary="@string/mod_version_info" />
nice guide, this is what i searching for. Thanks :good:
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
StatusBar Mods For All Xperia Devices
Requirements
ApkTool
SystemUI.apk
Knowledge to Decompiling and Compiling APKs
Notepad++
Add Corner Options on StatusBar
Decompile with APKTool SystemUI.apk
Go to res/layout/status_bar.xml
Add this Line ( <com.android.systemui.statusbar.policy.KeyButtonView android:layout_gravity="right" android:id="@id/home" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/screen_lock" android:layout_toRightOf="@id/recent_apps" android:contentDescription="@string/accessibility_back" systemui:keyCode="26" systemui:keyRepeat="false" systemui:glowBackground="@drawable/ic_sysbar_highlight" androidrientation="vertical" /> ) between this " </LinearLayout> " and this " <ImageView android:layout_gravity="top|left|center" android:id="@id/rounded_corner_ul" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/rounded_corner_ul" /> "
Than Make a Transparent Image 20x35 with Photoshop in .PNG , rename it in ( screen_lock ) and copy in" res/drawable-xhdpi "
Compilng and Done
Add Traffic Meter to StatusBar
Decompile systemUI.apk
Go to res/layout and open status_bar.xml
Add this line ( <com.android.systemui.statusbar.policy.Traffic android:textAppearance="@style/TextAppearance.StatusBar.Traffic" android:gravity="left|center" android:id="@id/traffic" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" /> ) two line above the line " <include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" /> "
now go to res/values and open ids.xml and add this line at the end " <include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" /> "
Now go to res/values and open styles.xml and copy this code at the end "
<style name="TextAppearance.StatusBar.Traffic" parent="@style/TextAppearance.StatusBar.Clock">
<item name="android:textSize">14.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffffffff</item>
<item name="android:textAllCaps">false</item>
</style> "
Now download this Package and extract it to smali/com/android/systemui/statusbar/policy/HERE
Compile and Done
Change Color StatusBar
Decompiling SystemUI.apk
Go to res/values , open drawables.xml
Change in <item type="drawable" name="status_bar_background">#ff14374f</item> the #ff14374f in ur prefered colour , to choose color i suggest to open Photoshop and in colors pick up ur colour code and paste with this " 14374f " in Drawables.xml file.
Compiling and Done
More Mods Soon
Appreciate your work but these mods can already be done using Xposed framework without any flashing.
PünchUp said:
Appreciate your work but these mods can already be done using Xposed framework without any flashing.
Click to expand...
Click to collapse
And for who dont want xposed?!? Hahah
Sent from my LT26ii using XDA Premium 4 mobile app
savergiggio said:
And for who dont want xposed?!? Hahah
Sent from my LT26ii using XDA Premium 4 mobile app
Click to expand...
Click to collapse
That's why I said I appreciate your work
PünchUp said:
That's why I said I appreciate your work
Click to expand...
Click to collapse
nice!!
Can u post screenshots of end-effect of edited statusbar?
Thanks master @savergiggio
Sent from my LT26w using XDA Premium 4 mobile app
Great tutorial mate! I really appriciate it ?
EDIT: how about tutorial on putting close all button on taskswitcher?
Why don't you never give credits? You haven't made up these mods... you should give credits to whoever you have copied the code from.
rockernaxo said:
Why don't you never give credits? You haven't made up these mods... you should give credits to whoever you have copied the code from.
Click to expand...
Click to collapse
i didnt copy these codes
HitFan said:
Can u post screenshots of end-effect of edited statusbar?
Click to expand...
Click to collapse
i will
rockernaxo said:
Why don't you never give credits? You haven't made up these mods... you should give credits to whoever you have copied the code from.
Click to expand...
Click to collapse
savergiggio said:
i didnt copy these codes
Click to expand...
Click to collapse
Oh Really?
Same as this link : http://forum.xda-developers.com/showthread.php?t=2241739
And you give TRAFFIC.zip on this thread.
You Reported "freeloader" !!
savergiggio said:
i didnt copy these codes
Click to expand...
Click to collapse
Are you kidding? Who are you trying to decieve?
I don't say you can't post "your guide" here, but at least give credits to those who have really done this stuff.
These mods are the result of hours of hardwork and not of your hardwork. Give credits man, that's not the spirit of xda.
Hi , i guess that OP never use searh button.
Dzol Cp said:
Hi , i guess that OP never use searh button.
Click to expand...
Click to collapse
But he uses well Ctrl-C and Ctrl-P
Btw thanks you for this tuturial...
rockernaxo said:
Are you kidding? Who are you trying to decieve?
I don't say you can't post "your guide" here, but at least give credits to those who have really done this stuff.
These mods are the result of hours of hardwork and not of your hardwork. Give credits man, that's not the spirit of xda.
Click to expand...
Click to collapse
bro u are right but i pick up these codes from different source i can't give credit to only one person... i serched for them in others site too .... different from XDA...
savergiggio said:
bro u are right but i pick up these codes from different source i can't give credit to only one person... i serched for them in others site too .... different from XDA...
Click to expand...
Click to collapse
Simple, you can start giving credits to RC @Dzol Cp.
The same I'd recommend with your ROM
savergiggio said:
i didnt copy these codes
Click to expand...
Click to collapse
@rockernaxo is right, i think u get the tutorial on adding traffic meter on statusbar here: http://forum.xda-developers.com/showthread.php?t=2241739 right?
savergiggio said:
bro u are right but i pick up these codes from different source i can't give credit to only one person... i serched for them in others site too .... different from XDA...
Click to expand...
Click to collapse
You're not successful on lying as hijack. I gave the source thread (which you take(hijack) TRAFFIC.zip) You must give Dzol Cp to credits.
This is not your work, and you're saying i didint take the codes, they are my made. So Sorry for you!
savergiggio said:
bro u are right but i pick up these codes from different source i can't give credit to only one person... i serched for them in others site too .... different from XDA...
Click to expand...
Click to collapse
I check your zip file and all the smali code is belong to me and my group project! what are you gonna say? still refuse to add real link and credits?
then your thread has still not report to FORUM MODERATOR.. i give you chance by today.. and if still nothing on progress. then you will know.
Regards
Dz
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
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.