[N7100][MOD][KK][4.4.2] Disable Increasing Ringtone - Galaxy Note II Android Development

Good morning buddys, here you got the holy MOD to our N7100 Galaxy Note II
Now, here we go!
You'll need:
SecTeleService.apk
HoloxTool_v1.0.1
1. Download and decompress with WinRAR to your desktop the "HoloxTool_v1.0.1" file.
2. Open “SecTeleService.apk” with WinRAR and take the “classes.dex” file to your folder “dex” (within “HoloxTool_v1.0.1”).
3. Run "HoloxTool.bat" and choose option "2".
4. Go to: “HoloxTool_v1.0.1\database\dex\classout\com\android\phone" and open: “Ringer$2.smali” file.
5. Search the line:"invoke-virtual {v2, v7, v3, v4}, Landroid/media/AudioManager;->setStreamVolume(III)V" and delete the whole line:
.line 1038
iget-object v2, p0, Lcom/android/phone/Ringer$2;->this$0:Lcom/android/phone/Ringer;
iget-object v2, v2, Lcom/android/phone/Ringer;->mAudioManager:Landroid/media/AudioManager;
invoke-virtual {v2, v7, v3, v4}, Landroid/media/AudioManager;->setStreamVolume(III)V
.line 1039
Click to expand...
Click to collapse
- File must be like this:
.line 1038
iget-object v2, p0, Lcom/android/phone/Ringer$2;->this$0:Lcom/android/phone/Ringer;
iget-object v2, v2, Lcom/android/phone/Ringer;->mAudioManager:Landroid/media/AudioManager;
.line 1039
Click to expand...
Click to collapse
6[FONT=&quot]. Save changes[/FONT][FONT=&quot] and recompile pressing the option "3" in “HoloxTool_v1.0.1” menu.[/FONT]
[FONT=&quot]7. Copy the “new-classes.dex” file (in “HoloxTool_v1.0.1\database\dex”) to your desktop and rename it to “classes.dex”.[/FONT]
[FONT=&quot]8. Open“[/FONT][FONT=&quot]SecTeleService.apk” with “WinRAR” and pass the “classes.dex” file[/FONT]
9. Now you can pass the "SecTeleService.apk" to your system/priv-app folder with RootExplorer or to your favourite ROM.
[FONT=&quot]Thats all [/FONT]

This means we can fix the ringtone problem like the ringtone volum is low during initial ring then suddenly jump to loud ring volume problem?

soralz said:
This means we can fix the ringtone problem like the ringtone volum is low during initial ring then suddenly jump to loud ring volume problem?
Click to expand...
Click to collapse
You're right buddy
sent from a far far Galaxy n7100

klurosu said:
You're right buddy
sent from a far far Galaxy n7100
Click to expand...
Click to collapse
Then theoretically it should work on all other Samsung models too...

soralz said:
Then theoretically it should work on all other Samsung models too...
Click to expand...
Click to collapse
Only in 4.4.2 man.
In 4.3 the target file is totally different.
sent from a far far Galaxy n7100

No Classes.dex in Sectele.apk
Respected Sir
When i Unrar Sectele apk there is no Class Folder to put into Holox Tool.
I am On 4.4.2 Stock Samsung ROM.
Is There any other Way?
Or Am i doing something Wrong?
Regards

talpur1 said:
Respected Sir
When i Unrar Sectele apk there is no Class Folder to put into Holox Tool.
I am On 4.4.2 Stock Samsung ROM.
Is There any other Way?
Or Am i doing something Wrong?
Regards
Click to expand...
Click to collapse
You need to decompile the apk.

I'm on stock 4.4.2 and can't find SecTeleservices.apk anywhere - could someone tell me where do I get it from ? I've checked system/apk and it's not there. No clue

pegaz said:
I'm on stock 4.4.2 and can't find SecTeleservices.apk anywhere - could someone tell me where do I get it from ? I've checked system/apk and it's not there. No clue
Click to expand...
Click to collapse
it's in system/priv-app

Related

[MOD]/[HOWTO] Mod HTC Browser to allow 16 windows instead of 4

