[Q]Help with Removing T-Mobile Throttling - T-Mobile, Samsung Galaxy SIII

I'm trying to remove the throttling cap from my T-Mobile Galaxy S3. I followed the guide here
http://forum.xda-developers.com/showthread.php?t=2057344
by jovy23. I got stuck in boot loop each time I tried it, and I was wondering if anyone could tell me what I'm doing wrong. I am running CM10 on a T999. I tried to post in that thread, but I don't have enough posts to reply to a developer thread.
I used ES File Explorer to copy services.jar from system/framework to my computer's hard drive.
I downloaded apktool from here
http://mastergenius.net/wordpress/2010/12/20/android-compiledecompile-apk-and-jar-files-for-android-smartphones/
and followed the instructions on the site for decompiling and compiling.
I opened ThrottleService.smali with Notepad++
I didn't have a
Code:
.method static synthetic access$1002(Lcom/android/server/ThrottleService;J)J
but I had
Code:
.method static synthetic access$1002(Lcom/android/server/ThrottleService;I)I
so I followed the instructions adding the empty space and the const-wide/16 p1, 0x0 to that section.
I also read on page 5, post #49 of the aforementioned XDA thread, jovy23 states
in CM10 you need to instead find the line
Code:
.method static synthetic access$1102(Lcom/android/server/ThrottleService;J)J
so I tried the instructions for that instead.
The guide says the original lines should look like this
Code:
.method static synthetic access$1002(Lcom/android/server/ThrottleService;J)J
.registers 3
.parameter "x0"
.parameter "x1"
.prologue
.line 71
iput-wide p1, p0, Lcom/android/server/ThrottleService;->mMaxNtpCacheAge:J
return-wide p1
.end method
but mine look like this
Code:
.method static synthetic access$1002(Lcom/android/server/ThrottleService;I)I
.locals 0
.parameter "x0"
.parameter "x1"
.prologue
.line 72
iput p1, p0, Lcom/android/server/ThrottleService;-
>mPolicyNotificationsAllowedMask:I
return p1
.end method
and this
Code:
.method static synthetic access$1102(Lcom/android/server/ThrottleService;J)J
.locals 0
.parameter "x0"
.parameter "x1"
.prologue
.line 72
iput-wide p1, p0, Lcom/android/server/ThrottleService;->mMaxNtpCacheAge:J
return-wide p1
.end method
I changed it to this
Code:
.method static synthetic access$1102(Lcom/android/server/ThrottleService;J)J
.locals 0
.parameter "x0"
.parameter "x1"
.prologue
.line 72
const-wide/16 p1, 0x0
iput-wide p1, p0, Lcom/android/server/ThrottleService;->mMaxNtpCacheAge:J
return-wide p1
.end method
as per the instructions
After that, I recompiled everything with apktools and it spit out a classes.dex, rather than a services.jar
I extracted my original services.jar with WinRAR, replaced the classes.dex inside of that with the one that apktools just spit out, then ran it back through WinRAR and saved it as services.jar
I used ES File Explorer to replace the services.jar in my system/framework folder with the services.jar that I just made and rebooted my phone. Neither method(the 1002 line and the 1102 line) worked, and both caused my system to get stuck at the boot up cyanogenmod logo. I tried each method independently from each other and redecompiled each time so I knew I was working with the originals.
I can upload any of the original or modified files if it will help the diagnosis.
Thanks in advance for any help. Maybe this could be linked or moved to the original development thread to get more exposure and help people who are also trying to get this to work.

Why go to all that hassle when you can call tmobile and change to the new data plan with no throtting? And its cheaper than 5GB

I think a lot of us are on the $30 prepaid plan. It works great, I use groove ip with google voice and get great speeds and rarely need to go over 5G a month anyway. It would just feel nice to not be throttled on the occasional bandwidth overage.

I'm on the 70$ prepaid plan and loving it.

Related

[MOD] Disable Full/Low Battery Notification (no vibration)

