[MOD] Xperia Clock limit - Xperia Z2 Themes and Apps

Edit :
Props to @Jackos, here's the flashable patched SemcClock.apk with max of 96 clock alarm.
Cheers
==========================================
Hi guys,
Need a little help here.
I'm trying to remove the 20 Max limit of adding clock alarm in SemcClock.apk.
I thought i found the limit here MAX_ALARM_COUNT:I = 0x14
in this file SemcClock\smali\com\sonyericsson\alarm\AlarmListFragment.smali
But changing it doesn't seem to work.
Any ideas ?

takagen said:
Hi guys,
Need a little help here.
I'm trying to remove the 20 Max limit of adding clock alarm in SemcClock.apk.
I thought i found the limit here MAX_ALARM_COUNT:I = 0x14
in this file SemcClock\smali\com\sonyericsson\alarm\AlarmListFragment.smali
But changing it doesn't seem to work.
Any ideas ?
Click to expand...
Click to collapse
Never had a need for something like that.
Why don't you just use calendar or scheduler for something like that?
BTW - this section is for apps and themes, not help thread.
Naming of thread is also wrong - it's not MOD, it's REQ or HELP thread.
Try to rename it and tag @Serarj and @niaboc79 - if anyone knows, they know...
Sent from my D6503 using Tapatalk

Thanks for the advise.
If @niaboc79 or @serajr can helped, that would be awesome

Please find attached the patched SemcClock .402. It allows to create up to 50 alarm clocks.
I also included two images of my Virtuous Ten Studio, showing what values need to be patched for the fix to work if you want to do it yourself.
Keep pwning!

BTW I usually recompile the smali code to java, so I get a better view what's going on. As you may see the toast alarm limit is hardcoded.

Thanks alot.
It works, to sum up it's basically editing 2 places in file
SemcClock\smali\com\sonyericsson\alarm\AlarmListFragment.smali
Code:
.field static final MAX_ALARM_COUNT:I = 0x14
Code:
.method public onOptionsItemSelected(Landroid/view/MenuItem;)Z
.locals 10
.param p1, "item" # Landroid/view/MenuItem;
.prologue
const/16 v9, 0x14
Update "x14" to the number of clock you need.
Cheers :good:

Related

colorChange.jar v3.1 - Modify Cyan template text colors [ALL VERSIONS] 11/29

