[MOD]>Set Default Camera Mode To Smooth Recording Mode - T-Mobile Galaxy Note 4 Android Development

Hey all,
Smooth Motion is the recording mode I most like to use, so why not have it the default recording mode so there's no need to fumble through menus to capture a moment. Bam, so here we go, I slapped this together with the help from @dwitherell for the Note3 and while I still haven't obtained the N4 yet I did the edits but haven't been able to confirm it's working...(Update***got my note 4, tested file and it works as intended )...
1st. backup (rename your original SamsungCamera3.apk to something like SamsungCamera3.apk.bak) then you can easily roll back if you don't like the mod.
***UPDATE......GOT MY NOTE 4 installed deodexed and tested camera apk and it works Perfectly ! So grab it and enjoy
Apk is pulled from @jovy23 Deodexed Stock Rom and may only work with Deodexed roms......idk (If you try with an Odexed rom you'll want to rename the SamsungCamera3.odex to SamsungCamera3.odex.bak)
Whether Deodexed or Odexed, after backing up original and then copying over the modded file Perform a Reboot.
Best of luck, Enjoy !
Original apk added just in case------->Rename from ORIGINALSamsungCamera3.apk to SamsungCamera3.apk
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
ADDED @kevinrocksman increased bitrates/quality modded camera apk. http://forum.xda-developers.com/note-4-tmobile/themes-apps/mod-camera-quality-mod-tmobile-t2918280
Awesome increase in quality !!! This is NOT a flashable. There is a media_profiles file in the zip which needs to be placed in System/etc and get its permissions set and of course the same for the camera.apk which goes in System/App

Thanks for a true note 4 mod....appreciated
Sent from my SM-N910T using Xparent ICS Tapatalk 2

will be on this soon as i get home!

Thanks in advance. Haven't tried it yet (busy at work) but this is the only recording mode I use as well. Thanks for sharing and I look forward to using this.

Louforgiveno in the house. Thanks broe. Nice to see you over here

VeNuMuS said:
Louforgiveno in the house. Thanks broe. Nice to see you over here
Click to expand...
Click to collapse
Hey @VeNuMuS !! Yup making the transition as we speak.....we've all got some modding to do to this beast and get this thing to it's glory.

Got my note earlier.....went ahead and tested the file and its working baby !
Go and get it!!

Sorry for stupid question but can I just uninstall the other camera and then install modded one without having to edit the settings? If I am on the stock deoxed? Or do I have to install the apk and edit the settings?
Sent from my SM-T210R using XDA Free mobile app

Nice to see some custom work start to roll in. [emoji106]

BlueNinja712 said:
Sorry for stupid question but can I just uninstall the other camera and then install modded one without having to edit the settings? If I am on the stock deoxed? Or do I have to install the apk and edit the settings?
Sent from my SM-T210R using XDA Free mobile app
Click to expand...
Click to collapse
The SamsungCamera3.apk is already modded, so yes you can just replace the file in system/app. You won't be able to install it as a normal apk though, you'll need to use a program like root explorer and manually place the SamsungCamera3.apk into System/App , confirm overwrite then scroll to the file you copied, press and hold it till the menu pops up, then select permissions and make it so there are only check marks where the "X's" are Like this below then reboot. (Attatched some sample screenshots showing the permission setting steps with Root Explorer)
Good luck
//////// Read ___ Write ___ Execute
Owner [X] _____ [X] _____ [ ]
Group [X] _____ [ ] _____ [ ]
Others [X] _____ [ ] _____ [ ]

louforgiveno said:
The SamsungCamera3.apk is already modded, so yes you can just replace the file in system/app. You won't be able to install it as a normal apk though, you'll need to use a program like root explorer and manually place the SamsungCamera3.apk into System/App , confirm overwrite then scroll to the file you copied, press and hold it till the menu pops up, then select permissions and make it so there are only check marks where the "X's" are Like this below then reboot.
Good luck
//////// Read ___ Write ___ Execute
Owner [X] _____ [X] _____ [ ]
Group [X] _____ [ ] _____ [ ]
Others [X] _____ [ ] _____ [ ]
Click to expand...
Click to collapse
Ah I was going to ask why can't I install like a normal app.... but I then I thought its probably cause its needs to be in a special folder but then again I thought is there a way to specify the install path when making the apk? Haha but thanks for info
Edit: I use ES file manager and don't see the option for Xs..
It says for properties .
Permissions rw- r-- r--
Owner: Root
Group: Root
Sent from my SM-T210R using XDA Free mobile app

In case anyone (like myself) is handing of their Note 3 to a loved one etc. here's a link to the thread I did for the Note 3 running 4.4.2
http://forum.xda-developers.com/not...t-smooth-motion-recording-default-tw-t2824801
Again: Link is for Note 3 kitkat 4.4.2 only.

OP updated with http://forum.xda-developers.com/note-4-tmobile/themes-apps/mod-camera-quality-mod-tmobile-t2918280 set to smooth motion by default (V5)
Get it !! u
I used this mod by @kevinrocksman throughout my note history.....Please thank him for his work, and @dwitherell (hopefully we'll get him over here to N4 land)

Question,
If I install this modded camera, will I lose this mods
Modified Stock Camera App With Disabled Camera/Camcorder "Low Battery", "Can't Use Flash", And "Unable To Start While In A Call" Alerts So Now You Can Use Flash/Camera/Camcorder Even When Your Phone's Battery Is Running Low Or During A Phone Call.
★ Use The Camera To Take Pictures While On A Call
Jovy DarthStalker rom

mikeauto3 said:
Question,
If I install this modded camera, will I lose this mods
Modified Stock Camera App With Disabled Camera/Camcorder "Low Battery", "Can't Use Flash", And "Unable To Start While In A Call" Alerts So Now You Can Use Flash/Camera/Camcorder Even When Your Phone's Battery Is Running Low Or During A Phone Call.
★ Use The Camera To Take Pictures While On A Call
Jovy DarthStalker rom
Click to expand...
Click to collapse
i will be adding smoothmotion and all of these mods u just mentioned into my app/mod set in Version 7
http://forum.xda-developers.com/not...-quality-mod-time-limit-t2925067#post56484255

mikeauto3 said:
Question,
If I install this modded camera, will I lose this mods
Modified Stock Camera App With Disabled Camera/Camcorder "Low Battery", "Can't Use Flash", And "Unable To Start While In A Call" Alerts So Now You Can Use Flash/Camera/Camcorder Even When Your Phone's Battery Is Running Low Or During A Phone Call.
★ Use The Camera To Take Pictures While On A Call
Jovy DarthStalker rom
Click to expand...
Click to collapse
Are those xposed mods? Or can you just download an apk for those? Cause no flash when battery is running low is annoying... and didn't know you can't take a picture while on the phone... I thought this was supposed to be a multitasking phone...
Sent from my SM-T210R using XDA Free mobile app

BlueNinja712 said:
Are those xposed mods? Or can you just download an apk for those? Cause no flash when battery is running low is annoying... and didn't know you can't take a picture while on the phone... I thought this was supposed to be a multitasking phone...
Sent from my SM-T210R using XDA Free mobile app
Click to expand...
Click to collapse
This was a modification a guy made for the darkstar rom or deathstar rom cant remember. I have asked him to help me implement these into my camera mod so this smooth motion, my mods and all the mods listed above will all be in the next version of my setup :good:

Is it possible to be able to force the camera to take a shot in night mode. So far I notice the phone will detect when it needs extra light and then takes a low light shot. Would be interesting to see if it can be forced and not depend in the camrera to know when
Sent from my SM-N910T using XDA Free mobile app

I see you moved over here Lou I be here right after Christmas

lorjay589 said:
I see you moved over here Lou I be here right after Christmas
Click to expand...
Click to collapse
Yes sir.....we got a spot reserved for ya ! :good:

Related

[mod] extended power menu - need help!

Hey guy, I'm trying to port the extended power menu using this guide
http://forum.xda-developers.com/showthread.php?t=1169443
I managed to make the first part work.
However with the second part (editing android.policy.jar) I get stuck on the first static Samsung logo after reboot.
Does anyone have a clue, or is anyone willing to help?
I attached my modified files. I'm using GingerICE 2.1 ROM.
This is definitely what we need pressing the power button allows to reboot...reboot to recovery or power off like CM...
Poke me if I am wrong...just sharing..
Sent from my GT-I8150 using xda premium
fender90 i have decompilied your android.policy.jar and in GlobalAction.smali it looks all good
...but in the folder you forgot to create the files GlobalAction$10.smali and $11 and $12 like it say in the howto, read this part:
Code:
c/ Come on, we're almost there ...
Now copy the "out/com/android/internal/policy/impl/GlobalActions$4.Smali" to "out/com/android/internal/policy/impl/GlobalActions$8.Smali".
We choose #4 because it is one that contains the shutdown of the phone. We will rename it 8 because it's 8 in the next free issue ...
Remember this if ever in a future version of the files they are change.
d/ Now open the new file "out/com/android/internal/policy/impl/GlobalActions$8.Smali" and replace in, all occurrences of "\GlobalActions$4" with "\GlobalActions$8"
Then, Replace :
Code:
const/4 v1, 0x1
invoke-static {v0, v1}, Lcom/android/internal/app/ShutdownThread;->shutdown(Landroid/content/Context;Z)V
With :
Code:
const/4 v1, 0x1
const-string v2, "now"
invoke-static {v0, v2, v1}, Lcom/android/internal/app/ShutdownThread;->reboot(Landroid/content/Context;Ljava/lang/String;Z)V
e/ Save the file and copy it to "out/com/android/internal/policy/impl/GlobalActions$9.Smali"
Open it and replace in, all occurrences of "\GlobalActions$8" with "\GlobalActions$9
and
const-string v2, "now" with const-string v2, "recovery"
f/ Save the file and copy it to "out/com/android/internal/policy/impl/GlobalActions$10.Smali"
Open it and replace in, all occurrences of "\GlobalActions$9" with "\GlobalActions$10
and
const-string v2, "recovery" with const-string v2, "download"
Save the file and then ... compile it all!
I think this is the problem,maybe
Amazing, I'll try when I get back home!
Inviato dal mio GT-I8150 usando Tapatalk
fender90 said:
Amazing, I'll try when I get back home!
Inviato dal mio GT-I8150 usando Tapatalk
Click to expand...
Click to collapse
Use this guide http://forum.xda-developers.com/showthread.php?t=811532 This is what I used on the exhibit and that guide does not edit the framework.jar and when you do the edit make sure your placing it where it says look at the code above and below
Update: i mixed those guides because neither of them matches the Wonder files, and this time, and I got some progress: the phone boots!
However, when pressing the power button, I get a force close and it reloads the launcher.
I'm attaching the modified files, so you guys can help me spot the mistake
fender90 said:
Update: i mixed those guides because neither of them matches the Wonder files, and this time, and I got some progress: the phone boots!
However, when pressing the power button, I get a force close and it reloads the launcher.
I'm attaching the modified files, so you guys can help me spot the mistake
Click to expand...
Click to collapse
Probably this afternoon i'll give it a look, i like this mod
Have you boys tried last Black note hybrid? I think is that what you looking for
Sent from my GT-I8150 using XDA
pemati said:
Have you boys tried last Black note hybrid? I think is that what you looking for
Sent from my GT-I8150 using XDA
Click to expand...
Click to collapse
I don't know it has this mod, i still use stock rom
However...fender90, u have done a very little error in GlobalActions.smali, if u see ur file in line 647 and then in line 659 u surely understand there are two 0x3
Instead in GlobalAction$10.smali, and also 11 and 12, u have to delete line 54 cause u use sput command in line 52 that do what we want.
I attach the files modified by me, rename in .smali and try them
pemati said:
Have you boys tried last Black note hybrid? I think is that what you looking for
Sent from my GT-I8150 using XDA
Click to expand...
Click to collapse
i think what u r saying is the extended "NOTIFICATION" menu, but fender90 is working on the extended "POWER" menu, its the menu when u press the power button long enough, a window will pop up with options like shutdown, airplane mode, etc
Yes you right but in that panel under reboot option are options for recovery or download mode. Hope is that what is fender looking for
Sent from my GT-I8150 using XDA
pemati said:
Have you boys tried last Black note hybrid? I think is that what you looking for
Sent from my GT-I8150 using XDA
Click to expand...
Click to collapse
Stop TrollinLaLa!
Sent from my GT-I8150 using xda premium
Any progress for this file. Its really helps for other modified stock roms.
vhick said:
Any progress for this file. Its really helps for other modified stock roms.
Click to expand...
Click to collapse
what rom are u using? im using bionicv2 and ive flashed this http://forum.xda-developers.com/showthread.php?t=1597368 , i dont know if it will work on stock rom though
I used stock rom that is modified using dsixda Kitchen. I will try this though.
Thanks
andynroid said:
This is definitely what we need pressing the power button allows to reboot...reboot to recovery or power off like CM...
Poke me if I am wrong...just sharing..
Sent from my GT-I8150 using xda premium
Click to expand...
Click to collapse
+1
I really want it too...
a.fontenele said:
+1
I really want it too...
Click to expand...
Click to collapse
This mod is already available to our device. Just take a look at the Theme&Apps section.
If you are taking about http://forum.xda-developers.com/showthread.php?t=1658833 I already checked... It's for deoxed ROMs though...
Sent from my GT-I8150B using Tapatalk 2
a.fontenele said:
If you are taking about http://forum.xda-developers.com/showthread.php?t=1658833 I already checked... It's for deoxed ROMs though...
Sent from my GT-I8150B using Tapatalk 2
Click to expand...
Click to collapse
Yes, of course. Deodex enables theme editing. I haven't seen any theme for odex rom so far.
yewsiong said:
Yes, of course. Deodex enables theme editing. I haven't seen any theme for odex rom so far.
Click to expand...
Click to collapse
one question buddy, what do we need to deodex? and what does deodexing does to our phone? sorry for my bad english.

[MOD][SOURCE][AOSP][4.1.1] How to enable Rotation Lock on the Galaxy Nexus

Apologies if this has been posted before, but I've found a very simple way to enable to AOSP Rotation Lock control for the Galaxy Nexus on Jelly Bean 4.1.1. By default, that highly useful control is only enabled if the device has a minimum width (or length) of 3.75" (DP >= 600), but in reality it fits just fine on much smaller devices like ours.
All you have to do is edit the isRotationLockToggleSupported() function in frameworks/base/core/java/com/android/internal/view/RotationPolicy.java to allow this control to display on smaller devices. I suggest a DP >= 360, which not surprisingly happens to match the GNex.
You can view my edit here: https://github.com/djp952/sch-i515-...mmit/dc8598f75f84c57c92b8a8920606ffb695ef10cb
Or ... you can just open that file and edit line 49 to read ">=" 360 instead of ">= 600" and rebuild. I can't find any reason that the control should not be included on any phone device with a screen > 2.25" wide as it's very useful and will not get in the way of anything else.
djp952 said:
Apologies if this has been posted before, but I've found a very simple way to enable to AOSP Rotation Lock control for the Galaxy Nexus on Jelly Bean 4.1.1. By default, that highly useful control is only enabled if the device has a minimum width (or length) of 3.75" (DP >= 600), but in reality it fits just fine on much smaller devices like ours.
All you have to do is edit the isRotationLockToggleSupported() function in frameworks/base/core/java/com/android/internal/view/RotationPolicy.java to allow this control to display on smaller devices. I suggest a DP >= 360, which not surprisingly happens to match the GNex.
You can view my edit here: https://github.com/djp952/sch-i515-...mmit/dc8598f75f84c57c92b8a8920606ffb695ef10cb
Or ... you can just open that file and edit line 49 to read ">=" 360 instead of ">= 600" and rebuild. I can't find any reason that the control should not be included on any phone device with a screen > 2.25" wide as it's very useful and will not get in the way of anything else.
Click to expand...
Click to collapse
Many thanks - I was going to upload my ROM today & was just about to look for this - I will enable this in the next version
Cheers,
Minooch
EDIT: It will be in version 1 after all
Thanks brother for this development but can you explain in simpler terms what this does?
Sorry to bother you.
Thanks again
Is it only possible to compile it from source? Or can I use apktool to decompile and modify framework-res.apk for this?
The point is that I'm running stock ROM but would really like this rotation-lock-toggle as a MOD.
arifqur said:
Thanks brother for this development but can you explain in simpler terms what this does?
Sorry to bother you.
Thanks again
Click to expand...
Click to collapse
It enables a feature in JB that tablets use called the Rotation Lock. It sits up in the main drop-down between the date and the settings button. Instead of having to turn on and off rotation to keep the device orientation in place, you can just lock it with this control. It also removes the option from display settings (but not accessibility). I think it's extremely useful and don't know why it's not enabled by default for any device that has enough real estate to show it.
Screen shot attached. This is my phone and it's currently locked in portrait mode. If you press it, the lock changes to a little phone and normal rotation rules apply
McDV said:
Is it only possible to compile it from source? Or can I use apktool to decompile and modify framework-res.apk for this?
The point is that I'm running stock ROM but would really like this rotation-lock-toggle as a MOD.
Click to expand...
Click to collapse
You could use apktool, but you'd have to edit the RotationPolicy.smali file in SystemUI.apk. The 600 was a constant, it's likely going to stick out and be easy to find in the .smali.
I think mods to SystemUI are going to be commonplace now, the battery icons and xml descriptors are in that APK as well. Not sure if that's new for JB or if ICS also did it that way, I haven't modded anything since GB.
djp952 said:
You could use apktool, but you'd have to edit the RotationPolicy.smali file in SystemUI.apk. The 600 was a constant, it's likely going to stick out and be easy to find in the .smali.
I think mods to SystemUI are going to be commonplace now, the battery icons and xml descriptors are in that APK as well. Not sure if that's new for JB or if ICS also did it that way, I haven't modded anything since GB.
Click to expand...
Click to collapse
just checked systemUI smali, theres isn't a file called RotationPolicy, closest thing is RotationToggle.smali and there is no 600 constant
i'm on GSM Bigxies build, just a side note.
FaithCry said:
just checked systemUI smali, theres isn't a file called RotationPolicy, closest thing is RotationToggle.smali and there is no 600 constant
i'm on GSM Bigxies build, just a side note.
Click to expand...
Click to collapse
Oh yeah, duh, it's not in SystemUI. Hadn't had my coffee yet. Check android.policy.jar, otherwise I can look to find out where that class goes. Sorry!!!
djp952 said:
Oh yeah, duh, it's not in SystemUI. Hadn't had my coffee yet. Check android.policy.jar, otherwise I can look to find out where that class goes. Sorry!!!
Click to expand...
Click to collapse
no worries! i'll probably look into source later, i think everyone should learn how to at least compile from source, its a very useful tool!
found the smali, can't interpret it like waht you're saying. maybe you'll know which line to edit?
found in framework.jar/smali/com/android/internal/view/RotationPolicy.smali
Flashable zip for recovery
http://dl.dropbox.com/u/45805601/JB.4.1.1.lichti.RotationLock.zip
FaithCry said:
found the smali, can't interpret it like waht you're saying. maybe you'll know which line to edit?
found in framework.jar/smali/com/android/internal/view/RotationPolicy.smali
Click to expand...
Click to collapse
Code:
...
.method public static isRotationLockToggleVisible(Landroid/content/Context;)Z
.locals 3
.parameter "context"
.prologue
const/4 v0, [COLOR="Red"]0x0[/COLOR]
...
☞ 0x1
FaithCry said:
found the smali, can't interpret it like waht you're saying. maybe you'll know which line to edit?
found in framework.jar/smali/com/android/internal/view/RotationPolicy.smali
Click to expand...
Click to collapse
The constant is right there...
600 is displayed in hex. Thus you will need to edit this line...
Code:
const/16 v1, 0x258
and change it to
Code:
const/16 v1, 0x168
if you want the DPI to be set at 360...
There you go.
---------- Post added at 08:33 PM ---------- Previous post was at 08:19 PM ----------
phone_user said:
Code:
...
.method public static isRotationLockToggleVisible(Landroid/content/Context;)Z
.locals 3
.parameter "context"
.prologue
const/4 v0, [COLOR="Red"]0x0[/COLOR]
...
☞ 0x1
Click to expand...
Click to collapse
That alone probably won't work as the method
Code:
isRotationLockToggleVisible
is invoking the method
Code:
isRotationLockToggleSupported
and in there it is still only going to activate at DPI 600.
Bavilo said:
...
That alone probably won't work as the method
Code:
isRotationLockToggleVisible
is invoking the method
Code:
isRotationLockToggleSupported
and in there it is still only going to activate at DPI 600.
Click to expand...
Click to collapse
Yeah... but mine worked
phone_user said:
Yeah... but mine worked
Click to expand...
Click to collapse
Hmm...ok o.o
Sent from my Galaxy Nexus using xda premium
Could you please make a flashable zip for the stock rom (deodexed JRO03)? All the compiling thing looks too much for me. Thank you a lot!
fdfdrere said:
Could you please make a flashable zip for the stock rom (deodexed JRO03)? All the compiling thing looks too much for me. Thank you a lot!
Click to expand...
Click to collapse
Have a look at the first post on page 2...
McDV said:
Have a look at the first post on page 2...
Click to expand...
Click to collapse
After flashing the zip, I'm not seeing any changes... I'm on stock rooted JB, do I need the deodexed version?
<blank> said:
After flashing the zip, I'm not seeing any changes... I'm on stock rooted JB, do I need the deodexed version?
Click to expand...
Click to collapse
Yes
EDIT: If you switch to deodexed stock-ROM, you don't need to wipe - just wipe dalvik-cache to be safe.
I'm trying to put this mod into XenonHD but running into a wall. The github link is down and I tried flashing both zips in this thread one wouldn't flash through clockworkMod and the other caused the phone to hang at the boot animation.
I did try to decompile the franework-res.apk file and although I'm fairly tech savvy I think I hit my limit. Any ideas?

[MOD][SecPhone] Enable Call Recording on Jelly bean

This is a simple howto enable Call recording on the Galaxy S3 Firmewares for Jelly bean Roms.
If you take a look at the source code, you will notice that call rec is default enabled for some Countries (KOR,JAP...), what i did is just enabling it after all CSC checks.
You need to decompile SecPhone.apk, use my repacked Apk_Manager (it should work for any ICS file 4.0.3/4.0.4/4.1.1).
Open "SecPhone.apk\smali\com\android\phone\PhoneFeature .smali", go to "makeFeature()V" method, and make the changes :
Code:
.line 792
invoke-static {}, Lcom/android/phone/PhoneFeature;->makeFeatureForJapan()V
.line 796
:cond_d
invoke-static {}, Lcom/android/phone/PhoneFeature;->makeFeatureForUsa()V
.line 797
[COLOR=Green] ++sget-object v0, Lcom/android/phone/PhoneFeature;->mFeatureList:Ljava/util/HashMap;
[/COLOR] [COLOR=Green] ++const-string v2, "voice_call_recording"
[/COLOR] [COLOR=Green] ++const/4 v4, 0x1
[/COLOR] [COLOR=Green] ++invoke-static {v4}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
[/COLOR] [COLOR=Green] ++move-result-object v3
[/COLOR] [COLOR=Green] ++invoke-virtual {v0, v2, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;[/COLOR]
return-void
Compile and enjoy.
Attached cwm patch works on Deodexed LI2 Roms only.
Nice.
Tried it and it worked properly. Great work as always.
great mod,
mate, can you please provide a CWM recovery path for DLI1 firmware too?
thanks
This only works for stock roms right? SlimBean for instance has no SecPhone.asp.
Hy wanam,
please could you make a XXDLI5 version ?
I tried the apk manager but when decompiling i get errors....
First time doing this and I get a "java not installed"
where do I put this thing to get java working when It IS installed on my PC??
Thanks.
Hy wanam,
i extracted the secphone.apk from your wanamlite 3.3 and put it in mey kristofpetho JB 1.6 rom and works perfect. So not need anymore
MasterTB said:
First time doing this and I get a "java not installed"
where do I put this thing to get java working when It IS installed on my PC??
Thanks.
Click to expand...
Click to collapse
Is your java set up correctly? is it in your path?
apk manager is best used in the root of c drive
That's what I thought and there's where I put it but I still get the error. Win7 32bits and 64bits...
Same issue on both pc's.
MasterTB said:
That's what I thought and there's where I put it but I still get the error. Win7 32bits and 64bits...
Same issue on both pc's.
Click to expand...
Click to collapse
dirty fix:
install BOTH 32 bit & 64 bit version...one should go in programs, the other should auto install in x86 programs
no guarantees....
java doesnt seem to like w7 64bit..it messes around with folder locations and reg entries
Hi, I can't understand how to "use" (install) this Apk_Manager so I can decompile SecPhone.apk. Do you install it on the S3? on the computer?? How? I just can't get it working. Sorry & Thanx for the hepl!
Can you please provide a CWM recovery path for DLI7 firmware too? Thank's
bhavadas said:
Hi, I can't understand how to "use" (install) this Apk_Manager so I can decompile SecPhone.apk. Do you install it on the S3? on the computer?? How? I just can't get it working. Sorry & Thanx for the hepl!
Click to expand...
Click to collapse
same doubts.
OP can you plz elaborate a bit more for noobs like me ?
bhavadas said:
Hi, I can't understand how to "use" (install) this Apk_Manager so I can decompile SecPhone.apk. Do you install it on the S3? on the computer?? How? I just can't get it working. Sorry & Thanx for the hepl!
Click to expand...
Click to collapse
NOT install just unzip on your PC C:drive
put you need to modify apk on the place-apk-here-for-modding
click script
Here is XXDLI7 latest JB leak deodexed and moded SecPhone.apk with call recording.
Thank's to Wanam.
ausdim said:
Here is XXDLI7 latest JB leak deodexed and moded SecPhone.apk with call recording.
Thank's to Wanam.
Click to expand...
Click to collapse
Doesn't work
Sent from my GT-I9300 using xda premium
M_aqui said:
Doesn't work
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
Working good.
You are doing something worng.
This is for deodexed roms.
If you have odexed dont forget to delete SecPhone.odex
Sent from my GT-I9300 using Tapatalk 2
ausdim said:
Working good.
You are doing something worng.
This is for deodexed roms.
If you have odexed dont forget to delete SecPhone.odex
Sent from my GT-I9300 using Tapatalk 2
Click to expand...
Click to collapse
You're right, I forgot to delete SecPhone.odex
Thank's :good:
Nice work wanam! does it work on CM10? Or CM9 for your ICS fix?
Its not working for me, maybe my mistake, I try it again..
Sent from my GT-I9300 using xda app-developers app

[Q] How to use "Restrict background data" WITHOUT notification ?

Hi,
I wish to permanently use the "Restrict background data" feature ( under settings->data usage ) on my JB rom, but the problem is that when I enable that feature, I always get a notification, asking me to "touch to remove" that feature...
I don't wish to do that, even by mistake! I want that notification GONE completely, but to retain the "restrict" feature...
I understand, it's possible to permanently disable notifications, by altering "Settings.apk" somehow - but I don't know what and where to change ( wish file inside that apk ).
I used "apktool" to unpack the apk, but again - which file should I change ? what value/line should I delete ?
My rom is VJ's AOKP v2.2, so "Settings.apk" file is from that rom's version.
Any help would be great :highfive::fingers-crossed:
EDIT:
Guess it has something to do with "DataUsageSummary.smali" (after unpacking the Settings apk -> smali\com\android\settings):
BUT WHAT SHOULD I CHANGE ?!
please reply
gps3dx said:
Any help would be great :highfive::fingers-crossed:
Click to expand...
Click to collapse
Seriously ? Not even the smallest hint you ppl can give me ?:crying::crying:
Can't you even redirect me to the most prevalent sub-forum, here at XDA, for that kind of question ?:silly:
gps3dx said:
Seriously ? Not even the smallest hint you ppl can give me ?:crying::crying:
Can't you even redirect me to the most prevalent sub-forum, here at XDA, for that kind of question ?:silly:
Click to expand...
Click to collapse
Something called the search function; it's really useful.
You can't just expect others to answer your questions promptly. As for your questions, that's part of the android system and if you want to modify it, go ahead. It's not a notification because you can't swipe it away; it's an ongoing thing. SO if you want to go on with that kind of attitude, you can try it yourself.
droid_<3er said:
Something called the search function; it's really useful.
As for your questions, that's part of the android system and if you want to modify it, go ahead. It's not a notification because you can't swipe it away; it's an ongoing thing.
Click to expand...
Click to collapse
I really do appreciate your reply man - even though I googled xda from top to button.
( there are thread about modifying various stuff inside settings.apk / SystemUI.apk - but NON are about that "restriction notification" i'm talking about. )
I've seen this thread in the unread threads of XDA app and although I don't use that feature, I got curious to try it out. So I've quickly put together an Xposed module that removes the notification.
You have to install Xposed framework. Get it here: http://forum.xda-developers.com/showthread.php?t=1574401
Also, install my module from the attachment, enable it and do a soft reboot in Xposed.
It works for me on my Galaxy R with CM10.1 and I assume it will work for you too, as the module doesn't change the Settings, but com.android.server.net.NetworkPolicyManagerService class. If you have any problems, post a logcat and /data/xposed/debug.log
Update: For a while now it's already available in Xposed modules repository: http://repo.xposed.info/module/org.adam77root.removerestrictednotification.
Adam77Root said:
I've seen this thread in the unread threads of XDA app and although I don't use that feature, I got curious to try it out. So I've quickly put together an Xposed module that removes the notification.
You have to install Xposed framework. Get it here: http://forum.xda-developers.com/showthread.php?t=1574401
Also, install my module from the attachment, enable it and do a soft reboot in Xposed.
It works for me on my Galaxy R with CM10.1 and I assume it will work for you too, as the module doesn't change the Settings, but com.android.server.net.NetworkPolicyManagerService class. If you have any problems, post a logcat and /data/xposed/debug.log
Click to expand...
Click to collapse
WOW thnx... but just a few moments before you posted your message I to fulfill that wish of mine... I SOLVED IT !
Although I admit - I DO NOT KNOW if I disabled all of the "restrict background" feature, but I DO managed to enable the "restrict backgound data" checkbox ( then press OK at the popup ) WITHOUT getting any notification at all !
HOW TO DISABLE NOTIFICATION ALERT FOR "RESTRICT BACKGROUND DATA" ( under settings-> data usage-> options )​( I tried that fix on JB 4.2.2 ( to be specific: AOKP VJ Jelly Bean v2.2), BUT I guess it works on all JB 4.2.2 )​1. copy "services.jar" from "/system/framework/services.jar" to your computer.
MAKE A SAFE COPY OF THIS FILE IF SOMETHING HAPPENS TO YOU.
2. extract the jar file using Winrar or any compatible app.
3. using MultiTool decompile the "classes.dex" file as instructed by Multitool's thread.
4. open with any txt editor ( I used Notepad++ ) the file "NetworkPolicyManagerService.smali" under "decompiled\classout\com\android\server\net\" ( which is a sub-folder of Mulitool's folder that you've previously extracted )
5. A . search for:
Code:
invoke-interface/range {v0 .. v6}, Landroid/app/INotificationManager;->enqueueNotificationWithTag(Ljava/lang/String;Ljava/lang/String;ILandroid/app/Notification;[II)V
delete completely that line or add "# " in the start of that line ( which is what I did ) so that line looks like that:
Code:
# invoke-interface/range {v0 .. v6}, Landroid/app/INotificationManager;->enqueueNotificationWithTag(Ljava/lang/String;Ljava/lang/String;ILandroid/app/Notification;[II)V
B. search for:
Code:
invoke-virtual {v0, p1}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
add "# " in the start of that line ( which is what I did ) or delete completely that line
6. SAVE that smali file that you've just edited.
7. using Multitool, recompile the classes.dex file.
if everything went good, you'll have classes.dex file under MultiTool's sub-folder named "output"
8. using Winrar, open "services.jar", replace the current "classes.dex" with the recompiled one that you've made.
9. copy the remade "services.jar" to your device(using adb etc ):
Code:
adb push "services.jar" /system/framework/services.jar
10. chmod "services.jar" to "-rw-r--r--", meaning you need to:
Code:
adb shell chmod 644 /system/framework/services.jar
11. restart your device, and It should rebuilt your dalvik cache.
ONLY if it didn't, I guess you should delete "/data/dalvik-cache/[email protected]@[email protected]" file, reboot again so your OS will create that dalvik-cache file.
I'll be happy to know if anyone can verify that indeed my fix just remove his/her notification, but retain the ability to disable background data. THANKS !
Sorry I doubted you. You are a genius!
Many thanks!!
Adam77Root, thank you so much for that module! I can confirm it working on my Galaxy Note 2. That notification was unbelievably annoying.
gps3dx, thank you too for this thread and your fix. While I didn't try it because I already have Xposed framework installed and I'd rather use the less invasive approach, I am still grateful for your seeing a problem, addressing it, and proactively doing something about it. My respects to you. I searched around quite a bit and came across many other forums on different sites where people had this same problem unanswered. I hope they find their way to this thread.
To the above poster who jumped down the OP's throat for bumping this topic 4 days after it went unanswered, obviously you didn't do any search on this topic yourself. I did. And until this thread, I found nothing really useful. And lo-and-behold, someone was kind enough to actually do something useful instead of pointlessly sitting there and criticizing. The squeaky wheel gets the grease. Rudely telling someone to 'check their attitude and search' is not helpful- it's just rude and pointless. Just FYI.
I have an i9300 and I can't find the first line in that archive...
eXtremeDevil said:
I have an i9300 and I can't find the first line in that archive...
Click to expand...
Click to collapse
mybe it is because you run JB 4.1.2 not 4.2.2 like I do, plus mybe you're running some custom framework ( it is not AOKP as I suspect from you sig )
Adam77Root said:
...I've quickly put together an Xposed module that removes the notification.
Click to expand...
Click to collapse
@Adam77Root
Big thanks for this module: I installed another 4.2.2 JB rom for my HTC Desire, and your module works !:good::good:
Adam77Root said:
I've seen this thread in the unread threads of XDA app and although I don't use that feature, I got curious to try it out. So I've quickly put together an Xposed module that removes the notification.
You have to install Xposed framework. Get it here: http://forum.xda-developers.com/showthread.php?t=1574401
Also, install my module from the attachment, enable it and do a soft reboot in Xposed.
It works for me on my Galaxy R with CM10.1 and I assume it will work for you too, as the module doesn't change the Settings, but com.android.server.net.NetworkPolicyManagerService class. If you have any problems, post a logcat and /data/xposed/debug.log
Click to expand...
Click to collapse
this was working fine on my aokp jb mr1 Milestone 2, but stopped working when i installed the nigthly nightly (jb-mr1)2013-08-21 (wich fixes my camera issues and soe other stuff)
is there anything i can try myself to fix this or is it just incopatible with that nightly? (its still 4.2)
I'm using Lenovo phone, 4.2.1 Version. In "services.jar" I see only folder "META-INF" and file "MANIFEST.MF". I tried to rename the file to classes.dex then using MultiTool decompile but I receive: "Unexpected top-level exception:java.lang.RuntimeException:bad magic value...etc"
So what's wrong, where to find classes.dex? Someone?
new edit: Thanks a lot for all the replies, also Xposed framework+module didn't work.
Adam77Root said:
I've seen this thread in the unread threads of XDA app and although I don't use that feature, I got curious to try it out. So I've quickly put together an Xposed module that removes the notification.
You have to install Xposed framework. Get it here: http://forum.xda-developers.com/showthread.php?t=1574401
Also, install my module from the attachment, enable it and do a soft reboot in Xposed.
It works for me on my Galaxy R with CM10.1 and I assume it will work for you too, as the module doesn't change the Settings, but com.android.server.net.NetworkPolicyManagerService class. If you have any problems, post a logcat and /data/xposed/debug.log
Click to expand...
Click to collapse
Thanks a lot. Works awesome. Is it possible to post the source code to this?
css771 said:
Thanks a lot. Works awesome. Is it possible to post the source code to this?
Click to expand...
Click to collapse
I'm almost certain I don't have the original files anymore. Since it's pretty simple, you can either decompile the apk or check Android source of the class I mentioned in the post you quoted. Only one function is replaced with returning null.
Edit: Just checked, the function is enqueueRestrictedNotification.
Sent from my OmniROM-powered LG Optimus 4X HD
Xposed module works perfect on LG G2. Thanks a bunch!
Sent from my VS980 4G using Tapatalk
Adam77Root said:
I've seen this thread in the unread threads of XDA app and although I don't use that feature, I got curious to try it out. So I've quickly put together an Xposed module that removes the notification.
You have to install Xposed framework. Get it here: http://forum.xda-developers.com/showthread.php?t=1574401
Also, install my module from the attachment, enable it and do a soft reboot in Xposed.
It works for me on my Galaxy R with CM10.1 and I assume it will work for you too, as the module doesn't change the Settings, but com.android.server.net.NetworkPolicyManagerService class. If you have any problems, post a logcat and /data/xposed/debug.log
Click to expand...
Click to collapse
nice module.. work perfectly.. thanks
rooting?
do i have to root my phone to do this? will the module work without rooting? i'm new to playing with codes on my phone but I have done a lot of work with linux before so i can understand the process, i've just never rooted my phone before. i'd really like to get rid of this notification and the "usb connectivity" app's notification: internal storage &SD card- internal storage &SD card connected to PC. I mean, do i really need a notification to tell me that my phone is connected to my PC?
that last request isn't as important, at least if i accidentally click on that i'm not turning on background data use!
-yasboss
xperia z1s
jb 4.3
(just joined xda devs)
p.s.
is this the right place to ask this question?
yasboss said:
do i have to root my phone to do this? will the module work without rooting? i'm new to playing with codes on my phone but I have done a lot of work with linux before so i can understand the process, i've just never rooted my phone before. i'd really like to get rid of this notification and the "usb connectivity" app's notification: internal storage &SD card- internal storage &SD card connected to PC. I mean, do i really need a notification to tell me that my phone is connected to my PC?
that last request isn't as important, at least if i accidentally click on that i'm not turning on background data use!
-yasboss
xperia z1s
jb 4.3
(just joined xda devs)
p.s.
is this the right place to ask this question?
Click to expand...
Click to collapse
you need root to use xposed installer..
what else can it be used for?
ajeesh vijayan said:
you need root to use xposed installer..
Click to expand...
Click to collapse
can i use it for other notifications like i asked? I mean there's more than just the USB connectivity etc

[MOD]PA 3.56 (May26) SmoothScrolling Mod

I was using a lot of this mod on my latest device cause it sucks a lot..so i give it a try cause i saw that even with a powerfull device like N4 some apps (facebook) seems to have problem with a scrolling lag...so i was using this guide bellow to patch framework.jar file to remove the Scrolling cache..this makes scrolling to some apps smoother without hurting anything else....
Feel free to try...just replace framework.jar in system/framework
Do it with any explorer with root access this isn't a flashable zip!!
Download
Code:
SMOOTHCROLL MOD
Here is the step-by-step (on windows):
1. Extract the baksmali/smali tool to a new folder and put the framework.jar in same folder.
2. Run baksmali manager.bat.
3. Select framework.jar by pressing 4 -> 2 in main menu.
4. Press 1 to Baksmali the framework.jar.
5. Make it sure that new 'framework' folder is created and files inside it. (Don't close the baksmali manager window yet!)
6. Open the framework/android/widget/AbsListView.smali with notepad++.
7. Search for ".method private createScrollingCache"
(change red value to green value)
.prologue
const/4 v1, 0x1 0x0
8. Search for ".method private initAbsListView"
(change red value to green value)
.line 808
invoke-virtual {p0, v1v2}, Landroid/widget/AbsListView;->setScrollingCacheEnabled(Z)V
9. Search for ".method public setScrollingCacheEnabled (Z)"
(change red value to green value)
.registers 3
.parameter "enabled"disabled
10. Save the file and close notepad++
11. Come back to baksmali manager window.
12. Press 2 to smali
13. After smali, it will appear a "classes.dex" file on your baksmali/smali folder.
14. Open framework.jar with Winzip, Winrar, 7zip or your prefered compress tool
15. Drag and Drop the new classes.dex into framework.jar and replace the old one.
16. Put modified framework.jar to your phone's sdcard.
17. Copy that file to /system/framework and replace original one.
18. Give proper permissions (rw-r--r--) or (644) or (tick Read: owner, group, others / Write: owner)
19. Restart your phone and enjoy!!!
Credits: espaciosalter20
Original Guide
I thought the lag was in a kernel, by tweaking the onlining the core's behaviour.
Franco releases 142 nightly and now I didnt experience lag on any apps...
° Sent via Nexus 4 with Tapatalk
° Rom: AXI0M (5/22) / Kernel: Franco #142
yethz said:
I thought the lag was in a kernel, by tweaking the onlining the core's behaviour.
Franco releases 142 nightly and now I didnt experience lag on any apps...
° Sent via Nexus 4 with Tapatalk
° Rom: AXI0M (5/22) / Kernel: Franco #142
Click to expand...
Click to collapse
Different kind of think...
Enables or disables the children's drawing cache during a scroll. By default, the drawing cache is enabled but this will use more memory. When the scrolling cache is enabled, the caches are kept after the first scrolling. You can manually clear the cache by calling
http://developer.android.com/reference/android/widget/AbsListView.html
Lag could be related to how quickly a kernel changes core frequencies, bouncy behavior may result in poor user experience. I don't believe it's as much related to core onlining, because that is apparently fine in faux and the kernels using auto_plug.
Sent from my Nexus 4 using xda app-developers app
This mod has nothing to do with kernel..its basically rom mod..that simply don't cache while scrolling....
yethz said:
I thought the lag was in a kernel, by tweaking the onlining the core's behaviour.
Franco releases 142 nightly and now I didnt experience lag on any apps...
° Sent via Nexus 4 with Tapatalk
° Rom: AXI0M (5/22) / Kernel: Franco #142
Click to expand...
Click to collapse
I am on 142 and Facebook application still lags. Not blaming Franco, his kernel is awesome just that maybe this is not a kernel problem but the rom.
So i tryed replace framework.jar with root explorer and when system rebooted i got system fc.so i wiped data and reflashed rom.i am on PA (may 27) and franco r146.pls help
Sent from my Nexus 4
bobo1337 said:
So i tryed replace framework.jar with root explorer and when system rebooted i got system fc.so i wiped data and reflashed rom.i am on PA (may 27) and franco r146.pls help
Sent from my Nexus 4
Click to expand...
Click to collapse
This patch was only for 26/5 PA!
tanjiajun_34 said:
I am on 142 and Facebook application still lags. Not blaming Franco, his kernel is awesome just that maybe this is not a kernel problem but the rom.
Click to expand...
Click to collapse
Facebook's Android app is just bad, nothing else.
Sent from my Nexus 4 using xda premium
pikachukaki said:
This patch was only for 26/5 PA!
Click to expand...
Click to collapse
I tryed again now and it works so..
Sent from my Nexus 4
bobo1337 said:
I tryed again now and it works so..
Sent from my Nexus 4
Click to expand...
Click to collapse
Do you see any improvement?
What i do not understand, is, why disabling a cache should bring better performance? Caching should improve performance...?!
Alci1985 said:
Do you see any improvement?
What i do not understand, is, why disabling a cache should bring better performance? Caching should improve performance...?!
Click to expand...
Click to collapse
Yes fb works better for me now...and i don't know but it's cool
Sent from my Nexus 4 using Tapatalk 4 Beta
is it just for stock rom ?
banboune said:
is it just for stock rom ?
Click to expand...
Click to collapse
PA 3.56 read title...
Sent from my Nexus 4 using Tapatalk 4 Beta
Alci1985 said:
Do you see any improvement?
What i do not understand, is, why disabling a cache should bring better performance? Caching should improve performance...?!
Click to expand...
Click to collapse
It was a very helpful tweak on my old huawei ideos x5 pro that had one core and 512mb ram..removing the cache was making scrolling alot faster i just did a test for nexus but the improvment was minor cause of the hardware thats why i didnt make another...but feel free to test it in whatever rom you want the guide its easy!!

Categories

Resources