[MOD] Stock Messaging with increased maximum size and recipients. - Samsung Galaxy W I8150

500 RECIPIENTS AND 500 MAXIMUM CHAINED SMS!
Click to expand...
Click to collapse
Just made a small mod for mms.apk that allows you to:
-write longer sms without converting to mms, 500 chained sms up from the 4 of stock application!
-add up to 500 recipients, from 10 of the stock application!
Click to expand...
Click to collapse
Installing is very simple, and you have 2 ways of doing it:
-Flash provided update zip with cwm or rzrecovery;
-Copy provided mms.apk into /system/app and give it permissions like in this screenshot:
it will work on all roms, but they must be deodexed!
Click to expand...
Click to collapse
SCREENSHOTS:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Click to expand...
Click to collapse
LINKS:
-Update Zip
-Mms.apk
Click to expand...
Click to collapse
As always, I'm not responsible if you brick your phone, and a Thanks is always appreciated
ENJOY!
Click to expand...
Click to collapse

Nice! I have done this mod on my custom rom, still in wip...Have u tried the mod to have sent time instead of the recevied time?

bagux said:
Nice! I have done this mod on my custom rom, still in wip...Have u tried the mod to have sent time instead of the recevied time?
Click to expand...
Click to collapse
I read about it, probably I'll add it in the near future (as soon as I have time to look into it!)

Great! I did one myself, with infinite contact limit and infinite max sms ), just a suggestion : write the tutorial/howto/guide to help the other beginners, or if you can't, I'll write one in the near future.
Oh and is this mod for a deodexed/odexed rom?

reidzeibel said:
Great! I did one myself, with infinite contact limit and infinite max sms ), just a suggestion : write the tutorial/howto/guide to help the other beginners, or if you can't, I'll write one in the near future.
Oh and is this mod for a deodexed/odexed rom?
Click to expand...
Click to collapse
I am a beginner myself and followed a guide around XDA
It will work only on deodexed I think

reidzeibel said:
Great! I did one myself, with infinite contact limit and infinite max sms ), just a suggestion : write the tutorial/howto/guide to help the other beginners, or if you can't, I'll write one in the near future.
Oh and is this mod for a deodexed/odexed rom?
Click to expand...
Click to collapse
HOW TO - For Developers
Change the AutoConverting (500)
In /res/xml/mms_config.xml change the following values at line 19:
Code:
<int name="smsToMmsTextThreshold">4</int>
to:
Code:
<int name="smsToMmsTextThreshold">500</int>
Increase Contacts adding for the message (500)
In /res/xml/mms_config.xml change the following values at line 19:
Code:
<int name="recipientLimit">10</int>
to:
Code:
<int name="recipientLimit">500</int>
Display Sent Time instead of the Received Time
In /smali/com/android/mms/transaction/SMSReceiverService.smali change the following values at line 589:
Code:
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
to:
Code:
invoke-virtual {p1}, Landroid/telephony/SmsMessage;->getTimestampMillis()J
And change the following values at line 2383:
Code:
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
to:
Code:
invoke-virtual {v0}, Landroid/telephony/gsm/CbMessage;->getTimestampMillis()J
For deodexted only
I hope it clear
Regards