Code:
**************************************************************************
** Color Changer v3.1 (ALL YOUR VERSIONS ARE BELONG TO US) by Ohsaka **
**************************************************************************
Usages:
java -Xmx512M -jar colorChangev3.jar <theme.zip> [colorLabels ...] [debug] [zipDebug] [goFull]
< > means required, [ ] means optional
<theme.zip> - Android theme update file (not a full ROM update)
[ticker] - ARGB color for ticker notifications on the status bar
[clock] - ARGB color for the clock text
[date] - ARGB color for the date
[ongoing] - ARGB color for "Ongoing" Label
[latest] - ARGB color for "Notifications" Label
[none] - ARGB color for "No Notifications" Label
[clear] - ARGB color for text on Clear Notifications button
[network] - ARGB color for network name (T-Mobile usually)
[roam] - Not sure where this color shows up, possibly network name when roaming
Progress Bar Color Change (Must specify BOTH at once)
[progressBarBackground] - Progress bars background color
[progressBarForeground] - Progress bars foreground color
[debug] - Turns on debugging output
[zipDebug] - Turns on zip debugging output
[goFull] - Force updater to process a full rom instead of just templates
Example 1) java -Xmx512M -jar colorChangev3.jar themeXYZ.zip ticker=FFFF0000 date=FFFF0000 clock=FFFF0000
This will change ticker, date, and clock to red
Example 2) java -Xmx512M -jar colorChangev3.jar themeXYZ.zip clear=FFFFFFFF network=FF0000FF
This will change the clear notifications button text to white and network name (usually T-Mobile) to blue
Example 3) java -Xmx512M -jar colorChangev3.jar themeXYZ.zip clear=FFFFFFFF network=FF0000FF debug zipDebug
Same as example 2 but with debug and zipDebug turned on
Important: You must add "-Xmx512M" on the command line now, as seen in the examples
3.0 enhancements:
- All inclusive jar now, no external jars needed
- Changed search algorithm, uses text strings less likely to change. Should hopefully make this version work for most future roms.
- Only unzips and edits files when necessary
- Detects OS, will chmod 755 signed file if on Linux. Also has additional error messages reminding user to run as root on Linux
- Cleaned up output logging, hopefully more useful
- Added "debug" and "zipDebug" parameters to turn on debug output
- Other stuff that I can't remember
v3.1
- Added "goFull" flag to allow updating a full ROM
- Removed progress circle arguments, can't do it
- Fixed and tested progress bar color change, experimental no longer
- Tested with Cyan 4.2.6
The attached file is the latest file even though I didn't change the filename.
Please continue to send me any bug reports and questions.
<previous releases info>
Edit(7/19) - Successfully tested with v3.6.8 template of Cyan Rom
Edit(7/26) - Successfully tested with v3.9 template of Cyan Rom
Edit(8/19) - Successfully tested with v4.0.1 template of Cyan Rom. All needed 3rd party jars are now included inside the single jar file. (Thanks mianosm)
Edit(9/9) - Added test version of 2.0. Works for 4.1.5+ templates.
EDIT: v0.5 Changed the way the command line works... Alot more user friendly now IMO
http://forum.xda-developers.com/showthread.php?t=535630&page=13
EDIT: v0.4 is out, fixed a bug and made the usage output explain better the two possible ways to run it
http://forum.xda-developers.com/showthread.php?t=535630&page=12
EDIT: v0.3 is out, sets each element with an independent color, check page 11
http://forum.xda-developers.com/showthread.php?t=535630&page=11
EDIT: There are "white versions for Vodaphone, rogers, and JF151 on page 10"
http://forum.xda-developers.com/showthread.php?t=535630&page=10
EDIT: I added my Status Text Color Changer application to this thread...
Read about it on page 6..
http://forum.xda-developers.com/showthread.php?t=535630&page=6
Notification text is found in the: update.zip/framework/framework-res.apk/res/layout/status_bar.xml
Open the status_bar.xml with your favorite hex editor, find the instances of 00 00 1C, and the next three values will dictate your color choice.
For my services.jar the only two things I changed was the clock in com/android/server/status/StatusBarService.smali:
Code:
Line 4115> const v8, -0x1 invoke-virtual {v7, v8}, Landroid/widget/TextView;->setTextColor(I)V
...and then the date in com/android/server/status/StatusBarIcon.smali:
Code:
Line 86> .line 46 const/high16 v6, -0x100 invoke-virtual {v4, v7}, Landroid/widget/TextView;->setTextColor(I)V
Then the only thing left is the notifications in the:
Code:
update.zip/framework/framework-res.apk/res/layout/status_bar.xml
Most of the reason why all of the trouble was had was due to the calls being moved for the status bar pull down with stericsons mod, but all is well again.
Thanks a ton Ohsaka
What program do you recommend for editing .dex files?
Genesis206 said:
What program do you recommend for editing .dex files?
Click to expand...
Click to collapse
There is only one that I know of:
http://code.google.com/p/smali/
Remember, Baksmali means to disassemble, and Smali means to assemble (in Icelandic of course).
Genesis206 said:
What program do you recommend for editing .dex files?
Click to expand...
Click to collapse
I use PSPad to edit them because it will recognize its a unix formatted file and not mangle it with extra line feed characters which some windows text editors do. Its also free which is nice.
A nice feature of the smali file is that they contain ".line xxx" indicators. Which tell you the line number in the original source file it corresponds to. Very very helpful...
To be clear, the dex file is compiled, you have to decompile it before you can edit it.
Unzip services.jar, decompile classes.dex, edit .smali files, compile the decompiled dex file, reinsert it into your services.jar, resign, done.
I use vim when I do my editing in linux, and notepad++ in windows, I'll have to take a look at PSPad to see what that's all about. : )
Pspad is a fancier editor for programmers. It supports a ton of languages and has a lot of various addons and plugins. I developed an editor in it for a c-based language called AVS. It can load and save from a remote server, compile on remote server, link to the helpfile, etc etc.
can someone post the services.jar without the stericson fix and edited with the smali files for those of us unfamiliar with dex files etc. I am trying to make themes for the Sapphire and hope to use this a few of them.....
Or, will i be able to just add this services.jar to the Sapphire rom?
Post me the services.jar from ur theme and ill update it later
Ohsaka said:
Post me the services.jar from ur theme and ill update it later
Click to expand...
Click to collapse
thanks- wonder if the services.jar is different from Dream to Sapphire?
I have attached the services.jar (as for yours just remove the .zip) from the Sapphire ion rom. I just basically used the services.jar given with the rom (this is my first rom post rooting the Magic so didnt want to play around with too many things just yet- i did put in statusbar.xml for white date though).
thanks again- what is your twitter?
Is there a difference between yours(oshaka) and Mianosm's services file?
ultra spikey said:
Is there a difference between yours(oshaka) and Mianosm's services file?
Click to expand...
Click to collapse
There shouldn't be, however I do believe the md5sums will be different as I put together my own using the old 1.5 theme and only adjusting the 2 lines in the dex files that I posted above.
Notifications = status_bar.xml (if you would like to use colors other than 00 00 00 or FF FF FF, this is where you would set them for the different notifications).
Clock and Date = services.jar (more particularly the 2 smali files listed above, if you know how to convert 0x0 format, you can make the clock/date any color(s) you want. ).
mianosm said:
Notification text is found in the: update.zip/framework/framework-res.apk/res/layout/status_bar.xml
Open the status_bar.xml with your favorite hex editor, find the instances of 00 00 1C, and the next three values will dictate your color choice.
For my services.jar the only two things I changed was the clock in com/android/server/status/StatusBarService.smali:
Code:
Line 4115> const v8, -0x1 invoke-virtual {v7, v8}, Landroid/widget/TextView;->setTextColor(I)V
...and then the date in com/android/server/status/StatusBarIcon.smali:
Code:
Line 86> .line 46 const/high16 v6, -0x100 invoke-virtual {v4, v7}, Landroid/widget/TextView;->setTextColor(I)V
Then the only thing left is the notifications in the:
Code:
update.zip/framework/framework-res.apk/res/layout/status_bar.xml
Most of the reason why all of the trouble was had was due to the calls being moved for the status bar pull down with stericsons mod, but all is well again.
Thanks a ton Ohsaka
Click to expand...
Click to collapse
Can i ask what your fav hex editor is?
SteveTilsed said:
Can i ask what your fav hex editor is?
Click to expand...
Click to collapse
I use HxD. YMMV.
Have fun! : )
mianosm said:
There shouldn't be, however I do believe the md5sums will be different as I put together my own using the old 1.5 theme and only adjusting the 2 lines in the dex files that I posted above.
Notifications = status_bar.xml (if you would like to use colors other than 00 00 00 or FF FF FF, this is where you would set them for the different notifications).
Clock and Date = services.jar (more particularly the 2 smali files listed above, if you know how to convert 0x0 format, you can make the clock/date any color(s) you want. ).
Click to expand...
Click to collapse
great work guys!! you guys are the best!!! i have to step my game up.
mianosm said:
I use HxD. YMMV.
Have fun! : )
Click to expand...
Click to collapse
Please see my attached screen does this mean that my colour would be black?
Thanks again This could be fun.
It doesn't look like you are changing a color code, remember: the colors are after: 08 00 00 1C
Oh ok so i would change the the following 6 F's?
Looks better, can't be 100% with the image size though.
Well I guess that's a start any chance of seeing your screen or if u wish I can change mine to help?
Thanks for the help!

[MOD][GUIDE][ICS][JB] Multi Mods Guide | Updated 26/05/13

