Here goes another mod: this will increase your max recipient count to 200, and raise the limit of sms per hour to 1000.
NOTE: Not all steps may be required, but I did them anyway. If you see something or try this method missing steps and it works, please reply back and let me know.
First, I want to say that the reason people are having FC when selecting more than two recipients is the way the apk is decompiled/recmopiled. If you don't do it a certain way, it will FC when adding more than two recipients. I'll save that for another tutorial because this only requires editing smali.
First you want to decompile classes.dex and do the following:
Part one - increasing recipient limit
Step 1.
Navigate to and open \com\android\mms\MmsConfig.smali
Look for:
Code:
sput-boolean v1, Lcom/android/mms/MmsConfig;->mEnablePickContactLimit:Z
Change the sput-boolean from v1 to v0
Step 2.
Look for:
Code:
.method public static setRecipientLimit(I)
Remove below:
Code:
sput p0, Lcom/android/mms/MmsConfig;->mRecipientLimit:I
Step 3.
Look for:
Code:
.method public static getRecipientLimit()I
Remove below:
Code:
sget v0, Lcom/android/mms/MmsConfig;->mRecipientLimit:I
Step 4.
Look for:
Code:
.method public static getEnablePickContactLimit()Z
Remove below:
Code:
sget-boolean v0, Lcom/android/mms/MmsConfig;->mEnablePickContactLimit:Z
Save and close this file.
Step 5.
Next, navigate to and open \com\android\mms\ui\ComposeMessageFragment.smali
Look for:
Code:
.method public static getPickContactLimit()I
This may be responsible for the 200 limit as well, since 0xc8 = 200. Removing this does nothing for the 200 limit. But changing this to a higher number may increase the limit even more. I haven't bothered to find out. Report back any findings.
Remove below:
Code:
const/16 v0, 0xc8
Save and close this file.
Part two - Increasing SMS hour limit
Step 1.
Navigate and open \com\android\mms\util\RateController.smali
Look for:
Code:
.field private static final RATE_LIMIT:I = 0x64
This value is in hexadecimal format, so we see that 0x64 = 100. So, to increase this to 1000 simply change 0x64 to 0x3e8
Save and close this file.
Recompile your classes.dex and replace the one in your SecMms.apk.
NOTE: There may be more to removing this limit, but since I don't send that many messages to test it out, someone else will have to
{
"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"
}
awesome job like always
You
Are
A god!!!!
XDA Moderator
Every time I turn around there's a new mod from you
I got your uncompressed mod working perfectly. Its just too bad I don't have enough contacts/friends to warrant flashing this mod in recovery. 200? Howz about 8?
Do you ever stop?.... lol.
Sent from my SPH-L710 using xda app-developers app
Okay, can someone let me know if all is well?
Messeging doesn't work for me at all now
Sent from my SPH-L710 using xda app-developers app
ClevelandWheeler said:
Messeging doesn't work for me at all now
Sent from my SPH-L710 using xda app-developers app
Click to expand...
Click to collapse
Hm....okay hold please!
Thanks for your contribution .
Okay, I went ahead and just wrote the tutorial.
Awesome my friend! You are like half my ROM with all your mods! The community thanks you!
how about for aosp messaging apk
not a fan of touchwiz
i followed the old thread in general to no avail.
I can't find com folder
stas333 said:
I can't find com folder
Click to expand...
Click to collapse
How did you decompile your classes.dex
Sent from my SPH-L710 using xda app-developers app
Deleted. Because I can't refresh fast enough.
Sent from my SPH-L710 using xda premium
Can you upload a zip with this MOD? It works well in your own ROM.
Sent from my SPH-L710 using xda premium
Is there a zip from this?
Sent from my SGNote 3
ubigred said:
Is there a zip from this?
Sent from my SGNote 3
Click to expand...
Click to collapse
No
My ROM: WICKED X
Related
Hi all,
Since I'm new to the forum and can't really post on the development section, I've decided to share here my experience in the hope that it answers a few questions regarding this thread[1].
I've flashed with Odin the Value Pack (Czech, don't ask me why) on my terminal and it went without issues. Yes it was the first time, but it went through based on information I gathered around through Google.
Regarding the new features, I find facial recognition a cool thing to show friends, but not really something I would like to default to in normal day-to-day usage. There's a few cool new icons, the accessibility/camera options are there (no testing) and the ROM is quite polished.
In my humble opinion, my expectations were higher than the satisfaction so I feel a bit defrauded. This doesn't really replace ICS and consumers won't like it. Samsung brought shame into the game. Just the hassle of having all the Samsung stuff back on my terminal doesn't pay off for the 'Value Pack'. My gratiture to those who made available so we can check it up before it's released by my lame operator (that alongside with a few others could try to push Samsung to release ICS). I need to confirm but the battery does seem to deploy a bit faster...
I rest my hopes now on Cyanogen, and those brave people have really my gratitude.
The install of the Value pack through Odin3 was quite easy, even for a first timer.
[1] - http://forum.xda-developers.com/showthread.php?t=1570726
{
"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"
}
same here, long time registered but never had the time to post.
thanks for the link i'll check it out when i get home, by the way what ROM are you currently using?
Wait...the Value Pack is already out?!
@ketheriel: Can you send me the name of your grey widget in top of your screenshot??
Go Power Master... Not sure but I have my reasons to suspect this widget drains a lot of battery.
Sent from my GT-I8150 using XDA
Excuse me, an off-topic question : what date/tie/status widget are you showing in your home?
Thank you!
Edit: Sorry, I didn't read the above posts!
just courious with XXLM6 rom, then I decompile Mms.apk,
found a strange user-agent profile on res/xml/mms_config.xml: Ln 14 & 15
Code:
<string name="uaProfUrl">\h\t\t\p://wap.\samsungmobile.\com\/uaprof\/GT-I9100.\xml</string>
<string name="userAgent">SAMSUNG-GT-I9100-Mms</string>
why they use GT-I9100 mms user-agent?
also found some variable that related with word "theme".
eg: on services.jar/com/android/server/am/ActivityManagerService.smali: Ln 58273
Code:
new-instance v11, Landroid/content/Intent;
[B] const-string v4, "samsung.theme_package_changed"[/B]
invoke-direct {v11, v4}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
on framework.jar/android/app/StatusBarManager.smali
Code:
.method public updateTheme()V
.locals 2
.prologue
.line 184
:try_start_0
iget-object v1, p0, Landroid/app/StatusBarManager;->mService:Lcom/android/internal/statusbar/IStatusBarService;
invoke-interface {v1}, Lcom/android/internal/statusbar/IStatusBarService;->updateTheme()V
:try_end_0
.catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0
.line 189
return-void
.line 185
:catch_0
move-exception v1
move-object v0, v1
.line 187
.local v0, ex:Landroid/os/RemoteException;
new-instance v1, Ljava/lang/RuntimeException;
invoke-direct {v1, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V
throw v1
.end method
not only services.jar, a word "theme" related also found at framework.jar and probabbly at other place.
is they really put theming features on XXLM6 rom ?
it's strange
Thanks... very nice!
I think XXLM6 is possible to theming.
I was trying to add Skins to Settings> Screen Display menu (Settings/res/xml/screen_display.xml) :
Code:
<PreferenceScreen android:title="@string/set_theme" android:key="set_theme" android:summary="">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.ThemePicker3D" />
</PreferenceScreen>
also add set_theme_settings.xml to Settings/res/value/ :
Code:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/set_theme" android:key="set_theme" android:summary=""
xmlns:android="http://schemas.android.com/apk/res/android">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.ThemePicker3D" />
</PreferenceScreen>
its success add theme menu, but don't know to put customized theme.
any developer interested on it?
I've managed to 'unlock' screen mode on our US Galaxy S IIIs. However, it doesn't currently change anything, at least from what I can tell.
I'm not sure if we're missing some libs from the international model or what, but if anyone wants to download an international ROM and help figure out what's making it not work, I'd appreciate the help!
I'm attaching a flashable zip as well as instructions on how to enable this yourself.
How-to for devs:
Decompile SecSettings.apk OR extract classes.dex and decompile that.
Navigate to \com\android\settings\DisplaySettings.smali
LOOK FOR:
Code:
const-string v6, "mode"
invoke-virtual {p0, v6}, Lcom/android/settings/DisplaySettings;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;
REMOVE BELOW:
Code:
invoke-virtual {v7, v6}, Landroid/preference/PreferenceScreen;->removePreference(Landroid/preference/Preference;)Z
SIDE NOTE:
You can also change the invoke-virtual from v7, v6 to v6, v9 and it will still work. However, it will make the "auto adjust screen tone" no longer appear. The key to making screen mode work will more than likely be in this file, or missing libs. Maybe.
Recompile SecSettings or classes.dex and push to phone.
{
"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"
}
Awesome freeza, will download stock international when I go to Wegmans lol! No WiFi at my apartment
So nothing FC's? Just doesn't change anything?
Did you post the instructions? Or have you not had time to do it yet? I didnt see it in the zip file.
fergie716 said:
Awesome freeza, will download stock international when I go to Wegmans lol! No WiFi at my apartment
So nothing FC's? Just doesn't change anything?
Click to expand...
Click to collapse
Yeah. pretty much. At first I had FCs but I solved them, now it just doesn't change anything. It doesn't even show a preview of how it would look if you tapped on one of the options.
I'm assuming either libs are missing, or maybe I just didn't do something right in smali. At any rate, at least I want to narrow down if libs are the issue so I can continue or not.
Thanks for the help, it is much appreciated
Didact74 said:
Did you post the instructions? Or have you not had time to do it yet? I didnt see it in the zip file.
Click to expand...
Click to collapse
Instructions will be in the OP in about 5 minutes.
Cool, nice work freeza!
freeza said:
Yeah. pretty much. At first I had FCs but I solved them, now it just doesn't change anything. It doesn't even show a preview of how it would look if you tapped on one of the options.
I'm assuming either libs are missing, or maybe I just didn't do something right in smali. At any rate, at least I want to narrow down if libs are the issue so I can continue or not.
Thanks for the help, it is much appreciated
Instructions will be in the OP in about 5 minutes.
Click to expand...
Click to collapse
Thanks! Will check it out man
Here is a video going through the various screen modes. I hope it's not HW dependent and it's just a lib issue
http://www.youtube.com/watch?v=0zDlaax-boY
instead of "REMOVE" do you mean "Change to"?
I cant find that second line of code in my DisplaySettings.smali
Didact74 said:
instead of "REMOVE" do you mean "Change to"?
I cant find that second line of code in my DisplaySettings.smali
Click to expand...
Click to collapse
I should have clarified. The line you wanna remove is slightly below what you look for in the beginning.
Hey freeza, here is the SecSettings.apk from the stock ICS International version
Going over the libs now
Ok so does it work just by flashing ?
Sent from my SPH-L710 using Tapatalk 2
Upstreammiami said:
Ok so does it work just by flashing ?
Sent from my SPH-L710 using Tapatalk 2
Click to expand...
Click to collapse
The options appear and you're able to change them, but nothing happens, as of yet.
freeza said:
The options appear and you're able to change them, but nothing happens, as of yet.
Click to expand...
Click to collapse
On cool thanks there's always hope lol
Sent from my SPH-L710 using Tapatalk 2
Here are all of the libs that are in the International version but are not in the Sprint version
I can upload all the libs that differentiate between the two models if you want
freeza said:
Click to expand...
Click to collapse
I dont want to get off track of this thread but i noticed you have the CRT Animation toggle in your settings. Any chace when you get time you could post up a how-to for that mod?
Thanks Freeza
Didact74 said:
I dont want to get off track of this thread but i noticed you have the CRT Animation toggle in your settings. Any chace when you get time you could post up a how-to for that mod?
Thanks Freeza
Click to expand...
Click to collapse
Haha you noticed! That's a work in progress but once it's complete i will most definitely post
freeza said:
Haha you noticed! That's a work in progress but once it's complete i will most definitely post
Click to expand...
Click to collapse
Tease!
Dup post.....sorry.
Dup Post...sorry
Can't wait for you to incorporate this into your rom!
Devices:
Samsung Galaxy S3
Asus Transformer
Motorola DroidX
Motorola Droid Bionic
Motorola Droid 1
Motorola Cliq
Please Visit www.teendroid.com
You sir are doing great work over here, I am glad you picked up an S3. So much contributed to this phone already, Thanks a lot!
I was able to decompile and recompile the Message.apk using the GUI APK tool here and some help from the members
My spacing is a little off with the text being too much on the left and not enough space inbetween the outgoing messages and the incoming messages. You will see what I mean.
I plan to making this work for all the colors they offer and hopefully being able to change some in the process. Not sure how to change the font colors yet. The background seems easy enough.
Any help on how to make this balance out would be great. I think its something about editing 9png?
{
"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"
}
Once again any help would be greatly appreciated!
Good, if you need help, write me
Guich said:
Good, if you need help, write me
Click to expand...
Click to collapse
Of course I need help haha
Now need to figure out where the text colors are stored too. Anyone?
Sent from my HTC One using xda app-developers app
mrmomoman said:
Of course I need help haha
Now need to figure out where the text colors are stored too. Anyone?
Sent from my HTC One using xda app-developers app
Click to expand...
Click to collapse
Color text is in:
Code:
res/values/colors.xml
.
I've edited this , but now i'm searching the string for the dimension of bubble
Getting closer. the spacing is almost there. A little more.
Thanks for the color location.
Funny this is the first time I really like the stock messagjng client.
Sent from my HTC One using xda app-developers app
Isn't it controlled by the black bars in the 9.png file? I am using gimp now to figure out the spacing.
Sent from my HTC One using xda app-developers app
The dimensions of bubble is setted by a string i suppose...
did you edit the bubbles labeled me or did you copy and rename the ones labeled other?
if edited did you make the 9patch match what is on the ones labeled other?as well as size?
dased14 said:
did you edit the bubbles labeled me or did you copy and rename the ones labeled other?
if edited did you make the 9patch match what is on the ones labeled other?as well as size?
Click to expand...
Click to collapse
I renamed the bubble like original .9.png icons.
But the dimensions are the same of left bubble.
Theoretically the dimensions are regolated from an xml like dimens.xml, i tried to edit it, but i have error in compiling new apk
dased14 said:
did you edit the bubbles labeled me or did you copy and rename the ones labeled other?
if edited did you make the 9patch match what is on the ones labeled other?as well as size?
Click to expand...
Click to collapse
I copied the white box 9.png to renamed it to the blue theme which is the 01.9.png one and that's how I got the white box. I was able to get it to work as in the screen shot but the spacing is not the same since the original one for the outgoing text was never auto-sized. it was a line over it and space below. But the text was always carried out to the left end and the spacing seems to be fixed.
My thought is if I copied the 9.png white box and its originally set (black bars in the 9.png ) to be on the left side then I need to flip it horizontally and vertically to get it to match the other side right?
Does that make sense?
I haven't tried that yet but I think I will.
Makes sense but probably wont work, you can try to edit the 9 in draw9patch is in android sdk tools to extend the 9patch up the left side and across the top. I'll look into the text spacing when i have a few free minutes
Sent from a Tweaked Out HTC ONE
ATTACK said:
TOOLS<< You could skip any or all of these if you already have them <<
+APKTOOL
+ANDROID SDK
+JAVA JDK7u25
+ANDROID COLOR CONVERTER
+SMALI/BAKSMALI
+NOTEPAD++
+ SETTING UP YOUR APKTOOL FOLDER (Most can be found in Android SDK)
-Apktool
-aapt
-adb
-AdbWinApi
-AdbWinUsbApi
-baksmali
-CMD <<Command Prompt from your computer>>
-smali
---------------------------------------------------------------------------------------------------------------
+INSTALLING FRAMEWORK & DECOMPILING
Place your framework-res.apk & SystemUI.apk inside your Apktool folder
In CMD type:
Code:
apktool if framework-res.apk
Then type:
Code:
apktool d SystemUI.apk
That create's a folder with the decompiled SystemUI. That's where the smali files are. Follow the path the I said it the thread to the smali files and find the color that you want to change.
When placing the smali color code in Android Color Converter click on the HEX box. that will bring up the color.
When your done you will need to recompile so in CMD type:
Code:
apktool b SystemUI SystemUI.apk
Then just flash or move the recompiled SystemUI on your phone.
Click to expand...
Click to collapse
With the help of @ATTACK, I found out how to change Halo's wave animation!
You are going to want to look in Halo.smali (edit with Notepad++) and search (Ctrl+F) for "-0xcc4a1b". Now, Google Hex Color Picker and choose the color you want for the wave. Then, open up the Android Color Converter you downloaded earlier, put the Hex Color Code in the Hex dialog box (the first blank space). Now, click "Preview" and then copy the Smali color code. Replace "-0xcc4a1b" with that. You're all done, now you can recompile your SystemUI.apk, flash it, and have fun!
NOTE: MAKE SURE YOU HAVE A FAIRLY RECENT NANDROID BACKUP OF YOUR DEVICE IN CASE ANYTHING GOES WRONG!!
DISCLAIMER: NEITHER I NOR @ATTACK ARE RESPONSIBLE IF YOUR DEVICE IS HARMED IN ANY WAY, SHAPE, OR FORM!
Thank you and have a nice day c:
EDIT: I AM FAIRLY SURE THIS WORKS FOR ANY DEVICE, BUT I AM NOT POSITIVE!! POST HERE IF YOU'RE USING A DEVICE OTHER THAN THE NEXUS 7 AND IT WORKS!!
Devices this has been tested on and works:
[x] Nexus 7
For those of you who DON'T know what the "wave" I am talking about is,
{
"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"
}
Reserved.
By wave what exactly are you talking about? The animation ping?
Sent From A Soul Stealing Ginger using Tapatalk 4 Beta
infamous916 said:
By wave what exactly are you talking about? The animation ping?
Sent From A Soul Stealing Ginger using Tapatalk 4 Beta
Click to expand...
Click to collapse
When you slide your notifications out, then back to the Halo, the little wave. If that's what you're talking about, then yes.
Yea the animated ping, most ROMs now have that integrated into the system where you can change the color I know beanstalk, vanilla root box, CMod, PA all have it
Sent From A Soul Stealing Ginger using Tapatalk 4 Beta
infamous916 said:
Yea the animated ping, most ROMs now have that integrated into the system where you can change the color I know beanstalk, vanilla root box, CMod, PA all have it
Sent From A Soul Stealing Ginger using Tapatalk 4 Beta
Click to expand...
Click to collapse
It must've been intergrated into the newest PA version, since I (grouper) don't have it yet. I guess this will become obsolete if/when they release the color changing.
Even still its great to know how to do it for people that don't have the privledge
Sent From A Soul Stealing Ginger using Tapatalk 4 Beta
infamous916 said:
Even still its great to know how to do it for people that don't have the privledge
Sent From A Soul Stealing Ginger using Tapatalk 4 Beta
Click to expand...
Click to collapse
It's fun messing around with code than can break your device
I'm still not sure what the wave is exactly? Would it be possible to capture a screen shot?
Rob357 said:
I'm still not sure what the wave is exactly? Would it be possible to capture a screen shot?
Click to expand...
Click to collapse
its the ping that surrounds halo when you get a notification, like when a water drop hits a large amount of water it creates a wake
Rob357 said:
I'm still not sure what the wave is exactly? Would it be possible to capture a screen shot?
Click to expand...
Click to collapse
Here ya go
draggehn said:
Here ya go
Click to expand...
Click to collapse
Thanks for the img post. :good: I understand what it is now.
So this mod will change the color of just the ripple?
Just the ripple. And it's not necessarily a mod as YOU have to do it, it's not already made.
Sent from my Nexus 7 using Tapatalk 4 Beta
I'm looking for a way to set Smooth Motion as the default recording mode when opening the Samsung camera app. The few extra seconds it takes to set end up in missed opportunities, any info where to look.....I decompiled the camera app but see nothing in there that declares default mode. Any help or suggestions welcome.
Thanks.
***EDIT*** Gooooooooaaaaaaaalllllll !!!!
dwitherell has solved this as well as lay out the changes necessary. Make sure to thank him and enjoy the Smooth Motion Default Record Mode
btw I tested dwitherell's apk (nf1 cam) on my nb4 rom and worked fine... (in case anyone is wondering) same method may work with 4.3 but not the posted apk. Grab file from Post #8
{
"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"
}
Bump ! Anyone?
Would like to set smooth motion as default as well.
Bump thread.
It looks like some smali hackery could make this default. You'd need to change two areas I believe within one smali file, and it could possibly work (haven't tried, just took a peek).
/com/sec/android/app/camera/CameraSettings.smali
The notes are based on looking at the NF1 TMo based SamsungCamera2.apk, so be mindful of that - but if I'm on the right track (again, I could definitely NOT be) you want to influence the default behavior of the mRecordingMode:I entry. There are at least two places (that might be it) where you should influence things a bit.
First off, given the static final descriptors up top it looks like RECORDINGMODE_FHD_60FPS:I = 0x4 would be what you want, and it says it needs to be a value of 0x4 (as opposed to the normal setting, which is 0x0).
So the first target is the iput line for mRecordingMode:I in the constructor <init> method.
My suggestion - given how other things are done in the method - would be to change
Code:
iput v1, p0, Lcom/sec/android/app/camera/CameraSettings;->mRecordingMode:I
to
Code:
const/4 v0, 0x4
iput v0, p0, Lcom/sec/android/app/camera/CameraSettings;->mRecordingMode:I
as the v1 corresponded to 0x0, and v0 is often used as a set-as-the-method-progresses sort of variable.
There is another method that needs attention I would imagine - setSettingValuesAsDefault
Here there is another iput related to mRecordingMode:I - my suggestion for a change would be to alter
Code:
iput v7, p0, Lcom/sec/android/app/camera/CameraSettings;->mRecordingMode:I
to
Code:
const/4 v4, 0x4
iput v4, p0, Lcom/sec/android/app/camera/CameraSettings;->mRecordingMode:I
as v7 corresponds to 0x0 and v4 is overwritten right after this.
Good luck - hope this at least gets you started on the path to default smooth motion
Thankyou....thankyou.....I will take a look into that.
I really appreciate your post, thanks for taking the time !!!
dwitherell said:
It looks like some smali hackery could make this default. You'd need to change two areas I believe within one smali file, and it could possibly work (haven't tried, just took a peek).
/com/sec/android/app/camera/CameraSettings.smali
The notes are based on looking at the NF1 TMo based SamsungCamera2.apk, so be mindful of that - but if I'm on the right track (again, I could definitely NOT be) you want to influence the default behavior of the mRecordingMode:I entry. There are at least two places (that might be it) where you should influence things a bit.
First off, given the static final descriptors up top it looks like RECORDINGMODE_FHD_60FPS:I = 0x4 would be what you want, and it says it needs to be a value of 0x4 (as opposed to the normal setting, which is 0x0).
So the first target is the iput line for mRecordingMode:I in the constructor method.
My suggestion - given how other things are done in the method - would be to change
Code:
iput v1, p0, Lcom/sec/android/app/camera/CameraSettings;->mRecordingMode:I
to
Code:
const/4 v0, 0x4
iput v0, p0, Lcom/sec/android/app/camera/CameraSettings;->mRecordingMode:I
as the v1 corresponded to 0x0, and v0 is often used as a set-as-the-method-progresses sort of variable.
There is another method that needs attention I would imagine - setSettingValuesAsDefault
Here there is another iput related to mRecordingMode:I - my suggestion for a change would be to alter
Code:
iput v7, p0, Lcom/sec/android/app/camera/CameraSettings;->mRecordingMode:I
to
Code:
const/4 v4, 0x4
iput v4, p0, Lcom/sec/android/app/camera/CameraSettings;->mRecordingMode:I
as v7 corresponds to 0x0 and v4 is overwritten right after this.
Good luck - hope this at least gets you started on the path to default smooth motion
Click to expand...
Click to collapse
Gave it a shot, however camera app just force closes when trying to start now...Thanks again for getting me this far, I'll look around more in the smali.....any other tips would be greatly appreciated. Thanks
Btw....this is my first attempt a smali edits.....so I may have missed something....
louforgiveno said:
Gave it a shot, however camera app just force closes when trying to start now...Thanks again for getting me this far, I'll look around more in the smali.....any other tips would be greatly appreciated. Thanks
Btw....this is my first attempt a smali edits.....so I may have missed something....
Click to expand...
Click to collapse
Well if my post misled but got you tinkering, then I'd say it did well
I'll look into it and see if I can give tested specifics - this post was me just taking a peek and outlining how I would start the process, with the obvious hope that it would get you all the way there. I'll see what I can scrape up
I took a crack at actually doing the mod - it seems like it went as expected. Perhaps something went awry either in the recompile process or perhaps in the flash/pushing of the updated apk process? @louforgiveno Feel free to PM me if you want to trouble shoot the process you went through to test it out. You can also use the flashable below as a "base" of sorts for flashing things if you would like - just drop what you want to test in to the framework/app/priv-app folders
Regardless - here is that flashable. Let me know if it worked for you or not. It's based on the stock NF1 SamsungCamera2.apk and has no other mods added to it outside of the set-smooth-motion-as-default one
Default SmoothMotion NF1 SamsungCamera2.apk
dwitherell said:
I took a crack at actually doing the mod - it seems like it went as expected. Perhaps something went awry either in the recompile process or perhaps in the flash/pushing of the updated apk process? @louforgiveno Feel free to PM me if you want to trouble shoot the process you went through to test it out. You can also use the flashable below as a "base" of sorts for flashing things if you would like - just drop what you want to test in to the framework/app/priv-app folders
Regardless - here is that flashable. Let me know if it worked for you or not. It's based on the stock NF1 SamsungCamera2.apk and has no other mods added to it outside of the set-smooth-motion-as-default one
Default SmoothMotion NF1 SamsungCamera2.apk
Click to expand...
Click to collapse
NICE ! Gonna half to take a look and see if I can find what part of the process failed me. Thanks for showing me it can be done, now to learn something new :good:
I'll be pm'ing ya for sure ! You made my day btw.
louforgiveno said:
NICE ! Gonna half to take a look and see if I can find what part of the process failed me. Thanks for showing me it can be done, now to learn something new :good:
I'll be pm'ing ya for sure ! You made my day btw.
Click to expand...
Click to collapse
@dwitherell, You f*#*ing Rock !! Found my error and got my edit to work! Compression level was culprit. ...duh! Lol...thanks for teaching me something!
http://forum.xda-developers.com/showthread.php?t=2824801
2 choices.....stock bitrate & modded high bitrate apks