TomLeeDesire helped me figure out how to tweak an HTC Browser.apk to allow 16 windows instead of 4.
If you're interested in increasing the maximum number of windows, there are four lines in two files within Browser.apk that need to be modified.
I made these changes to the HTC Browser.apk from VaelPak 3.2 RC 1, but it should work on any HTC Browser. 0x10 is 16 in hex, so you can make this value whatever you want. If you get above 25 or so open windows, the browser tends to crash.
com.android.browser.TabControl
.constructor()
Line 52: Change "const/4 v2, 0x4" to "const v2, 0x10"
.canCreateNewTab()
Line 565: Change "const/4 v0, 0x4" to "const v0, 0x10"
.createNewTab()
Line 618: Change "const/4 v1, 0x4" to "const v1, 0x10"
com.android.browser.htc.ui.ImageSlider
.add()
Line 658: Change "const/4 v3, 0x4" to "const v3, 0x10"
Once you know where to look, the changes are pretty easy with APKTool (just use version 1.3.1, since 1.3.2 has a bug and doesn't seem to work correctly).
Here is an HTC Browser.apk with these changes, along with some LowRider menu icons thrown in.
EDIT: This is not an installable apk, because the certificates won't match. You need to have a rooted phone and use ADB to overwrite /system/app/Browser.apk (Make a backup first, of course.)
Wow, thank you so much for this. I have been wondering how this was done for awhile.
Thanks again!
Thank you so much for this.
Thanks again!
Hey, I have tried to install the APK file on my phone but keep getting an error saying "Application not installed". I'm a noob, so sorry if this is a dumb question. I'm using the HTC Desire HD
Thanks, very handy
thank you I was searching for this mod a long time.
I have a htc desire hd. when I try to install with estrongs it says not installed.
when I open your apk file in astro it says version 2.2.1 is installed and the version of your apk is 2.2 . its logic that it does not install. is your apk compatible with desire hd?
Do i need to be rooted for this to work? I haven't tried it yet, but it's definitely something that i would find extremely handy.
ceck_01 said:
Hey, I have tried to install the APK file on my phone but keep getting an error saying "Application not installed". I'm a noob, so sorry if this is a dumb question. I'm using the HTC Desire HD
Click to expand...
Click to collapse
I just used ADB to overwrite the Browser.apk in my /system/app
I don't know if this will work on a non-rooted phone.
I'll see if I can figure out how to make this an installable app.
kcbedo said:
I just used ADB to overwrite the Browser.apk in my /system/app
I don't know if this will work on a non-rooted phone.
I'll see if I can figure out how to make this an installable app.
Click to expand...
Click to collapse
Cool, thanks you very much for the help as I'm sure there are alot of people out there who will want this
ceck_01 said:
Cool, thanks you very much for the help as I'm sure there are alot of people out there who will want this
Click to expand...
Click to collapse
It looks like this will only work if you have a rooted phone.
Android won't let you update your current browser with this one, because the certificates won't match once it's modified. HTC would have to resign the app with these changes in order for it to work.
I believe the only way to replace your Browser.apk app is to have a rooted phone and then overwrite the Browser.apk in /system/app.
wow awesome thnx!
ceck_01 said:
Hey, I have tried to install the APK file on my phone but keep getting an error saying "Application not installed". I'm a noob, so sorry if this is a dumb question. I'm using the HTC Desire HD
Click to expand...
Click to collapse
I'm getting the same message on my DHD.
Taurus30 said:
I'm getting the same message on my DHD.
Click to expand...
Click to collapse
You need to use ADB to push the file to /system/app/Browser.apk (after making a backup first).
Installing this as a regular apk won't work, since I can't sign it with the HTC certificate. Android will only upgrade an app if the certificates match.
Ok, cool. At least I know that now. I'll give it a try as soon as I can. Thanks.
Thanks! I do get force close on my DHD thought will try to modify the browser myself.
Thanks for clearing up the will it/won't it work on an unrooted phone. Looks like I'll just have to get on with the rooting.
Sent from my Desire HD using XDA Premium App
i tried editing browser.apk like how you suggested, and i can successfully overwrite it. But i dont see the internet browser on my device, i mean it's as if i never installed it..
honestly i have too many tabs already. Is there a way to make them all close when i exit the browser? I don't like opening my browser and seeing maybe 5 tabs from some**** i was looking at 3 days ago.
Taurus30 said:
I'm getting the same message on my DHD.
Click to expand...
Click to collapse
ZedeN said:
i tried editing browser.apk like how you suggested, and i can successfully overwrite it. But i dont see the internet browser on my device, i mean it's as if i never installed it..
Click to expand...
Click to collapse
Did you sign it before you put it back? Also, you should probably clear Dalvik cache and reboot.
kcbedo said:
TomLeeDesire helped me figure out how to tweak an HTC Browser.apk to allow 16 windows instead of 4.
If you're interested in increasing the maximum number of windows, there are four lines in two files within Browser.apk that need to be modified.
I made these changes to the HTC Browser.apk from VaelPak 3.2 RC 1, but it should work on any HTC Browser. 0x10 is 16 in hex, so you can make this value whatever you want. If you get above 25 or so open windows, the browser tends to crash.
com.android.browser.TabControl
.constructor()
Line 52: Change "const/4 v2, 0x4" to "const v2, 0x10"
.canCreateNewTab()
Line 565: Change "const/4 v0, 0x4" to "const v0, 0x10"
.createNewTab()
Line 618: Change "const/4 v1, 0x4" to "const v1, 0x10"
com.android.browser.htc.ui.ImageSlider
.add()
Line 658: Change "const/4 v3, 0x4" to "const v3, 0x10"
Once you know where to look, the changes are pretty easy with APKTool (just use version 1.3.1, since 1.3.2 has a bug and doesn't seem to work correctly).
Here is an HTC Browser.apk with these changes, along with some LowRider menu icons thrown in.
EDIT: This is not an installable apk, because the certificates won't match. You need to have a rooted phone and use ADB to overwrite /system/app/Browser.apk (Make a backup first, of course.)
Click to expand...
Click to collapse
im trying to push this but it keeps saying no found, am i doing this right,
this is whats in the command window:
/ # -- adb push c:\Browser.apk /system/app/Browser.apk
-- adb push c:\Browser.apk /system/app/Browser.apk
/sbin/sh:n--: not found
/ #

[App] Samsung & LG Ascending Ringtone Remover Version 3.52

Who hates the ascending ringtone feature on Samsung & LG phones? Ascending ringtone is where your ringtone starts at low volume and gets louder the longer it plays. This will remove that feature.
All Galaxy phones seem to use the same command so this should work across the entire line.
Now with support for LG phones
DISCLAIMER: USE AT YOUR OWN RISK
BUILT FOR STOCK ROMS (MAY WORK WITH CUSTOM AND THEMED ROMS BUT NO GUARANTEE)
Requirements
Windows XP or 7 ONLY (will not work in linux wine or other linux environments)
Java must be in your path. Type java in a command prompt. If you see help text you're good to go. If not this App won't work.
Root access of course
Ability to follow instructions and pay attention.
How do I use it?
1. Copy the original Phone.apk from your /system/app to the same folder as MODPhoneAPK.exe (*if your ROM is not deodexed copy the Phone.odex and framework folder also.)
2. Run the App and follow the directions.
3. If you selected to create a flashable zip install through recovery if not then push or copy to /system/app. Do not try to install it.
4. If it didn't work for you then flash Original_PhoneAPK.zip to restore your original back the way it was.
5. If your Phone.apk was ODEXED rename Phone.odex in /system/app
That all, it's pretty automatic.
So easy even a NOOB can do it.
Thanks to:
JesusFreke
Brut.all
Br1cK'd
matius44
7zip.org
Don Ho (author of Notepad++)
If you confrim this is working on a phone not yet listed let me know.
I'll add it to the list and give you credit below.
CONFIRMED WORKING ON:
Samsung Captivate (rayburne)
Samsung Vibrant (me)
Samsung Galaxy Note (matius44)
Samsung Droid Charge (Chris00001)
Samsung Galaxy S II (ayman_salah)
Samsung Galaxy S II Epic 4g Touch (d34thp1ng)
Samsung Infuse 4G (xtremesv)
LG Optimus Black (TugaSoulHunter)
VERSION 3.52
DOWNLOAD and click the THANKS button for my effort.
***Version 3.52 changes***
Remove indicator because it was hanging the MOD process (sorry my bad). Version 3.51 users this is a must update.
VERSION 3.51
REMOVED
***Version 3.51 changes***
Add NOOB friendly activity indicator for the slower steps (because I can). Users should update from 3.5 because this version is better to prevent editing interruption.
VERSION 3.5
REMOVED
***Version 3.5 changes***
Add noise suppression disabled function using MOD verified working by member Vudy (Galaxy Note tested, may work with Galaxy SII)
Option to choose: No Ascending Ringtone, Noise Suppression Disabled, or Both
App size will double to add the noise suppression feature. The noise suppression mod will take time for the app to do. This slow down will only happen if doing noise suppression mod.
More bug fixes
VERSION 3.0
DOWNLOAD and click the THANKS button for my effort.
***Version 3.0 changes***
Fixed Phone.apk doesn't compile correctly
Fixed ringer edit not saving
Add support to deodex LG Phone.apk
Add Phone.odex (if applicable) to Original_PhoneAPK.zip for backup
Major interface change to be more noob proof hopefully (you know who you are)
Add better error checking
Misc bug fixes and typo corrections
this is so easy, works just fine on Galaxy Note deodexed LA4 stock rom
ImGeneralZod said:
this is so easy, works just fine on Galaxy Note deodexed LA4 stock rom
Click to expand...
Click to collapse
why can not I? when I try to do the mod I get the message in dos windows:
Extracting "Ringer$1.smali" for editing...
Can't find the file classes.dex
Done, now do the following...
1) Go to folder C:\MyFolder\MODPhoneAPK\classout\com\android\phone\
2) Locate the file Ringer$1.smali in that folder
3) Open with Notepad++ or your favorite text editor
4) Delete two lines here, they read or are very similar to:
"invoke-virtual {v1, v5, v4, v3}, Landroid/media/AudioManager;->setStreamVolume(III)V"
5) Delete the blank line after the above line
Hint: Search for setStreamVolume
Have you finished editing the Phone.apk (Y)es (N)o (Q)uit?
can you help me thanks?
marta0604 said:
why can not I? when I try to do the mod I get the message in dos windows:
Extracting "Ringer$1.smali" for editing...
Can't find the file classes.dex
Done, now do the following...
1) Go to folder C:\MyFolder\MODPhoneAPK\classout\com\android\phone\
2) Locate the file Ringer$1.smali in that folder
3) Open with Notepad++ or your favorite text editor
4) Delete two lines here, they read or are very similar to:
"invoke-virtual {v1, v5, v4, v3}, Landroid/media/AudioManager;->setStreamVolume(III)V"
5) Delete the blank line after the above line
Hint: Search for setStreamVolume
Have you finished editing the Phone.apk (Y)es (N)o (Q)uit?
can you help me thanks?
Click to expand...
Click to collapse
Extracting "Ringer$1.smali" for editing...
Can't find the file classes.dex
This means you are trying to modify a Phone.apk that is ODEXED. Your Phone.apk "MUST BE DEODEXED".
I have plans to help guide you to deodex Phone.apk if successfully added.
Huge thank you for sharing this.
Used it to fix the annoying ascending ringtone on my KK4 Captivate phone.apk.
Works perfect!
rayburne said:
Huge thank you for sharing this.
Used it to fix the annoying ascending ringtone on my KK4 Captivate phone.apk.
Works perfect!
Click to expand...
Click to collapse
Thanks for confirming it works for the Captivate
When version 2.0 is posted you should upgrade. It will be even easier to MOD.
Sent from my SGH-T959 using xda premium
Step by step instruction pls..whrs da modifier?? i only see phone.apk to be downloaded. what do i do with da downloaded phone.apk
Renz33 said:
Step by step instruction pls..whrs da modifier?? i only see phone.apk to be downloaded. what do i do with da downloaded phone.apk
Click to expand...
Click to collapse
Sorry about that, the link was wrong. OP updated.
i've been wondering what to do with da phone.apk for a while... -) ... thx... wil try d mod later on
MoWeb said:
Sorry about that, the link was wrong. OP updated.
Click to expand...
Click to collapse
i was wondering about that also
i was using your v1.1 but this v2 is even easier so glad you made this now i can do it myself well sort of lol...
everyone should be using this thing
Im sorry... i guess im just too noob at this..what do i do with the modphoneapk?? i double click on the .exe file from windows n i got all this..
operable program or batch file.
'o' is not recognized as an internal or external command,
operable program or batch file.
'?' is not recognized as an internal or external command,
operable program or batch file.
'?' is not recognized as an internal or external command,
operable program or batch file.
'?' is not recognized as an internal or external command,
operable program or batch file.
'?' is not recognized as an internal or external command,
operable program or batch file.
'?' is not recognized as an internal or external command,
operable program or batch file.
'?' is not recognized as an internal or external command,
operable program or batch file.
'?' is not recognized as an internal or external command,
operable program or batch file.
'?' is not recognized as an internal or external command,
operable program or batch file.
'?' is not recognized as an internal or external command,
operable program or batch file.
'?' is not recognized as an internal or external command,
operable program or batch file.
'?' is not recognized as an internal or external command,
operable program or batch file.
'rk' is not recognized as an internal or external command,
operable program or batch file.
'PK.zip' is not recognized as an internal or external command,
operable program or batch file.
'?' is not recognized as an internal or external command,
operable program or batch file.
'屯屯屯屯屯屯屯屯屯屯屯屯屯屯?' is not recognized as an internal or external command,
operable program or batch file.
Make your selection:
what should i do??
my mistake....something wrong with my other pc....got the modifier running on my other pc
Hi, i decompiled my phone.apk
i found de ringer.smali and the line "invoke-virtual {v1, v5, v4, v3}, Landroid/media/AudioManager;->setStreamVolume(III)V"
but i don't understand the line at deleted...
it's this ? "invoke-virtual {v1, v5, v4, v3}, Landroid/media/AudioManager;->setStreamVolume(III)V"
or
invoke-virtual {v1, v3, v5, v4}, Landroid/media/AudioManager;->setStreamVolume(III)V
.line 395
const/4 v1, 0x7
const-wide/16 v2, 0x7d0
m!k3 said:
Hi, i decompiled my phone.apk
i found de ringer.smali and the line "invoke-virtual {v1, v5, v4, v3}, Landroid/media/AudioManager;->setStreamVolume(III)V"
but i don't understand the line at deleted...
it's this ? "invoke-virtual {v1, v5, v4, v3}, Landroid/media/AudioManager;->setStreamVolume(III)V"
or
invoke-virtual {v1, v3, v5, v4}, Landroid/media/AudioManager;->setStreamVolume(III)V
.line 395
const/4 v1, 0x7
const-wide/16 v2, 0x7d0
Click to expand...
Click to collapse
Download version 2 from the OP, it does the edit for you automatically.
Just follow the instructions, it will create a recovery flashable zip along with a backup zip of your original.
I'm using Linux not windows... and your exe not work with mono runtime or wine
m!k3 said:
I'm using Linux not windows... and your exe not work with mono runtime or wine
Click to expand...
Click to collapse
I see...
If you search for the word setstreamvolume in Ringer$1.smali delete that entire line.
You should find setstreamvolume in that file only two times and delete the entire line both instances
Ok thanks
just the two line with setstreamvolume
EDIT: It's work fine
m!k3 said:
Ok thanks
just the two line with setstreamvolume
EDIT: It's work fine
Click to expand...
Click to collapse
Happy to help
Hey guys!
I'm new here and I've got a Galaxy Note (GT-N7000 / v. 2.3.6 / XXKK5 / Gingerbread XBKK4)
I don't really know much about these devices (I've been a iphone user for 2 years)
So straight to the problem:
I can get the modphoneapk work and it edits the phone.apk file (that I downloaded from another thread, which should have already have the Galaxy Note's ascending volume option deleted)
..so yea that works and my Note is completely stock..
I'm just having trouble to get the mod work..
I've added that modded phone.apk file in my sdhc card and tried to install it with es file explorer and also with androidinstaller.. and after that I rebooted the Note.. but it wont work..
You mentioned something about rooting? at this point I wanna say that I'm deeply sorry for my noobyness
greets
AudioBlood said:
Hey guys!
I'm new here and I've got a Galaxy Note (GT-N7000 / v. 2.3.6 / XXKK5 / Gingerbread XBKK4)
I don't really know much about these devices (I've been a iphone user for 2 years)
So straight to the problem:
I can get the modphoneapk work and it edits the phone.apk file (that I downloaded from another thread, which should have already have the Galaxy Note's ascending volume option deleted)
..so yea that works and my Note is completely stock..
I'm just having trouble to get the mod work..
I've added that modded phone.apk file in my sdhc card and tried to install it with es file explorer and also with androidinstaller.. and after that I rebooted the Note.. but it wont work..
You mentioned something about rooting? at this point I wanna say that I'm deeply sorry for my noobyness
greets
Click to expand...
Click to collapse
I'm not sure I understand completely so here's what I think you mean.
You can use a previously made MOD and it works fine. If you use the modifier app then it doesn't work? Is that correct?
I would make sure of the following:
1. If your /system/app folder contains Phone.odex then rename it.
2. If you made a flashable zip file then flash it through recovery.
3. You cannot install this apk it has to be pushed, flashed, or copied to /system/app using ES file explorer
NOTE: You cannot use this MOD if your phone is not rooted. Your phone HAS to be rooted to gain access to the /system/app folder
There are guides to help you root your phone in the Galaxy Note section of XDA and don't forget the "Thanks" button is not dangerous if someone has helped you.
MoWeb said:
I'm not sure I understand completely so here's what I think you mean.
You can use a previously made MOD and it works fine. If you use the modifier app then it doesn't work? Is that correct?
I would make sure of the following:
1. If your /system/app folder contains Phone.odex then rename it.
2. If you made a flashable zip file then flash it through recovery.
3. You cannot install this apk it has to be pushed, flashed, or copied to /system/app using ES file explorer
NOTE: You cannot use this MOD if your phone is not rooted. Your phone HAS to be rooted to gain access to the /system/app folder
There are guides to help you root your phone in the Galaxy Note section of XDA and don't forget the "Thanks" button is not dangerous if someone has helped you.
Click to expand...
Click to collapse
Actually I cant get the mod work at all on the phone, but the java/command thingy youve created works on my pc.. but yeah, I think I'll have to check that rooting thing right away and then get back to your mod thanks!

[MOD][HOW-TO][CM10]Receive Apk Files Via Bluetooth

This was when I was modding the status bar of CM10 today. I compiled a new apk but was lazy to connect my usb cable to phone and PC. :silly:
So I thought of transferring the apk by Bluetooth. To my surprise the phone rejected the apk and PC showed Access denied.
When I tried transferring the apk by renaming the extension to .zip, it accepted it.
Now renaming apk to zip everytime is a drag, so I thought why not mod the Bluetooth.apk itself to accept APK files.
BEFORE YOU DO ANYTHING, BACKUP YOUR Bluetooth.apk
So here it goes.
Code:
1. Decompile your Bluetooth.apk
2. Go to Bluetooth.apk\smali\com\android\bluetooth\opp folder
3. Open Constants.smali using Notepad++ (recommended).
4. Find “.method static constructor <clinit>()V” (line no. 19)
5. In that method find “sput-object v0, Lcom/android/bluetooth/opp/Constants;->UNACCEPTABLE_SHARE_OUTBOUND_TYPES:[Ljava/lang/String;”
6. Below that there’s[INDENT].line 201
const/16 v0, 0xb
[/INDENT]7. Change “const/16 v0, 0xb” to “const/16 v0, 0xc”
8. If you go down little futher you’ll find[INDENT]const-string v2, "application/pdf"
aput-object v2, v0, v1
[/INDENT]9. Now add below it:[INDENT]const/16 v1, 0xb
const-string v2, "application/vnd.android.package-archive"
aput-object v2, v0, v1
[/INDENT]10. It should look something like this :
[IMG]http://i.imgur.com/dMiK9.jpg[/IMG]
11. Save the file and recompile the apk.
12. Just copy the classes.dex from the new apk and replace that in the old apk.
13. Use the old apk and replace it in /data/sys-parts/app/ with permissions rw-r-r.
14. Reboot and enjoy.
Attaching my Bluetooth.apk
Any problems let me know.
ammar786 said:
This was when I was modding the status bar of CM10 today. I compiled a new apk but was lazy to connect my usb cable to phone and PC. :silly:
So I thought of transferring the apk by Bluetooth. To my surprise the phone rejected the apk and PC showed Access denied.
When I tried transferring the apk by renaming the extension to .zip, it accepted it.
Now renaming apk to zip everytime is a drag, so I thought why not mod the Bluetooth.apk itself to accept APK files.
BEFORE YOU DO ANYTHING, BACKUP YOUR Bluetooth.apk
So here it goes.
Code:
1. Decompile your Bluetooth.apk
2. Go to Bluetooth.apk\smali\com\android\bluetooth\opp folder
3. Open Constants.smali using Notepad++ (recommended).
4. Find “.method static constructor <clinit>()V” (line no. 19)
5. In that method find “sput-object v0, Lcom/android/bluetooth/opp/Constants;->UNACCEPTABLE_SHARE_OUTBOUND_TYPES:[Ljava/lang/String;”
6. Below that there’s[INDENT].line 201
const/16 v0, 0xb
[/INDENT]7. Change “const/16 v0, 0xb” to “const/16 v0, 0xc”
8. If you go down little futher you’ll find[INDENT]const-string v2, "application/pdf"
aput-object v2, v0, v1
[/INDENT]9. Now add below it:[INDENT]const/16 v1, 0xb
const-string v2, "application/vnd.android.package-archive"
aput-object v2, v0, v1
[/INDENT]10. It should look something like this :
[IMG]http://i.imgur.com/dMiK9.jpg[/IMG]
11. Save the file and recompile the apk.
12. Just copy the classes.dex from the new apk and replace that in the old apk.
13. Use the old apk and replace it in /data/sys-parts/app/ with permissions rw-r-r.
14. Reboot and enjoy.
Attaching my Bluetooth.apk
Any problems let me know.
Click to expand...
Click to collapse
mate your guide is good but if you send an apk using a root explorer there will be no problem
use root explorer from market
but your guide is good for devs
Delete.
@ICS_XD:
Actually SENDING apks is NOT a problem. But RECEIVING is. This solution is for receiving apks from other mobiles or PC. Hope you got it. :good:
A very important contribution.
Thank You so much
ammar786 said:
Oh sorry, I misunderstood your reply.
Actually SENDING apks is NOT a problem. But RECEIVING is. This solution is for receiving apks from other mobiles or PC. Hope you got it. :good:
Click to expand...
Click to collapse
May be a problem in this device cm10 not in my s2 g :good:
Good work narutO
Sent from my GT-I9100G using xda premium
ICS_XD said:
May be a problem in this device cm10 not in my s2 g :good:
Good work narutO
Sent from my GT-I9100G using xda premium
Click to expand...
Click to collapse
Hmmm... Maybe it's only our device... Thanx Edward...
Nope did not work. Tried it on CM10.
Could not receive any file rather
silentvisitor said:
Nope did not work. Tried it on CM10.
Could not receive any file rather
Click to expand...
Click to collapse
Did you follow the steps or used the apk?
Also the system apps are in data/sys-parts/apps and permissions are rw-r-r .
ammar786 said:
Did you follow the steps or used the apk?
Also the system apps are in data/sys-parts/apps and permissions are rw-r-r .
Click to expand...
Click to collapse
Yup all of that and few reboots too and then wrote this post.
silentvisitor said:
Yup all of that and few reboots too and then wrote this post.
Click to expand...
Click to collapse
So you followed the steps?...
Try the apk. If it doesn't work reply back.
Thanks a lot! I been looking for a fix for a while now. Working perfectly on my GS2 Skyrocket on JB Aokp.
Sent from my SGH-I727
I done this on different phone and it works.But i cant find where is /data/sys-parts/app/ . I just copy to system/app and fix permission
atrix2 said:
I done this on different phone and it works.But i cant find where is /data/sys-parts/app/ . I just copy to system/app and fix permission
Click to expand...
Click to collapse
Yeah... That's the place. Only for our device it was /data/sys-parts/app/
tanx but not worked for me

Modified Gmail.apk for downloading attached '.zip', '.tar', etc. files

Edit: Updated post with Gmail 4.5.2 -- thank you lmasagao for modifying the latest version!
Hello all,
Yesterday, I discovered that the Gmail app refuses to open or save attached zips (or other archives) because they "could contain malicious software." But sometimes I need to download such files anyway, so I modified the latest Gmail.apk to remove the restriction and thought I'd share. This is based off Gmail 4.2.1 and should work on most devices.
This will allow you to download attachments that were previously disallowed by the Gmail application. You will need another app that is capable of opening a zip/tar/etc file installed.
Disclaimer: I am not responsible for whatever happens as a result of using this modified version. If it goes crazy and emails embarrassing photos to all of your contacts it is neither my nor Google's fault.
That said, the changes are pretty minor and so far seem to work as expected.
Installation:
Uninstall existing Gmail app. If Gmail came pre-installed you must delete it from /system/app (root required)
Install Gmail-zips-[version].apk as normal.
Enjoy.
Modifications Made:
These instructions are only necessary if you wish to modify the APK yourself, otherwise see above.
Decompile Gmail.apk:
Code:
apktool d Gmail.apk
Replace the following from 'smali/com/google/android/gm/provider/MimeType.smali' and 'smali/com/android/mail/utils/MimeType.smali':
Code:
const-string v0, "application/zip"
const-string v1, "application/x-gzip"
const-string v2, "application/x-bzip2"
const-string v3, "application/x-compress"
const-string v4, "application/x-compressed"
const-string v5, "application/x-tar"
new-array v6, v7, [Ljava/lang/String;
invoke-static/range {v0 .. v6}, Lcom/google/common/collect/ImmutableSet;->of(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
with
Code:
new-array v6, v7, [Ljava/lang/String;
invoke-static {v6}, Lcom/google/common/collect/ImmutableSet;->of(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
Rebuild Gmail.apk:
Code:
apktool b Gmail.apk
Sign and install!
*This seemed like the correct place to post since the modification applies to any device, but I apologize if this post belongs in another forum*
I wanted to download a zip file, that I sent to myself from work and discovered this really stupid feature of Gmail,
A quick search did not reveal a solution, other than installing a different mail client or using a browser, great to see you were successful in hacking the .apk - going to download it a give it a try now.
The file you attached appears to be the old 4.1.2 version, not the latest 4.2.1
I tried using apktool to decompile gmail 4.2.1 and edited MimeType.smali
but when I try and recompile it I get an error:
I: Building resources...
C:\apktool\working\com.google.android.gmail\res\xml\gmail_widget_info.xml:2: error: No resource identifier found for attribute 'widgetCategory' in package 'android'
Sorry about that -- must have pulled the /system/app version. I updated the OP with Gmail 4.2.1.
As far as the error you describe, unfortunately I didn't see the same issue. I'm using apktool v1.5.2. I did have to upgrade my SDK tools to 21.0.1 before it would build the new version.
In 4.2.1 there's another smali file that needed to be changed as well: 'smali/com/android/mail/utils/MimeType.smali'
Aluminous said:
Hello all,
Yesterday, I discovered that the Gmail app refuses to open or save attached zips (or other archives) because they "could contain malicious software." Well I don't appreciate Google making that determination for me, so I modified the latest Gmail.apk to remove the restriction and thought I'd share. This is based off Gmail 4.2.1 and should work on most devices.
This will allow you to download attachments that were previously disallowed by the Gmail application. You will need another app that is capable of opening a zip/tar/etc file installed.
Disclaimer: I am not responsible for whatever happens as a result of using this modified version. If it goes crazy and emails embarrassing photos to all of your contacts it is neither my nor Google's fault.
That said, the changes are pretty minor and so far seem to work as expected.
Installation:
Uninstall existing Gmail app. If Gmail came pre-installed you must delete it from /system/app (root required)
Install Gmail-zips-[version].apk as normal.
Enjoy.
Modifications Made:
These instructions are only necessary if you wish to modify the APK yourself, otherwise see above.
Decode Gmail.apk:
Code:
apktool d Gmail.apk
Replace the following from 'smali/com/google/android/gm/provider/MimeType.smali' and 'smali/com/android/mail/utils/MimeType.smali':
Code:
const-string v0, "application/zip"
const-string v1, "application/x-gzip"
const-string v2, "application/x-bzip2"
const-string v3, "application/x-compress"
const-string v4, "application/x-compressed"
const-string v5, "application/x-tar"
new-array v6, v7, [Ljava/lang/String;
invoke-static/range {v0 .. v6}, Lcom/google/common/collect/ImmutableSet;->of(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
with
Code:
new-array v6, v7, [Ljava/lang/String;
invoke-static {v6}, Lcom/google/common/collect/ImmutableSet;->of(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
Rebuild Gmail.apk:
Code:
apktool b Gmail.apk
Sign and install!
*This seemed like the correct place to post since the modification applies to any device, but I apologize if this post belongs in another forum*
Click to expand...
Click to collapse
Can we update the App after replacing it ...??
If you modified the version you have installed yourself, and later update it to a new version you modified yourself, then yes-- you will be able to update it. (This is because the application must be signed with the same key in order to update normally.)
If you have the official version or the version I posted, just uninstall the old version before installing the new one and it will work.
Sent from my SPH-L720 using Tapatalk 4

[MOD][GUIDE] Stock MMS Options

What Does this MOD do?
This new MOD will give you the following options:
Code:
[B][COLOR="DarkRed"][CENTER]Screen on/off when receiving text
MMS Subject
Delay text
Message Drafts
Delivery Reports
Multimedia Options
-Roaming retrieve
-Group Options
-MMS Alerts
Pop-Up Display
Preview Options
Change SMS and MSM Limits
Change Image Size [/CENTER]
[/COLOR][/B]
You may already have some of these options, I am just noting what seemed new to me...
Using your method of choice........
Pull SecMms_Blue.apk from your priv-app folder
Navigate to smali/com/android/mms/MmsConfig.smali
Find .method static constructor <clinit>()V
Basically v2 = 0 = disable......... and v3 = 1 = enable
So any options in this method you want to disable change to v2 and any options in this method you want to enable change to v3.
To change the MaxMessageSize, do the following....
Find sput v0, Lcom/android/mms/MmsConfig;->sMaxMessageSize:I and change the line above to const v0, 0x12b8f8
To change the MaxImageHeight and MaxImageWidth, do the following.....
Find sput v0, Lcom/android/mms/MmsConfig;->sMaxImageHeightRestrictedMode:I and change the line above to const/16 v0, 0x780
Find sput v0, Lcom/android/mms/MmsConfig;->sMaxImageWidthRestrictedMode:I and change the line above to const/16 v0, 0xA00
This will give you a max image size of 1920 x 2560. Change the hex values to make it larger or smaller if you like.
I changed most of the other limits to 0x1F4, whick equals 500 in base10, change to what you desire if 500 is not right for you.
Thats basically it. I will attach a simple flash for a deodexed file system. Its located in the downloads bar at the top of the post.
Enjoy, hit thanks if you want to.
XDA:DevDB Information
Stock MMS Options, ROM for the Verizon Samsung Galaxy S 5
Contributors
Didact74
Version Information
Status: Testing
Created 2014-08-12
Last Updated 2014-08-12
I see MrHyde thanks. I guess we'll be seeing this mod in his rom :good:
Didact74 said:
What Does this MOD do?
This new MOD will give you the following options:
Code:
[B][COLOR="DarkRed"][CENTER]Screen on/off when receiving text
MMS Subject
Delay text
Message Drafts
Delivery Reports
Multimedia Options
-Roaming retrieve
-Group Options
-MMS Alerts
Pop-Up Display
Preview Options
Change SMS and MSM Limits
Change Image Size [/CENTER]
[/COLOR][/B]
You may already have some of these options, I am just noting what seemed new to me...
Using your method of choice........
Pull SecMms_Blue.apk from your priv-app folder
Navigate to smali/com/android/mms/MmsConfig.smali
Find .method static constructor <clinit>()V
Basically v2 = 0 = disable......... and v3 = 1 = enable
So any options in this method you want to disable change to v2 and any options in this method you want to enable change to v3.
To change the MaxMessageSize, do the following....
Find sput v0, Lcom/android/mms/MmsConfig;->sMaxMessageSize:I and change the line above to const v0, 0x12b8f8
To change the MaxImageHeight and MaxImageWidth, do the following.....
Find sput v0, Lcom/android/mms/MmsConfig;->sMaxImageHeightRestrictedMode:I and change the line above to const/16 v0, 0x780
Find sput v0, Lcom/android/mms/MmsConfig;->sMaxImageWidthRestrictedMode:I and change the line above to const/16 v0, 0xA00
This will give you a max image size of 1920 x 2560. Change the hex values to make it larger or smaller if you like.
I changed most of the other limits to 0x1F4, whick equals 500 in base10, change to what you desire if 500 is not right for you.
Thats basically it. I will attach a simple flash for a deodexed file system. Its located in the downloads bar at the top of the post.
Enjoy, hit thanks if you want to.
XDA:DevDB Information
Stock MMS Options, ROM for the Verizon Samsung Galaxy S 5
Contributors
Didact74
Version Information
Status: Testing
Created 2014-08-12
Last Updated 2014-08-12
Click to expand...
Click to collapse
trikotret said:
I see MrHyde thanks. I guess we'll be seeing this mod in his rom :good:
Click to expand...
Click to collapse
Open to anyone who wants to use it.
Lots of other stuff in that particular smali that can be modified as well.
I flashed this file in safe strap and I'm bootlooping. LMAO am I doing it right. OR this is not for flashing. My flash addiction got me to flash and read later :silly:
trikotret said:
I flashed this file in safe strap and I'm bootlooping. LMAO am I doing it right. OR this is not for flashing. My flash addiction got me to flash and read later :silly:
Click to expand...
Click to collapse
Are you deodexed? I tried it again and it seems to be okay for me. There have been a few downloads now so unless no one has flashed but you it should be okay. LOL.
I will look through it again and make sure.
Didact74 said:
Are you deodexed? I tried it again and it seems to be okay for me. There have been a few downloads now so unless no one has flashed but you it should be okay. LOL.
I will look through it again and make sure.
Click to expand...
Click to collapse
Are you sure those aren't my downloads. Lol I downloaded three times in case I had bad download. I am on a deodex rom
trikotret said:
Are you sure those aren't my downloads. Lol I downloaded three times in case I had bad download. I am on a deodex rom
Click to expand...
Click to collapse
If you feel comfortable doing so, try pulling the apk out of the zip file and pushing it to the ROM and see if you have an issue.
Didact74 said:
If you feel comfortable doing so, try pulling the apk out of the zip file and pushing it to the ROM and see if you have an issue.
Click to expand...
Click to collapse
With file explorer?
I just flashed via SS and got stuck at the Alliance Rom splash screen until I restored an older backup.
So I'm not going crazy. Does it matter if we are the Ne9 latest update
trikotret said:
So I'm not going crazy. Does it matter if we are the Ne9 latest update
Click to expand...
Click to collapse
LOL...hang on a sec, Im gonna fix ithis right now.
Okay, repacked and re-uploaded. Bad upload maybe?
Also added a stock MMS flash.
Remember, the zip was just to give you a quick fix. The real fun is looking through the smali file and changing what you want.
Flash should work now....sorry for the issue.
I dont know how to change anything in smali file. I'm just a crackflasher
trikotret said:
I dont know how to change anything in smali file. I'm just a crackflasher
Click to expand...
Click to collapse
....and there's nothing wrong with that...lol. Flash away!
Didact74 said:
....and there's nothing wrong with that...lol. Flash away!
Click to expand...
Click to collapse
It flashed. I flashed the stock MMS. Which one is special edition lol
trikotret said:
It flashed. I flashed the stock MMS. Which one is special edition lol
Click to expand...
Click to collapse
Stock is stock. The other has the options added.
No need to apologize! I appreciate that you uploaded it in the first place!
Didact74 said:
What Does this MOD do?
This new MOD will give you the following options:
Code:
[B][COLOR="DarkRed"][CENTER]Screen on/off when receiving text
MMS Subject
Delay text
Message Drafts
Will this mod allow saving pictures from MMS to external drive? Or am I missing something and that's already an option somehow?
Click to expand...
Click to collapse
I don't think it will but this might help?
http://forum.xda-developers.com/showthread.php?t=2784011
[MOD]Write to extsd (root required)
http://bit.ly/1brshoa
bad bone said:
I don't think it will but this might help?
http://forum.xda-developers.com/showthread.php?t=2784011
[MOD]Write to extsd (root required)
http://bit.ly/1brshoa
Click to expand...
Click to collapse
No, I've done that, I have write access. stock MMS messenger doesn't have a setting for choosing where attachments are saved. The only one I know of is Handcent, but found it bloated.

Categories

Resources