[MOD] * Removable full battery charge notification * [10/09/11] - Samsung Infuse 4G

Also posted in i9000 dev section:
http://forum.xda-developers.com/showthread.php?t=1295748
You may want to clear the battery fully charged notification when phone is on dock, or it doesn't go away even if unplugged. This mod fixes these.
NOTE: I didn't remove the notification, because I think it a better solution to leave the user this option rather than completely removing it.
* baksmali classes.dex in SystemUI.apk
* open com\android\systemui\statusbar\policy\StatusBarPolicy.smali
* search for "iget v3, v2, Landroid/app/Notification;->flags:I" at around line 1824, under
.method private addFullChargeNotification()V
* remove the following 3 lines:
iget v3, v2, Landroid/app/Notification;->flags:I
or-int/lit8 v3, v3, 0x2
iput v3, v2, Landroid/app/Notification;->flags:I
* save, smali, and update apk
Now you know the trick. SystemUI would make the full charge notification as on-going (flags = flags|0x2), and we simply convert it back to default.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Feel free to add in your ROM but please give proper credits.

mrzzheng said:
Also posted in i9000 dev section:
http://forum.xda-developers.com/showthread.php?t=1295748
You may want to clear the battery fully charged notification when phone is on dock, or it doesn't go away even if unplugged. This mod fixes these.
NOTE: I didn't remove the notification, because I think it a better solution to leave the user this option rather than completely removing it.
* baksmali classes.dex in SystemUI.apk
* open com\android\systemui\statusbar\policy\StatusBarPolicy.smali
* search for "iget v3, v2, Landroid/app/Notification;->flags:I" at around line 1824
* remove the following 3 lines:
iget v3, v2, Landroid/app/Notification;->flags:I
or-int/lit8 v3, v3, 0x2
iput v3, v2, Landroid/app/Notification;->flags:I
* save, smali, and update apk
Now you know the trick. SystemUI would make the full charge notification as on-going (flags = flags|0x2), and we simply convert it back to default.
Feel free to add in your ROM but please give proper credits.
Click to expand...
Click to collapse
Nice job bro
Sent from my SAMSUNG-SGH-I997R using xda premium

thanks for the tutorial. the line numbers may differ from firmware to firmware. can you tell us what .method it falls under?
there is a .method private removefullbatterynotification ( or something to that effect) in there that is supposed to be invoked by .method private finalupdatebattery (or something like that) can't see why these aren't running properly and I had no ideas on how to interperet the flags. this is a great solution but have you tested it fully?
on simply honey I have had problems mounting the sd card when the battery is full. I intend to try this and if it works ill finally update the rom and credit this thread. if the sd card doesn't mount ill have to keep trying.

it's under .method private addFullChargeNotification()V
the ongoing flag is removed when the notification is created.
I tested it w/ GSInfuse 1.1 and it worked well. No effect with other functions e.g. usb storage / sd card. (In fact, testing costed me much more time than developing as I had to charge up to full from 20%..) In fact it shouldn't since what it does is just remove the ongoing flag of the notification, nothing else.
Dani897 said:
thanks for the tutorial. the line numbers may differ from firmware to firmware. can you tell us what .method it falls under?
there is a .method private removefullbatterynotification ( or something to that effect) in there that is supposed to be invoked by .method private finalupdatebattery (or something like that) can't see why these aren't running properly and I had no ideas on how to interperet the flags. this is a great solution but have you tested it fully?
on simply honey I have had problems mounting the sd card when the battery is full. I intend to try this and if it works ill finally update the rom and credit this thread. if the sd card doesn't mount ill have to keep trying.
Click to expand...
Click to collapse

Worked for me using dlev rom, the 3 lines were identical.
Here's what i did, maybe the OP can add it to his post.
-Install 7 zip
-Open SystemUI.apk with 7zip
-Extract classes.dex
-Download baksmali and smali.bat from the link HERE.
-place the extracted classed.dex in the services folder (from above link)
-run baksmali
-open the out folder (above link) navigate to \out\com\android\systemui\statusbar\policy
-open StatusBarPolicy.smali in wordpad
-search for "iget v3, v2, Landroid/app/Notification;->flags:I" at around line 1824, under
.method private addFullChargeNotification()V
-remove the following 3 lines:
iget v3, v2, Landroid/app/Notification;->flags:I
or-int/lit8 v3, v3, 0x2
iput v3, v2, Landroid/app/Notification;->flags:I
-save the file
-run smali.bat
-open systemui.apk in 7zip
-drag the new classes.dex file from the "new" folder from the link you downloaded into the systemui.apk in 7zip.
-put the modified systemui.apk into your rom or change with root explorer and reboot.

