[R&D] Deodexed ATT S4 APK's - AT&T Samsung Galaxy S 4 Android Development

Thanks to Dare{D}evil and the thread here : http://forum.xda-developers.com/showthread.php?t=2252434 for the system.tar
Deodexed APK for those who may find them useful:
MD5: e3c91b50a63ebe0898c441455eb9c710
Download HERE
Deodexed JAR
MD5: 02e76d995ea3096c21ff71f9d7a55bc1
Download HERE

cjk2010 said:
Thanks to Dare{D}evil and the thread here : http://forum.xda-developers.com/showthread.php?t=2252434 for the system.tar
Deodexed APK for those who may find them useful:
MD5: e3c91b50a63ebe0898c441455eb9c710
Download HERE
Deodexed JAR
MD5: 02e76d995ea3096c21ff71f9d7a55bc1
Download HERE
Click to expand...
Click to collapse
have u successfully pushed these to ur system?
if so method and i can get working on several mods that i already have done...

I would not push these to the system until there is a way to restore the phone. Any alterations to the system could result in a soft brick. Besides you would still have to remove the odex file for them to work properly. Thanks for posting the Deodexed app OP

XsMagical said:
I would not push these to the system until there is a way to restore the phone. Any alterations to the system could result in a soft brick. Besides you would still have to remove the odex file for them to work properly. Thanks for posting the Deodexed app OP
Click to expand...
Click to collapse
I am on my Note II until the S4 is delivered. So I have just basically installed Polaris Office 5 off the archive and checked for diffs on the app and also wthin the emulator.

cjk2010 said:
I am on my Note II until the S4 is delivered. So I have just basically installed Polaris Office 5 off the archive and checked for diffs on the app and also wthin the emulator.
Click to expand...
Click to collapse
yea had to restore from a brick yesterday i wont do that again ;D i suggest putting a big red DONT flash in OP lol or dont ADB push i guess

I was able to remove the Ongoing WiFi Connected Notification by modifying SecSettings.apk.
I used my deodexed system apks and have replaces a few system/apks without issue.
So far SecSettings and TetheringProvision.
I'm still working out a tethering mod but here's the mod info for the WiFi notification.
SECSETTINGS.APK
Remove Wifi Connected Notification:
com/android/settings/wifi/WifiStatusReceiver.smali
Add
Code:
return-void
at beginning of
Code:
.method private showConnectedNotification(Landroid/content/Context;ZLjava/lang/String;)V
for
Code:
.method private showConnectedNotification(Landroid/content/Context;ZLjava/lang/String;)V
.locals 8
.parameter "context"
.parameter "connected"
.parameter "ssid"
.prologue
const v7, 0x2df96b
const/4 v6, 0x0
.line 620
[COLOR=Red]return-void[/COLOR]
const-string v3, "WifiStatusReceiver"
Click to expand...
Click to collapse

no secmms.apk?

Nottach said:
I was able to remove the Ongoing WiFi Connected Notification by modifying SecSettings.apk.
I used my deodexed system apks and have replaces a few system/apks without issue.
So far SecSettings and TetheringProvision.
I'm still working out a tethering mod but here's the mod info for the WiFi notification.
Click to expand...
Click to collapse
also had this done with a different method in smali but this is simpler...

wrong thread

I'm going to take a whack at this so I can mess around with some smali edits to mini-theme my S4 (now that we have a stock restore option), but I'm a little ashamed to admit that I've never had to deal with an odexed system + "converting" the apps and framework to being deodexed.
Obviously I'd like to avoid having to restore the stock image if possible, so can anyone confirm the best method of doing this? Is it as easy as booting to download mode, using adb to delete all the current system apps and related .odex files, then pushing the deodexed apps to my device?
I did Google this to try and figure it out myself, but I couldn't find much more than "odexed vs deodexed" comparisons.

I believe this package is missing some files. Check out the deodexed system in my DevResources thread. Its good to go.
Also youwouldn't have to delete the original apks or jars since you will overwrite them. Just the odex files.

Nottach said:
I believe this package is missing some files. Check out the deodexed system in my DevResources thread. Its good to go.
Also youwouldn't have to delete the original apks or jars since you will overwrite them. Just the odex files.
Click to expand...
Click to collapse
Great - exactly what I needed to know.
Thanks!