The tutorial has already posted by rio, you can use it on a non-deodexed (odexed) ROM, but you won't be able to change the sent time to received time. I did on my Stock DXLA2 ROM, odexed, no smali editing.
Here's what I did (after doing a nandroid backup) :
-decompile the mms.apk using apktool, (you will need twframework-res.apk as the Framework file for apktool -> "apktool -if twframework-res.apk")
-Edit the values, save
-recompile the mms.apk
-the tricky part : open the recompiled mms.apk with 7 zip and original mms.apk, drag the modified mms_config.xml file from recompiled apk to original apk, push the modified original apk to your phone, reboot.
-If it's still doesn't work, clear data and clear cache from Settings->Manage Applications, don't worry your messages won't be deleted, but do create a backup beforehand.
And I think you can use the mod on every ROM, either odexed or deodexed, but for the odexed rom, you have to install it manually :
- rename/delete (don't forget to backup) the mms.apk and mms.odex file,
- and replace it with the mms.apk to the system/app folder.
Correct me if I'm wrong

This is what I really was looking for This options should be configurable by default, other Samsung non-Android I had were the same...
Oh god, thanks!

The apk provided force closes on my DXLM3. Any updated mms.apk?

Rio Saputro said:
HOW TO - For Developers
Change the AutoConverting (500)
In /res/xml/mms_config.xml change the following values at line 19:
Code:
<int name="smsToMmsTextThreshold">4</int>
to:
Code:
<int name="smsToMmsTextThreshold">500</int>
Increase Contacts adding for the message (500)
In /res/xml/mms_config.xml change the following values at line 19:
Code:
<int name="recipientLimit">10</int>
to:
Code:
<int name="recipientLimit">500</int>
Display Sent Time instead of the Received Time
In /smali/com/android/mms/transaction/SMSReceiverService.smali change the following values at line 589:
Code:
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
to:
Code:
invoke-virtual {p1}, Landroid/telephony/SmsMessage;->getTimestampMillis()J
And change the following values at line 2383:
Code:
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
to:
Code:
invoke-virtual {v0}, Landroid/telephony/gsm/CbMessage;->getTimestampMillis()J
For deodexted only
I hope it clear
Regards
Click to expand...
Click to collapse
Great work indeed....

Is cm9 deodexed?
Sent from my GT-I8150 using xda app-developers app

Hi all,
First, I have original samsung rom and have a root access on my galaxy s3.
I couldn't open the update zip via cwm. How can I open the zip file via cwm.
And also couldn't install mms.apk under /system/apk it gives error.
Sent from my GT-I9300 using xda app-developers app

billypostman said:
Hi all,
First, I have original samsung rom and have a root access on my galaxy s3.
I couldn't open the update zip via cwm. How can I open the zip file via cwm.
And also couldn't install mms.apk under /system/apk it gives error.
Sent from my GT-I9300 using xda app-developers app
Click to expand...
Click to collapse
Well of course, this is for the Galaxy Wonder!

So do you have any idea for Samsung Galaxy SIII ?
How can i remove the 10 recipient limit?
Thanks.
Edit:
Allright, I found the right topic.
http://forum.xda-developers.com/showthread.php?t=1113854

Any way to uninstall?

Related

[Mod][ICS] How to add Sense Recent App "Multitasking" !

Hello all,
This is only for ICS Samsung ROMs.
"-" means Delete.
"+" means Add
Decompile framework-res.apk and modify res/values/dimen.xml
Code:
- <dimen name="thumbnail_height">120.0dip</dimen>
+ <dimen name="thumbnail_height">229.0dip</dimen>
- <dimen name="thumbnail_width">120.0dip</dimen>
+ <dimen name="thumbnail_width">144.0dip</dimen>
and that's it for framework-res.apk, you can compile it now.
Decompile SystemUI.apk and modify:
Code:
res/values/drawables.xml
- <item type="drawable" name="status_bar_recents_background_solid">#b3000000</item>
+ <item type="drawable" name="status_bar_recents_background_solid">#00000000</item>
- <item type="drawable" name="status_bar_recents_app_thumbnail_background">#88000000</item>
+ <item type="drawable" name="status_bar_recents_app_thumbnail_background">#00000000</item>
Code:
res/values/strings.xml <<------(Adding only)
+ <string name="recent_apps_title">Recent apps</string>
smali/com/android/systemui/recent/RecentsPanelView.smali <<------(Adding only)
Search for:
Code:
invoke-virtual {v2, v1}, Landroid/widget/ImageView;->setImageMatrix(Landroid/graphics/Matrix;)V
and add after the line mentioned above
Code:
+ iget-object v2, p1, Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;->thumbnailViewImage:Landroid/widget/ImageView;
+ const/high16 v3, 0x41a0
+ invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setRotationY(F)V
Now download the attachment file "GanGs_Kid_res.zip" and unzip it
then copy the the content of "res" folder into "res" folder inside the decompiled SystemUI file
click yes for replacement.
and that's it for SystemUI.apk, you can compile it now.
BTW my Kitchen "GanGs_KiD_Kitchen" can do it for you automatically.
credit to:
BigShix
If you liked my work encourage me by small donation HERE .... and if you will not...please click Thanks button.
The xml files in the attachment seem to be compiled versions. Dont you need the uncompiled ones to add to SystemUI before compiling again?
Sent from my GT-I9100 using Tapatalk 2
finch.****break said:
The xml files in the attachment seem to be compiled versions. Dont you need the uncompiled ones to add to SystemUI before compiling again?
Sent from my GT-I9100 using Tapatalk 2
Click to expand...
Click to collapse
Thank you.
In fact they are "decompiled versions" because you will decompile SystemUI.apk and copy them back to it hope you get it.
GanGs_KiD said:
Thank you.
In fact they are "decompiled versions" because you will decompile SystemUI.apk and copy them back to it hope you get it.
Click to expand...
Click to collapse
I didnt find decompiled versions in the attachment, thats why my previous post. I found only compiled xml files.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I dont have my laptop to check. Screenshots are using my phone.
Sent from my GT-I9100 using Tapatalk 2
finch.****break said:
I didnt find decompiled versions in the attachment, thats why my previous post. I found only compiled xml files.
I dont have my laptop to check. Screenshots are using my phone.
Sent from my GT-I9100 using Tapatalk 2
Click to expand...
Click to collapse
Please check it with your laptop even when I opend it with my phone it showed as decompiled !!
I think there is smoe error at your phone or at the app you'r trying to use.
Does it work with odex rom ?
Envoyé depuis mon GT-I9100 avec Tapatalk
Thanx alot man
I will try it
by the way .. the name looks familiar to me
are you the same person on ce4a.......
anyway THANX
Hi and thank you for your job
I tried with success to modify my systemui and framework-res
I have only some fc when I press right botton to exit from the multitasking without cancell recents app.
It's only for me?
Thanks again and excuse me for bad english
kollyns said:
Does it work with odex rom ?
Envoyé depuis mon GT-I9100 avec Tapatalk
Click to expand...
Click to collapse
No , because you need to modify the smali file
252gt said:
Thanx alot man
I will try it
by the way .. the name looks familiar to me
are you the same person on ce4a.......
anyway THANX
Click to expand...
Click to collapse
U R welcome hope it works fine with you
There is only one GanGs_KiD here and there I am a former cooker and a new teacher....Just kidding
.malo2000 said:
Hi and thank you for your job
I tried with success to modify my systemui and framework-res
I have only some fc when I press right botton to exit from the multitasking without cancell recents app.
It's only for me?
Thanks again and excuse me for bad english
Click to expand...
Click to collapse
I think it's only happened with you...but can you tell me which Rom did you modify?
Tnx , and BTW me 2 I have a bad english
GanGs_KiD said:
I think it's only happened with you...but can you tell me which Rom did you modify?
Tnx , and BTW me 2 I have a bad english
Click to expand...
Click to collapse
I'm on a costum rom based on wanam lp9...After the mod I have lost lidroid bar Can I implement it again?
Thank you again for your job
.malo2000 said:
I'm on a costum rom based on wanam lp9...After the mod I have lost lidroid bar Can I implement it again?
Thank you again for your job
Click to expand...
Click to collapse
It should not effect lidroid bar ! but I think it's better if you asked wanam about this situation because he is the one that modified lidroid Mod for ICS so he will be the expert.
GanGs_KiD said:
It should not effect lidroid bar ! but I think it's better if you asked wanam about this situation because he is the one that modified lidroid Mod for ICS so he will be the expert.
Click to expand...
Click to collapse
Ok, I try with an other rom and it's perfect thank you again
Inviato dal mio GT-I9100 usando Tapatalk
Im a noob, can some one make it as an flashable zip,so i can install it on remix.ics ROM, thanks in advance
from raj's s2
sanghaviraj said:
Im a noob, can some one make it as an flashable zip,so i can install it on remix.ics ROM, thanks in advance
from raj's s2
Click to expand...
Click to collapse
framework-res.apk + SystemUI.apk required.
finch.****break said:
framework-res.apk + SystemUI.apk required.
Click to expand...
Click to collapse
I have requested this on the remix ROM thread
from raj's s2
It's not possible one zip for all rom any rom has a different framework-res and systemui from each other. You can do it by yourself or ask to someone to do it for you, but you have to give him your framework-res and systemui
Very useful
Enviado desde mi GT-I9100 usando Tapatalk 2
can this be done for framwork in cyanogenmod roms?
bluefa1con said:
can this be done for framwork in cyanogenmod roms?
Click to expand...
Click to collapse
In fact it can be done....with the same steps....but you need different "res" folder.
I never used CM before so I can not provide to you the "res" folder...sorry
Excuse me again....any fix for the landscape mode? it doesn't work :'(

[GUIDE] Font size in touchwiz ICS roms

So I've had some requests to recreate the edit to re-enable user selection of font size in the touchwiz Ice Cream Sandwich builds. I am not on touchwiz that much so I thought I would share it with the rest of the community in hopes that those who do put more time into touchwiz could incorporate it into their roms for everyone to use.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
The edit is actually quite easy, as the preference is simply being hidden in java. With that said, you need Settings.apk, smali/baksmali, adb knowledge, and some text editor
Instructions:
Pull Settings.apk from your phone. If you're cooking this into a ROM then obviously just grab Settings.apk from /system/app
Code:
adb pull /system/app/Settings.apk
Note: This assumes you are editing from a deodexed build. If you have an odexed ROM you can deodex your apk, make your changes, and then reodex.
Next you'll want to open the apk and pull out classes.dex. You can ultimately use apktool as well if it will work for you. I've been having some problems with classes and apktool on occasion and find baksmali to be a sure way to get it right. One you have classes.dex decompile it.
Code:
java -jar baksmali-x.xx.jar -o <[B]output directory[/B]> classes.dex
This will give you a decompiled smali output in the directory you used in bold above.
Navigate without the out folder to /com/android/settings/DisplaySettings.smali and open it with a text editor.
Look for the following, and remove the line in red from DisplaySettings.smali:
Code:
iget-object v0, v0, Lcom/android/settings/DisplaySettings;->mFontSizePref:Landroid/preference/ListPreference;
move-object/from16 v21, v0
[COLOR="Red"]invoke-virtual/range {v20 .. v21}, Landroid/preference/PreferenceScreen;->removePreference(Landroid/preference/Preference;)Z[/COLOR]
And that's the hard part. =P Now recompile the classes for your Settings.apk.
Code:
java -Xmx512M -jar smali-x.xx.jar <output from above> -o newclasses.dex
Rename newclasses.dex to classes.dex,you'll have to delete your original if you're in the same folder, and move the new compiled classes.dex back into Settings.apk.
Push Settings.apk back to your phone.
Code:
adb push Settings.apk /system/app
Change your font size in menu>settings>display
Hope this helps some of you and I look forward to seeing more ROMs with font sizes! =P
Great find and thanks for posting the guide! Did you ever find the edit to remove the AM/PM from the status bar?
dtm_stretch said:
Great find and thanks for posting the guide! Did you ever find the edit to remove the AM/PM from the status bar?
Click to expand...
Click to collapse
Haven't looked much on ICS TouchWiz yet.
whenever i try to use your method or apktool i get error when decompling. I'm able to decompile other apks like SystemUI.apk just fine. Any ideas?
graphic1982 said:
whenever i try to use your method or apktool i get error when decompling. I'm able to decompile other apks like SystemUI.apk just fine. Any ideas?
Click to expand...
Click to collapse
Yeah, some samsung apps don't recompile correctly with apktool. This is why I used baksmali to decompile instead.
still getting error when using baksmali
graphic1982 said:
still getting error when using baksmali
Click to expand...
Click to collapse
Have you tried the newest baksmali?
Sent from my SPH-D710 using xda premium
newest baksmali solved the issue. Also you may want to edit instructions to say delete every instance of the line in Displaysettings.smali. I only deleted it one time the first time i tried and the font size option didn't show up in settings>display. After I went back and deleted every instance of that line from the file it worked. Awesome job on showing how to do this mod and thanks for the help with my troubleshooting.
graphic1982 said:
newest baksmali solved the issue. Also you may want to edit instructions to say delete every instance of the line in Displaysettings.smali. I only deleted it one time the first time i tried and the font size option didn't show up in settings>display. After I went back and deleted every instance of that line from the file it worked. Awesome job on showing how to do this mod and thanks for the help with my troubleshooting.
Click to expand...
Click to collapse
Interesting. I'll look into it, thanks. All the ones I've posted for people here I've just re enabled the first list preference. Worked for me too when I tested it on fe16 and haven't heard otherwise for the few people that have downloaded the apk. But I'll double check just to be sure.
Sent from my SPH-D710 using xda premium
Anyone willing to provide a modified Settings.apk for download?
Dint even realize it was missing.
Thanks for showing everybody and creating a how to.
I will do this later this week.
i717 running Seraphim Stratosphere Collective ICS with tapatalk2
Default ICS Launcher ?
Does this work with the Default ICS Launcher ? Or can someone tell me where to find the settings in the ICS Launcher
Thank you
Curtisp said:
Does this work with the Default ICS Launcher ? Or can someone tell me where to find the settings in the ICS Launcher
Thank you
Click to expand...
Click to collapse
It should. However it doesn't seem to resize touchwiz launcher font. Never tried the ics launcher though.
Sent from my SPH-D710 using xda premium
Works as advertised. Excellent how-to, excellent post. For anyone not wanting to mess around with smali/baksmali, here's a modded Settings.apk from Calkulin's most recent FE22 ROM.
Will it work on sfhub's fe22 stock
Sent from my SPH-D710 using xda premium
Kchitown1977 said:
Will it work on sfhub's fe22 stock
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
It should, I don's see why not. There's only one way to find out. Copy this file to the /system/app directory using Root Explorer or something similar. Back up your own Settings.apk prior to that. If it doesn't work, replace it with the original file.
Kchitown1977 said:
Will it work on sfhub's fe22 stock
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
If you use a deodexed apk on an odex rom, it will work, however, youll want to remove the odex file as well.
S2 OK
Also work on Galaxy S2. Thk.

How to enable usb mass storage and on-screen buttons in Android 4.x

How to enable usb mass storage and on-screen buttons in Android 4.x (Windows Users Only)
====================================================
UPDATE:
My new tool is out! Check it out, it does the work for you
http://forum.xda-developers.com/showthread.php?p=40031460#post40031460
A) How:
======
It consists of editing some lines in framework-res.apk which you can extract from your ROM zip (/system/framework) or by using this command with adb (With phone connected via USB)
Code:
> adb pull /system/framework/framework-res.apk framework-res.apk
B) Tools:
=======
- Framework Toolkit by Themike10452 ( Me ) ==> http://www.mediafire.com/?j6ndniep6h8iwch
- XML Editor. I recommend FirstObject XML Editor (Freeware) ==> http://www.firstobject.com/dn_editor.htm
- Java Development Kit ==> http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
C) Steps:
=======
Video Tutorial: http://www.youtube.com/watch?v=9V-Ukles6w0
1 - Download and extract Framework Toolkit, then place your framework-res.apk inside [place-apk-here-for-modding] folder.
2 - Run Apk-Multi-Tool.bat as administrator, press any key to enter options menu, then use option (9) to decompile the apk
3 - Head to [projects] folder > res
4 -
a) Enabling USB Mass Storage:
- Now you are in [res] folder, go to [xml] folder, open [storage_list.xml] with an xml editor
- The 4th line looks like this:
Code:
<storage android:mountPoint="/storage/sdcard0" android:storageDescription="@string/storage_sd_card" android:primary="true" android:removable="true" android:maxFileSize="4096" />
Replace it with the following line:
Code:
<storage android:mountPoint="/storage/sdcard0" android:storageDescription="@string/storage_sd_card" android:primary="true" android:removable="true" android:allowMassStorage="true" android:maxFileSize="4096" />
- Save and go back to [res] folder
b) Enabling On-screen Buttons:
- Now you are in [res] folder, go to [values] folder
- Open bools.xml and look for the following line:
Code:
<bool name="config_showNavigationBar">[COLOR=Red]false[/COLOR]</bool>
Replace false with true, the new line should look like this:
Code:
<bool name="config_showNavigationBar">[COLOR=Green]true[/COLOR]</bool>
;; ;; Now navigation bar is enabled, we can change the bar size by editing [dimens.xml] in the same folder ;; ;;
- To do so, edit lines 14 and 16, set the dip to whatever you like
Example (17 dip):
14. <dimen name="navigation_bar_height">17.0dip</dimen>
15. <dimen name="navigation_bar_height_landscape">48.0dip</dimen>
16. <dimen name="navigation_bar_width">17.0dip</dimen>
Click to expand...
Click to collapse
You can skip line 15, it does not matter
Click to expand...
Click to collapse
5 - Save and exit, go back to main folder, re-open Apk-Multi-Tool.bat, this time use option 11 to compile the edited apk
6 - After it's done compiling it will ask you if you want to add some more files, reply with n
7 - Close Apk-Multi-Tool, run Create_zip.bat as administrator, read on-screen instructions it's very simple
8 - After it's done successfully you can collect your flash-able zip from [final-zip-here] folder
9 - Move the zip to your sd card and flash it via CWM Recovery, reboot, if you enabled USB Mass Storage make sure to change connection
method from MTP to Mass Storage in System Settings
10 - Use ##Cleanup.bat to cleanup all folders (Important if you want to use it again)
Important Do NOT use this toolkit with any other apk, just framework apk
#####################################################################################################################
////////////
Credits:
\\\\\\\\\\\\
My Toolkit includes Apk-Multi-Tool written by raziel23x ==> http://forum.xda-developers.com/showthread.php?t=1310151
Zip creator script was written by me
Does this work on CM9/10? Of course it does!
Leave your comments below and hit thanks if I helped you :good: :cyclops:
i have error
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Zizo950 said:
i have error
Click to expand...
Click to collapse
You have to insall Java Development Kit on your machine
Here: http://www.oracle.com/technetwork/java/javase/downloads/java-se-jdk-7-download-432154.html
Update: Don't forget to add Java to PATH variable
Here's how to: http://www.youtube.com/watch?v=58ZO_NaAOfU
Themike_10452 said:
You have to insall Java Development Kit on your machine
Here: http://www.oracle.com/technetwork/java/javase/downloads/java-se-jdk-7-download-432154.html
Update: Don't forget to add Java to PATH variable
Here's how to: http://www.youtube.com/watch?v=58ZO_NaAOfU
Click to expand...
Click to collapse
Thank You Is Work Good
Zizo950 said:
Thank You Is Work Good
Click to expand...
Click to collapse
I'm glad to hear it
Solved
Saingpor said:
I got bootloops after flashing update_CWM.zip !
Do i need to sign that apk before make a flashable.zip ?
Or can you give some idea ?
I only try to enable OSB ! ( Stock ICS 4.0.4 ) ( 4.1.B.631)
Click to expand...
Click to collapse
Just follow the video instructions (link in post) and you shouldn't face any problems, the steps include signing the APK and everything,
I use this script myself and no problems. If you have any further problems or questions just let me know, I'll be happy to help.
You can send me your framework-res.apk if you want me to mod it for you.
Well I've released an automated tool to do the job a while ago please check it out
http://forum.xda-developers.com/showthread.php?t=2224784
it supports android 4.0 4.1 & 4.2
Sent from my LT18i using xda premium
auto rotate lockscreen
i try this method to change my xperia sola JB A.1.100 framework-res.apk
to make auto rotate lockscreen like this http://forum.xda-developers.com/showthread.php?t=1525045
after compiling (step 6), i got system_framework-res.apk and the size is same with the original,about 13Mb
but after i run Create_zip.bat, the flashable zip size only 6Mb.
after i flash from CWM, my phone stuck at bootscreen
is it normal that the file size change?
i try alot of method to decompile/compile framework-rest.apk and always stuck at bootscreen
deyanti01 said:
i try this method to change my xperia sola JB A.1.100 framework-res.apk
to make auto rotate lockscreen like this http://forum.xda-developers.com/showthread.php?t=1525045
after compiling (step 6), i got system_framework-res.apk and the size is same with the original,about 13Mb
but after i run Create_zip.bat, the flashable zip size only 6Mb.
after i flash from CWM, my phone stuck at bootscreen
is it normal that the file size change?
i try alot of method to decompile/compile framework-rest.apk and always stuck at bootscreen
Click to expand...
Click to collapse
the file size of the apk should become smaller yes
Sent from my Xperia Arc S using xda premium
deyanti01 said:
i try this method to change my xperia sola JB A.1.100 framework-res.apk
to make auto rotate lockscreen like this http://forum.xda-developers.com/showthread.php?t=1525045
after compiling (step 6), i got system_framework-res.apk and the size is same with the original,about 13Mb
but after i run Create_zip.bat, the flashable zip size only 6Mb.
after i flash from CWM, my phone stuck at bootscreen
is it normal that the file size change?
i try alot of method to decompile/compile framework-rest.apk and always stuck at bootscreen
Click to expand...
Click to collapse
if your ROM is odexed this won't work because the apk needs to be signed with the original build key. so this method only works for deodexed ROMs.
Sent from my Xperia Arc S using xda premium