Wow, way complicated!
Big dog Infuse I997 doin some Hellraising

Bandit_Kaine said:
Worked for me using dlev rom, the 3 lines were identical.
Here's what i did, maybe the OP can add it to his post.
-Install 7 zip
-Open SystemUI.apk with 7zip
-Extract classes.dex
-Download baksmali and smali.bat from the link HERE.
-place the extracted classed.dex in the services folder (from above link)
-run baksmali
-open the out folder (above link) navigate to \out\com\android\systemui\statusbar\policy
-open StatusBarPolicy.smali in wordpad
-search for "iget v3, v2, Landroid/app/Notification;->flags:I" at around line 1824, under
.method private addFullChargeNotification()V
-remove the following 3 lines:
iget v3, v2, Landroid/app/Notification;->flags:I
or-int/lit8 v3, v3, 0x2
iput v3, v2, Landroid/app/Notification;->flags:I
-save the file
-run smali.bat
-open systemui.apk in 7zip
-drag the new classes.dex file from the "new" folder from the link you downloaded into the systemui.apk in 7zip.
-put the modified systemui.apk into your rom or change with root explorer and reboot.
Click to expand...
Click to collapse
I have to fight to use MY COMPUTER. My wife and son are both in college now and are always on it. Time to go shopping for a new one. Hehehe. Thanks Bandit, I will try it and if it works I will put it in the update. I will definitely give mrzzheng credit for finding fix and you credit for fixing it for DlevROM.
I'm not a developer but I try to play one on XDA.

bigfau said:
I have to fight to use MY COMPUTER. My wife and son are both in college now and are always on it. Time to go shopping for a new one. Hehehe. Thanks Bandit, I will try it and if it works I will put it in the update. I will give mrzzheng and you credit.
I'm not a developer but I try to play one on XDA.
Click to expand...
Click to collapse
I posted a link for you in the dlev forum.
All credit to mrzzheng which found the fix.

Bandit_Kaine said:
I posted a link for you in the dlev forum.
All credit to mrzzheng which found the fix.
Click to expand...
Click to collapse
I have to thank you for the systemui.apk.
Thanks mrzzheng, ben trying to do this for awhile now but my family likes to hog my computer. Thanks again.
I'm not a developer but I did stay at a Holiday Inn Express lastnight.