Hi guys,
I created a same thread a while ago for the SII - here These same mods can be applied to the SIII Samsung ICS & JellyBean ROMS
To enable these mods you need:
apktool 1.5.2 or the latest APK Manager
smali/baksmali
Knowledge of decompiling/recompiling
knowledge of how to read logcats
framework-res.apk
services.jar
SecSettings.apk
SecSettingsProvider.apk
framework-res.apk
Navigate to: /res/values/bools.xml
On Screen Nav Buttons (GNexus Style):
Code:
[CENTER]<bool name="config_showNavigationBar">[COLOR="Red"]false[/COLOR]</bool>[/CENTER]
Change to:
Code:
[CENTER]<bool name="config_showNavigationBar">[COLOR="Red"]true[/COLOR]</bool>[/CENTER]
4 Way Rotation:
Code:
[CENTER]<bool name="config_allowAllRotations">[COLOR="Red"]false[/COLOR]</bool>[/CENTER]
Change to:
Code:
[CENTER]<bool name="config_allowAllRotations">[COLOR="red"]true[/COLOR]</bool>[/CENTER]
Lock Screen Rotation:
Code:
[CENTER]<bool name="config_enableLockScreenRotation">[COLOR="red"]false[/COLOR]</bool>[/CENTER]
Change to:
Code:
[CENTER]<bool name="config_enableLockScreenRotation">[COLOR="red"]true[/COLOR]</bool>[/CENTER]
and
Code:
[CENTER]<bool name="lockscreen_isPortrait">[COLOR="Red"]true[/COLOR]</bool>[/CENTER]
change to
Code:
[CENTER]<bool name="lockscreen_isPortrait">[COLOR="red"]false[/COLOR]</bool>[/CENTER]
Disable Keyboard Switch In StatusBar When Typing
Code:
[CENTER]<bool name="show_ongoing_ime_switcher">[COLOR="Red"]true[/COLOR]</bool>[/CENTER]
Change to:
Code:
[CENTER]<bool name="show_ongoing_ime_switcher">[COLOR="red"]false[/COLOR]</bool>[/CENTER]
Unplugging From USB doesn't Turn Screen On
Code:
[CENTER]<bool name="config_unplugTurnsOnScreen">[COLOR="red"]true[/COLOR]</bool>[/CENTER]
Change to:
Code:
[CENTER]<bool name="config_unplugTurnsOnScreen">[COLOR="red"]false[/COLOR]</bool>[/CENTER]
To remove 'Unlock lockscreen with menu key' For AOSP Lockscreen:
Code:
[CENTER]<bool name="config_disableMenuKeyInLockScreen">[COLOR="Red"]false[/COLOR]</bool>[/CENTER]
Change to:
Code:
[CENTER]<bool name="config_disableMenuKeyInLockScreen">[COLOR="Red"]true[/COLOR]</bool>[/CENTER]
To remove Help Overlay for Touchwiz Lockscreen:
Code:
[CENTER]<bool name="config_isHelpOverlayEnabled">[COLOR="Red"]true[/COLOR]</bool>[/CENTER]
Change to:
Code:
[CENTER]<bool name="config_isHelpOverlayEnabled">[COLOR="Red"]false[/COLOR]</bool>[/CENTER]
To permanently disable Multi Windows:
Code:
[CENTER]<bool name="config_multiWindowControlbar">[COLOR="Red"]true[/COLOR]</bool>[/CENTER]
Change to:
Code:
[CENTER]<bool name="config_multiWindowControlbar">[COLOR="Red"]false[/COLOR]</bool>[/CENTER]
Brightness Values:
res/values/arrays
Change the following values (Taken from mattiadj's brightness fix thread - thanks)
Code:
<integer-array name="config_autoBrightnessLevels">
<item>0</item>
<item>1</item>
<item>20</item>
<item>150</item>
<item>400</item>
<item>800</item>
<item>1500</item>
<item>3000</item>
<item>6000</item>
<item>9000</item>
<item>15000</item>
</integer-array>
<integer-array name="config_autoBrightnessHysteresisLevels">
<item>0</item>
<item>2</item>
<item>50</item>
<item>110</item>
<item>320</item>
<item>900</item>
<item>2000</item>
<item>6000</item>
<item>8000</item>
<item>10000</item>
<item>12000</item>
</integer-array>
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>30</item>
<item>30</item>
<item>50</item>
<item>60</item>
<item>80</item>
<item>100</item>
<item>120</item>
<item>150</item>
<item>190</item>
<item>210</item>
<item>230</item>
<item>255</item>
</integer-array>
<integer-array name="config_autoBrightnessButtonBacklightValues">
<item>255</item>
<item>200</item>
<item>100</item>
<item>0</item>
<item>0</item>
</integer-array>
<integer-array name="config_autoBrightnessKeyboardBacklightValues ">
<item>255</item>
<item>200</item>
<item>100</item>
<item>0</item>
<item>0</item>
</integer-array>
SecSettingsProvider.apk
To enable installation of non market (3rd party) apps by default:
Navigate to: /res/values/bools.xml
Code:
[CENTER]<bool name="def_install_non_market_apps">[COLOR="Red"]false[/COLOR]</bool>[/CENTER]
Change to:
Code:
[CENTER]<bool name="def_install_non_market_apps">[COLOR="Red"]true[/COLOR]</bool>[/CENTER]
To disable the lockscreen completely:
Code:
[CENTER]<bool name="def_lockscreen_disabled">[COLOR="Red"]false[/COLOR]</bool>[/CENTER]
Change to:
Code:
[CENTER]<bool name="def_lockscreen_disabled">[COLOR="Red"]true[/COLOR]</bool>[/CENTER]
To enable Wifi from boot:
Code:
[CENTER]<bool name="def_wifi_on">[COLOR="Red"]false[/COLOR]</bool>[/CENTER]
Change to:
Code:
[CENTER]<bool name="def_wifi_on">[COLOR="Red"]true[/COLOR]</bool>[/CENTER]
SecSettings.apk
To enable Device Status Info "Normal" Instead Of "Modified":
Navigate to: smali/com/android/settings/deviceinfo/Status.smali
Search for:
Code:
.method private changeSysScopeStatus()V
Change entire method to:
Code:
.method private changeSysScopeStatus()V
.locals 2
const-string v0, "sysscope_status"
invoke-virtual {p0, v0}, Lcom/android/settings/deviceinfo/Status;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;
move-result-object v0
const v1, [COLOR="deepskyblue"]0x7f090128 #sysscope_normal[/COLOR]
invoke-virtual {p0, v1}, Lcom/android/settings/deviceinfo/Status;->getString(I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/preference/Preference;->setSummary(Ljava/lang/CharSequence;)V
return-void
.end method
Now navigate to /res/values/public
Search for "sysscope_normal" (Without quotes) - take the 0x7 number associated with it and paste it over the number in the above code with #sysscope_normal at the side of it (the one given isn't correct for your phone)
services.jar
To disable signature checks on system apps:
Navigate to: /smali/com/android/server/pm/PackageManagerService.smali
Search for
Code:
.method static compareSignatures([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
Change entire method to:
Code:
.method static compareSignatures([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
.locals 7
const-string p0, "DSA:"
const-string p1, "Skip signatures check"
invoke-static {p0, p1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
const/4 v6, 0x0
return v6
.end method
I'll be adding more mods to this over the coming weeks
Please no more requests for ICS/Stock animations, thats not what this thread is for
Update 26/05/13
framework-res.apk:
Added mod for disabling help overlay on Touchwiz lockscreen
Added brightness fix values
Added mod to disable MultiWindow
SecSettingsProvider.apk:
- Enable Wifi from boot
- Install non market apps by default
- To disable the lockscreen completely
SecSettings.apk:
- To enable Device Status Info "Normal" Instead Of "Modified"
Services.jar:
- To disable signature checks on system apps
Update 24/01/13
Added mod for AOSP Lockscreen menu key disable
Reuploaded APK Manager folder for users (Includes apktool 1.5.1 and latest relevant aapt)​
Thanks:
jovy23
Wanam
Mattiadj​
Much appreciated .. thanks for your work , hope you add some more data in the near future
Is it possible to mod jelly bean touchwiz for jelly bean animation? Such as opening application the jelly bean touchwiz still follow ics animation.
Sent from my GT-I9300 using xda premium
bala_gamer said:
Much appreciated .. thanks for your work , hope you add some more data in the near future
Click to expand...
Click to collapse
Thanks man :highfive:
w1nter456 said:
Is it possible to mod jelly bean touchwiz for jelly bean animation? Such as opening application the jelly bean touchwiz still follow ics animation.
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
I think you mean: have ICS animation instead of jellybean animation in a jellybean rom yes?
Thats possible, you need to replace the files in frameworks-res.apk/res/anim
Upload your framework and i will do it
Darkside Agent said:
I think you mean: have ICS animation instead of jellybean animation in a jellybean rom yes?
Thats possible, you need to replace the files in frameworks-res.apk/res/anim
Upload your framework and i will do it
Click to expand...
Click to collapse
Sorry, I actually meant that Samsung using the old style which is already jelly bean version but the touchwiz still following ics transition animation. I hope to have original jelly bean animation stock experience on it. Then which 1 should I upload the framework? Cm10 or twframework? I don't know is which 1 related although I have a little knowledge about it.
You're the second person that really won my heart on it, the first one is gm kernel. I'm really appreciate it.
Sent from my GT-I9300 using xda premium
Sorry, i dont understand
Darkside Agent said:
Sorry, i dont understand
Click to expand...
Click to collapse
Hi, as we all know, Samsung android 4.1.1 jelly bean does give us some new feature, however some are missing like full project butter, animation still follow old android 4.0 and etc. Simple said, it is just unfinished software. Therefore, I hope we can try to improve like aosp jelly bean experience. I wish to have true aosp jelly bean animation like galaxy nexus, not samsung modified animation.
Sent from my GT-I9300 using xda premium
i havent got an s3 yet but what darkside said is right, in frameworkd res apk is anim folder, decompile first obviously, then replace.
thats the animation that you get when you switch tasks, if you meen the overall interface i would recommend a rom that has a framework that looks like aosp but has touchwiz or an aosp rom like cm10 aokp or just plain jellybean
Sent from my Transformer using XDA Premium HD app
pashinator said:
i havent got an s3 yet but what darkside said is right, in frameworkd res apk is anim folder, decompile first obviously, then replace.
thats the animation that you get when you switch tasks, if you meen the overall interface i would recommend a rom that has a framework that looks like aosp but has touchwiz or an aosp rom like cm10 aokp or just plain jellybean
Sent from my Transformer using XDA Premium HD app
Click to expand...
Click to collapse
Hi, I not that greedy, i m just want a true jelly bean animation on my Samsung touchwiz, just when opening a application the animation fly out, that's all , because that is only Samsung didn't implement it.
Sent from my GT-I9300 using xda premium
Added links to repacked apk manager and apktool in first post
This Mod is featured on the Index of modsINDEX ALL IN 1 THREAD
Any observation please send me PM
siberian tiger said:
This Mod is featured on the Index of modsINDEX ALL IN 1 THREAD
Any observation please send me PM
Click to expand...
Click to collapse
Without Index i wasn`t able to find this! So Thanks to OP and to you! Pushing thanks button to both!:good:
No worries
I'm going to expand this thread when I have time
Darkside Agent said:
Thanks man :highfive:
I think you mean: have ICS animation instead of jellybean animation in a jellybean rom yes?
Thats possible, you need to replace the files in frameworks-res.apk/res/anim
Upload your framework and i will do it
Click to expand...
Click to collapse
I have uploaded my framework from from a stock/deodexed XXDLJ4 rom. Can you please change the jellybean transition animations to ICS transition amimation for me.
I tried doing it on my own by following this post : http://forum.xda-developers.com/showthread.php?t=1342117 but failed
Here's the dropbox link to my framework-res.apk : https://www.dropbox.com/s/ci9kcka7kky6yin/framework-res.apk
Thanks in advance.
dark_polok said:
I have uploaded my framework from from a stock/deodexed XXDLJ4 rom. Can you please change the jellybean transition animations to ICS transition amimation for me.
I tried doing it on my own by following this post : http://forum.xda-developers.com/showthread.php?t=1342117 but failed
Here's the dropbox link to my framework-res.apk : https://www.dropbox.com/s/ci9kcka7kky6yin/framework-res.apk
Thanks in advance.
Click to expand...
Click to collapse
Yep, a little bit busy today but should have it done tomorrow
dark_polok said:
I have uploaded my framework from from a stock/deodexed XXDLJ4 rom. Can you please change the jellybean transition animations to ICS transition amimation for me.
I tried doing it on my own by following this post : http://forum.xda-developers.com/showthread.php?t=1342117 but failed
Here's the dropbox link to my framework-res.apk : https://www.dropbox.com/s/ci9kcka7kky6yin/framework-res.apk
Thanks in advance.
Click to expand...
Click to collapse
Hey dude,
Try this - its untested though as i don't have much time
Hi guys, i'm a bit OT but i don't know where to ask.
Galaxy S3 don't have aosp rom fully functional, is it possible for a dev modding and customize touchwiz frameworks to have complete aosp look? Some app are better on touchwitz so camera and browser could remain the same but all other parts using apk from aosp.
I had an HTC Sensation and many developers choose this way: speed comparable to aosp, little slower but rock stable and with the plus of stock camera.
I think that if someone do a thing like this, will be the perfect rom!
Sorry for my english
Darkside Agent said:
Hey dude,
Try this - its untested though as i don't have much time
Click to expand...
Click to collapse
CWM says:
Finding update package...
Opening update package...
Installing update...
Installation aborted...
And the android robot dies in the background with a red exclamation mark =\
dark_polok said:
CWM says:
Finding update package...
Opening update package...
Installing update...
Installation aborted...
And the android robot dies in the background with a red exclamation mark =\
Click to expand...
Click to collapse
It's not a cwm zip!
Darkside Agent said:
It's not a cwm zip!
Click to expand...
Click to collapse
Oops. Copy and paste-replace with root explorer? Should I?

Throttled(possible work around)

Can someone take a look and see if this works
jovy23 said:
Hello to all Developers and XDA members! I have come here to give you a guide on how you can use native tethering without restrictions and here is how you can do it!
What Is Required...
★ First you need to have experience and know how to decompile/recompile apks with Apktools, apkmanager, smali, and baksmali
★ Have 7-zip installed onto your computer/laptop
★ Make sure you have Notepad++ also installed!
★HOW TO EVADE/REMOVE DATA CAP THROTTLING★
This guide will show you how you can evade/remove data cap throttling and this is good for the people who don't have a unlimited data plan for their phone's carrier so here is how you can do it!
STEP 1
★ Go into your system/framework folder and take out your "services.jar"
★ Then use one of the applications such as apktool and then use baksmali commands to decompile and extract the classes.dex from the services.jar
★ Once you have decompiled the services.jar, go to:
Now open up "ThrottleService.smali" with your notepad++ for editing.
Once your in here go and find:
Code:
.method static synthetic access$1002(Lcom/android/server/ThrottleService;J)J
And then you will see something like this:
Code:
.method static synthetic access$1002(Lcom/android/server/ThrottleService;J)J
.registers 3
.parameter "x0"
.parameter "x1"
.prologue
.line 71
iput-wide p1, p0, Lcom/android/server/ThrottleService;->mMaxNtpCacheAge:J
return-wide p1
.end method
Now what your going to need to do is add an empty space below ".line 71" and then above "iput-wide" your going to add "const-wide/16 p1, 0x0", once you do it will look something like this:
Code:
.method static synthetic access$1002(Lcom/android/server/ThrottleService;J)J
.registers 3
.parameter "x0"
.parameter "x1"
.prologue
.line 71
[B]const-wide/16 p1, 0x0[/B]
iput-wide p1, p0, Lcom/android/server/ThrottleService;->mMaxNtpCacheAge:J
return-wide p1
.end method
By adding that, this will invoke the ".method private checkThrottleAndPostNotification(J)V" and also the clearThrottleAndNotification()V which are both in the "ThrottleService$MyHandler.smali" which looks like this:
Code:
.method private checkThrottleAndPostNotification(J)V
.registers 28
.parameter "currentTotal"
.prologue
.line 588
move-object/from16 v0, p0
iget-object v0, v0, Lcom/android/server/ThrottleService$MyHandler;->this$0:Lcom/android/server/ThrottleService;
move-object/from16 v21, v0
#getter for: Lcom/android/server/ThrottleService;->mPolicyThreshold:Ljava/util/concurrent/atomic/AtomicLong;
invoke-static/range {v21 .. v21}, Lcom/android/server/ThrottleService;->access$500(Lcom/android/server/ThrottleService;)Ljava/util/concurrent/atomic/AtomicLong;
move-result-object v21
invoke-virtual/range {v21 .. v21}, Ljava/util/concurrent/atomic/AtomicLong;->get()J
move-result-wide v15
.line 589
.local v15, threshold:J
const-wide/16 v21, 0x0
cmp-long v21, v15, v21
if-nez v21, :cond_18
.line 590
invoke-direct/range {p0 .. p0}, Lcom/android/server/ThrottleService$MyHandler;->clearThrottleAndNotification()V
.line 663
:cond_17
:goto_17
return-void
.line 596
:cond_18
move-object/from16 v0, p0
Now once your done with modifying the "ThrottleService.smali", Recompile your services.jar using apktool and smali commands and your DONE!
IMPORTANT REMINDER - This mod works best for the people who DON'T have a unlimited data plan so it will be good for devs to make a flashable.zip in their OP with this mod with their roms services.jar which could be different "since some devs maybe did other mods/tweaks into their roms services.jar" so the users that be having any throttling issues can flash it. Also use at your own risk!
Click to expand...
Click to collapse
Sent from my SGH-T679 using Tapatalk 2
Tethering
This is for people getting the up sell page
jovy23 said:
Hello to all Developers and XDA members! I have come here to give you a guide on how you can use native tethering without restrictions and here is how you can do it!
What Is Required...
★ First you need to have experience and know how to decompile/recompile apks with Apktools, apkmanager, smali, and baksmali
★ Have 7-zip installed onto your computer/laptop
★ Make sure you have Notepad++ also installed!
★HOW TO ENABLE NATIVE TETHERING WITHOUT RESTRICTIONS★
STEP 1
★ Go into your system/framework folder and take out your "framework-res.apk"
★ Then use one of the applications such as apktools or apkmanager and then use the commands to decompile the framework-res.apk
★ Once you have decompiled the framework-res.apk, go to:
Now with Notepad++ go and find:
Code:
And then it will look something like this:
Code:
com.sec.tetheringprovision
com.sec.tetheringprovision.TetheringProvisionActivity
Now what your going to need to do is remove both of the lines that has "tetheringprovision" in them, the "string-" in the first line, and then remove the whole from the last line, once you do it will look something like this:
Code:
Once your done now Recompile your framework-res.apk using apktools or apkmanager and your DONE!!!
NOTE: Remember by removing those "com.sec.tetheringprovision" lines in the arrays.xml, it bypasses all the checks, There will be no more popup message that's telling you to upgrade to a T-Mobile Hotspot Plan, and you will get no errors!. There is no need for any third party apps or creating a APN just to have Tether to work properly!
STEP 2
The next step that your going to have to do is go into your roms:
folder and then remove:
This TetheringProvision.apk is no longer needed. If you were to remove it without doing the framework-res.apk mod, you will get constant force closes and a "Tetheringprovision Is Not Responding Message" after you have enabled Mobile Hotspot on your Samsung Galaxy S3 device. But since you have modded it, you can just delete it.
STEP 3
Now for this step, this is going to give you the opportunity to edit/remove the locked APNS And also it will show you how you can see any of the hidden APN's from the "Access Point Names" Menu which is in Settings-More Settings-Mobile Networks-Access Point Names. Also this step your going to have to change the APN site name which makes you tether without bringing you into the T-Mobile Hotspot Browser Page.
First your going to have to go into your roms folder which is:
And then open up "customer.xml" with your notepad++ for editing.
Now go all the way to the bottom of this file and you will see the last APN Tethering setting which should looks like this:
Code:
T-Mobile
no
enable
T-Mobile Tethering
none
ps
http
off
pcweb.tmobile.com
Now what your going to have to do is change where it says no into yes. By changing this, this will give you the permission to edit/remove this APN setting. REMEMBER: This APN Tethering setting only shows after you first use Tethering! And once your done with that go to where it says pcweb.tmobile.com and change it into epc.tmobile.com. By changing this APN site name it should give you total access for you to tether without bringing you into the T-Mobile Hotspot Browser Page from your PC's internet browser.
Once done it will look like this:
Code:
T-Mobile
[B]yes[/B]
enable
T-Mobile Tethering
none
ps
http
off
[B]epc.tmobile.com[/B]
Now save this file with the new edits with Notepad++ and your DONE!
But your not done yet with this step, your going to have to do one last thing. The Tethering APN that you have modified from "above" is still hidden. Now what your going to have to do is go into your roms folder again to:
And then open up "feature.xml" with your notepad++ for editing.
Now with Notepad++ go and find:
Now DELETE THIS WHOLE LINE! [This hides the Tethering APN that you have modified from "above" from view]. Once your done save this file with Notepad++ and THATS IT! Now Go Enjoy Your Native Tethering!!!
STILL HAVING PROBLEMS WITH TETHERING EVEN AFTER THE MOD? - Go into "Settings-More Settings-Mobile Networks-Access Point Names" and then press your phone's "Menu Settings Key" on the bottom left of your phone and then select "Reset To Default" and see if that helps.
★HOW TO ENABLE BLUETOOTH TETHERING★
This guide will show you how you can enable bluetooth tethering so here is how you can do it!
STEP 1
★ Go into your system/framework folder and take out your "framework-res.apk"
★ Then use one of the applications such as apktools or apkmanager and then use the commands to decompile the framework-res.apk
★ Once you have decompiled the framework-res.apk, go to:
Now with Notepad++ go and find:
Code:
And then it will look something like this:
Code:
Now what your going to need to do is add "string-" right before the "array" in the beginning of the config_tether_bluetooth_regexs, then under it add bnep\\d and make sure that the from the beginning is aligned the same like the other from the arrays.xml. Once you do, add right under the "bnep\\d" line, then it will look something like this:
Code:
[B]
bnep\\d
[/B]
Once your done now Recompile your framework-res.apk using apktools or apkmanager and your DONE!!!
Click to expand...
Click to collapse
tazmaniondvl said:
This is for people getting the up sell page
Click to expand...
Click to collapse
You can avoid the upsell page for tethering simply by changing your browser user-agent to a mobile device, works 100% of the time.
Bump
Did any of or wonderful developers ever look into this?
Sent from my SGH-T679 using xda app-developers app
tazmaniondvl said:
Bump
Did any of or wonderful developers ever look into this?
Sent from my SGH-T679 using xda app-developers app
Click to expand...
Click to collapse
Did you write this code? This is the first method I've seen that leaves everything intact and modifies the code to disable it. This is how things are done properly. I saw a lot of people just deleting the throttle code and making there mobile settings crash.. Not very elegant. Did you write this? Who wrote this?
I think that this is awesome that You were willing to share your knowledge in a situation that has had many many people stumped for a long time and always trying to find a method that was satisfactory but nothing solid like this. Do understand that Your Humility has not gone unnoticed. I thank you for taking the time to share what you have done. It is certainly a very nice and humble act on your part and the thing is this.......You didn't have to at all. And that's why I'm grateful and I appreciate it. Thank You very much!

[REQ] Remove Unnecessary Notification Clutter

Is there a mod or a patch that removes the Beats icon, the headset icon, and the godawful NFC icon?
Particularly, the NFC and Beats icon. I don't want to turn off Beats because it makes the phone's speakers sound so much deeper. If there's an alternative that sounds better, I'm open to that. But the headset icon is completely uncecessary. I think I know when I have headphones plugged in. And the NFC icon is the most useless icon I've ever seen.
The mod is avaible in ViperOne
Never seen it out of the Viper
Xblast xposed module can remove all the left side icons
Sent from my HTCONE using Tapatalk 4
Guich said:
The mod is avaible in ViperOne
Never seen it out of the Viper
Click to expand...
Click to collapse
To remove the NFC icon when NFC is enabled, in /system/customize/ACC/default.xml... change:
Code:
<item type="integer" name="nfc_show_icon">1</item>
to
Code:
<item type="integer" name="nfc_show_icon">0</item>
__________________________________________________________________________________________________
To remove the Beats notification icon, decompile Framework.jar and open \smali\android\media\AudioService$HtcBeatsEffect.smali
and find this ".method public onMessageBeatsNotify()V" method. Towards the end of the method, you can change this:
Code:
invoke-virtual {p0, v1}, Landroid/media/AudioService$HtcBeatsEffect;->showBeatsIcon(I)V
to this
Code:
invoke-virtual {p0}, Landroid/media/AudioService$HtcBeatsEffect;->hideBeatsIcon()V
and Beats can still be enabled without the notification.
____________________________________________________________________________________________
it looks like the headset icon is called from SystemUI.apk \smali\com\android\systemui\statusbar\phone\HtcPhoneStatusBarPolicy.smali in method ".method private updateHeadsetStatus(Landroid/content/IntentV". In this method, find :cond_7 and copy everything between :cond_7 and :cond_8 - it should look like this:
Code:
iget-object v6, p0, Lcom/android/systemui/statusbar/phone/HtcPhoneStatusBarPolicy;->mService:Landroid/app/StatusBarManager;
const-string v7, "headset_plug"
invoke-virtual {v6, v7}, Landroid/app/StatusBarManager;->removeIcon(Ljava/lang/String;)V
goto :goto_4
Right above this, you will see :cond_6 - this is for the headset (with mic) notification icon. Replace everything between :cond_6 and :cond_7 with what you copied previously (make sure you don't copy over the lines for :cond_6 or :cond_7, just replace what's between)
Now scroll up until you find :goto_2 - this is for the headphones (no mic) notification icon. Replace everything between :goto_2 and :goto_3 with what you copied previously (make sure you don't copy over the lines for :goto_2 or :goto_3, just replace what's between)
Recompile, flash, no headset/headphone notifications.
^^^ someone with some xposed knowledge may be able to make a module for beats, headphones, and headset notifications.
homeslice976 said:
To remove the NFC icon when NFC is enabled, in /system/customize/ACC/default.xml... change:
Code:
<item type="integer" name="nfc_show_icon">1</item>
to
Code:
<item type="integer" name="nfc_show_icon">0</item>
__________________________________________________________________________________________________
To remove the Beats notification icon, decompile Framework.jar and open \smali\android\media\AudioService$HtcBeatsEffect.smali
and find this ".method public onMessageBeatsNotify()V" method. Towards the end of the method, you can change this:
Code:
invoke-virtual {p0, v1}, Landroid/media/AudioService$HtcBeatsEffect;->showBeatsIcon(I)V
to this
Code:
invoke-virtual {p0}, Landroid/media/AudioService$HtcBeatsEffect;->hideBeatsIcon()V
and Beats can still be enabled without the notification.
____________________________________________________________________________________________
it looks like the headset icon is called from SystemUI.apk \smali\com\android\systemui\statusbar\phone\HtcPhoneStatusBarPolicy.smali in method ".method private updateHeadsetStatus(Landroid/content/IntentV". In this method, find :cond_7 and copy everything between :cond_7 and :cond_8 - it should look like this:
Code:
iget-object v6, p0, Lcom/android/systemui/statusbar/phone/HtcPhoneStatusBarPolicy;->mService:Landroid/app/StatusBarManager;
const-string v7, "headset_plug"
invoke-virtual {v6, v7}, Landroid/app/StatusBarManager;->removeIcon(Ljava/lang/String;)V
goto :goto_4
Right above this, you will see :cond_6 - this is for the headset (with mic) notification icon. Replace everything between :cond_6 and :cond_7 with what you copied previously (make sure you don't copy over the lines for :cond_6 or :cond_7, just replace what's between)
Now scroll up until you find :goto_2 - this is for the headphones (no mic) notification icon. Replace everything between :goto_2 and :goto_3 with what you copied previously (make sure you don't copy over the lines for :goto_2 or :goto_3, just replace what's between)
Recompile, flash, no headset/headphone notifications.
Click to expand...
Click to collapse
I appreciate your knowledge, very much, sadly I know nothing of Smali.
Could I replace the icons with a 1pixel wide transparent PNG or will that cause some weird things to happen?
homeslice976 said:
To remove the NFC icon when NFC is enabled, in /system/customize/ACC/default.xml... change:
Code:
<item type="integer" name="nfc_show_icon">1</item>
to
Code:
<item type="integer" name="nfc_show_icon">0</item>
__________________________________________________________________________________________________
To remove the Beats notification icon, decompile Framework.jar and open \smali\android\media\AudioService$HtcBeatsEffect.smali
and find this ".method public onMessageBeatsNotify()V" method. Towards the end of the method, you can change this:
Code:
invoke-virtual {p0, v1}, Landroid/media/AudioService$HtcBeatsEffect;->showBeatsIcon(I)V
to this
Code:
invoke-virtual {p0}, Landroid/media/AudioService$HtcBeatsEffect;->hideBeatsIcon()V
and Beats can still be enabled without the notification.
____________________________________________________________________________________________
it looks like the headset icon is called from SystemUI.apk \smali\com\android\systemui\statusbar\phone\HtcPhoneStatusBarPolicy.smali in method ".method private updateHeadsetStatus(Landroid/content/IntentV". In this method, find :cond_7 and copy everything between :cond_7 and :cond_8 - it should look like this:
Code:
iget-object v6, p0, Lcom/android/systemui/statusbar/phone/HtcPhoneStatusBarPolicy;->mService:Landroid/app/StatusBarManager;
const-string v7, "headset_plug"
invoke-virtual {v6, v7}, Landroid/app/StatusBarManager;->removeIcon(Ljava/lang/String;)V
goto :goto_4
Right above this, you will see :cond_6 - this is for the headset (with mic) notification icon. Replace everything between :cond_6 and :cond_7 with what you copied previously (make sure you don't copy over the lines for :cond_6 or :cond_7, just replace what's between)
Now scroll up until you find :goto_2 - this is for the headphones (no mic) notification icon. Replace everything between :goto_2 and :goto_3 with what you copied previously (make sure you don't copy over the lines for :goto_2 or :goto_3, just replace what's between)
Recompile, flash, no headset/headphone notifications.
Click to expand...
Click to collapse
Hey mate, i know, but not all people are knowing how to.
So a rom or a mod for this will be better
In fact i advised a rom, and not this solution
Dr. Hax said:
I appreciate your knowledge, very much, sadly I know nothing of Smali.
Could I replace the icons with a 1pixel wide transparent PNG or will that cause some weird things to happen?
Click to expand...
Click to collapse
You could do that, it will just take up a space in the notification bar, so if another one is called it will skip that space and you'll have a hole where the icon would be.
@homeslice976 Thanks for that info! The NFC icon has disappeared. I was waiting for ARHD 22.1 to do this, nice to know that all it needed was vi.
And you've made me curious about modifying apks.
Yay, headset icon gone now too! Thanks for demystifying Android.
deeevan said:
@homeslice976 Thanks for that info! The NFC icon has disappeared. I was waiting for ARHD 22.1 to do this, nice to know that all it needed was vi.
And you've made me curious about modifying apks.
Yay, headset icon gone now too! Thanks for demystifying Android.
Click to expand...
Click to collapse
Can you please make a flashable of the removed headset and Beats icons?
Dr. Hax said:
Can you please make a flashable of the removed headset and Beats icons?
Click to expand...
Click to collapse
I've modified the apks from ARHD 30.0, which is Sense 5.5. Your results may vary on other ROMs.
deeevan said:
I've modified the apks from ARHD 30.0, which is Sense 5.5. Your results may vary on other ROMs.
Click to expand...
Click to collapse
I'm on ARHD 31 and have been dying to have these removed. Can you please upload the apk and let me know how to use it? Does it need to be pushed somewhere specific/ with certain permissions? Can I just install it? etc.
Thanks so much.
Remove headset icon
ARHD 30.0 (Android 4.3)
SystemUI.ARHD30.0.modified.apk (5.8 MB)
https://mega.co.nz/#!Ig4i1R6B!D_CKSzT816iqi_Pvuf_UCnwZJZ88qVEiqs9hyP_0RY0
ARHD 22.0 (Android 4.2)
SystemUI.ARHD22.0.modified.apk (5.3 MB)
https://mega.co.nz/#!4p4B0IIK!b6g7VwZD8OF5X001wUQt2C3RXHZVk3qpZF9uWsvQVzY
1. Backup your current /system/app/SystemUI.apk
2. Rename modified apk to SystemUI.apk and copy over to /system/app
Permissions should be: -rw-r--r-- root root
Remove Beats icon
ARHD 30.0 (Android 4.3)
framework.ARHD30.0.modified.jar (3.4 MB)
https://mega.co.nz/#!o5ISxTQK!H3MR-To44T_e594O6cIA5AI1J6pl5GHcnZSMit9LdE8
1. Backup your current /system/framework/framework.jar
2. Rename modified jar to framework.jar and copy over to /system/framework
Permissions should be: -rw-r--r-- root root
Sorry, no ARHD 22.0 version. I didn't really care about the Beats icon, so didn't bother with it until after I'd upgraded.
Seems to be working flawlessly on ARHD 31. No bugs or issues yet.
Amazing. I've been looking for a way to do this since I first got my HTC One. Thank you so much!!
I was going to have a look at Xposed, but it looks like someone's got it covered. Removal of Beats and headphones icons coming soon.
http://forum.xda-developers.com/showthread.php?t=2335241
[MOD][Oct 22] Xposed Statusbar Mods -- Tweaks, Icons, and more! [SENSE/GPE][4.1+]
Hi, as mentioned above, worked great on 31, and I used it on 31.6 as well.
I upgraded to 40.3, and the beats one seemed to work, but then i couldnt get past the htc one screen (though through adb i renamed framework.old to framework again and then i could boot back), and the headphone one doesnt at all- there doesnt seem to be a systemui anymore.
any idea how to port these mods to kitkat?
I know there is going to be an xposed tweak, but hes been saying that for a while, and meantime i love my clutter free status bar.
amirfk12 said:
Hi, as mentioned above, worked great on 31, and I used it on 31.6 as well.
I upgraded to 40.3, and the beats one seemed to work, but then i couldnt get past the htc one screen (though through adb i renamed framework.old to framework again and then i could boot back), and the headphone one doesnt at all- there doesnt seem to be a systemui anymore.
any idea how to port these mods to kitkat?
I know there is going to be an xposed tweak, but hes been saying that for a while, and meantime i love my clutter free status bar.
Click to expand...
Click to collapse
That was unlikely to work as ARHD 3x.x is Android 4.3 based and ARHD 4x.x is Android 4.4 based. Despite the lack of huge cosmetic differences, the underlying base would have changed enough to make boot fail. FYI SystemUI.apk is now in /system/priv-app but I strongly recommend not trying.
Xposed is the best way to create a mod that is ROM independent, but the method provided by homeslice976 requires modifications to the system files after each new release. If I have the free time, I'll look into the ARHD 40.x files.
If you want to port this yourself, I just found this which seems pretty user friendly for a Windows user:
http://forum.xda-developers.com/showthread.php?t=2326604
deeevan said:
That was unlikely to work as ARHD 3x.x is Android 4.3 based and ARHD 4x.x is Android 4.4 based. Despite the lack of huge cosmetic differences, the underlying base would have changed enough to make boot fail. FYI SystemUI.apk is now in /system/priv-app but I strongly recommend not trying.
Xposed is the best way to create a mod that is ROM independent, but the method provided by homeslice976 requires modifications to the system files after each new release. If I have the free time, I'll look into the ARHD 40.x files.
If you want to port this yourself, I just found this which seems pretty user friendly for a Windows user:
http://forum.xda-developers.com/showthread.php?t=2326604
Click to expand...
Click to collapse
Thank you for your reply, and hopefully you will have the free time. I'm new to android and even though I looked at your link, I still have no idea how to do what is required to make the mod work and would be scared to try.
deeevan said:
That was unlikely to work as ARHD 3x.x is Android 4.3 based and ARHD 4x.x is Android 4.4 based. Despite the lack of huge cosmetic differences, the underlying base would have changed enough to make boot fail. FYI SystemUI.apk is now in /system/priv-app but I strongly recommend not trying.
Xposed is the best way to create a mod that is ROM independent, but the method provided by homeslice976 requires modifications to the system files after each new release. If I have the free time, I'll look into the ARHD 40.x files.
If you want to port this yourself, I just found this which seems pretty user friendly for a Windows user:
http://forum.xda-developers.com/showthread.php?t=2326604
Click to expand...
Click to collapse
agentdr8 got his xposed thing working, so no need for this anymore!

[FIX][MOD] Camcorder Audio Quality fix

Hello!
LEGAL NOTICE:
here I will review & show how to modify ANDROID OPEN SOURCE CODE! (link is below in text)
probably you have already found out, that LG G2 Camcorder records audio of plain POOR quality.
But some other programs as LGCamera by rubberbigpepper and few audio-recorders managed to get good audio;
so I did jump into "smali-world", searching for word "audiosource" and found following (more interesting, than others) in VideoRecorder.smali of LGCameraApp.apk:
Code:
sget-object v9, Lcom/lge/camera/app/VideoRecorder;->mMediaRecorder:Lcom/lge/media/MediaRecorderEx;
const/4 v10, 0x5
invoke-virtual {v9, v10}, Lcom/lge/media/MediaRecorderEx;->setAudioSource(I)V
afterwards I searched in above mentioned LGCamera, where same kind lines instead contains 0x1 constant.
well, seems that 0x5 is a real bad boy
I changed it to 0x1, recompiled LgCameraApp.apk and now you also can "congratz" yourself
Audio is of finest quality!!!
afterwards I searched in internet for Android Source Code, to be more sure in this change.
and seems, those smali-lines possibly correspond to this line in source https://android.googlesource.com/pl...ster/src/com/android/camera/VideoModule.java:
1102 mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.CAMCORDER);
where constant values are:
Code:
public static final int CAMCORDER
Constant Value: 5 (0x00000005)
public static final int DEFAULT
Constant Value: 0 (0x00000000)
public static final int MIC
Constant Value: 1 (0x00000001)
this proves to me, that I am not doing some crazy wrong thing.
so, source can be changed so:
mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
Same kind of code you can find in almost every videorecording application!
you have to just search for word setAudioSource and a constant 0x5 above it.
for example, in GoogleCamera etc..etc..
info for installation:
firstly, add/change extention of original files /system/priv-app LGCameraApp.apk & LGCameraApp.odex to .bak (like LGCameraApp.apk.bak, LGCameraApp.odex.bak),
restart device & install your MODded APK file.
You can install it as regular app. or if you want, you can put it back into /system/priv-app/ , after do restart.
see also my discussion here:
http://forum.xda-developers.com/showpost.php?p=57676003&postcount=385
Dear @xdabbeb !!
1. I appreciate your work & removed smali-code of XCamLG after your request.
2... other lines removed
EDIT: huge english imrpovement after gogl-transl
DOWNLOADS in my next post
Any possibility you can make a flashable zip for Xcam?
Or share with xdabbeb if you haven't already. Thx
tholmes8291 said:
Or share with xdabbeb if you haven't already. Thx
Click to expand...
Click to collapse
XCam is complicated thing.
http://forum.xda-developers.com/showthread.php?p=57650148#post57650148
but you can learn howto mod APKs
where did the apk go?
MOD EDIT: removed quoted post as it contained original OP
At night, I test.
Thank you
quality-sound MODs
DOWNLOADS
(well, about MODs, 1 PM I wrote to admin but not got any replay...)
********************
info for installation:
1. firstly, add/change extention of original files /system/priv-app LGCameraApp.apk & LGCameraApp.odex to .bak (like LGCameraApp.apk.bak, LGCameraApp.odex.bak),
2. restart device & install your MODded APK file.
2A. You can install it as regular app = Copy to SDCARD and open it.
2B. or if you want, you can put it back into /system/priv-app/ , after do restart.
*******
source: ROM LG-G2-VZW-24A-Stock-Rooted&Deloated-v1.2 from MicroMod777
http://forum.xda-developers.com/showthread.php?t=2711668
>> quality-sound MOD-ded LG-G2-VZW-KITKAT24A_deodex_MOD_LGCameraApp.7z
PLEASE, test it and report back, (I have not currently installed this ROM).
haha, first time deodexed
https://www.mediafire.com/?v5f8zyc3yehvoar
*******
source: ROM G2-VZW-26A-Stock from MicroMod777
http://forum.xda-developers.com/verizon-g2/development/rom-vzw-g2-26a-rom-knock-t2881049
>> quality-sound MOD-ded G2-VZW-26A-Stock_LGCameraApp.7z
PLEASE, test it and report back, (I have not currently installed this ROM)
https://www.mediafire.com/?6s96f65s74aug5k
*******
source: ROM XDABBEB's VS982.5 v1.0.0 from xdabbeb
http://forum.xda-developers.com/verizon-g2/development/xdabbeb-s-vs982-5-v1-0-0-t2975551
>>quality-sound MOD-ded XDABBEB-VS982-5-v1_LgCameraApp.7z
https://www.mediafire.com/?c9aqxh81dfwk9nq
*******
Change 5 to 1, no good for high music
manuelmagix said:
Change 5 to 1, no good for high music
Click to expand...
Click to collapse
yes, true. stand far from it
and good for low level sound.
BTW, try also 0 (zero)
HTCZ715E said:
Hello!
LEGAL NOTICE:
here I will review & show how to modify ANDROID OPEN SOURCE CODE! (link is below in text)
Click to expand...
Click to collapse
This thread is currently under review for possible XDA rules violations.
Once a decision is made I will update this post.
If anyone has any questions or comments please PM me.
#thread_closed

Categories

Resources