[MOD][HOW-TO] Add Flashlight quick toggle [4.3|4.4]

Hey guys! Today I'll be showing you how to add the Flashlight toggle to your quick toggles:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
UPDATE: Once you have completed the mod below, you (and your users) can enable the flashlight toggle by flashing the zip HERE. It uses busybox and an included binary to add the toggle to notification_panel_active_app_list, so it will work with all devices that this mod applies to. Again, feel free to share this but give credits where due!
Items you will need
SystemUI.apk from the rom you are modding
SecSettings.apk from the rom you are modding
Notepad++ or another text editor of your choice (NOT regular Notepad, it messes up the encoding)
apktool or baksmali+smali or VTS, etc
Click to expand...
Click to collapse
Items you will need
Step 1: Modding SystemUI.apk
Step 2: Modding SecSettings.apk
Click to expand...
Click to collapse
Now before we get started, download the attachment with the files you will need for this mod (attached to this post...make sure you grab the right version for the system you are modifying)
Now lets get started!
[size=+1]Step 1: Modding SystemUI.apk[/size]
Decompile SystemUI.apk and navigate to com/android/systemui/statusbar/policy/quicksetting in your file browser
Copy and paste FlashlightQuickSettingButton.smali from inside the zip you downloaded (flashlight_files.zip/SystemUI/FlashlightQuickSettingButton.smali) into this folder
Navigate to SystemUI/res/drawable-xhdpi (or SystemUI/res/drawable-xxhdpi depending on your device)
Copy and paste the two pngs (tw_quick_panel_icon_flashlight_off.png and tw_quick_panel_icon_flashlight_on.png) from the SystemUI folder of the attachment into the decompiled drawable folder you opened above
Now navigate to SystemUI/res/values and open the strings.xml with your text editor
Search for "quickpanel_flashlight_text". If it does not exist anywhere in the file, add this to the bottom of your strings.xml file:
PHP:
<string name="quickpanel_flashlight_text">Flashlight</string>
That's it or SystemUI! Now recompile SystemUI.apk and move on to step 2. At this point, the toggle will show up in the full toggles view (when you add ";Flashlight" to the CscFeature... or to the notification_panel_active_app_list in /data/data/com.android.providers.settings/settings.db) in the status bar, but Settings will FC if you try to go into edit mode/rearrange toggles mode
Click to expand...
Click to collapse
[SIZE=+1]Step 2: Modding SecSettings.apk[/SIZE]
Decompile SecSettings and navigate to com/android/settings
Open NotificationPanelMenu.smali and search for the method ".method private makeConvertPanelName"
Make sure that the following lines are present somewhere in the makeConvertPanelName method. Notice that they are NOT the same, but indeed very similar.
Code:
iget-object v0, p0, Lcom/android/settings/NotificationPanelMenu;->mConvertPanelItemstring:Ljava/util/HashMap;
const-string v1, "Flashlight"
const-string v2, "notification_panel_flashlight"
invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
[B]AND[/B]
iget-object v0, p0, Lcom/android/settings/NotificationPanelMenu;->mConvertPanelItemstring:Ljava/util/HashMap;
const-string v1, "notification_panel_flashlight"
const-string v2, "Flashlight"
invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
If the 8 lines above are not anywhere in the
Code:
makeConvertPanelName
method, then add them to the end of the method before the
Code:
return-void
Now save the file and close it and navigate to SecSettings/res/values/strings.xml
Add the following line to your strings.xml if it does not already exist (yes, it has the same name as the image. That's supposed to happen so don't worry)
PHP:
<string name="notification_panel_flashlight">Flashlight</string>
Save and close strings.xml and navigate to SecSettings/res/drawable-xhdpi or drawable-xxhdpi depending on your device
Extract the notification_panel_flashlight.png from attachment.zip/SecSettings and copy it into the drawable folder from above
Finally, recompile SecSettings with your modifications
Click to expand...
Click to collapse
Now for the final step, take your modified SecSettings.apk, SystemUI.apk and add them to the /system/app folder of your rom and you are good to go!
Congratulations, you just added the Flashlight toggle to your rom. Enjoy
Note: Devs are free to use this mod in their rom. Just make sure you give credits where they are due
If you have any issues, I'd be more than happy to help :good:
Thanks to:
Samsung for the AT&T base code this was pulled from!
Rompnit for finding the at&t code and the first part of the mod!
Google for the wonderful logcat tool built into Android that allowed me to figure out the second part of the mod!!
Nice! Thanks so much for spelling it out. I'll be running through this tomorrow. Cheers. :thumbup:
Sent from my SPH-L710 using xda premium
Thanks man you are awesome! !!!!!
Sent from my SPH-L900 using Xparent Green Tapatalk 2
Very nice man. I'll get this added next weekend.
Thanks CNexus, great tutorial.
Thanks dude, I will be trying this tomorrow. Greatly appreciated
Sent from my SPH-L900 using XDA Premium 4 mobile app
Thank you bro! Just wish we had a simple flashable mod or xposed mod but since these are based off unique res, it is not possible (well somewhat, but it can be too buggy). Sucks we have to go through this. Lazy ass me lol.
Sent from my SGH-M919 using XDA Premium 4 mobile app
Nice work.. Thanks
Sent from my SCH-I535 using Tapatalk
CNexus said:
Hey guys! Today I'll be showing you how to add the Flashlight toggle to your quick toggles:
[SIZE=+1]Now before we get started, download the attachment with the files you will need for this mod (attached to this post...scroll down)[/size]
Now lets get started!
Click to expand...
Click to collapse
Great Job OP...
Sent from my SM-N900P using XDA Premium 4 mobile app
I've gotten as far as step 10
Code:
Now navigate to com/android/systemui/statusbar/policy/quicksetting and open FlashlightQuickSettingButton.smali with your text editor
but can't find FlashlightQuickSettingButton.smali there. Using AndroidMultitool. Will try again with different decompiled app.:good:
baseballfanz said:
I've gotten as far as step 10
Code:
Now navigate to com/android/systemui/statusbar/policy/quicksetting and open FlashlightQuickSettingButton.smali with your text editor
but can't find FlashlightQuickSettingButton.smali there. Using AndroidMultitool. Will try again with different decompiled app.:good:
Click to expand...
Click to collapse
You added that file into that folder in step 2.
baseballfanz said:
I've gotten as far as step 10
Code:
Now navigate to com/android/systemui/statusbar/policy/quicksetting and open FlashlightQuickSettingButton.smali with your text editor
but can't find FlashlightQuickSettingButton.smali there. Using AndroidMultitool. Will try again with different decompiled app.:good:
Click to expand...
Click to collapse
See below. You either skipped a step or misread it or something
MetalMan2 said:
You added that file into that folder in step 2.
Click to expand...
Click to collapse
I did add the two files but might have added them to the wrong folder. I'll try it again with the other folder.
Thanks guys.
baseballfanz said:
I did add the two files but might have added them to the wrong folder. I'll try it again with the other folder.
Thanks guys.
Click to expand...
Click to collapse
It's 3 files you need to add. The flashlight smali file into the quicksettings folder in SystemUI/smali/... and the two pngs into res/drawable.
Can you make a flash zip?
Sent from my SPH-L710 using xda app-developers app
Small question Cnexus..
I believe this sceenshot to be the incorrect way.
Or do i just replace the "0x0" the the id# of 0x........ ?
Thanks for the tut and the Help
https://www.dropbox.com/s/3nl68ro9cmfucgu/Screenshot 2014-01-20 19.16.36.png
jlyle said:
Small question Cnexus..
I believe this sceenshot to be the incorrect way.
Or do i just replace the "0x0" the the id# of 0x........ ?
Thanks for the tut and the Help
https://www.dropbox.com/s/3nl68ro9cmfucgu/Screenshot 2014-01-20 19.16.36.png
Click to expand...
Click to collapse
Don't know if you figured it out yet, but the screenshot is wrong. I just got this working on the synergy rom. Just the "0x0" with whatever corresponds to it, like 0x154whatever
jlyle said:
Small question Cnexus..
I believe this sceenshot to be the incorrect way.
Or do i just replace the "0x0" the the id# of 0x........ ?
Thanks for the tut and the Help
https://www.dropbox.com/s/3nl68ro9cmfucgu/Screenshot 2014-01-20 19.16.36.png
Click to expand...
Click to collapse
You replace each 0x0 with the corresponding id
jorv976 said:
Can you make a flash zip?
Sent from my SPH-L710 using xda app-developers app
Click to expand...
Click to collapse
I made this one for the synergy rom, I think you'll still have to use this guide to do the rest, but that's all on the phone and real simple
http://d-h.st/Zqx