Hi guys, i have noticed that most people here in order to disable battery Full/Low sound notification just delete these files:
-system/media/audio/ui/TW_Battery_caution.ogg
-system/media/audio/ui/TW_Low_Battery.ogg
Well this is not the right way to do it, because the vibration is still here to wake us up while sleeping
I decided to share this simple mod to avoid this inconvenience!
How to (for dev)
Decompile SystemUI.apk
Open with your favourite Text Editor this file: smali\com\android\systemui\statusbar\policy\StatusBarPolicy.smali
search for this method signature: .method private onBatteryLow(Landroid/content/IntentV
The following code will disable Dialog popup for low battery warning (if you don't want to disable it but just sound and vibration then leave this function as it is)
Change code from
Code:
.method private onBatteryLow(Landroid/content/Intent;)V
.locals 0
.parameter "intent"
.prologue
.line 985
invoke-direct {p0}, Lcom/android/systemui/statusbar/policy/StatusBarPolicy;->showLowBatteryWarning()V
.line 990
return-void
.end method
to
Code:
.method private onBatteryLow(Landroid/content/Intent;)V
.locals 0
.parameter "intent"
.prologue
return-void
.line 985
invoke-direct {p0}, Lcom/android/systemui/statusbar/policy/StatusBarPolicy;->showLowBatteryWarning()V
.line 990
return-void
.end method
Now to disable Sound and Vibration notification search for this method signature: .method private playTone(Landroid/net/UriV
Edit code from
Code:
.method private playTone(Landroid/net/Uri;)V
.locals 5
.parameter
.prologue
const-string v4, "StatusBarPolicy"
.line 1180
const-string v0, "StatusBarPolicy"
...
...
...
to
Code:
.method private playTone(Landroid/net/Uri;)V
.locals 5
.parameter
.prologue
return-void
const-string v4, "StatusBarPolicy"
.line 1180
const-string v0, "StatusBarPolicy"
...
...
...
That's it! Recompile apk and you can sleep deeply
In addition it is possible to leave it as an option! I got it working following the IDEA behind JKAY theme settings application! (big thanks to Jkay)
If you'd like to get sound back, you can create a folder "battery_SOUND_ON" in some places for this example i used this path: /sdcard/Revolution/battery_SOUND_ON (if you don't want sound just delete or rename this folder)
Now we can modify smali code as following:
Code:
.method private playTone(Landroid/net/Uri;)V
.locals 5
.parameter
.prologue
new-instance v0, Ljava/io/File;
const-string v1, "/sdcard/Revolution/battery_SOUND_ON"
invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V
invoke-virtual {v0}, Ljava/io/File;->exists()Z
move-result v0
if-eqz v0, :goto_1
const-string v4, "StatusBarPolicy"
.line 1180
const-string v0, "StatusBarPolicy"
...
...
...
"goto_1" label if followed by return-void which means that if this folder does not exists this method will return straight away, if this folder exists then the normal code will be executed!
Note:
This mod will also display battery full charge icon on the status bar when the charge is completed!
so could any dev make a mod to enable to battery full notifacations and sounds and vibrations??
would be handy to have one in the kitchen for your rom leo so peeps can either have it or not have it etc
it is another way to customise the device as well which is always good
buxz777 said:
so could any dev make a mod to enable to battery full notifacations and sounds and vibrations??
would be handy to have one in the kitchen for your rom leo so peeps can either have it or not have it etc
it is another way to customise the device as well which is always good
Click to expand...
Click to collapse
Yes it is also possible to leave it as an option, i am testing it now and if it works i will update the OP!
\EDIT
It is working, OP has been updated!
Yeah, working great! Allways great thing when user can decide whether use it or not.
Thanks LeoMar!
fisrt off thanks alot about the grate MOD
but can i use it only with LOW battery?? and keep the notification when the battery is full
KinG_Ruin said:
fisrt off thanks alot about the grate MOD
but can i use it only with LOW battery?? and keep the notification when the battery is full
Click to expand...
Click to collapse
\EDIT
Yes it is possible of course!
1)Modify method "private onBatteryLow(Landroid/content/Intent; )V" as shown to the OP.
2)Don't change code (leave the original code) for this method ".method private playTone(Landroid/net/Uri; )V"
In this way you will only disable Low battery notification Dialod + Sound
thanks alot dude
it works fine, keep it up
edit:-
when i tried to edit another ROM i got this code
Code:
.method private onBatteryLow(Landroid/content/Intent;)V
[COLOR="Red"][B] .registers 2
.parameter "intent"[/B][/COLOR]
.prologue
.line 985
invoke-direct {p0}, Lcom/android/systemui/statusbar/policy/StatusBarPolicy;->showLowBatteryWarning()V
.line 990
return-void
.end method
so is it save to replace it with
Code:
.method private onBatteryLow(Landroid/content/Intent;)V
[COLOR="Red"][B] .locals 0
.parameter "intent"[/B][/COLOR]
.prologue
return-void
.line 985
invoke-direct {p0}, Lcom/android/systemui/statusbar/policy/StatusBarPolicy;->showLowBatteryWarning()V
.line 990
return-void
.end method
KinG_Ruin said:
thanks alot dude
it works fine, keep it up
edit:-
when i tried to edit another ROM i got this code
Code:
.method private onBatteryLow(Landroid/content/Intent;)V
[COLOR="Red"][B] .registers 2
.parameter "intent"[/B][/COLOR]
.prologue
.line 985
invoke-direct {p0}, Lcom/android/systemui/statusbar/policy/StatusBarPolicy;->showLowBatteryWarning()V
.line 990
return-void
.end method
so is it save to replace it with
Code:
.method private onBatteryLow(Landroid/content/Intent;)V
[COLOR="Red"][B] .locals 0
.parameter "intent"[/B][/COLOR]
.prologue
return-void
.line 985
invoke-direct {p0}, Lcom/android/systemui/statusbar/policy/StatusBarPolicy;->showLowBatteryWarning()V
.line 990
return-void
.end method
Click to expand...
Click to collapse
It's not safe, therefore just add "return-void" after .prologue don't change anithing else!
hi, thanks for sharing, works great.
one thing...
when i use this code:
.method private playTone(Landroid/net/UriV
.locals 5
.parameter
.prologue
new-instance v0, Ljava/io/File;
const-string v1, "/sdcard/Revolution/battery_SOUND_ON"
invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/StringV
invoke-virtual {v0}, Ljava/io/File;->exists()Z
move-result v0
if-eqz v0, :goto_1
const-string v4, "StatusBarPolicy"
.line 1180
const-string v0, "StatusBarPolicy"
compiling classes.dex gives me an error "goto_1" not specified.
i am on kh3, can you tell me where to go?
methux
LeoMar75 said:
It's not safe, therefore just add "return-void" after .prologue don't change anithing else!
Click to expand...
Click to collapse
I love u
thanks alot dude, it works fine
juberg said:
hi, thanks for sharing, works great.
one thing...
when i use this code:
.method private playTone(Landroid/net/UriV
.locals 5
.parameter
.prologue
new-instance v0, Ljava/io/File;
const-string v1, "/sdcard/Revolution/battery_SOUND_ON"
invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/StringV
invoke-virtual {v0}, Ljava/io/File;->exists()Z
move-result v0
if-eqz v0, :goto_1
const-string v4, "StatusBarPolicy"
.line 1180
const-string v0, "StatusBarPolicy"
compiling classes.dex gives me an error "goto_1" not specified.
i am on kh3, can you tell me where to go?
methux
Click to expand...
Click to collapse
You should find a label followed by return-void then modify
Code:
if-eqz v0, :goto_1
to the correct label!
Pls quote your complete function code if you need help!
there are many goto´s
which part of the code do you need for helping me out?
The whole StatusBarPolicy.smali or just the part from
.method private playTone(Landroid/net/UriV?
thanks
juberg said:
there are many goto´s
which part of the code do you need for helping me out?
The whole StatusBarPolicy.smali or just the part from
.method private playTone(Landroid/net/UriV?
thanks
Click to expand...
Click to collapse
Just that method.
Basicly you want to find goto or cond what will follow code "return-void"
For example in my .method private playTone it looks like this:
Code:
invoke-virtual {v0, v2, v1}, Landroid/app/NotificationManager;->notify(ILandroid/app/Notification;)V
.line 1204
:cond_42
:goto_42
return-void
So in that case it would be that goto_42
that was fast.
ok, got it...
thanks
Could someone upload the systemUI.apk with this mod?
celiocalves said:
Could someone upload the systemUI.apk with this mod?
Click to expand...
Click to collapse
SystemUI.apk can be posted because it's not generic... SystemUI.apk is rensponsible for status bar, Quick toggle icons, edt tweaks support, jkay support...
There are plenty of version depending on the theme and the mod you are using!
LeoMar75 said:
SystemUI.apk can be posted because it's not generic... SystemUI.apk is rensponsible for status bar, Quick toggle icons, edt tweaks support, jkay support...
There are plenty of version depending on the theme and the mod you are using!
Click to expand...
Click to collapse
I didn't know that! :/
Thanks for the explanation!
thanks for the tutorial, i am having issue compiling this. i lose my status bar every time.
Leo,
Thank you for the tutorial. Here's how the method looks on the SGS2 Skyrocket for AT&T:
Code:
.method private playTone(Landroid/net/Uri;Z)V
.locals 5
.parameter
.parameter
.prologue
const-string v2, "playTone() - "
const-string v3, "audio"
const-string v4, "StatusBarPolicy"
.line 1212
const-string v0, "StatusBarPolicy"
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "playTone() - "
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v4, v0}, Landroid/util/Slog;->d(Ljava/lang/String;Ljava/lang/String;)I
.line 1213
Not sure where I should add the "return-void" in this snippet, or if I need something else. Let me know!
How do I disable low and full battery sounds on Ics? thank you!

[DEV] [MOD] [HOW-TO] CRT Off on LG2 Based Sprint ROMS [MOD]

Hey everyone! In response to sudden events i am deciding to make tutorials for all my MODS for interested DEVS. Here is CRT Off MOD
First you're going to need to decompile the Smali in services.jar
Now edit the following code in the following smali:
\com\android\server\PowerManagerService$BrightnessState.smali
Edit the following code:
Code:
.line 2685
.restart local v3 #turningOff:Z
:cond_38
iget-object v4, p0, Lcom/android/server/PowerManagerService$BrightnessState;->this$0:Lcom/android/server/PowerManagerService;
[COLOR="Green"] ++const/16 v3, 0x11
++#calls: Lcom/android/server/PowerManagerService;->nativeStartSurfaceFlingerAnimation(I)V
invoke-static {v4, v3}, Lcom/android/server/PowerManagerService;->access$9000(Lcom/android/server/PowerManagerService;I)V
++iget-object v4, p0, Lcom/android/server/PowerManagerService$BrightnessState;->this$0:Lcom/android/server/PowerManagerService;[/COLOR]
#getter for: Lcom/android/server/PowerManagerService;->mScreenBrightness:Lcom/android/server/PowerManagerService$BrightnessState;
invoke-static {v4}, Lcom/android/server/PowerManagerService;->access$6000(Lcom/android/server/PowerManagerService;)Lcom/android/server/PowerManagerService$BrightnessState;
move-result-object v4
Now edit the following smali:
\com\android\server\PowerManagerService.smali
Edit the following code:
Code:
.prologue
.line 116
iget-object v0, p0, Lcom/android/server/PowerManagerService;->mBatteryService:Lcom/android/server/BatteryService;
return-object v0
.end method
[COLOR="Green"]++.method static synthetic access$9000(Lcom/android/server/PowerManagerService;I)V
.registers 2
.parameter "x0"
.parameter "x1"
.prologue
.line 110
invoke-direct {p0, p1}, Lcom/android/server/PowerManagerService;->nativeStartSurfaceFlingerAnimation(I)V
return-void
.end method[/COLOR]
.method private acquireDVFSLockLocked(IILandroid/os/IBinder;IILjava/lang/String;)V
Thats it Compile the smali and push services.jar to /system/framework/ to test.
Have fun
Nice job. I was going to post this up, then i saw yours.
Does the effect still flicker?
Sent from my Galaxy Nexus using Tapatalk 2
jdbeitz said:
Does the effect still flicker?
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
*bump*
And also does anyone know if this works after the LG8 update?

[MOD][GUIDES] SecMms.apk TouchWiz Mods! [5.26.2013]

Hello to all Developers and XDA members! I have come here to give you a couple of guides on how to enable a bunch of the Stock Messaging App "SecMms" Mods and other good stuff so here is how you can do it!
What Is Required...
★ First you need to have experience and know how to decompile/recompile apks with Apktools, apkmanager, smali, and baksmali
★ Have 7-zip installed onto your computer/laptop
★ Make sure you have Notepad++ also installed!
★HOW TO ENABLE THE SCREEN ON/OFF TOGGLE AND ADD THE VIBRATION, SIGNATURE OPTIONS★
WHAT DOES THIS MOD DO: This mod will let you enable the Screen on/off toggle, vibration, and signature options in the messaging app.
STEP 1
★ Go into your system/app folder and take out your "SecMms.apk"
★ Then use one of the applications such as apktools or apkmanager and then use the commands to decompile the SecMms.apk
★ Once you have decompiled the SecMms.apk, go to:
res/xml/mms_config.xml
Click to expand...
Click to collapse
Now open up "mms.config.xml" with Notepad++ then go and find:
Code:
<bool name="enable_screen_onoff_option">false</bool>
<bool name="enable_signature_settings">false</bool>
<bool name="enable_vibration_option">false</bool>
<bool name="enable_signature">false</bool>
Now what your going to do is where it says "false" your going to change it to "true" to enable it. Once done it will look something like this:
Code:
<bool name="enable_screen_onoff_option">true</bool>
<bool name="enable_signature_settings">true</bool>
<bool name="enable_vibration_option">true</bool>
<bool name="enable_signature">true</bool>
Now save this file with the new edits with Notepad++ and head to the next step!
STEP 2
Once your done enabling the bools, now you have to go into:
smali/com/android/mms/ui/MessagingPreferenceActivity.smali
Click to expand...
Click to collapse
Now open up "MessagingPreferenceActivity.smali" with your notepad++ for editing.
For this part of the guide what i have highlighted in "GREEN" text is what you have to find using Notepad++ which all should be almost towards the bottom of the file, So what you see in "RED" is the line you have to remove/delete completely which is the "invoke-direct" line which has "removePreference" in it:
FIND:
Code:
[COLOR="Green"]const-string v11, "pref_key_spam_settings"[/COLOR]
Here is what it should look like, Now remove what you see in RED:
Code:
.line 813
invoke-virtual {p0}, Lcom/android/mms/ui/MessagingPreferenceActivity;->getPreferenceScreen()Landroid/preference/PreferenceScreen;
move-result-object v10
[COLOR="Green"]const-string v11, "pref_key_spam_settings"[/COLOR]
invoke-virtual {p0, v11}, Lcom/android/mms/ui/MessagingPreferenceActivity;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;
move-result-object v11
[COLOR="Red"]invoke-direct {p0, v10, v11}, Lcom/android/mms/ui/MessagingPreferenceActivity;->removePreference(Landroid/preference/PreferenceGroup;Landroid/preference/Preference;)V[/COLOR]
.line 824
:cond_10
:goto_5
invoke-static {}, Lcom/android/mms/MmsConfig;->getDisableConvertingEffectBetweenSMSMMS()Z
move-result v10
if-eqz v10, :cond_11
FIND:
Code:
[COLOR="Green"]const-string v10, "pref_notification_settings"[/COLOR]
Here is what it should look like, Now remove what you see in RED:
Code:
.line 825
[COLOR="Green"]const-string v10, "pref_notification_settings"[/COLOR]
invoke-virtual {p0, v10}, Lcom/android/mms/ui/MessagingPreferenceActivity;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;
move-result-object v1
check-cast v1, Landroid/preference/PreferenceCategory;
.line 826
.local v1, MmsCategory:Landroid/preference/PreferenceCategory;
const-string v10, "pref_key_mms_change_over_alarm"
invoke-virtual {p0, v10}, Lcom/android/mms/ui/MessagingPreferenceActivity;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;
move-result-object v10
[COLOR="Red"]invoke-direct {p0, v1, v10}, Lcom/android/mms/ui/MessagingPreferenceActivity;->removePreference(Landroid/preference/PreferenceGroup;Landroid/preference/Preference;)V[/COLOR]
FIND:
Code:
[COLOR="Green"]const-string v10, "pref_key_backlight"[/COLOR]
Here is what it should look like, Now remove what you see in RED:
Code:
.line 767
[COLOR="Green"]const-string v10, "pref_key_backlight"[/COLOR]
invoke-virtual {p0, v10}, Lcom/android/mms/ui/MessagingPreferenceActivity;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;
move-result-object v10
[COLOR="Red"]invoke-direct {p0, v2, v10}, Lcom/android/mms/ui/MessagingPreferenceActivity;->removePreference(Landroid/preference/PreferenceGroup;Landroid/preference/Preference;)V[/COLOR]
Now once your done with modifying the "MessagingPreferenceActivity.smali", Recompile your SecMms.apk using apktool or smali commands and your DONE! You should now see the Screen On/Off Toggle in the Messaging app Settings! Also if you didn't have the vibration or signature options in your Messaging app settings this guide will also enable it! Enjoy!
★HOW TO ENABLE THE TOUCHWIZ GROUP MESSAGING, SAVE / RESTORE, AND SCHEDULED MESSAGING FEATURES★
WHAT DOES THIS MOD DO: This mod will let you enable some features in the messaging app such as group messaging, save / restore, and also the scheduled messaging.
STEP 1
★ Go into your system/app folder and take out your "SecMms.apk"
★ Then use one of the applications such as apktools or apkmanager and then use the commands to decompile the SecMms.apk
★ Once you have decompiled the SecMms.apk, go to:
smali/com/android/mms/MmsConfig.smali
Click to expand...
Click to collapse
Now open up "MmsConfig.smali" with your notepad++ for editing.
Now for this part of this guide what i have highlighted in "GREEN" text is what you have to find using Notepad++, And what you see in "BLUE" is the line you have to make changes to:
TO ENABLE GROUP MESSAGING...
FIND:
Code:
[COLOR="Green"].method public static getEnableGroupMessage()Z[/COLOR]
.locals 1
.prologue
.line 766
const/4 v0, 0x0
return v0
.end method
NOW CHANGE TO:
Code:
[COLOR="Green"].method public static getEnableGroupMessage()Z[/COLOR]
.locals 1
.prologue
.line 766
[COLOR="Blue"]const/4 v0, 0x1[/COLOR]
return v0
.end method
TO ENABLE THE SAVE / RESTORE FEATURE...
FIND:
Code:
[COLOR="Green"].method public static getEnableSaveRestoreSDCardMessage()Z[/COLOR]
.locals 1
.prologue
.line 774
const/4 v0, 0x0
return v0
.end method
NOW CHANGE TO:
Code:
[COLOR="Green"].method public static getEnableSaveRestoreSDCardMessage()Z[/COLOR]
.locals 1
.prologue
.line 774
[COLOR="Blue"]const/4 v0, 0x1[/COLOR]
return v0
.end method
TO ENABLE SCHEDULED MESSAGING...
FIND:
Code:
[COLOR="Green"].method public static getEnableScheduledMessage()Z[/COLOR]
.locals 1
.prologue
.line 878
const/4 v0, 0x0
return v0
.end method
NOW CHANGE TO:
Code:
[COLOR="Green"].method public static getEnableScheduledMessage()Z[/COLOR]
.locals 1
.prologue
.line 878
[COLOR="Blue"]const/4 v0, 0x1[/COLOR]
return v0
.end method
The only thing your doing is changing 0x0 to 0x1 which "0" means disabled and "1" means enabled. Once your done now recompile your SecMms.apk and that's it your DONE!
★SMS 1000/UNLIMITED RECIPIENT LIMIT★
WHAT DOES THIS MOD DO: This mod will let you send your message to more than 1000 people at the same time.
STEP 1
★ Go into your system/app folder and take out your "SecMms.apk"
★ Then use one of the applications such as apktools, apkmanager, or baksmali and then use the commands to decompile the SecMms.apk
★ Once you have decompiled the SecMms.apk, go to:
smali/com/android/mms/MmsConfig.smali
Click to expand...
Click to collapse
Now open up "MmsConfig.smali" with your notepad++ for editing.
Now for this part of this guide what i have highlighted in "GREEN" text is what you have to find using Notepad++, What you see in "RED" is the line you have to remove/delete completely, And also what you see in "BLUE" is the line you have to make changes to:
SEARCH FOR:
Code:
[COLOR="Green"].method public static getRecipientLimit()I[/COLOR]
NOW REMOVE:
Code:
[COLOR="Green"].method public static getRecipientLimit()I[/COLOR]
.locals 1
.prologue
.line 630
[COLOR="Red"]sget v0, Lcom/android/mms/MmsConfig;->mRecipientLimit:I[/COLOR]
return v0
.end method
AND CHANGE TO:
Code:
[COLOR="Green"].method public static getRecipientLimit()I[/COLOR]
.locals 1
.prologue
.line 630
[COLOR="Blue"]const/16 v0, 0x3e8[/COLOR]
return v0
.end method
Now save the changes, recompile your SecMms.apk and your DONE!
★HOW TO CHANGE THE MESSAGING TIME STAMPS TO ITS ORIGINAL TIME★
WHAT DOES THIS MOD DO: This mod will show the exact sent time of received messages, not the moment when you actually received it on your phone.
STEP 1
★ Go into your system/app folder and take out your "SecMms.apk"
★ Then use one of the applications such as apktools, apkmanager, or baksmali and then use the commands to decompile the SecMms.apk
★ Once you have decompiled the SecMms.apk, go to:
smali/com/android/mms/transactionSMSReceiverService.smali
Click to expand...
Click to collapse
Now open up "SMSReceiverService.smali" with your notepad++ for editing.
Now for this part of this guide what i have highlighted in "GREEN" text is what you have to find using Notepad++, What you see in "RED" is the line you have to remove/delete completely, And also what you see in "BLUE" is the line you have to make changes to:
LOOK FOR:
Code:
[COLOR="Green"]invoke-static {}, Ljava/lang/System;->currentTimeMillis()J[/COLOR]
THIS SAME LINE THAT YOU HAVE JUST LOOKED FOR, IS ALSO THE LINE YOUR GOING TO HAVE TO REMOVE WHICH SHOULD LOOK LIKE THIS:
Code:
.line 1395
:cond_7
const-string v3, "date"
[COLOR="Red"]invoke-static {}, Ljava/lang/System;->currentTimeMillis()J[/COLOR]
move-result-wide v4
invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v4
invoke-virtual {v1, v3, v4}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Long;)V
goto/16 :goto_1
.end method
AND THEN CHANGE IT TO THIS:
Code:
.line 1395
:cond_7
const-string v3, "date"
[COLOR="Blue"]invoke-virtual {p1}, Landroid/telephony/SmsMessage;->getTimestampMillis()J[/COLOR]
move-result-wide v4
invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v4
invoke-virtual {v1, v3, v4}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Long;)V
goto/16 :goto_1
.end method
Once finished... Save changes, recompile your SecMms.apk and that's it your DONE!
★HOW TO DISABLE THE SMS TO MMS AUTO-CONVERSION★
WHAT DOES THIS MOD DO: This mod will let you type very long text messages and it won't automatically convert it into MMS.
STEP 1
★ Go into your system/app folder and take out your "SecMms.apk"
★ Then use one of the applications such as apktools, apkmanager, or baksmali and then use the commands to decompile the SecMms.apk
★ Once you have decompiled the SecMms.apk, go to:
smali/com/android/mms/MmsConfig.smali
Click to expand...
Click to collapse
Now open up "MmsConfig.smali" with your notepad++ for editing.
Now for this part of this guide what i have highlighted in "GREEN" text is what you have to find using Notepad++, What you see in "RED" is the line you have to remove/delete completely, And also what you see in "BLUE" is the line you have to make changes to:
SEARCH FOR:
Code:
[COLOR="Green"]sput v0, Lcom/android/mms/MmsConfig;->mMaxImageWidthRestrictedMode:I[/COLOR]
NOW REMOVE:
Code:
[COLOR="Green"]sput v0, Lcom/android/mms/MmsConfig;->mMaxImageWidthRestrictedMode:I[/COLOR]
.line 149
[COLOR="Red"]sput v7, Lcom/android/mms/MmsConfig;->mRecipientLimit:I[/COLOR]
.line 150
[COLOR="Red"]const/16 v0, 0xc8[/COLOR]
sput v0, Lcom/android/mms/MmsConfig;->mDefaultSMSMessagesPerThread:I
AND CHANGE TO:
Code:
[COLOR="Green"]sput v0, Lcom/android/mms/MmsConfig;->mMaxImageWidthRestrictedMode:I[/COLOR]
.line 149
[COLOR="Blue"]const/16 v0, 0x3e8[/COLOR]
.line 150
[COLOR="Blue"]sput v0, Lcom/android/mms/MmsConfig;->mRecipientLimit:I[/COLOR]
sput v0, Lcom/android/mms/MmsConfig;->mDefaultSMSMessagesPerThread:I
SEARCH FOR:
Code:
[COLOR="Green"]sput-boolean v2, Lcom/android/mms/MmsConfig;->mAllowAttachAudio:Z[/COLOR]
NOW REMOVE:
Code:
.line 157
[COLOR="Green"]sput-boolean v2, Lcom/android/mms/MmsConfig;->mAllowAttachAudio:Z[/COLOR]
.line 160
[COLOR="Red"]const/4 v0, 0x4[/COLOR]
sput v0, Lcom/android/mms/MmsConfig;->mSmsToMmsTextThreshold:I
AND CHANGE TO:
Code:
.line 157
[COLOR="Green"]sput-boolean v2, Lcom/android/mms/MmsConfig;->mAllowAttachAudio:Z[/COLOR]
.line 160
[COLOR="Blue"]const/16 v0, 0x3e8[/COLOR]
sput v0, Lcom/android/mms/MmsConfig;->mSmsToMmsTextThreshold:I
SEARCH FOR:
Code:
[COLOR="Green"].method public static getMaxRecipientLength()I[/COLOR]
NOW REMOVE:
Code:
[COLOR="Green"].method public static getMaxRecipientLength()I[/COLOR]
.locals 1
.prologue
.line 2146
[COLOR="Red"]sget v0, Lcom/android/mms/MmsConfig;->mMaxRecipientLength:I[/COLOR]
return v0
.end method
AND CHANGE TO:
Code:
[COLOR="Green"].method public static getMaxRecipientLength()I[/COLOR]
.locals 1
.prologue
.line 2146
[COLOR="Blue"]const/16 v0, 0x3e8[/COLOR]
return v0
.end method
SEARCH FOR:
Code:
[COLOR="Green"].method public static getMmsMaxRecipient()I[/COLOR]
NOW REMOVE:
Code:
[COLOR="Green"].method public static getMmsMaxRecipient()I[/COLOR]
.locals 1
.prologue
.line 2379
[COLOR="Red"]sget v0, Lcom/android/mms/MmsConfig;->mMmsRecipientLimit:I[/COLOR]
return v0
.end method
AND CHANGE TO:
Code:
[COLOR="Green"].method public static getMmsMaxRecipient()I[/COLOR]
.locals 1
.prologue
.line 2379
[COLOR="Blue"]const/16 v0, 0x3e8[/COLOR]
return v0
.end method
SEARCH FOR:
Code:
[COLOR="Green"].method public static getSmsToMmsTextThreshold()I[/COLOR]
NOW REMOVE:
Code:
[COLOR="Green"].method public static getSmsToMmsTextThreshold()I[/COLOR]
.locals 1
.prologue
.line 559
[COLOR="Red"]sget v0, Lcom/android/mms/MmsConfig;->mSmsToMmsTextThreshold:I[/COLOR]
return v0
.end method
AND CHANGE TO:
Code:
[COLOR="Green"].method public static getSmsToMmsTextThreshold()I[/COLOR]
.locals 1
.prologue
.line 559
[COLOR="Blue"]const/16 v0, 0x3e8[/COLOR]
return v0
.end method
SEARCH FOR:
Code:
[COLOR="Green"]sput v9, Lcom/android/mms/MmsConfig;->mMaxRecipientLength:I[/COLOR]
ABOVE THIS SAME LINE YOU HAVE TO ADD A NEW LINE WHICH IS IN BLUE:
Code:
.line 1553
const-string v9, "CscFeature_Message_MaxRecipientLengthAs"
invoke-virtual {v1, v9}, Lcom/sec/android/app/CscFeature;->getInteger(Ljava/lang/String;)I
move-result v9
[COLOR="Blue"]const/16 v9, 0x3e8[/COLOR]
[COLOR="Green"]sput v9, Lcom/android/mms/MmsConfig;->mMaxRecipientLength:I[/COLOR]
.line 1554
sget v9, Lcom/android/mms/MmsConfig;->mMinRecipientLength:I
SEARCH FOR:
Code:
[COLOR="Green"]sput v1, Lcom/android/mms/MmsConfig;->mSmsToMmsTextThreshold:I[/COLOR]
ABOVE THIS SAME LINE YOU HAVE TO ADD A NEW LINE WHICH IS IN BLUE:
Code:
move-result v1
[COLOR="Blue"]const/16 v1, 0x3e8[/COLOR]
[COLOR="Green"]sput v1, Lcom/android/mms/MmsConfig;->mSmsToMmsTextThreshold:I[/COLOR]
.line 1729
const-string v1, "Mms/MmsConfig"
SEARCH FOR:
Code:
[COLOR="Green"]sput v1, Lcom/android/mms/MmsConfig;->mRecipientLimit:I[/COLOR]
ABOVE THIS SAME LINE YOU HAVE TO ADD A NEW LINE WHICH IS IN BLUE:
Code:
.line 1733
const-string v1, "pref_key_max_recipient"
invoke-interface {v0, v1, v4}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I
move-result v1
[COLOR="Blue"]const/16 v1, 0x3e8[/COLOR]
[COLOR="Green"]sput v1, Lcom/android/mms/MmsConfig;->mRecipientLimit:I[/COLOR]
.line 1734
const-string v1, "Mms/MmsConfig"
Now save changes, Recompile your SecMms.apk and that's it you are now DONE!!!
★INCREASE THE SMS LIMIT PER HOUR★
WHAT DOES THIS MOD DO: This mod will increase the SMS hour limit to 1000.
STEP 1
★ Go into your system/app folder and take out your "SecMms.apk"
★ Then use one of the applications such as apktools, apkmanager, or baksmali and then use the commands to decompile the SecMms.apk
★ Once you have decompiled the SecMms.apk, go to:
smali/com/android/mms/util/RateController.smali
Click to expand...
Click to collapse
Now open up "RateController.smali" with your notepad++ for editing.
Now for this guide what i have highlighted in "GREEN" text is what you have to find using Notepad++, What you see in "RED" is the line you have to remove/delete completely, And also what you see in "BLUE" is the line you have to make changes to:
LOOK FOR:
Code:
[COLOR="Green"].field private static final RATE_LIMIT:I = 0x64[/COLOR]
IN THIS SAME EXACT LINE REMOVE:
Code:
[COLOR="Green"].field private static final RATE_LIMIT:I =[/COLOR] [COLOR="Red"]0x64[/COLOR]
AND CHANGE IT TO:
Code:
[COLOR="Green"].field private static final RATE_LIMIT:I =[/COLOR] [COLOR="Blue"]0x3e8[/COLOR]
The value that you see is in hexadecimal format, so 0x64 = "100". So we changed it to 0x3e8 which in hexadecimal format means "1000". Now save your changes, recompile the SecMms.apk and you are now FINISHED!!!
★HOW TO ENABLE SPLIT-VIEW MODE ON/OFF TOGGLE★
WHAT DOES THIS MOD DO: This mod will let you enable split view on landscape screen so you can see the contacts lists of the people who messaged you while looking at your text at the same time.
STEP 1
★ Go into your system/app folder and take out your "SecMms.apk"
★ Then use one of the applications such as apktools, apkmanager, or baksmali and then use the commands to decompile the SecMms.apk
★ Once you have decompiled the SecMms.apk, go to:
smali/com/android/mms/ui/MessagingPreferenceActivity.smali
Click to expand...
Click to collapse
Now open up "MessagingPreferenceActivity.smali" with your notepad++ for editing.
For this part of the guide what i have highlighted in "GREEN" text is what you have to find using Notepad++, What you see in "RED" is the line you have to remove/delete completely which is the "invoke-direct" line which has "removePreference" in it:
SEARCH FOR:
Code:
[COLOR="Green"]const-string v10, "pref_key_split_view"[/COLOR]
Here is what it should look like, Now remove what you see in RED:
Code:
.line 733
[COLOR="Green"]const-string v10, "pref_key_split_view"[/COLOR]
invoke-virtual {p0, v10}, Lcom/android/mms/ui/MessagingPreferenceActivity;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;
move-result-object v10
[COLOR="Red"]invoke-direct {p0, v5, v10}, Lcom/android/mms/ui/MessagingPreferenceActivity;->removePreference(Landroid/preference/PreferenceGroup;Landroid/preference/Preference;)V[/COLOR]
.line 735
:cond_2
invoke-static {}, Lcom/android/mms/MmsConfig;->getEnableWapPush()Z
Once done save your changes, now go to:
smali/com/android/mms/MmsConfig.smali
Click to expand...
Click to collapse
Now open up "MmsConfig.smali" with your notepad++ for editing.
Now for this part of this guide what I have highlighted in "GREEN" text is what you have to find using Notepad++, What you see in "RED" is the line you have to remove/delete completely, And also what you see in "BLUE" is the line you have to make changes to:
SEARCH FOR:
Code:
[COLOR="Green"].method public static getEnableSplitMode()Z[/COLOR]
NOW REMOVE:
Code:
[COLOR="Green"].method public static getEnableSplitMode()Z[/COLOR]
.locals 1
.prologue
.line 903
invoke-static {}, Lcom/android/mms/MmsConfig;->hasLargerThan5inchScreen()Z
move-result v0
if-eqz v0, :cond_0
.line 904
const/4 v0, 0x1
.line 906
:goto_0
return v0
:cond_0
[COLOR="Red"]sget-boolean v0, Lcom/android/mms/MmsConfig;->mEnableSplitMode:Z[/COLOR]
goto :goto_0
.end method
AND CHANGE TO:
Code:
[COLOR="Green"].method public static getEnableSplitMode()Z[/COLOR]
.locals 1
.prologue
.line 903
invoke-static {}, Lcom/android/mms/MmsConfig;->hasLargerThan5inchScreen()Z
move-result v0
if-eqz v0, :cond_0
.line 904
const/4 v0, 0x1
.line 906
:goto_0
return v0
:cond_0
[COLOR="Blue"]const/4 v0, 0x1[/COLOR]
goto :goto_0
.end method
Now save changes, Recompile your SecMms.apk and that's it you are now DONE! Now you should see the "Split View" Toggle In Your Messaging App Settings!
★HOW TO INCREASE MMS MAX SIZE + INCREASE MMS IMAGE SIZE★
WHAT DOES THIS MOD DO: This mod will increase the MMS Max size to 2048000 bytes and also increase the MMS Image size to 4096x2048 [8.4MP].
STEP 1
★ Go into your system/app folder and take out your "SecMms.apk"
★ Then use one of the applications such as apktools or apkmanager and then use the commands to decompile the SecMms.apk
★ Once you have decompiled the SecMms.apk, go to:
smali/com/android/mms/MmsConfig.smali
Click to expand...
Click to collapse
Now open up "MmsConfig.smali" with your notepad++ for editing.
Now for this part of this guide what I have highlighted in "GREEN" text is what you have to find using Notepad++, And what you see in "BLUE" is the line you have to make changes to:
INCREASE MMS MAX SIZE TO 2048000 BYTES...
FIND:
Code:
.line 137
[COLOR="Green"]sput-boolean v2, Lcom/android/mms/MmsConfig;->mMmsWidgetEnabled:Z[/COLOR]
.line 138
const v0, 0x4b000
sput v0, Lcom/android/mms/MmsConfig;->mMaxMessageSize:I
NOW CHANGE TO:
Code:
.line 137
[COLOR="Green"]sput-boolean v2, Lcom/android/mms/MmsConfig;->mMmsWidgetEnabled:Z[/COLOR]
.line 138
[COLOR="Blue"]const v0, 0x1f4000[/COLOR]
sput v0, Lcom/android/mms/MmsConfig;->mMaxMessageSize:I
INCREASE MMS IMAGE SIZE TO 4096x2048 [8.4MP]...
FIND:
Code:
.line 144
[COLOR="Green"]sput-object v4, Lcom/android/mms/MmsConfig;->mEmailGateway:Ljava/lang/String;[/COLOR]
.line 145
sget v0, Lcom/android/mms/MmsConfig;->MAX_IMAGE_HEIGHT:I
sput v0, Lcom/android/mms/MmsConfig;->mMaxImageHeight:I
.line 146
sget v0, Lcom/android/mms/MmsConfig;->MAX_IMAGE_WIDTH:I
sput v0, Lcom/android/mms/MmsConfig;->mMaxImageWidth:I
NOW CHANGE TO:
Code:
.line 144
[COLOR="Green"]sput-object v4, Lcom/android/mms/MmsConfig;->mEmailGateway:Ljava/lang/String;[/COLOR]
.line 145
[COLOR="Blue"]const/16 v0, 0x800[/COLOR]
sput v0, Lcom/android/mms/MmsConfig;->mMaxImageHeight:I
.line 146
[COLOR="Blue"]const/16 v0, 0x1000[/COLOR]
sput v0, Lcom/android/mms/MmsConfig;->mMaxImageWidth:I
Once your done. Now recompile your SecMms.apk and that's it your DONE!
another one just in case! :good:
Thanks for doing this bro, ill have to check it out!
Re: [MOD][GUIDES] SecMms.apk TouchWiz Mods!
sbreen94 said:
Thanks for doing this bro, ill have to check it out!
Click to expand...
Click to collapse
Your welcome bro hopefully i get to update it later on tonight with more mods.
Sent from my SGH-T999 using Tapatalk 2
Updated it with even more mods!
Re: [MOD][GUIDES] SecMms.apk TouchWiz Mods! [3.3.2013]
jovy23 said:
Updated it with even more mods!
Click to expand...
Click to collapse
Awww yeah
Sent from my SCH-I605 using xda premium
Excellent guide mate, :highfive: :good::good:
awesome! it send it but the replies do not come back in the same thread.the people respond in another individual thread...is there anyway to enable the responses to be all in one thread?
EDIT: also, after sending the first group message, i can't send another one. i think it is because the thread is now labeled: "Anonymous" and the app doesn't know who to send it to..
can you possibly post your SecMMS.apk? i've decompiled it and made some edits successfully, but one of the smali files i have is missing some lines from this guide...
also, group text doesnt work still i get the same bug as above. we must be missing something. anyone have the latest OTA update and are rooted? lets compare files!
Everything is OK, but when I choose to send message from contact list: Still 10 recipient limit. How to solve this?
Would this work for the Note 2? And could someone upload the APK? If you need my Note 2 version I can send it to you but I think its the same as the S3.
I successfully was able to make the sms to mms conversion change along with the recipient limit change. But whenever I make a change to the xml files it breaks the array in values where the <3 doesn't link to the heart properly it only shows the <3 in the text message. this happened after I tried to add the screen on/off change. I have read it is something to do with a compression error. Do you know a workaround for this? Hope so, or maybe someone has a fix for this
Second question is how to change the default order of the smilies when you insert from the menu?
Thanks in advance...
Is this thread still active and up?
Re: [MOD][GUIDES] SecMms.apk TouchWiz Mods! [3.3.2013]
mgbotoe said:
Is this thread still active and up?
Click to expand...
Click to collapse
It still works if that's what you're asking
Sent from my SGH-T889 using Tapatalk 2
jovy23 said:
Updated it with even more mods!
Click to expand...
Click to collapse
I would love to have these on my t-999 but I'm having trouble understanding all this development jargon. I've spent the entire day trying to create my own mod, but with no success. My eyes now hurt from staring at my pc since 7 am Do you have a mod for the t-999 stock rom I could flash?
Thanks so much for this great how to! Very clear and easy to follow!
My smali folder does not get extracted...tried so many things to get it fix. anyone else experiencing this....
mgbotoe said:
My smali folder does not get extracted...tried so many things to get it fix. anyone else experiencing this....
Click to expand...
Click to collapse
What do you mean?
Did you decompile the secmms.apk using apktool or apk manager?
Smali folder will be there if you successfully decompiled it.
Sent from my GT-I9100 using Tapatalk 2
engloa said:
What do you mean?
Did you decompile the secmms.apk using apktool or apk manager?
Smali folder will be there if you successfully decompiled it.
Sent from my GT-I9100 using Tapatalk 2
Click to expand...
Click to collapse
Yes ive even setup the apk manager again same thing

Sprint galaxy s3 no schedule message option for text

On my victory running 4.1.2 it had a schedule message option on the menu. Does anyone know how to get it on the s3. I opened feature.xml and changed false to true but it still doesn't show up.
derekb123 said:
On my victory running 4.1.2 it had a schedule message option on the menu. Does anyone know how to get it on the s3. I opened feature.xml and changed false to true but it still doesn't show up.
Click to expand...
Click to collapse
Decompile SecMms.apk
Goto
smali/com/android/mms/MmsConfig.smali
Click to expand...
Click to collapse
FIND:
Code:
.method public static getEnableScheduledMessage()Z
.locals 1
.prologue
.line 878
const/4 v0, 0x0
return v0
.end method
CHANGE TO::
Code:
.method public static getEnableScheduledMessage()Z
.locals 1
.prologue
.line 878
[COLOR="Blue"]const/4 v0, 0x1[/COLOR]
return v0
.end method
Recompile, done
Thanks I'll try that. Do you know why the feature was removed?
I dont know why not even on the S2 was it enabled by default
When I decompile with apk manager it says can't find framework resources for package of id: 2. You must install proper framework files.

[SOLVED] How to successfully mod Sony Music app (9.1.7.A.1.0)?

Hello guys,
I need some help from expert modders or themers, as I am just a n00b user.
My device is a Sony Ericsson WT19i running LegacyXperia CM13.0 and I'm using this Walkman port.
I'm trying to mod the latest Sony Music app (9.1.7.A.1.0) downloaded from APKMirror. This app works fine if I sign it with test keys and push it in system or install it as normal app.
I can do simple modifications (like changing the icons, the background picture, removing the red text and changing the name in AndroidManifest.xml). But, I want to change the name from "Music" to "Walkman", not only in launcher and drawer, but also, inside the app in the action bar. So, I assume that I have to edit two values in the res/values/strings.xml.
Code:
<string name="music_app_action_bar_title_txt">Music</string>
<string name="music_app_name_txt">Music</string>
I'm using apktool_2.1.0 for decompiling and recompiling. I have tried with framework-res.apk from my ROM and with framework-res.apk and SemcGenericUxpRes.apk extracted from stock MM Sony Z5 firmware (E6653_32.1.A.1.163_TH.ftf) and deoxeded.
From what I have read in several quides here in XDA, the obvious is to extract resources.arsc from the new compiled apk and add it in the orinigal apk (without compression, just store), replacing the orinigal file. In this case, when I push is system and reboot the app does not appearing in drawer (like it's not installed) and if I try to install it from the phone or ADB, I'm getting parse error (even if I resign it).
ADB shows:
adb install music.apk
Code:
4298 KB/s (13552346 bytes in 3.078s)
pkg: /data/local/tmp/music.apk
Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED]
and logcat shows:
Code:
04-05 21:34:50.198 971 1058 W PackageManager: Failed parse during installPackageLI
04-05 21:34:50.198 971 1058 W PackageManager: android.content.pm.PackageParser$PackageParserException: /data/app/vmdl1428133414.tmp/base.apk (at Binary XML file line #499): <provider> does not include authorities attribute
04-05 21:34:50.198 971 1058 W PackageManager: at android.content.pm.PackageParser.parseBaseApk(PackageParser.java:924)
04-05 21:34:50.198 971 1058 W PackageManager: at android.content.pm.PackageParser.parseClusterPackage(PackageParser.java:822)
04-05 21:34:50.198 971 1058 W PackageManager: at android.content.pm.PackageParser.parsePackage(PackageParser.java:786)
04-05 21:34:50.198 971 1058 W PackageManager: at com.android.server.pm.PackageManagerService.installPackageLI(PackageManagerService.java:12995)
04-05 21:34:50.198 971 1058 W PackageManager: at com.android.server.pm.PackageManagerService.-wrap26(PackageManagerService.java)
04-05 21:34:50.198 971 1058 W PackageManager: at com.android.server.pm.PackageManagerService$8.run(PackageManagerService.java:10907)
04-05 21:34:50.198 971 1058 W PackageManager: at android.os.Handler.handleCallback(Handler.java:739)
04-05 21:34:50.198 971 1058 W PackageManager: at android.os.Handler.dispatchMessage(Handler.java:95)
04-05 21:34:50.198 971 1058 W PackageManager: at android.os.Looper.loop(Looper.java:148)
04-05 21:34:50.198 971 1058 W PackageManager: at android.os.HandlerThread.run(HandlerThread.java:61)
04-05 21:34:50.198 971 1058 W PackageManager: at com.android.server.ServiceThread.run(ServiceThread.java:46)
So, I was pointed here, but this is an over 2-years old issue in apktool and probably is resolved.
If I sign the new compiled apk and push it to system or install it as normal app, then it's force closing.
Even, if I recompile the apk without any changes I'm getting the same results with both procedures.
I have tried and other ways and combinations, like compiling with original keys, or copying META-INF and AndroidManifest.xml from the original apk to the new one, but the results are always the same (parse error or FC).
I can't configure what I'm doing wrong. Do I need some specific framework-res.apk and SemcGenericUxpRes.apk? Is it indeed apktool's problem? Or anything...
So, I ask for help from the community.
Any ideas and advices are appreciated.
Thanks for reading.
@azakosath Have you tried it without replacing resources.arsc file?
I never replace this file after modding apps, and then too they work great....
Moreover are you using apktool by the command prompt? If this is the case try using advance apktool.
BTW can you please provide me those two framework files?
I have to replace resources.arsc, because I'm edititng strings.xml. I have tried several automated tools, but the outcome is the same.
Here are the files.
azakosath said:
I have to replace resources.arsc, because I'm edititng strings.xml. I have tried several automated tools, but the outcome is the same.
Here are the files.
Click to expand...
Click to collapse
Thanks for the files, and I will try that myself and see if I could get it to work:fingers-crossed:
And i just remembered, have you tried it with superuser mod?
did you resign the apk file that you build?
and your phone must have super user mode which disable signature verification,or it will not work on your phone
---------------------------------------------
i use framework files that you provide and download music from apkmirror
and i successfully edit the strings
>apktool_2.1.0
>Music 9.1.7.A.1.0
>Z3 on stock MM beta,signature verification disabled
{
"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"
}
Ok, guys, thanks a lot for your answers. I'll give Superuser Mod a try and report back. I thought that was only for stock Sony apps pulled from original firmware.
azakosath said:
Ok, guys, thanks a lot for your answers. I'll give Superuser Mod a try and report back. I thought that was only for stock Sony apps pulled from original firmware.
Click to expand...
Click to collapse
just give it a try
http://forum.xda-developers.com/chef-central/android/tut-disable-signature-verification-t3273657
So, I deodexed my services.jar, replaced the original plus services.odex and the phone booted. Then I followed the tutorial for disabling signature verification and ended with a bootloop. Now I'm flashing back my rom, cause unfortunately CM recovery doesn't support backup. I guess this mod doesn't work with CyanogenMod ROMs.
azakosath said:
So, I deodexed my services.jar, replaced the original plus services.odex and the phone booted. Then I followed the tutorial for disabling signature verification and ended with a bootloop. Now I'm flashing back my rom, cause unfortunately CM recovery doesn't support backup. I guess this mod doesn't work with CyanogenMod ROMs.
Click to expand...
Click to collapse
It works with cm but only for deodexed, I I had to request my rom developer to build a deodexed build just to have these perks.. .....
azakosath said:
So, I deodexed my services.jar, replaced the original plus services.odex and the phone booted. Then I followed the tutorial for disabling signature verification and ended with a bootloop. Now I'm flashing back my rom, cause unfortunately CM recovery doesn't support backup. I guess this mod doesn't work with CyanogenMod ROMs.
Click to expand...
Click to collapse
did you successfully recompile the services.jar?
or you can paste the file in attachment,i can try to help you
mayank22 said:
It works with cm but only for deodexed, I I had to request my rom developer to build a deodexed build just to have these perks.. .....
Click to expand...
Click to collapse
I gave it a try and with the whole rom deoxed, still the same...
slsamg7112 said:
did you successfully recompile the services.jar?
or you can paste the file in attachment,i can try to help you
Click to expand...
Click to collapse
I don't think that is a problem with recompilation, the only thing bothers me is that after the line
Code:
.method static compareSignatures
in PackageManagerService.Smali I have
Code:
.registers
instead of
Code:
.locals
which was in all the guides I found.
The original method started like this
Code:
.method static compareSignatures([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
.registers 10
.param p0, "s1" # [Landroid/content/pm/Signature;
.param p1, "s2" # [Landroid/content/pm/Signature;
.prologue
const/4 v3, 0x1
const/4 v5, -0x3
const/4 v4, 0x0
.line 4115
if-nez p0, :cond_a
.line 4116
if-nez p1, :cond_8
:goto_7
return v3
.line 4118
:cond_8
const/4 v3, -0x1
goto :goto_7
And I edited to this
Code:
.method static compareSignatures([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
.registers 10
const/4 v0, 0x0
return v0
.end method
Anyway, I really appreciate your help.
I tried with LP and MM framework-res from stock build and it decompile well but not recompiled well , it broke after recompile .... without editing any file ...
Whats the prob. ? I also signed file with platform cert. of CM... but didn't get any luck
azakosath said:
I gave it a try and with the whole rom deoxed, still the same...
I don't think that is a problem with recompilation, the only thing bothers me is that after the line
Code:
.method static compareSignatures
in PackageManagerService.Smali I have
Code:
.registers
instead of
Code:
.locals
which was in all the guides I found.
The original method started like this
Code:
.method static compareSignatures([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
.registers 10
.param p0, "s1" # [Landroid/content/pm/Signature;
.param p1, "s2" # [Landroid/content/pm/Signature;
.prologue
const/4 v3, 0x1
const/4 v5, -0x3
const/4 v4, 0x0
.line 4115
if-nez p0, :cond_a
.line 4116
if-nez p1, :cond_8
:goto_7
return v3
.line 4118
:cond_8
const/4 v3, -0x1
goto :goto_7
And I edited to this
Code:
.method static compareSignatures([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
.registers 10
const/4 v0, 0x0
return v0
.end method
Anyway, I really appreciate your help.
Click to expand...
Click to collapse
Have you deodexed it with some tool?
That never worked for me.....
I used Superr's kitchen to deoxed the whole Rom.
azakosath said:
I used Superr's kitchen to deoxed the whole Rom.
Click to expand...
Click to collapse
Well my rom didn't even boot after deodexing it with any tool......
azakosath said:
I gave it a try and with the whole rom deoxed, still the same...
I don't think that is a problem with recompilation, the only thing bothers me is that after the line
Code:
.method static compareSignatures
in PackageManagerService.Smali I have
Code:
.registers
instead of
Code:
.locals
which was in all the guides I found.
The original method started like this
Code:
.method static compareSignatures([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
.registers 10
.param p0, "s1" # [Landroid/content/pm/Signature;
.param p1, "s2" # [Landroid/content/pm/Signature;
.prologue
const/4 v3, 0x1
const/4 v5, -0x3
const/4 v4, 0x0
.line 4115
if-nez p0, :cond_a
.line 4116
if-nez p1, :cond_8
:goto_7
return v3
.line 4118
:cond_8
const/4 v3, -0x1
goto :goto_7
And I edited to this
Code:
.method static compareSignatures([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
.registers 10
const/4 v0, 0x0
return v0
.end method
Anyway, I really appreciate your help.
Click to expand...
Click to collapse
then,i really have no idea about it cus it works on sony stock android MM
maybe CM has something different on it
azakosath said:
I gave it a try and with the whole rom deoxed, still the same...
I don't think that is a problem with recompilation, the only thing bothers me is that after the line
Code:
.method static compareSignatures
in PackageManagerService.Smali I have
Code:
.registers
instead of
Code:
.locals
which was in all the guides I found.
The original method started like this
Code:
.method static compareSignatures([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
.registers 10
.param p0, "s1" # [Landroid/content/pm/Signature;
.param p1, "s2" # [Landroid/content/pm/Signature;
.prologue
const/4 v3, 0x1
const/4 v5, -0x3
const/4 v4, 0x0
.line 4115
if-nez p0, :cond_a
.line 4116
if-nez p1, :cond_8
:goto_7
return v3
.line 4118
:cond_8
const/4 v3, -0x1
goto :goto_7
And I edited to this
Code:
.method static compareSignatures([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
.registers 10
const/4 v0, 0x0
return v0
.end method
Anyway, I really appreciate your help.
Click to expand...
Click to collapse
Is't Work for you after you enter your editing?
awadh730 said:
Is't Work for you after you enter your editing?
Click to expand...
Click to collapse
Nope, Superuser Mod never worked for me in CM13.0, or any other signature verification disabling method, or Lucky Patcher.
Sent from my WT19i using XDA Labs
azakosath said:
...
But, I want to change the name from "Music" to "Walkman", not only in launcher and drawer, but also, inside the app in the action bar. So, I assume that I have to edit two values in the res/values/srings.xml.
Code:
<string name="music_app_action_bar_title_txt">Music</string>
<string name="music_app_name_txt">Music</string>
...
Click to expand...
Click to collapse
Are you still having trouble doing this mod? If so I'm happy to give it a try if you want. If you can share your two framework files and the APK you're trying to mod, I can see if I can do this mod for you.
Ticklefish said:
Are you still having trouble doing this mod? If so I'm happy to give it a try if you want. If you can share your two framework files and the APK you're trying to mod, I can see if I can do this mod for you.
Click to expand...
Click to collapse
Thnx mate, but I gave up trying...
You're welcome to try though, the files are in the attachment of the third post and you can find the latest Sony Music apk at APKMirror.
Now I'm running CM14.1, but I think the outcome would be the same. The modded app will not install and if I try Superuser Mod, I'll end up with bootloops after first boot.
Cheers...
Edit: I guess the modded app should be working fine in a Sony stock ROM with signature verification disabled, the problem is with signature verification in CyanogenMod ROMs.
Sent from my WT19i using XDA Labs

Categories

Resources