<-- kinda computer illiterate. Needs better direction to do this :-(
Big dog Infuse I997 doin some Hellraising

bignate78 said:
<-- kinda computer illiterate. Needs better direction to do this :-(
Big dog Infuse I997 doin some Hellraising
Click to expand...
Click to collapse
you need to decompile classes.dex.
I guess this can be done with smali and recompiled wth baksmali.
it can be done with apkmanager or apk tool as well but apkmanager doesn't make a working apk for me. it is always missing META-INF folder and the permissions are all wrong. if you must use apk manger the trick is to make a copy of the original apk and take the unsignedrepackaged.apk and pull out classes.dex and merge it into the original SystemUi.apk.
I was messing with this mod earlier but tried to test It in the new simply homey release that's in the vibrant forum and ussing hellraiserb9 but had bootloops. too many changes from my last release of simply honey. I didn't have time to debug. well tomorrow is another day.

Originally Posted by bignate78
<-- kinda computer illiterate. Needs better direction to do this :-(
Big dog Infuse I997 doin some Hellraising
Click to expand...
Click to collapse
you need to decompile classes.dex.
I guess this can be done with smali and recompiled wth baksmali.
it can be done with apkmanager or apk tool as well but apkmanager doesn't make a working apk for me. it is always missing META-INF folder and the permissions are all wrong. if you must use apk manger the trick is to make a copy of the original apk and take the unsignedrepackaged.apk and pull out classes.dex and merge it into the original SystemUi.apk.
I was messing with this mod earlier but tried to test It in the new simply homey release that's in the vibrant forum and ussing hellraiserb9 but had bootloops. too many changes from my last release of simply honey. I didn't have time to debug. well tomorrow is another day.
Click to expand...
Click to collapse
Yea, sorry still lost :-/
Big dog Infuse I997 doin some Hellraising

bignate78 said:
Yea, sorry still lost :-/
Big dog Infuse I997 doin some Hellraising
Click to expand...
Click to collapse
Google smali and baksmali. its classes.dex you need decompiled. you can open the apk with an archive manager to find classes.dex decompile it with smali. edit the smali explained in the op and use baksmali to recompiled a new classes.dex add it back to the apk with an archive manager.
if you hate command line the apk manager can do this too but it can be a whole new can of worms.
ya know what. what Rom do you want to run? ill send you a systemui.apk just give me the Roms name.

It's the other way around. Baksmali decompiles and smali compiles. Check out my post i tried to simplify ro rather extend the instructions.

Dani897 said:
Google smali and baksmali. its classes.dex you need decompiled. you can open the apk with an archive manager to find classes.dex decompile it with smali. edit the smali explained in the op and use baksmali to recompiled a new classes.dex add it back to the apk with an archive manager.
if you hate command line the apk manager can do this too but it can be a whole new can of worms.
ya know what. what Rom do you want to run? ill send you a systemui.apk just give me the Roms name.
Click to expand...
Click to collapse
I'm running an I9000 rom called S.U.R.F.A.C.E. with a blue theme from pauldiddy which is saposedly sapose to run on a jvs rom but surface is jvr (or vice versa) but works just fine. I think I can pull the best thing I can do is pull systemUI I'm useing from my phone that way nothing changes due to some of my own mods to the theme would prob work best.
Big dog Infuse I997 doin some Hellraising

I'm using Simply Honey 5.1 from the i9000 forums. I like this method, but the way I usually do it is to pull the APK onto my netbook (native Linux), use a zip manager to pull the classes.dex out, use baksmali to decompile, fix, recompile with smali and drop back in the APK. then I use adb to push (adb push ./SystemUI.apk /system/app/SystemUI.apk) and reboot as it removes my notification bar. Then I test it.

I'm gonna give this a try. thanks for the hard work

Having done this, I have a renewed appreciation for those who recompile apk's for ROMs.

araemo said:
Having done this, I have a renewed appreciation for those who recompile apk's for ROMs.
Click to expand...
Click to collapse
I second that.
I'm not a developer but I try to play one on XDA. DlevROM Yo!

Does this have to be done from s PC or all through the phone?
I'm not all that computer savvy so I have not one clue what to do or where to start
Big dog Infuse I997 doin some Hellraising

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
/ #

[mod] MMS.. No contact limit- no mms convert -and sent time fix

Thank you to
montymintypie
for figuring this out
just posting it in a relevant forum
HOWTO
Got a custom ROM going on and want to do this yourself? Well here's how!
1.Download Apk Manager
2.Get your Mms.apk from /system/app/Mms.apk
3.Get your twframework-res.apk from /system/framework
4.Open up Apk Manager and choose option 22
5.Select Mms.apk as your project
6.Select option 10 (decompile with dependencies)
7.When it asks you for your dependency, drag and drop twframework-res.apk into the window and press enter
8.When that's done, go into apk_manager/projects/Mms.apk
9.Under /res/xml open up mms_config.xml
10.Go to: <int name="recipientLimit">10</int> change this to -1
11.Go to <int name="smsToMmsTextThreshold">4</int> Change this to 100
12.Now open up /smali/com/android/mms/transaction/SmsReceiverService.smali and open it in any text editor.
13.Search for 'time'. There will be one entry at approximately line 523
14.Replace this with: invoke-virtual {p1}, Landroid/telephony/SmsMessage;->getTimestampMillis()J
15.There will be another at approximately line 2270.
16.Replace this with: invoke-virtual {v0}, Landroid/telephony/gsm/CbMessage;->getTimestampMillis()J
17.Save and close them all and go back to apk manager, option 11 'compile'
18.When you're done, it'll tell you about a 'keep' folder. Go delete mms_config.xml, and in the keep folder also delete resources.arsc and classes.dex
19.Copy your new Mms.apk to your phone! Don't forget to back up your old one in case you make a mistake.
hopefully i can send mms now for the first time from skyrocket for some reason i never had mms work on my phone
Doh
can someone please move this to appropriate
section
probably more dev
but def atleast themes and apps
sorry
thanks
Thanks for your time and work. I like seeing this kinda stuff pop up for our skyrocket
Sent from my SAMSUNG-SGH-I727 using xda premium
Calling Jay Harper Calling Jay Harper Mr.Boss Man

[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

Enable Ripple ink effect with fingers or without S-Pen on Note 3 4.4.2 Kitkat

Hi all, I am a newbie and this thread is about enabling the Ripple ink effect with fingers or without S-pen on Note 3 Kitkat.
My Note 3 details:
Variant: SM-N9005,
ROM: Stock odexed ROM-rooted,
Firmware: N9005XXUGNG1,
Region: BTU.​
Thanks to:
@kenet for Activating Ink effect with fingers (4.3)
Their might be other ways to implement it. but I am writing the steps which I have followed.
You Need:
1. Windows PC.
2. JRE installed.
3. Download aapt.exe here, apktool.jar here, baksmali.jar and smali.jar files here.
So here is the step by step guide on how to do it.
1. copy framework folder (/system/framework) from your Note 3 to the folder (say, C:\apktool\system\framework) in your PC.
2. copy the com.sec.android.visualeffect.odex and com.sec.android.visualeffect.jar from Framework folder to aoktool folder (C:\apktool), now baksmali the com.sec.android.visualeffect.odex present in C:\apktool folder using the command
Code:
[/B][B][COLOR="Red"]java -jar baksmali.jar -d C:\apktool\system\framework -x com.sec.android.visualeffect.odex[/COLOR][/B]
Click to expand...
Click to collapse
-d path of directory where framework files are placed.​-x target .odex file (in our case it's com.sec.android.visualeffect.odex)​3. once command is completed, you will see a folder named out .
4. Navigate to C:\apktool\out\com\sec\android\visualeffect\rippleink, and open the file RippleInkRenderer$DVFSHandlerForRipple.smali.
5. Open the file and search for const/16 v9, 0x4002
Code:
[/B][B]
const/16 v9, 0x4002
[COLOR="Red"]
if-ne v8, v9, :cond_ca
[/COLOR]
.line 669[/B]
Click to expand...
Click to collapse
6. Change the red line to, as shown below.
Code:
[/B][B]
const/16 v9, 0x4002
[COLOR="blue"]
if-ne v9, v9, :cond_ca
[/COLOR]
.line 669
[/B]
Click to expand...
Click to collapse
7. Once changes are done, smali the out folder present in C:\apktool using the command
Code:
[/B][B][COLOR="Red"]java -jar smali.jar -o classes.dex out[/COLOR][/B]
Click to expand...
Click to collapse
-o the name of newly created .dex file.​out is the folder name.​8. Once you see the classes.dex file in the folder, then push this .dex file into com.sec.android.visualeffect.jar file using the command
Code:
[/B][B][COLOR="Red"]aapt add com.sec.android.visualeffect.jar classes.dex[/COLOR][/B]
Click to expand...
Click to collapse
9. This is deodexed .jar file, and you can directly push this jar into your phone path /system/framework using RootExplorer and set the permission to rw-r--r--, and delete the com.sec.android.visualeffect.odex file from the framework folder.
Restart the phone, and you should be able to use ink effect with fingers.
10. If you want to create the com.sec.android.visualeffect.odex file from the com.sec.android.visualeffect.jar file then their are few more steps, which involves busybox, but this jar will work fine, please delete or remove the com.sec.android.visualeffect.odex file from the framework folder and keep only com.sec.android.visualeffect.jar, because this jar is deodexed and working fine for me.
P.S: This will not work if you have changed the ro.product.name or ro.product.device in build.prop
Update:
As i have told that I am new here and I don't know how to make an Xposed module.
Can anybody make an Xposed module for this and give credit?
For enabling Light/Lens Flare effect or Particle effect on Lockscreen, please check out here.
Hit THANKS button, If I helped You.​
Thank you for sharing
eemo69 said:
Thank you for sharing
Click to expand...
Click to collapse
welcome.
An xposed mod will be appriciated.
Sent from Galaxy Note 3 SM-N9005
thahim said:
An xposed mod will be appriciated.
Sent from Galaxy Note 3 SM-N9005
Click to expand...
Click to collapse
+1
yeah xposed mod
rockadz9 said:
+1
yeah xposed mod
Click to expand...
Click to collapse
Yes be would nice!
amk19 said:
Hi all, I am a newbie and this thread is about enabling the Ripple ink effect with fingers or without S-pen on Note 3 Kitkat.
My Note 3 details:
Variant: SM-N9005,
ROM: Stock odexed ROM-rooted,
Firmware: N9005XXUGNG1,
Region: BTU.​
Thanks to:
@kenet for Activating Ink effect with fingers (4.3)
Their might be other ways to implement it. but I am writing the steps which I have followed.
You Need:
1. Windows PC.
2. JRE installed.
3. Download aapt.exe here, apktool.jar here, baksmali.jar and smali.jar files here.
So here is the step by step guide on how to do it.
1. copy framework folder (/system/framework) from your Note 3 to the folder (say, C:\apktool\system\framework) in your PC.
2. copy the com.sec.android.visualeffect.odex and com.sec.android.visualeffect.jar from Framework folder to aoktool folder (C:\apktool), now baksmali the com.sec.android.visualeffect.odex present in C:\apktool folder using the command
-d path of directory where framework files are placed.​-x target .odex file (in our case it's com.sec.android.visualeffect.odex)​3. once command is completed, you will see a folder named out .
4. Navigate to C:\apktool\out\com\sec\android\visualeffect\rippleink, and open the file RippleInkRenderer$DVFSHandlerForRipple.smali.
5. Open the file and search for const/16 v9, 0x4002
6. Change the red line to, as shown below.
7. Once changes are done, smali the out folder present in C:\apktool using the command
-o the name of newly created .dex file.​out is the folder name.​8. Once you see the classes.dex file in the folder, then push this .dex file into com.sec.android.visualeffect.jar file using the command
9. This is deodexed .jar file, and you can directly push this jar into your phone path /system/framework using RootExplorer and set the permission to rw-r--r--, and delete the com.sec.android.visualeffect.odex file from the framework folder.
Restart the phone, and you should be able to use ink effect with fingers.
10. If you want to create the com.sec.android.visualeffect.odex file from the com.sec.android.visualeffect.jar file then their are few more steps, which involves busybox, but this jar will work fine, please delete or remove the com.sec.android.visualeffect.odex file from the framework folder and keep only com.sec.android.visualeffect.jar, because this jar is deodexed and working fine for me.
P.S: This will not work if you have changed the ro.product.name or ro.product.device in build.prop
Update:
As i have told that I am new here and I don't know how to make an Xposed module.
Can anybody make an Xposed module for this and give credit?
For enabling Light/Lens Flare effect or Particle effect on Lockscreen, please check out here.
Hit THANKS button, If I helped You.​
Click to expand...
Click to collapse
Hi..
Will your attached "com.sec.android.visualeffect.jar" file will work if I move it to /system/framework using RootExplorer and set the permission to rw-r--r-- and deleting .odex of it.?
kushal.arora16 said:
Hi..
Will your attached "com.sec.android.visualeffect.jar" file will work if I move it to /system/framework using RootExplorer and set the permission to rw-r--r-- and deleting .odex of it.?
Click to expand...
Click to collapse
+1
will it work ?
---------- Post added at 10:19 AM ---------- Previous post was at 09:45 AM ----------
Man !!!!!
there is not any {{ Code:
const/16 v9, 0x4002
if-ne v8, v9, :cond_ca
.line 669 }}}
on my RippleInkRenderer$DVFSHandlerForRipple.smali !!!!!!!!
that is on my RippleInkRenderer.smali !!
what is your opinion ?
kushal.arora16 said:
Hi..
Will your attached "com.sec.android.visualeffect.jar" file will work if I move it to /system/framework using RootExplorer and set the permission to rw-r--r-- and deleting .odex of it.?
Click to expand...
Click to collapse
It should work if the firmware is same.
mehdi.moha said:
+1
will it work ?
---------- Post added at 10:19 AM ---------- Previous post was at 09:45 AM ----------
Man !!!!!
there is not any {{ Code:
const/16 v9, 0x4002
if-ne v8, v9, :cond_ca
.line 669 }}}
on my RippleInkRenderer$DVFSHandlerForRipple.smali !!!!!!!!
that is on my RippleInkRenderer.smali !!
what is your opinion ?
Click to expand...
Click to collapse
What's your firmware version?
Don't see "const/16 v9, 0x4002"
amk19 said:
What's your firmware version?
Click to expand...
Click to collapse
I'm using a Note 3 from T-Mobile on the stock NK3 4.4.2 update.
I've tried this a long time ago and failed, I tried a week ago and failed, any insight as to where I should look to possibly accomplish this awesome task?
PineSmokes said:
I'm using a Note 3 from T-Mobile on the stock NK3 4.4.2 update.
I've tried this a long time ago and failed, I tried a week ago and failed, any insight as to where I should look to possibly accomplish this awesome task?
Click to expand...
Click to collapse
Send me that file. I'll see.
My 4.4.2 NK3 Visual Effect File
amk19 said:
Send me that file. I'll see.
Click to expand...
Click to collapse
https://db.tt/4V6uIDEk
https://db.tt/2utaSi4T
PineSmokes said:
https://db.tt/4V6uIDEk
https://db.tt/2utaSi4T
Click to expand...
Click to collapse
Just send me the required smali file after decompiling. Not jar.
My 4.4.2 NK3 Visual Effect File Dedodexed
amk19 said:
Just send me the required smali file after decompiling. Not jar.
Click to expand...
Click to collapse
Here you are
https://www.dropbox.com/s/yw8f7ej75bp08wd/com.sec.android.visualeffect.jar?dl=0
PineSmokes said:
Here you are
https://www.dropbox.com/s/yw8f7ej75bp08wd/com.sec.android.visualeffect.jar?dl=0
Click to expand...
Click to collapse
Nop. That's jar file.
You first decompile/Backsmali the .odex file and send me "ippleInkRenderer$DVFSHandlerForRipple.smali" file.
Wowsers I'm high my bad I got it now
amk19 said:
Nop. That's jar file.
You first decompile/Backsmali the .odex file and send me "ippleInkRenderer$DVFSHandlerForRipple.smali" file.
Click to expand...
Click to collapse
RippleInkRenderer$DVFSHandlerForRipple.smali:
https://www.dropbox.com/s/rmkpnzsxjmrznud/RippleInkRenderer$DVFSHandlerForRipple.smali?dl=0
PineSmokes said:
RippleInkRenderer$DVFSHandlerForRipple.smali:
https://www.dropbox.com/s/rmkpnzsxjmrznud/RippleInkRenderer$DVFSHandlerForRipple.smali?dl=0
Click to expand...
Click to collapse
Search in RippleInkRenderer.smali and try changing it.
Since I don't have that firmware I can't try.
That was it
amk19 said:
Search in RippleInkRenderer.smali and try changing it.
Since I don't have that firmware I can't try.
Click to expand...
Click to collapse
You nailed it, I checked a few files but I guess I didn't check all of them, that's good news.
EDIT:
OMFG I REDMODDED IT AND IT WORKED
You have no idea how much this one success is going to keep me going, I'm really trying to get into the developer world and if I couldn't get something this simple, well it was kinda not very motivating XD
Thank you so much I've love tapped your Thanks button
PineSmokes said:
You nailed it, I checked a few files but I guess I didn't check all of them, that's good news.
EDIT:
OMFG I REDMODDED IT AND IT WORKED
You have no idea how much this one success is going to keep me going, I'm really trying to get into the developer world and if I couldn't get something this simple, well it was kinda not very motivating XD
Thank you so much I've love tapped your Thanks button
Click to expand...
Click to collapse
Happy to help you.

Categories

Resources