[GUIDE][GB] Swipe Recent Apps (UPDATE! NOOB-FRIENDLY!)

Swipe to kill recent Apps​
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
***Thread Revamped***
What's Hot?
-Easy and noob friendly thread. Thanks to sir @SpaceCaker, no-ids method
-Added Flag: FLAG_SHOW_WALLPAPER (Like on JB)
-Relayout appsview_item, (JB-look)
-added click-change color (See screenshot)
-transparent list selector, when clicking.
-Kills everybody except com.android.stk (Sim toolkit) because it restarts the signals
-automatically dismisses the recent lists when you swipe it all or you click on the outside
of listview.
What's Not?
-A little bit laggy when swiping (it's only little, trust me.)
-Fast swiping may cause autoreboot (IndexOutOfBoundsException)
-It just kills the app, but it doesn't remove it from recent lists. It means that if you reopen
the recent lists, the apps that has been swiped will show again. (GB limitations </3)
-no app screenshot
Video (OUTDATED):http://www.youtube.com/watch?v=iQGq3XhWkQE
Click to expand...
Click to collapse
Things you need:
Just be yourself. HAHA. xD I know it's very short now. As in very very short. That ids method from sir SpaceCaker was very helpful on cleaning my guide
Steps
1.) decompile android.policy.jar.
2.) download policy_swipe.zip on attachment and extract it on smali/com folder.
3.) recompile your android.policy.jar
4.) decompile framework-res.apk
5.) download framework_swipe.zip and extract it on res folder
6.) go to res/values/ids.xml and add this before </resources>:
LOOK LIKE THIS:
Click to expand...
Click to collapse
Code:
<item type="id" name="ll">false</item>
<item type="id" name="iVIcon">false</item>
<item type="id" name="tVName">false</item>
<item type="id" name="mainlayout">false</item>
<item type="id" name="swiperecent">false</item>
<item type="id" name="taskman">false</item>
<item type="id" name="noapps">false</item>
</resources>
7.) Save. Now open res/values/drawables.xml and add this before </resources>
LOOK LIKE THIS:
Click to expand...
Click to collapse
Code:
<item type="drawable" name="normal">#ffe1e1e1</item>
<item type="drawable" name="pressed">#bbe1e1e1</item>
</resources>
8.) Save and recompile all and flash it (Dont push!). If it works, Jump! if not, post a logcat so we can easily track the bug.
Sources
Github Swipe Recent Apps
Credits
Roman [email protected]
[email protected]
NineOldAndroids
StackoverFlow.com
@SpaceCaker
@PineappleOwl
@mariozawa
Lenox Devs
Potato Inc​
Help
For those who want to change the intent of task manager and also if the task manager button is not working:
Open RecentApplicationsDialog$2.smali and go to .line 86:
You will find this:
Code:
.line 86
.local v1, i:Landroid/content/Intent;
new-instance v2, Landroid/content/ComponentName;
const-string v3, "com.sec.android.app.controlpanel"
const-string v4, "com.sec.android.app.controlpanel.activity.JobManagerActivity"
This is the target package:
Click to expand...
Click to collapse
Code:
com.sec.android.app.controlpanel
Change this to:
Click to expand...
Click to collapse
Code:
com.android.settings
After that, Change also this, This is the target class:
Click to expand...
Click to collapse
Code:
com.sec.android.app.controlpanel.activity.JobManagerActivity
To this:
Click to expand...
Click to collapse
Code:
"com.android.settings.RunningServices"
IT WILL BE LIKE THIS:
Click to expand...
Click to collapse
Code:
.line 86
.local v1, i:Landroid/content/Intent;
new-instance v2, Landroid/content/ComponentName;
const-string v3, "com.android.settings"
const-string v4, "com.android.settings.RunningServices"
How to change the background of recent dialog list:
1.) Open framework-res/res/layout/recent_apps_dialog.xml
Add this on the top line:
Code:
android:background="#DesireHexCode"
2.) Change it to your desire hexcode/gradient/background/drawable/png.
Save and recompile. A big thanks for this people @SK(SurajKumar) , @pritish sahoo and @sssomnath474 :good: :good: :good:
Looks cool ..amazing work :good:
Awesome. It work on me But can i know how to make the app view look like ICS/JB
A big Thank... :good:
cooolll.. will try soon.
hahaha good job sir,
GSculerlor said:
Awesome. It work on me But can i know how to make the app view look like ICS/JB
Click to expand...
Click to collapse
Modify the appview_item.xml on framework-res/res/layout sir I dont know how to get the screenshot of the app, I think we dont have that haha
could you make this for other roms such as CM7 based so we can flash it, I would do it myself but my computer is broken.
faZevoLv said:
could you make this for other roms such as CM7 based so we can flash it, I would do it myself but my computer is broken.
Click to expand...
Click to collapse
sorry sir, i rarely use other roms, you can do it sir on apktool mobile, but patience is needed xD
tentenponce said:
sorry sir, i rarely use other roms, you can do it sir on apktool mobile, but patience is needed xD
Click to expand...
Click to collapse
Its okay, great job btw
faZevoLv said:
could you make this for other roms such as CM7 based so we can flash it, I would do it myself but my computer is broken.
Click to expand...
Click to collapse
I tried it on cm7 - didnt work - it uses different xmls and smalis I think
Nothing happend when you long press
I logcatted it if you wanna see
I only did it quickly so apologies if I did miss anything - if the op could test it on cm7 and confirm that would be useful to others
logcat in attachment
update - the phone does bootloop if used with cm7 - see my post on next page for logcat
nice guide sir tenten pinoy rocks :good:
Please share!
ah tentenponce, Can you share your framework.apk? hehe I wants to make transparent app view like yours, thanks
datvui2211 said:
ah tentenponce, Can you share your framework.apk? hehe I wants to make transparent app view like yours, thanks
Click to expand...
Click to collapse
The background of mine was not transparent haha its gradient semi transparent. Can you show your screenshot? I might be wrong.
marcussmith2626 said:
I tried it on cm7 - didnt work - it uses different xmls and smalis I think
Nothing happend when you long press
I logcatted it if you wanna see
I only did it quickly so apologies if I did miss anything - if the op could test it on cm7 and confirm that would be useful to others
logcat in attachment
Click to expand...
Click to collapse
Sir, i cant find the error on your logcat, whats happening after you long press the home button sir? does your phone goes hotboot? or just nothing happen? because on your logcat, there's no dialog or androidruntime that has a connect on recentappsdialog. Try to put on filter, androidruntime and choose error sir.
tentenponce said:
The background of mine was not transparent haha its gradient semi transparent. Can you show your screenshot? I might be wrong.
Click to expand...
Click to collapse
It's ok, just share it
This is mine
Sent from my GT-S5360 using Tapatalk 2
tentenponce said:
Sir, i cant find the error on your logcat, whats happening after you long press the home button sir? does your phone goes hotboot? or just nothing happen? because on your logcat, there's no dialog or androidruntime that has a connect on recentappsdialog. Try to put on filter, androidruntime and choose error sir.
Click to expand...
Click to collapse
I couldnt see the error either
Just nothing happens - the phone vibrates and nothing happens - I'll look at it again later
datvui2211 said:
It's ok, just share it
This is mine
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
Why its not swipe? its the stock recent application list.
marcussmith2626 said:
I couldnt see the error either
Just nothing happens - the phone vibrates and nothing happens - I'll look at it again later
Click to expand...
Click to collapse
Maybe sir you forgot something? I dont know too sir, I dont have enough knowledge about other roms. sorry sir

Categories

Resources