nice job. thanks
Sent from my Deadly Venom SS 3.0 S4 ~ 20GB free cloud https://copy.com?r=vtiraF

Related

Overscroll Glow For Advanced User

Some of maybe wonder how to enable overscroll glow in your theme..
since we have many ROM, and only some of them have similar framework structure..
Before that, thanks to Jun Hong and fla.sh for their [KPH & KPN] overscroll glow for SGA
don't forget to thanks him
This guide is for advanced user who have an experience in decompiling and compiling files using apkmanager..
So there it is, how to add overscroll glow manually..
1. Download overscrollglow source from HERE. Thanks to dhiru1602 for the source..
2. Decompile your framework-res.apk and framework.jar
3. Navigate to framework.jar.out\smali\android\widget
4. Backup Your AbsListView.smali and open it with notepad++
5. Copy everything inside overscrollglow source.
6. Open your newly copied AbsListView.smali
7. search for .local v1, layoutInflater:Landroid/view/LayoutInflater;, shortly after that you'll find something like const v3, 0x1090070 replace this with your values from original AbsListView.smali
8. Navigate to framework-res/res/values and open public.xml
9. Back to AbsListView.smali search for .line 666 and 2 lines below that you'll find similar value.
9.1. Now go to your public.xml and search for
Code:
<public type="drawable" name="overscroll_edge" id="
and then you'll find some value like 0x0108023d replace the one in AbsListView.smali with this one. DOn't forget to remove the 0 before 1 (example if you have 0x0108023d then replace it as 0x108023d so the line would look like this :
Code:
.line 666
.local v2, res:Landroid/content/res/Resources;
const v3, 0x108023d
9.2. Back to AbsListView.smali and look for .line 667 and 2 line below that you'll find same thing, replace it with overscroll_glow id in your public.xml
so the line would look like this :
Code:
.line 667
.local v0, edge:Landroid/graphics/drawable/Drawable;
const v3, 0x108023e
10. Save the file, and recompile your framework.jar.out, and then go to /framework.jar.out/build/apk/ and copy classes.dex from there inside your original framework.jar (you can open it using 7zip).
11. To change overscroll glow color, you can use UOT (I think), and modify them manually inside /framework-res/res/drawable-mdpi/ overscroll_edge.png and overscroll_glow.png
Yep, that's all
Let me know if you have hard time doing this..
this is very nice tutorial for everyone.
follow it and there shouldnt be any problems
Nicee tutorial bro ...
Good job
I've posted overscroll glow for KPN and KPH
Sent from my GT-S5830 using XDA App
Aadigoku13 said:
Nicee tutorial bro ...
Good job
Click to expand...
Click to collapse
Jun Hong said:
this is very nice tutorial for everyone.
follow it and there shouldnt be any problems
Click to expand...
Click to collapse
Thanks you both
fla.sh said:
I've posted overscroll glow for KPN and KPH
Sent from my GT-S5830 using XDA App
Click to expand...
Click to collapse
yeah, but this is the manual tutorial, so everyone can use it in every rom..
or do you want to be credited too..?
seilent said:
Thanks you both
yeah, but this is the manual tutorial, so everyone can use it in every rom..
or do you want to be credited too..?
Click to expand...
Click to collapse
i think we should credit him... i made overscroll glow for kph but he made overscroll glow for both kpn and kph.
Jun Hong said:
i think we should credit him... i made overscroll glow for kph but he made overscroll glow for both kpn and kph.
Click to expand...
Click to collapse
Thanks. I'm not the "youngest" developer now
fla.sh said:
Thanks. I'm not the "youngest" developer now
Click to expand...
Click to collapse
well, ur just a few months older than me
which decomplier did u use ?
It's not possible to do with the Brazilian FW, it has nothing inside the framework.jar
FMAranda said:
It's not possible to do with the Brazilian FW, it has nothing inside the framework.jar
Click to expand...
Click to collapse
well try deodexing it with this guide: http://androidguyz.blogspot.com/2011/04/howto-deodex-rom.html
you need to be deodexed to get that overscroll glow
Thanks, now my ROM is deodexed and I was able to get the effect to work, but now, all the system apps are having force close, I can open dialer, messages or any other system app, only user app like Gmail and Facebook. What can I do?
I also lost root =/
I fixed by reflashing the ROM, I'll not try to enable the effect or dedoex my ROM again.
Deodexing firmware should be did when your rom still fresh
seilent said:
Deodexing firmware should be did when your rom still fresh
Click to expand...
Click to collapse
But what's the difference between a fresh installed dialer app and a week old one? I was having fcs with system apps and not user apps. We can't modify system app.
FMAranda said:
But what's the difference between a fresh installed dialer app and a week old one? I was having fcs with system apps and not user apps. We can't modify system app.
Click to expand...
Click to collapse
It means the permission isnt fixed properly... i also had this problem. but when i fixed the permission properly it worked without any force close
Did you fixed using ClockWorkMod or you set manually?
Thanks, you were right, I set the permissions to rw-r--r-- and now everything is working, again thanks!
This is the framework.jar to use with the Brazilian FW KP2, replace using Root Explorer and remember to set the permissions to rw-r--r--, the same permission of framework-res.apk.
Jun Hong said:
It means the permission isnt fixed properly... i also had this problem. but when i fixed the permission properly it worked without any force close
Click to expand...
Click to collapse
ah thanks for explanation, I havent faced such problem before
FMAranda said:
Did you fixed using ClockWorkMod or you set manually?
Thanks, you were right, I set the permissions to rw-r--r-- and now everything is working, again thanks!
This is the framework.jar to use with the Brazilian FW KP2, replace using Root Explorer and remember to set the permissions to rw-r--r--, the same permission of framework-res.apk.
Click to expand...
Click to collapse
Glad it works, will post it later the apk of modded framework.jar
Thanks Dude! But, It s not working with my friend's Ace...It just crashes into bootloop!
thanks ...
your tutorial so much easy to be followed
nice work sir

[HOWTO] Remove vibrate icon on 2.3.5

FOR DEODEXED ROM ONLY
2.3.5 has vibrate icon that many people found annoying
here is little guide that explains how to remove it.
1. Decompile SystemUI.apk with APK Manager
2. Open the file res/vaules/public.xml and search for the ID of stat_sys_ringer_vibrate
Code:
<public type="drawable" name="stat_sys_ringer_silent" id="0x7f020086" />
<public type="drawable" name="stat_sys_ringer_vibrate" id="[b]0x7f020087[/b]" />
<public type="drawable" name="stat_sys_roaming_cdma_0" id="0x7f020088" />
3. Edit the file smali/com/android/systemui/statusbar/policy/StatusBarPolicy.smali
Look for these lines and delete them:*
Code:
const-string v5, "volume"
const v6, [b]0x7f020087[/b]
invoke-virtual {v4, v5, v6, v7}, Landroid/app/StatusBarManager;->setIcon(Ljava/lang/String;II)V
Look for these lines and delete them:*
Code:
const-string v3, "volume"
const v3, [b]0x7f020087[/b]
invoke-virtual {v2, v6, v3, v4}, Landroid/app/StatusBarManager;->setIcon(Ljava/lang/String;II)V
* Pay attention! Replace the bolded text with the ID you found on step 2
the v5 and v3 can be other numbers its depend on your firmware
4. Compile the file and replace classes.dex from place-apk-here-for-modding/unsignedSystemUI.apk to your SystemUI.apk
5. Have fun ;]
Or just use the system UI apk with all the work done floating around somewhere on the forum probably in themes section .
jje
JJEgan said:
Or just use the system UI apk with all the work done floating around somewhere on the forum probably in themes section .
jje
Click to expand...
Click to collapse
Have you tried this way? I overwrote with a systemUI.apk that I took from a KH3 ROM, and I just got stuck in continual force closes...
Sent from my GT-I9100 using XDA App
I think he mean to take modded apk from KI3 and not from previous versions
Duh, you're right, that would probably be what he meant...
Sent from my GT-I9100 using XDA App
i dont really want to delete it can you be more specific. i want it to work the way it used to in older roms. where it only comes up when you have the phone in vibrate only mode.. ie silent but vibrate turned on...
thanks
What I find most funny is that with every new firmware, Samsung do something worse...
first it was remove the SMS theming, so we're stuck with the crap iPhone-esque one (no wonder Apple has a problem with you), then something else, and now this!
Just tried this on KI8 but it is still there... must have done something wrong?
ephumuris said:
Just tried this on KI8 but it is still there... must have done something wrong?
Click to expand...
Click to collapse
its working for me...
instead of const-string v5 its was const-string v1
be sure you delete it and update the classes.dex to your file
Can you post your file, please...
Sent from my GT-I9100 using XDA App
k1sr said:
Can you post your file, please...
Sent from my GT-I9100 using XDA App
Click to expand...
Click to collapse
here is my file:
http://www.multiupload.com/4LK7W8RNZY
tripc1 said:
its working for me...
instead of const-string v5 its was const-string v1
be sure you delete it and update the classes.dex to your file
Click to expand...
Click to collapse
Yeah I saw that it was v1 but still... I'll try again later if you say it does work. Thanks
Ephumuris
tripc1 said:
here is my file:
http://www.multiupload.com/4LK7W8RNZY
Click to expand...
Click to collapse
Hm... That left me with a vansihed statusbar on KI8 I took a backup though, so no problem.
I tried to follow your instructions in OP, but I fall off at step 3... Where the hell is that file located?
Edit: I'm on stock odexed firmware btw.
you need to use baksamli with SystemUI.odex
Sadly way too advanced for me, but thanks anyway
Alternatively you can use S-MOD - look in the themes section... There are other enhancements you might or might not want, but certainly gave me the fix I needed...
You could probably just extract SystemUI from the package and only use that, but I haven't tried it...
Sent from my GT-I9100 using XDA App
Somehow, after decompiling and editing the changes above, I get errors while recompiling it through APK manager.
Anyways, I found a "raw method" to fix this prob for the time being. Opened up the SystemUI.apk from my phone using WinRAR (no apk tools needed).
Browse to: res\drawable-hdpi\
Drag my png attachment into this location, overwriting the vibrate icon file.
Close winRAR (systemUI.apk) and force it back into the phone (I used RootExplorer for this).
This png file is simply a transparent file (looks black to you). You will never see this on your status bar ever again (regardless your vibrate is on or off).
One disadvantage is that the icon is physically on your status bar, so a blank space is always reserved.
Thanks tripc1 for the inspiration.
Cheers.
*edit* The image attached is invisible. just right-click and save image as
just wanted to verbally say thanks to OP for showing me where to look for this stuff. i knew it was in SystemUI but had no clue as to what was changed. smali files just have so many lines of code. cheers!
Little help plz
I followed your instructions, but the vibrate icon is still there. Here is my system.apk from Smabergs KI8, can you do it for me tripc1 ??
Hi, there!
It worked fine, thank you!
Best regards!

