[GUIDE] Proximity Sensor to Lockscreen (UPDATE! less battery consumption) - Galaxy Y GT-S5360 General

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

Related

[MOD/HOWTO] SMS + No contact limit + No MMS convert + Sent time [JVX/JVT/JVQ/JVP/JVH]

UPDATE!
07/12 JVX added
14/7: JVT version added
14/7: JVQ CWM flashable versions for odexed and deodexed! Massive props to to $omator for this, who obviously knows a lot more about creating CWM zips than I do. Go to his post to download, and thank him while you're at it!
30/6: New JVQ version, thanks again bigdyl69! Get it here.
13/6: JVP version now exists, get it here thanks to bigdyl69!
21/5: Added Froyo JSD and Ginger JVO versions.
10/5: Added JVH version
Ok, this does what it says on the tin. It's a mod of the JVX messaging app that adds 3 often requested features:
No autoconvert to MMS after 3 messages
Sending to unlimited contacts
Sent time instead of received time. If you turn off your phone, messages you get whilst it's off will have the right time!
To install:
Simply copy the included apk depending on your system version to /system/app/Mms.apk, and make a backup first just in case.
Notes:
Your ROM MUST be deodexed!
If it doesn't work, clear the cache, the Dalvik cache, and also clear data for Messaging under Settings->Applications->Manage Applications (it won't delete your messages).
If the times are off by several hours download SMS Time Fix and set it the the correct number of hours to fix the timestamps.
The JVB MMS apk is actually from Darky's 10 RC6, but I don't think it's different from the default.
If I get enough requests for:
Other versions (e.g. JVK, etc)
CWM flashable versions
I'll make them.
Hope this is useful to people!
Massive props to ykk_five for his original mod! I couldn't have made this without his help.
HOWTO
Do you theme your Mms app? Got a custom ROM going on and want to do this yourself? Well here's how!
Download Apk Manager from here.
Get your Mms.apk from /system/app/Mms.apk
Get your twframework-res.apk from /system/framework
Open up Apk Manager and choose option 22
Select Mms.apk as your project
Select option 10 (decompile with dependencies)
When it asks you for your dependency, drag and drop twframework-res.apk into the window and press enter
When that's done, go into apk_manager/projects/Mms.apk
Under /res/xml open up mms_config.xml
Go to: <int name="recipientLimit">10</int> change this to -1
Go to <int name="smsToMmsTextThreshold">4</int> Change this to 100
Now open up /smali/com/android/mms/transaction/SmsReceiverService.smali and open it in any text editor.
Search for 'time'. There will be one entry at approximately line 523
Replace this with: invoke-virtual {p1}, Landroid/telephony/SmsMessage;->getTimestampMillis()J
There will be another at approximately line 2270.
Replace this with: invoke-virtual {v0}, Landroid/telephony/gsm/CbMessage;->getTimestampMillis()J
Save and close them all and go back to apk manager, option 11 'compile'
When you're done, it'll tell you about a 'keep' folder. Go delete mms_config.xml, and in the keep folder also delete resources.arsc and classes.dex
Copy your new Mms.apk to your phone! Don't forget to back up your old one in case you make a mistake.
If you get errors, check the log for mentions of 9.png errors. If they are there, fix your 9 patch files! Use google for that, I'm not explaining how to do this.
If you can't be bothered to do this or don't know how, send me a PM! I've made more than 8 custom Mms.apks for people so far.
Did you know that this was the thing I look for?
Thank you!
I'll provide feedback in case of any problems.
I was wondering if I use handcent sms do I still need this if I wanted the "sent time" instead of receive time?
Cheers
NeoXTC said:
I was wondering if I use handcent sms do I still need this if I wanted the "sent time" instead of receive time?
Cheers
Click to expand...
Click to collapse
No, this is only a modification to the stock SMS app, sorry.
Hey mate,
What did you change in the apk to remove the mms convert?
I am trying to edit the TW4 mms.apk to be the same as what you've done.
Thanks!
Otherwise, Could you make the same changes to the attached mms.apk?
this is the TW4 one.
Ryyuu said:
Hey mate,
What did you change in the apk to remove the mms convert?
I am trying to edit the TW4 mms.apk to be the same as what you've done.
Thanks!
Otherwise, Could you make the same changes to the attached mms.apk?
this is the TW4 one.
Click to expand...
Click to collapse
Under res / xml / mms_preferences.xml change
<int name="smsToMmsTextThreshold">3</int>
To something like 100. I'd just make the edit for you but I'm not at home
Fantastic!!
Thanks mate.
What about the received time setting too?
Also, How are you decompiling and editing your apk's?
I'm on a mac so have been using Betterzip to extract them and KOD to edit them... but i'm afraid i'm still seeing all scrambled text...
Ryyuu said:
Fantastic!!
Thanks mate.
What about the received time setting too?
Also, How are you decompiling and editing your apk's?
I'm on a mac so have been using Betterzip to extract them and KOD to edit them... but i'm afraid i'm still seeing all scrambled text...
Click to expand...
Click to collapse
Ehhh, received time edit involves decompiling and editing the smali files, so it's a little more complex.
As for decompiling/editing, I use apk manager, which is Windows only as far as I know. I run it on my mac using Boot Camp. Also, it won't decompile properly without using the twframework-res.apk dependency file, so make sure you have the tw4 equivalent of that. PM me if you're game to try the smali editing.
Thank so much for your help mate.
I have successfully edited the TW4 mms.apk to remove the SmsToMms conversion.
I'll create a topic for it. But thank you very much for your help. I might have a look at converting the time too. I'll send you a PM.
icon missing
hello, after replaced and rebooted, Messaging icon dissappeared from bottom bar of twiz. Any idea how to bring it back...Sms works normally, sending time shown, as expected.
ruh01 said:
hello, after replaced and rebooted, Messaging icon dissappeared from bottom bar of twiz. Any idea how to bring it back...Sms works normally, sending time shown, as expected.
Click to expand...
Click to collapse
[Solved by Ryyuu, scroll down]
All you need to do to fix this is open the app drawer, press edit, find the messaging icon and drag it to the dock.
This can sometimes happen when playing around with apk's.
Fixed.
You don't imagine how much I am thankful to you. I was looking for this very mod. Thank you so much. It works like a charm on my SGS with Darky's v10.RC6
hi,good work.would you please tell me,which xml or smali files to edit or post it as sources files for developers?I would like to insert it into my transparent mms app.
pauldiddy said:
hi,good work.would you please tell me,which xml or smali files to edit or post it as sources files for developers?I would like to insert it into my transparent mms app.
Click to expand...
Click to collapse
For xml, go to res/xml/mms_preferences.xml, then edit recipientLimit and smsToMmsTextThreshold to something overly large, I used 100 as it seems no one will breach that limit.
As for the sent time, just decompile this and stock Mms.apk and do a windiff on the smali folders. There's 2 lines changed which will jump right out.
Hi.Thanks works perfect on deodexed JVB.
montymintypie said:
For xml, go to res/xml/mms_preferences.xml, then edit recipientLimit and smsToMmsTextThreshold to something overly large, I used 100 as it seems no one will breach that limit.
As for the sent time, just decompile this and stock Mms.apk and do a windiff on the smali folders. There's 2 lines changed which will jump right out.
Click to expand...
Click to collapse
thank you,got it.
I know this may be a little off topic but would this modification work on the JPY froyo MMS.apk? I have decompiled it and looked at the xml and there is a mms_config.xml file with the following code in it:
<?xml version="1.0" encoding="UTF-8"?>
<mms_config version="4">
<bool name="enabledMMS">true</bool>
<int name="maxMessageSize">307200</int>
<int name="mmsHeaderSize">5120</int>
<int name="maxImageHeight">480</int>
<int name="maxImageWidth">640</int>
<int name="defaultSMSMessagesPerThread">200</int>
<int name="defaultMMSMessagesPerThread">20</int>
<int name="minMessageCountPerThread">10</int>
<int name="maxMessageCountPerThread">5000</int>
<string name="uaProfUrl">http://wap.samsungmobile.com/uaprof/GT-i9000.xml</string>
<string name="userAgent">SAMSUNG-GT-I9000-Mms/2.0</string>
<string name="uaProfUrlS1">http://wap.samsungmobile.com/uaprof/GT-i9000.xml</string>
<string name="userAgentS1">SAMSUNG-GT-I9000-Mms/2.0</string>
<string name="uaProfUrlApollo">http://wap.samsungmobile.com/uaprof/GT-i5801.xml</string>
<string name="userAgentApollo">SAMSUNG-GT-I5801-Mms/2.0</string>
<int name="recipientLimit">100</int>
<int name="smsToMmsTextThreshold">100</int>
</mms_config>
Click to expand...
Click to collapse
As you can see I've edited the bottom two lines of code like what you have done to the JVB MMS.apk. Do you think this will work?
It should work just as well on the JPY version, compile it and give it a go!
montymintypie said:
It should work just as well on the JPY version, compile it and give it a go!
Click to expand...
Click to collapse
Well I tried it and it kind of works. I can send a message up to 7 messages long and it doesn't auto convert but if I try to make the message any longer it tells me 'Maximum number of characters reached' so it sort of works. Do you know of any way around this or is it best to just leave it? Probably won't ever need to send a sms longer than 7 messages long but just thought I'd ask