[HOWTO] Disable Noise Reduction...For good!

I'm one of those with the echo problem so I sent my phone to Samsung's service center, and all they did was re-install the stock ROM, and guess what, that didn't fix anything.
I searched a bit for a fix but couldn't fine a proper one, so I decided to do some digging of my own and found how to disable the Noise Reduction feature for good.
Assuming your ROM is deodexed, decompile Phone.apk and look for the PhoneUtils.smali file.
Inside it, search for:
Code:
.method static canEnableNoiseSuppression(Landroid/content/Context;)Z
Scroll down a bit till you find this part
Code:
move-result v3
if-eqz v3, :cond_2
.line 2367
const/4 v2, 0x1
Simply replace the last line above with const/4 v2, 0x0, and voila...No more annoying Noise Reduction or echo.
Notes:
- Make sure to delete the classes.dex in the keep folder during the recompiling process.
- Bear in mind that NR can't be re-enabled once the fix above is installed. You'll have to undo the changes if you want it back.
Thanks.
http://forum.xda-developers.com/showpost.php?p=19037756&postcount=1
The fix above works fine but it doesn't work for the first call after reboot, I wanted a set and forget solution.
Detailed Problem Description and Solutions
Thanks for another possible solution.
For detailed problem DESCRIPTION & possible SOLUTIONS, see THIS thread!
it's not working for me....
i'm running Villain Rom 3 ...
i decompiled and recompiled according to this:
http://forum.xda-developers.com/showpost.php?p=19048483&postcount=112
of course instead of part 5 there i did want you said here...
is it supposed to be ok?
I have tried it on VillianRom 3 as well as stock KJ2, worked fine on both.
If you have applied the fix in here:
http://forum.xda-developers.com/showthread.php?t=1332137
Undo all the changes. For some reason when I applied both fixes together, Noise Reduction came back.
first of all, thank you for the fast replay !
i took the original phone.apk from Villain Rom... so it doesn't contain the fix of drorsi.
i can't understand why this is not working for me
the instructions that i worked according to them are ok ? (without part 5 of course)
i'm using Apk_Manager_5.0.2 (is this version is fine?)
thanks again!
Before recompiling, make sure you delete the classes.dex in the keep folder.
If that doesn't work, I'm not sure what would be the problem to be honest. :/
i don't have resources.odex
i have the file resources.arsc
maybe this is part of the problem?
My bad, it's actually called classes.dex.
ok.
so delete classes.dex instead of resources.arsc ?
or delete both files?
i really appreciate your help!
No problem.
Doesn't matter if you delete or keep resources.arsc (That's for the res/XML files I assume, which we haven't touched). Just make sure classes.dex is gone.
thanks a lot!
its working!!
thanks again!
Hi,
I'm getting an force close after cancel the call, but the rest works fine.
First try was only delete the classes.dex and on the second i delete both of them classes.dex and resources.arsc, but still force close.
I'm using the CheckROM RevoHD™ V4 rom.
after you switch the Phone.apk its normal to have Force Close...
you need to reboot your phone and it will be ok
Thanks for the fast answer, i did already an reboot but same problem...
bazzag can you make a phone.apk works compatible with kk5? thanks
informatica182 said:
bazzag can you make a phone.apk works compatible with kk5? thanks
Click to expand...
Click to collapse
You have one here: http://forum.xda-developers.com/showpost.php?p=20287401&postcount=44
This fix seems to work ok. The only issue I have is that the fix only seems to work a few seconds into the call. For example, when I call my girlfriend, she can still hear herself talking for the first 1-3 seconds. After that amount of time the echoing stops. This only happens when I use a case (Otterbox)....Any ideas???
(btw, I am currently using CheckROM's REVO V4, not sure if this is an issue but I thought I might mention it anyway)
hello
sorry for noobish question
i have the same problem of echo and want to disable NR permanently
unfortunatly i dont know how to edit codes and cant use apk manager.
i have official stock odex 2.3.5 kj2 rom and have root access.
in system/app i have phone.apk and phone.odex
please some one can help me and tell detailed instrunction that how can i disable NR ?
i like my rom dont want to use deodex roms. is there any way ?
i realy appriciate you . its my bigest problem till i may be force to sell my phone!

[MOD][How To] - Yet Another Tether Hack (YATH for short) Odex or De-Odex

I did this because... Its DIFFERENT!
Ok, I got frustrated with not being able to re-compile framework-res.apk which is the most known method of hacking tether. So I was inspired by Nottach and his initial Tether Mod by hacking the provisioning check. So I decided to do my own little hack. Nottach hack sends the system looking to 127.0.0.1 for a response to tether, while the original un-modified version goes to various AT&T Entitlement check servers.
I took a different route. I just redirected to my own server and give everyone a Yes response! Simple enough, heh?
Dont laugh! It works!
This hack works for Hotspot and USB tether.
De-Odex version is attached.
Installation
I used similar install method as Nottach to apply this mod.
Download the attachment. Unzip it to your desktop.
Simply copy the "Mods" folder to your internal storage
Run the "Mod Me.bat" file after copying
It will copy the mod to the correct location, then reboot phone.
Enjoy free tether
If you are STOCK Rooted (In other words odex) and are not using the de-odex rom you can still use this hack simply by deleting TetherProvisioning.odex from /system/app/ then intsll my mod.
Download HERE
If you think this was a crafty use of my Web Server hit Thanks Please!​
How this mod works
Look for any http string in TetheringProvisionActivity$TetheringPlanCheckTask.smali and change it to "http://www.scottsroms.com/tether"
Example:
Code:
.line 1081
const-string v0, "http://entitlement.mobile.att.net/teth"
[B][COLOR="Red"]Change to[/COLOR][/B]
.line 1081
const-string v0, "http://scottsroms.com/tether"
There are a total of 6 http strings. You need to change them all.
On the server side is just one simple index.html with the word "Yes". Believe it or not that is all the AT&T servers respond with, Yes or No :silly:
You can see this yourself by going to www.scottsroms.com/tether
Also, this should for any AT&T device that uses the same method of entitlement check. Not so much this file but redirecting whichever apk that does the look-up on AT&T to my server. Im going to try it on my One X and see if it works. I will post results on that later.
Feel free to do with this mod as you choose. Give it away, put it in a ROM, sell it for profit... I dont care!
If you do make this mod for another device and use my server a simple thanks in the OP is all I ask.
Neat, but I still like my framework-res.apk approach
I think to recompile framework-res.apk, I had to change 6 or so styles to use keyguard_lockscreen_control_view or something (the key was adding _view to each of the six style files). I think that's right.
romracer said:
Neat, but I still like my framework-res.apk approach
I think to recompile framework-res.apk, I had to change 6 or so styles to use keyguard_lockscreen_control_view or something (the key was adding _view to each of the six style files). I think that's right.
Click to expand...
Click to collapse
You got to admit I got creative on this one, lol. Bored much :silly:
Ok, Im gonna mess with framework-res again later and look around. Mind if I PM you if need help?
romracer said:
Neat, but I still like my framework-res.apk approach
I think to recompile framework-res.apk, I had to change 6 or so styles to use keyguard_lockscreen_control_view or something (the key was adding _view to each of the six style files). I think that's right.
Click to expand...
Click to collapse
All you need to do is add a + to the style location. It's the same for all these recompile errors.
Sent from my SAMSUNG-SGH-I337 using Tapatalk 2
I thought this technique was really cool. Thanks for sharing!
shoman94 said:
All you need to do is add a * to the style location. It's the same for all these recompile errors.
Sent from my SAMSUNG-SGH-I337 using Tapatalk 2
Click to expand...
Click to collapse
What exactly did you do to get framework-res.apk to get things to recompile correctly?
xxhorseriderxxx said:
What exactly did you do to get framework-res.apk to get things to recompile correctly?
Click to expand...
Click to collapse
I'll explain with an example when I get home.
Edit: Posted here: http://forum.xda-developers.com/showthread.php?t=2279024
Sent from my SAMSUNG-SGH-I337 using Tapatalk 2
shoman94 said:
I'll explain with an example when I get home.
Sent from my SAMSUNG-SGH-I337 using Tapatalk 2
Click to expand...
Click to collapse
Thanks! Can you start a how to thread in either Dev or Q/A and link to it from here so we dont totally sidetrack this thread?
A lot of people, including myself would be very grateful!

[MOD][GUIDE] Disable Google Location consent dialog when enabling network location

Hi, i find so annoying having to always tap "agree" when enabling Network location checkbox (i automatically enable it with a task together with GPS, when i need it) so I managed to obtain the same result of this Xposed module http://forum.xda-developers.com/xposed/modules/mod-disable-google-location-consent-t2449926, modifing directly the involved file system/app/NetworkLocation.apk of my JB 4.2.2 AOKP based rom (as in AOKP, CM roms you can't install Xposed Framework). tested 3 days on my JB 4.2.2 and using the app "Location test" from Google Play store. I'm sharing my knowledge.
---Always: test it yourself, at your own risk. I don't know if there are memory leaks (don't know exactly what they are but read about them ) or something else like unpredictable crashes. I'm not a developer and i just make small changes to smali code usually---
Instructions:
I took some hints from the source code of this Module and made changes to NetworkLocation.apk (thanks to the authors)
I used the tool dex2jar (https://code.google.com/p/dex2jar/downloads/list) (i find it useful for editing system apks).
Extract it in a folder.
It contains some batch files, you drag and drop files/folders into them and they make their work.
You can also use Apktool, if you prefer (be sure that the file decompiles without errors).
First of all: open NetworkLocation.apk taken from your rom and extract classes.dex (use 7-zip)
Drag and drop classes.dex into d2j-dex2jar.bat, a .jar file will be created. Then drag and drop the created .jar file into d2j-jar2jasmin.bat, a new jasmin folder will be created. Now open this folder and go to com-google-android-location and find 2 files: ConfirmAlertActivity.j and NetworkLocationProvider.j
These jasmin (.j) files are similar to .smali files,
Open them as text and edit as below (be sure to find and edit the correct pieces of code)(edit only the green numbers) :
A) ConfirmAlertActivity.j
1)
(.....)
iconst_1 (instead of iconst_0)
putfield com/google/android/location/ConfirmAlertActivity/mAgreed Z
(.....)
[smali code for those who are using apktool:
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/google/android/location/ConfirmAlertActivity;->mAgreed:Z ]
2)
(.....)
L0:
iconst_1 (instead of iconst_0)
istore 3
goto L1
.limit locals 4
(.....)
[corresponding smali code:
.line 67
:cond_0
const/4 v0, 0x1 ]
B) NetworkLocationProvider.j
(....)
L0:
aload 0
iconst_1 (instead of iconst_0)
invokespecial com/google/android/location/NetworkLocationProvider/setUserConfirmedPreference(Z)V
return
(....)
[in smali:
.line 206
:cond_2
const/4 vX, 0x1 (where X is a number not used elesewhere in the method, for example: v10, v11, ...)
invoke-direct {p0, v6}, Lcom/google/android/location/NetworkLocationProvider;->setUserConfirmedPreference(Z)V ]
Finished!
Now do the inverse process: drag and drop the modified jasmin folder into d2j-jasmin2jar.bat, then the new .jar file into jar2dex.bat.
You will obtain a new classes-jar-blablabla-jasmin.dex file. Rename it classes.dex and use it to replace the classes.dex in the original NetworkLocation.apk (use 7-zip to open the.apk, Winrar might give problems).
Now you have your new NetworkLocation.apk without location consent dialog (automatically agreed). When you replace the old .apk, be sure that the new one has the same permissions of the old one.
I'm attaching the modified NetworkLocation.apk (version 1.1.10) of my android version: Rootbox JellyBean 4.2.2
These instructions won't work with Kitkat but should work at least with android 4.3.
Hope this is useful to someone that can't install this Xposed Module but want the same result!
Would you mind adding the .method headers where the 3 edits are located?
Or please provide stock apk so that I may diff the changes.
The code I am trying to adapt this to is for 4.4.2 and it is very different.
Tnx - TD
Nevermind, I figured it out. Here is the guide I did for 4.4.2 TW for the Galaxy S5.
http://forum.xda-developers.com/showthread.php?t=2798995
tdunham said:
Nevermind, I figured it out. Here is the guide I did for 4.4.2 TW for the Galaxy S5.
http://forum.xda-developers.com/showthread.php?t=2798995
Click to expand...
Click to collapse
:good: Sorry for the delay, happy you solved it for kitkat!
Any more info on how to do this on 4.4, the thread was deleted.
Sent from my One X using XDA Free mobile app
budbay said:
Any more info on how to do this on 4.4, the thread was deleted.
Click to expand...
Click to collapse
All of my 4.4.2 guide were moved here:
GALAXY S5 UNIFIED MODS THREAD - GUIDES & LINKS
Thanks for the info. I am trying to reapply to HTC one x but I don't think I have the GmsCore.apk. I guess I'll keep searching.
Edit- I actually found PrebuiltGmsCore.apk that might be the equivalent
Sent from my One X using XDA Free mobile app
Disable Google Location consent on Lollipop
tdunham said:
Nevermind, I figured it out. Here is the guide I did for 4.4.2 TW for the Galaxy S5.
Click to expand...
Click to collapse
Has there been any method for those of us on the Galaxy S 5 lollipop 5.0? I did download an Xposed module, but it didn't work since it was only for 4.2.2. Thanks!
Ed Janx
edjanx said:
Has there been any method for those of us on the Galaxy S 5 lollipop 5.0? I did download an Xposed module, but it didn't work since it was only for 4.2.2. Thanks!
Ed Janx
Click to expand...
Click to collapse
Not that I know of. You could try the method in my guides thread for kitkat but I haven't even bothered since then since I think its a google play services edit and that updates now and then which means you'd have to keep doing the hack everytime it takes an update.
tdunham said:
Nevermind, I figured it out. Here is the guide I did for 4.4.2 TW for the Galaxy S5.
http://forum.xda-developers.com/showthread.php?t=2798995
Click to expand...
Click to collapse
tdunham said:
Not that I know of. You could try the method in my guides thread for kitkat but I haven't even bothered since then since I think its a google play services edit and that updates now and then which means you'd have to keep doing the hack everytime it takes an update.
Click to expand...
Click to collapse
Thanks for the info tdunham, as it helps to understand the mechanics behind it. It sounds like this could be an ideal Xposed module, especially if it could detect the play services update, then 're-disable' the warning.
Ed Janx

Categories

Resources