[HOW-TO] Add Another Thread in Settings | About Device

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:

[Q] remove clock on stat bar jb

hi guys
i just want to ask if there's an available app or flashable zip that can remove the clock from the status bar?
i've search the threads but i only found 1 but only applicable to gingerbread.
i'm currently using an ls8 based rom from biftor
tia
chwoiy said:
hi guys
i just want to ask if there's an available app or flashable zip that can remove the clock from the status bar?
i've search the threads but i only found 1 but only applicable to gingerbread.
i'm currently using an ls8 based rom from biftor
tia
Click to expand...
Click to collapse
send your SystemUI.apk,I will make.
thanks. but i wouldn't want to trouble you
thanks. but i wouldn't want to trouble you
i would want something that i could do myself easily and undo it anytime i want.
Thank you very much anyway, highly appreciated. i've seen you offer help on the other threads.
:good::angel::good:
chwoiy said:
thanks. but i wouldn't want to trouble you
i would want something that i could do myself easily and undo it anytime i want.
Thank you very much anyway, highly appreciated. i've seen you offer help on the other threads.
:good::angel::good:
Click to expand...
Click to collapse
Decompile SystemUI.apk
Navigate to SystemUI>res>layout>tw_status_bar.xml
Find this line
HTML:
<com.android.systemui.statusbar.policy.Clock..............
Change value at 2 place
HTML:
android:layout_width="wrap_content" android:layout_height="fill_parent"
to
HTML:
android:layout_width="0.0dip" android:layout_height="0.0dip"
That's over,Now you haven't clock on statusbar,very easy.
thanks dr30ma
thanks dr30ma,
appreciate your help. i'll try to do what u said but i still have to find myself and xml editor and i don't know how to recompile the apk.
also, i'm not using the stock TW launcher. does it matter if i use a different launcher? i also have a different rom
thanks
chwoiy said:
thanks dr30ma,
appreciate your help. i'll try to do what u said but i still have to find myself and xml editor and i don't know how to recompile the apk.
also, i'm not using the stock TW launcher. does it matter if i use a different launcher? i also have a different rom
thanks
Click to expand...
Click to collapse
Doesn't matter which launcher you used.
systemUi and launcher are both different system apps.
Google and Google......
It's your friend,take help.
I learn only from search,Never take any help in my mods from any dev.
Do And do.... you will learn everything.
For giving thanks a button is situated on lower rt. side.
And for center clock?
Install AllianceMod.
GreatVortex said:
And for center clock?
Click to expand...
Click to collapse
For Centre Clock
Read this Guide
http://forum.xda-developers.com/showthread.php?t=1830994
---------- Post added at 09:29 AM ---------- Previous post was at 09:23 AM ----------
tariq2kn said:
Install AllianceMod.
Click to expand...
Click to collapse
Tarique Bhai someone want to do himself.
thanks dr30ma
thanks again dr30ma
i tried installing apk multi tool
and read some instructions on how to edit the systemui but i always get stuck at decompile apk.
"an error occured pls check the log"
some tutorials even says that we should set the max size or option 22.
i get lost in it
tia
i tried alliancemod but
tariq2kn said:
Install AllianceMod.
Click to expand...
Click to collapse
i tried alliance mod looks great but the toggles are not my style and you have to use on of the toggles so that your preferences would reflect. also it interferes with the multiwindow of the biftor rom that i'm using.
i also tried the alliancerom but same problem with toggles. the settings look also changed. i'm aiming for a more stock like look.
but thanks for the recommendation, at first i really liked the customization but it just didn't suit my taste.
:angel:
i think i have decompiled
dr30ma said:
Decompile SystemUI.apk
Navigate to SystemUI>res>layout>tw_status_bar.xml
Find this line
HTML:
<com.android.systemui.statusbar.policy.Clock..............
Change value at 2 place
HTML:
android:layout_width="wrap_content" android:layout_height="fill_parent"
to
HTML:
android:layout_width="0.0dip" android:layout_height="0.0dip"
That's over,Now you haven't clock on statusbar,very easy.
Click to expand...
Click to collapse
hello dr30ma
i think i have decompiled the systemui.apk. i found it in the projects folder.
i've double clicked the tw_status_bar.xml and the IExplorer opened showing the code.
i've also found the line that u were stating above but i don't know how to edit it.
do i need to download an xml editor?
tia:good:
chwoiy said:
hello dr30ma
i think i have decompiled the systemui.apk. i found it in the projects folder.
i've double clicked the tw_status_bar.xml and the IExplorer opened showing the code.
i've also found the line that u were stating above but i don't know how to edit it.
do i need to download an xml editor?
tia:good:
Click to expand...
Click to collapse
Use Notepad++ (google and download it, it's free) if you have windows on your PC.
recompiling
hi dr30ma
i'm really not sure if i've done everything correctly.
in decompiling i keep on getting an error occured
but i checked projects folder, the systemui directory is there
so i looked for the tw_status_bar.xml file and made the changes u listed by just using notepad. i'm not really sure if this is correct but i tried it anyway.
now when i go back to script in apktool, i press 11 to recompile apk. but there is again an error.
i tried to look for the keep directory but it does not appear. so i think i wasn't successful.
any help would be appreciated. tia!
is notepad++ same as the stock notepad available in windows7?
churapa said:
Use Notepad++ (google and download it, it's free) if you have windows on your PC.
Click to expand...
Click to collapse
is notepad++ same as the stock notepad available in windows7? i just used that
and was i successful in decompiling?
tia!
chwoiy said:
is notepad++ same as the stock notepad available in windows7? i just used that
and was i successful in decompiling?
tia!
Click to expand...
Click to collapse
Don't use stock notepad it is not same. Download ++ or pspad
Sent from my GT-I9100 using xda app-developers app
grisoxxl said:
Don't use stock notepad it is not same. Download ++ or pspad
Sent from my GT-I9100 using xda app-developers app
Click to expand...
Click to collapse
thanks for the help. but have i done the steps right? i'm not sure about the steps i did in apktool
tia

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

[TUTORIAL] [MOD] AF Battery Mod

Hey Modder Themer Member or something Here i have Bring A mod that will change your battery Style Add Percent etc The mod is simple First You Need to Remove stock Battery Icon follow these guide Here The Mod is easy to add Now we don"t need to edit smali like change 0xsomething to something. Some People Help me lots to do that @SpaceCaker @mohamedrashad
Instructions:
1. First Need to Remove Stock Battery Icon Go Here
2. Downloads res and Merged With Your Decompile Folder
3. Downloads smali and Merged with Your Decompile Folder
4. Now You have add
Code:
<com.androidfire.batterymod.Battery
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
5. Compile The Apps
6. Downloads Battery Mod Apk and install it
7. Done
Current Status
Beta
Downloads
Take Look at Attachment
SS
Take Look at Attachment
Credits:
SpaceCaker
iamareebajmal
b16h22
san122
shankarsj
mohamadrashad
PineappleOwl
PXL Team
if forget pls post youe name here
wow nice ... gonna try this
What about we want to change the battery pngs of ours ? Not bundled with yours i mean
Wow. nice guide sir +1
Cool mod dude :victory:
ps: my user name is @mohamedrashad not @mohamadrashad
work on 4.3?
Myth2014 said:
work on 4.3?
Click to expand...
Click to collapse
Yup it works , but guide for removing battery icon might differ
mohamedrashad said:
Yup it works , but guide for removing battery icon might differ
Click to expand...
Click to collapse
yeah..sir..thanks..i try to do it[emoji3]
Hope you'll update it in future and fix the bugs sir

Categories

Resources