[MOD][SMALI] Enable Native AT&T / Tmobile WiFi Hotspot[MOD][SMALI] - AT&T Samsung Galaxy S 5

Guide: Howto enable Native AT&T / Tmobile WiFi Hotspot​
Locate stock/unmoddified TetheringProvision.apk
This apk is located in /system/app folder from almost any Stock Samsung ROM
Or pull from your device.
connect your device to your PC
Make sure you have the appropriate USB drivers installed
make sure Android SDK Tools are installed
cd to the platform-tools folder in the SDK location
start a command prompt in the Platform-Tools folder
adb pull /system/app/TetheringProvision.apk
Using available tools to decompile and recompile the apk
I recommend either Virtuous Ten Studio or APK-Multi-Tool for this task as
either provide an easy to use interface for working with apk edits.
I'm not placing download links here for either just do a google search and
you will easily find either one.
Decompile the TetheringProvision.apk
Once you have the apk decompiled browse to the folder containing
all of the decompiled code (You will need to be in the smali folder).
locate and edit "TetheringProvisionActivity$TetheringPlanCheckTask.smali" (com/sec/tetheringprovision)
For AT&T WiFi Hotspot
search for "entitlement.mobile.att.net" and replace with "stacra.byethost7.com"
search for all instances of "http://entitlement.mobile.att.net/mhs1" and replace with "http://stacra.byethost7.com/tether/"
search for all instances of "http://entitlement.mobile.att.net/teth" and replace with "http://stacra.byethost7.com/tether/"
For Tmobile WiFi Hotspot
search for all instances of "http://selfhelp.geo.t-mobile.com/myaccountservice/selfhelp/hastetheringoption"
and replace with "http://stacra.byethost7.com/tether/"
See code snippet below for example (not complete code)
The lines you will be looking for are highlighted in blue.
Code:
.prologue
.line 1116
iput-object p1, p0, Lcom/sec/tetheringprovision/TetheringProvisionActivity$TetheringPlanCheckTask;->this$0:Lcom/sec/tetheringprovision/TetheringProvisionActivity;
invoke-direct {p0}, Landroid/os/AsyncTask;-><init>()V
.line 1117
const-string v0, [COLOR="Blue"]"http://selfhelp.geo.t-mobile.com/myaccountservice/selfhelp/hastetheringoption"[/COLOR]
iput-object v0, p0, Lcom/sec/tetheringprovision/TetheringProvisionActivity$TetheringPlanCheckTask;->TMobileTetheringPlanCheckURL:Ljava/lang/String;
.line 1118
const-string v0,[COLOR="Blue"] "http://entitlement.mobile.att.net/teth"[/COLOR]
iput-object v0, p0, Lcom/sec/tetheringprovision/TetheringProvisionActivity$TetheringPlanCheckTask;->ATTTetheringPlanCheckURL:Ljava/lang/String;
.line 1119
const-string v0,[COLOR="Blue"] "http://entitlement.mobile.att.net/mhs1"[/COLOR]
iput-object v0, p0, Lcom/sec/tetheringprovision/TetheringProvisionActivity$TetheringPlanCheckTask;->ATTMHSPlanCheckURL:Ljava
/lang/String;
...
...
...
Once you have located and replaced all the required lines in the smali save the file and recompile your apk following the instructions provided by whatever method you choose to work with
DO NOT SIGN THE APK LEAVE THE EXISTING SIGNATURE IN PLACE
Push the apk back to your device and reboot, test to verify working Hotspot.
Thanks
Thanks to @scrosler over at the LG forums for the original code of this patch
it has been changed and revised a few times since the original port by me over
in the HTC Forums.

reserved

Another Great Work Sir.... Awesome. Added Q16 on FAQ Thread. Thanks to my Favorite Dev @cstayton :good:
[SIZE=+1]Q16: How to Enable Native AT&T / T-Mobile WiFi Hotspot?[/SIZE]
Thanks to @cstayton [MOD][SMALI] Enable Native AT&T / Tmobile WiFi Hotspot[MOD][SMALI]​
☆Swyped From SFive SS Edition☆

Thank you for this!!!! Sweet. Great work man

Can u upload the modded tetherprovision.apk for the att version AND3 please
Im.askimg cause i dont have a pc to do modding anymore
Sent from my SAMSUNG-SM-G900A using XDA Premium 4 mobile app

carlospr21 said:
Can u upload the modded tetherprovision.apk for the att version AND3 please
Im.askimg cause i dont have a pc to do modding anymore
Sent from my SAMSUNG-SM-G900A using XDA Premium 4 mobile app
Click to expand...
Click to collapse
check post #2 Here

Look, I think you should improve the guide only works for at&t and tmobile.
I modified "TetheringProvision" in this guide and nothing, the same error: "Mobile data is not avaible or invalid SIM". Does not work with another carrier other than att or tmobile.
The only way that works for me is to replace the apk dirty "TetheringProvision" method Galaxy S4.
Corroborate if someone worked with different operator, for example, movistar latin america or other provider other country.

jm2k7 said:
Look, I think you should improve the guide only works for at&t and tmobile.
I modified "TetheringProvision" in this guide and nothing, the same error: "Mobile data is not avaible or invalid SIM". Does not work with another carrier other than att or tmobile.
The only way that works for me is to replace the apk dirty "TetheringProvision" method Galaxy S4.
Corroborate if someone worked with different operator, for example, movistar latin america or other provider other country.
Click to expand...
Click to collapse
obviously your carrier uses different methods to provision tethering, if you can tell me what methods they use i might be able to adjust for it
and P.S. if you can read you would see it says AT&T or Tmobile, i only offered as a hope that maybe other carriers used the same methods, so if you want me to look into it might try asking nicely.

cstayton said:
obviously your carrier uses different methods to provision tethering, if you can tell me what methods they use i might be able to adjust for it
and P.S. if you can read you would see it says AT&T or Tmobile, i only offered as a hope that maybe other carriers used the same methods, so if you want me to look into it might try asking nicely.
Click to expand...
Click to collapse
no problem, however the effort is appreciated.
do not know how could fix the code so that it works for another operator.
It should be something generic to accept any carrier.
Well for now the problem is solved just replace the apk: http://forum.xda-developers.com/att-galaxy-s5/themes-apps/mobile-hotsoit-carrier-t2801876
hello again. :fingers-crossed:

jm2k7 said:
no problem, however the effort is appreciated.
do not know how could fix the code so that it works for another operator.
It should be something generic to accept any carrier.
Well for now the problem is solved just replace the apk: http://forum.xda-developers.com/att-galaxy-s5/themes-apps/mobile-hotsoit-carrier-t2801876
hello again. :fingers-crossed:
Click to expand...
Click to collapse
i compared that apk to ours and it is not even close in code, not sure what kind of effect this will have in our devices as far as att and tmobile go
there where to many differences to sort through to determine what was needed. sorry

jm2k7 said:
no problem, however the effort is appreciated.
do not know how could fix the code so that it works for another operator.
It should be something generic to accept any carrier.
Well for now the problem is solved just replace the apk: http://forum.xda-developers.com/att-galaxy-s5/themes-apps/mobile-hotsoit-carrier-t2801876
hello again. :fingers-crossed:
Click to expand...
Click to collapse
I PM'd you a test patch let me know if it works please

Modified successful solution
THIS THREAD:
-----------------------------------------------------------------------
http://forum.xda-developers.com/att...t/mod-enable-native-att-tmobile-wifi-t2801442
MY PHONE:
-----------------------------------------------------------------------
Samsung Galaxy S5 from AT&T
Model number: SAMSUNG-SM-G900A
Android version: 4.4.2
Using Grand Fathered unlimited data plan
PREREQUISITES:
-----------------------------------------------------------------------
* Root Samsung Galaxy S5 using Towelroot.
- see MY PHONE above
* Download/Install "Virtuous Ten Studio" (VTS): a free tool used to decompile, edit, and recompile apk files.
* Use adb to pull TetheringProvision.apk from phone to PC
* Patch TetheringProvision.apk pulled from the phone using using the VTS tool
-- edited apk files per instructions in THIS THREAD.
-- for VTS settings use advanced, use original signature of apk, ...
* USING Root Explorer create /sdcard/myPatch1/
INSTALLATION PROCEDURE:
-----------------------------------------------------------------------
adb push myPatch1/TetheringProvision.apk /sdcard/myPatch1/
adb shell
su
mount -o rw,remount /system
cd /system/app
mv TetheringProvision.apk TetheringProvision.apk.bk20140719_stock_442
mv TetheringProvision.odex TetheringProvision.odex.bk20140719_stock_442
cd /sdcard/myPatch1
cp TetheringProvision.apk /system/app/TetheringProvision.apk
cd /system/app
cp TetheringProvision.apk TetheringProvision.apk.bk20140719_myPatch1
chmod 644 TetheringProvision*
ls -la | grep TetheringProvision.apk
mount -o ro,remount /system
reboot
NOTES:
-----------------------------------------------------------------------
* To make the above work, I added line
"mv TetheringProvision.odex TetheringProvision.odex.bk20140719_stock_442"
* The above procedure also worked using using a ALTERNATE PRE BUILT TetheringProvision.apk
downloaded from "TetheringProvision_Patch_V2.zip" link found at
http://forum.xda-developers.com/showthread.php?t=2795885
FYI: 7 zip was used to extract TetheringProvision.apk from downloaded zip - see *myPatch2 below
* Size of patched APK is almost 2x size of original; however, 7 Zip shows same contents are the same
ARTIFACTS(adb shell):
-----------------------------------------------------------------------
[email protected]:/system/app # ls -la | grep TetheringProvision
ls -la | grep TetheringProvision
-rw-r--r-- root root 475499 2014-07-19 02:26 TetheringProvision.apk
-rw-r--r-- root root 475499 2014-07-19 02:34 TetheringProvision.apk.bk20140719_myPatch1
-rw-r--r-- root root 432539 2014-07-19 01:50 TetheringProvision.apk.bk20140719_myPatch2
-rw-r--r-- root root 253215 2014-07-19 02:32 TetheringProvision.apk.bk20140719_stock_442
-rw-r--r-- root root 79528 2014-07-06 23:41 TetheringProvision.odex.bk20140719_stock_442
NOTES(artifact suffix):
-----------------------------------------------------------------------
* Original artifact backups suffixed with stock_442
* TetheringProvision.apk.bk20140719_myPatch1 - patched using VTS tool
* TetheringProvision.apk.bk20140719_myPatch2 - ALTERNATE PRE BUILT download

Why can't you just post the modified .apk for att and T-Mobile?

No modifications to my code without roper recognition
I'm normally a pretty easy going kind of guy, but sometimes I get a little testy when certain things happen, so I'm only going to say this once.
IF YOU USE MY WORK OR MODIFY IT IN ANY FASHION YOU MUST ASK MY PERMISSION FIRST, AND IN NO WAY OR FASHION ARE YOU ALLOWED TO REPOST YOUR MODIFICATIONS IN MY THREAD.
This includes creating patches for other systems, patches for same systems at request of other members etc.
If this happens again I will give proper warning and then I will close and delete the thread and that will be that.
This is an awesome community way beyond expectations however, I am a stickler for protocol, if you ask I'll will give permission 100% of the time as long as it is mine to give.

What is the vts tool? Thanks
Sent from my SM-G900T using XDA Free mobile app

xda23 said:
What is the vts tool? Thanks
Sent from my SM-G900T using XDA Free mobile app
Click to expand...
Click to collapse
Virtuous Ten Studio you can find it HERE

WhiteWidows said:
Why can't you just post the modified .apk for att and T-Mobile?
Click to expand...
Click to collapse
lol i learned how to build roms before decompiling apks as i find it easier.. i guess youre suppose to be smart enough to pull the apk, decompile the apk, edit the apk, recompile the apk and possibly sign it afterwards in order to use this MOD! Good Luck! Without a pre modded apk I will hafta wait until the weekend to ask for permission to include in my ATT ROM
Sent from my SM-G900V using XDA Premium HD app

elliwigy said:
lol i learned how to build roms before decompiling apks as i find it easier.. i guess youre suppose to be smart enough to pull the apk, decompile the apk, edit the apk, recompile the apk and possibly sign it afterwards in order to use this MOD! Good Luck! Without a pre modded apk I will hafta wait until the weekend to ask for permission to include in my ATT ROM
Sent from my SM-G900V using XDA Premium HD app
Click to expand...
Click to collapse
really? Seriously? This is probably one of the easiest mods EVER, and since this mod can be adopted accross carriers posting a "premodded apk" would be time consuming as i would have to have the specific apk from every carrier.
THIS IS a thread on HowTo not a thread on Here you go have it...
P.S. if your building a ROM to post in the forums might be a good idea not to ruffle the feathers of the DEVS whose work you want to include.

cstayton said:
really? Seriously? This is probably one of the easiest mods EVER, and since this mod can be adopted accross carriers posting a "premodded apk" would be time consuming as i would have to have the specific apk from every carrier.
THIS IS a thread on HowTo not a thread on Here you go have it...
P.S. if your building a ROM to post in the forums might be a good idea not to ruffle the feathers of the DEVS whose work you want to include.
Click to expand...
Click to collapse
I do not own an ATT s5.. I have a vzw s5.. searching online you can find similar MOD for tethering that has been around for some time with the same exact edits as your MOD. Either way I am sorry if I offended you. I just feel it would be easier for ATT owners to have a modded apk that they can use for their ATT roms considering this is the ATT thread.. What youre implying is no one can take your mod edit (most likely found from someone else) and make an apk for others to use who do not have the ability to do it themselves. Android is about being open source and sharing with the community not providing a mod that is easily found throughout these forums and saying no one else can use it or post an apk without your permission or knowledge of how to make the edits in the first place.
Again, i am glad for what you do but a mod that has been around for some time isnt something one can claim as theres just because theyre first to post in a certain thread.
And all i was saying is why not post a modded apk or let someone else just with the att apk for att users in this thread? Not to go and make one for every device.. but hey, i will not add your mod to any rom I work on.. I will find one of the other devs MOD and give them the cred.
edit: here is the same mod from over a year ago:
http://forum.xda-developers.com/showthread.php?t=2278259
Of course you used a different server address but the mod is the same. You only need to direct the mod to a server that enables the hotspot to be turned on.
Sent from my SM-G900V using XDA Premium HD app

elliwigy said:
I do not own an ATT s5.. I have a vzw s5.. searching online you can find similar MOD for tethering that has been around for some time with the same exact edits as your MOD. Either way I am sorry if I offended you. I just feel it would be easier for ATT owners to have a modded apk that they can use for their ATT roms considering this is the ATT thread.. What youre implying is no one can take your mod edit (most likely found from someone else) and make an apk for others to use who do not have the ability to do it themselves. Android is about being open source and sharing with the community not providing a mod that is easily found throughout these forums and saying no one else can use it or post an apk without your permission or knowledge of how to make the edits in the first place.
Again, i am glad for what you do but a mod that has been around for some time isnt something one can claim as theres just because theyre first to post in a certain thread.
And all i was saying is why not post a modded apk or let someone else just with the att apk for att users in this thread? Not to go and make one for every device.. but hey, i will not add your mod to any rom I work on.. I will find one of the other devs MOD and give them the cred.
edit: here is the same mod from over a year ago:
http://forum.xda-developers.com/showthread.php?t=2278259
Of course you used a different server address but the mod is the same. You only need to direct the mod to a server that enables the hotspot to be turned on.
Sent from my SM-G900V using XDA Premium HD app
Click to expand...
Click to collapse
read the OP, it says where the mod came from scrossler over in the LG forums,(which by the way is the original mod this is based on) the design of this mod is different than his and has more edits. so yes this is based on his mod but is my work. i highly doubt you found lots of mods with the exact same edits as the edits in my mod point to my specific servers and are handled differently than others.
I am not posting a modded apk nor will I this thread is a guide on how to do it yourself.
nuff said thread closed.
AND P.S. THIS MOD IS ONLY FOR AT&T AND TMOBILE, NOT FOR VERIZON.

Related

[DEV][HOW-TO] Enable CRT-OFF and CRT-ON in S3 Stock ROMs

Use everything here on your own risk and hit THANKS BUTTON if you like my work!
General Information:
As you propably know, till now there is no CRT-off MOD out for the S3. This is because only changing the value of config_animateScreenLights from true to false in framework-res.apk is not working anymore!
Together with Tungstwenty and rovo89 we faced out, that the problem are some missing commands in the /system/framework/services.jar
After comparing files from S2 and S3 Tungstwenty could help me to find the right position to edit files and with a litte bit of testing we found the right commands to enable the CRT-off-effect!
Click to expand...
Click to collapse
Tungstwenty said:
Let me clarify what is required in order to have the CRT effects working:
A patched library that properly (i.e. no flicker, etc.) provides the effects --> see attached flashable zip's or use Tweakbox
Code changes on the ROM in order to properly trigger the effect(s), which the library will then respond to those triggers --> look at the how-to or use Tweakbox
Item no. 1 is the one that I worked on and for which a fully working library was now provided.
The 2nd part can be done in 2 different ways - either patching the S3's ROM to properly enable the CRT-On and/or CRT-Off effects, OR do some hooking on the existing methods in the ROM and without changing that code, override the flags (i.e., the way Tweakbox does it).
It's this 2nd aspect that you guys need to address somehow. I worked with rovo89 on Tweakbox and not only does it bundle with the library, it also does the code changes in memory to make it work (topic no. 2).
But sphinx02 had already provided that, initially, after some discussion on what needed to be patched on the S3 ROM.
So, in order to have it working you have 2 ways:
Either use Tweakbox and make use of its configuration options to enable only CRT-Off, only CRT-On, or whatever you fancy.
Ask for someone (such as sphinx02) that has an S3, to keep up with existing ROMs (it will need to be changed separately for every one), and provide patched apk's on top of the existing ones so that it enables the effect triggers I mentioned. This will also need to take into account whether you prefer both effects on, only CRT-Off, etc.
I hope this is a bit more clear now, if not just let me know.
Click to expand...
Click to collapse
Click to expand...
Click to collapse
HOW-TO make the Code Changes:
This is what have to be done:
First of all decompile classes of services.jar (I won't provide any information to this, there are many tutorials out there how to use the smali tools!)
Than in com/android/server/PowerManagerService.smali we have to make the method nativeStartSurfaceFlingerAnimation(I)V callable from inner classes. To do that, we have to add the following after the last access$XXXX method:
Code:
.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
Than we have to add some commands to the file com/android/server/PowerManagerService$BrightnessState.smali to trigger the CRT-off-effect. For that add the red part between :cond_38 and iget-object v4, p0, Lcom/a.... like this (its around line 400 in code):
Code:
.line 2679
.restart local v3 #turningOff:Z
:cond_38
[COLOR="Red"] iget-object v4, p0, Lcom/android/server/PowerManagerService$BrightnessState;->this$0:Lcom/android/server/PowerManagerService;
const/16 v3, 0x11 # CRT-On and CRT-Off
#calls: Lcom/android/server/PowerManagerService;->nativeStartSurfaceFlingerAnimation(I)
invoke-static {v4, v3}, Lcom/android/server/PowerManagerService;->access$9000(Lcom/android/server/PowerManagerService;I)V[/COLOR]
iget-object v4, p0, Lcom/android/server/PowerManagerService$BrightnessState;->this$0:Lcom/android/server/PowerManagerService;
#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
If you want to have only CRT-OFF, you can replace
Code:
const/16 v3, 0x11 # CRT-On and CRT-Off
with this:
Code:
const/16 v3, 0x10 # CRT-Off only
Finally recompile the file, put it on your phone and you can see the CRT-Off effect on your S3!
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Avoid flickers, enable CRT-ON in lib-file:
Tungstwenty said:
Hi,
I worked on the porting of the patch to S3 and despite not having one myself, I'm pretty confident that the binary rovo89 and myself included in the latest Tweakbox should work on an S3.
Could any of you guys try it out?
What to do:
Install the newest Xposed framework from here. Open the Installer app, press Install/Update and reboot.
Install the Tweakbox mod from here. Open it and enable the CRT effects in the appropriate section. You can also enable any other tweaks you like, to check if they also work for the S3 (most of them should)
Go back to the Xposed Installer app, activate the Tweakbox mod (2nd tab), then in the libraries section select "libsurfaceflinger.so" and use the I9300 version. Tick the "Replace in test-mode only" option and back in the 1st tab do a soft / test reboot.
If everything goes well and the effects work as expected, you can go back to the installer app and untick "test-mode only" so the lib is overridden on every boot.
Note that except for the app_process system file which is installed by the framework (creating a backup file, and which should have no practical effects until any mods are enabled later), all other replacements such as the surfaceflinger lib do not change anything in /system but are rather performed by loading the files from an alternate path.
I'd appreciate your feed back especially for the CRT effect, but also the other existing Tweakbox options.
Thanks!
Click to expand...
Click to collapse
Or use in addition to the changes in services.jar the attached flashable zip's to overwrite libsurfaceflinger.so with the corrected one by Tungstwenty or me, XXAL for (XXALE8,XXALF2,XXALF6) and XXBL for (XXBLFB,XXBLG1,...)
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Notes:
- This is a development thread so please discuss only things that interest for further development
- First part of the development has been discussed in this Thread of S2-forums
- As on the S2 after the CRT-off-effect sometimes the screen flickers --> fixed by Tungstwenty
- For some reason, it works without setting config_animateScreenLights from true to false in framework-res.apk
- I hope Tungstwenty and rovo89 can help us again to edit the libsurfaceflinger.so to avoid that it flickers after the CRT-off-effect
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Testing the effect:
I have made the changes for ODEXED and DEODEXED XXALF2 ROM, if you want to test it have a look at my thread in the themeing/modding forums:
[MOD][ALF2/ALF6/BLFB][ODEX/DEODEX] 1% BatMod + ExtPowMen + CRT-OFF-ON or CRT-OFF-ONLY
Please post development-unrelated stuff there!!
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Credits:
Credits are going out to Tungstwenty and rovo89 for their excellent work on the S2 and for their help/advice on the S3! Excellent developers!
I hope you guys will help us again to fix the libs and perhaps enabling CRT-on-effect aswell!!!
Thank you for helping us again!
Click to expand...
Click to collapse
Click to expand...
Click to collapse
reserved for future use, just in case..
Nice one!
Sent from my GT-I9300 using xda premium
sphinx02 said:
- I hope Tungstwenty and rovo89 can help us again to edit the libsurfaceflinger.so to avoid that it flickers after the CRT-off-effect
Click to expand...
Click to collapse
The flicker issue and the lack of CRT-On effect are *exactly* the same issues that are present on the S2 lib as well.
It has been fixed there, but changing ARM code without the sources is a very tedious process and that requires a fair amount of testing till it eventually works.
Without having access to an S3 it's very hard to do this or even explain what needs to be done
On top of that, I have other pending stuff I need to work on so you shouldn't expect a fix very soon, sorry.
Tungstwenty said:
The flicker issue and the lack of CRT-On effect are *exactly* the same issues that are present on the S2 lib as well.
It has been fixed there, but changing ARM code without the sources is a very tedious process and that requires a fair amount of testing till it eventually works.
Without having access to an S3 it's very hard to do this or even explain what needs to be done
On top of that, I have other pending stuff I need to work on so you shouldn't expect a fix very soon, sorry.
Click to expand...
Click to collapse
Ok, I see the problematic.. But perhaps you can give me the original and the modified files from the s2 so I can compare the 2 files and perhaps see by myself what is changed! And as I never changed anything in .so files perhaps you can tell me additionally how you have edited them!
I'm willing to try around again and to play with bytecode or so on, but I think I need a little input from you!
You mentioned the tool objdump, so I think I have to become familiar with this tool, am I right?
sphinx02 said:
Ok, I see the problematic.. But perhaps you can give me the original and the modified files from the s2 so I can compare the 2 files and perhaps see by myself what is changed! And as I never changed anything in .so files perhaps you can tell me additionally how you have edited them!
I'm willing to try around again and to play with bytecode or so on, but I think I need a little input from you!
Click to expand...
Click to collapse
Ok then, I'll give you the starting pointers so you can have a look at what lies ahead
The S2 patched file with ON and OFF both working correctly, with no flickers, is in this post.
The S2 original file is attached here.
Do a binary compare to see the changed bytes and their offsets.
To have a look at the code, you need to have the NDK installed.
Run "objdump -x libsurfaceflinger.so" to see the decompiled ARM code.
And have fun trying to understand that
Tungstwenty said:
Ok then, I'll give you the starting pointers so you can have a look at what lies ahead
The S2 patched file with ON and OFF both working correctly, with no flickers, is in this post.
The S2 original file is attached here.
Do a binary compare to see the changed bytes and their offsets.
To have a look at the code, you need to have the NDK installed.
Run "objdump -x libsurfaceflinger.so" to see the decompiled ARM code.
And have fun trying to understand that
Click to expand...
Click to collapse
Ok, thank you for that.. I dont know at this point if I ever will have success with it but I will give it a try as I have the time to! Thank you very much again Tungstwenty for your tips/advice!
While trying around a little bit and thinking about the problem, I had the following idea:
Is it not possible to build an own, additional library file with the crt-off functions? Sources for that are out there! Just copy together and build an .so file. Than in the Java-Code we are including this new native code and simply calling the function from this new / additional lib-file? What do you think about that?
Looks like someone needs to do this again...
http://forum.xda-developers.com/showthread.php?t=1676378
The flicker bug is just a bit annoying
Edits
Lol sorry just seen the post a couple above mine. Hope you guys can fix it. Good luck.
Sent from my GT-I9300 using XDA Premium HD app
sphinx02 said:
While trying around a little bit and thinking about the problem, I had the following idea:
Is it not possible to build an own, additional library file with the crt-off functions? Sources for that are out there! Just copy together and build an .so file. Than in the Java-Code we are including this new native code and simply calling the function from this new / additional lib-file? What do you think about that?
Click to expand...
Click to collapse
I don't think that's a viable option. rovo already tried that with existing sources, I think, and the resulting library did not work on sammy's rom.
As for creating a separate library with only those functions, I also don't think that's possible as everything related with screen rendering (state, buffers, etc.) is on this lib and therefore a separate one would not have any of that info.
Hi,
I worked on the porting of the patch to S3 and despite not having one myself, I'm pretty confident that the binary rovo89 and myself included in the latest Tweakbox should work on an S3.
Could any of you guys try it out?
What to do:
Install the newest Xposed framework from here. Open the Installer app, press Install/Update and reboot.
Install the Tweakbox mod from here. Open it and enable the CRT effects in the appropriate section. You can also enable any other tweaks you like, to check if they also work for the S3 (most of them should)
Go back to the Xposed Installer app, activate the Tweakbox mod (2nd tab), then in the libraries section select "libsurfaceflinger.so" and use the I9300 version. Tick the "Replace in test-mode only" option and back in the 1st tab do a soft / test reboot.
If everything goes well and the effects work as expected, you can go back to the installer app and untick "test-mode only" so the lib is overridden on every boot.
Note that except for the app_process system file which is installed by the framework (creating a backup file, and which should have no practical effects until any mods are enabled later), all other replacements such as the surfaceflinger lib do not change anything in /system but are rather performed by loading the files from an alternate path.
I'd appreciate your feed back especially for the CRT effect, but also the other existing Tweakbox options.
Thanks!
Now I try, thank you..
And CRT on is possible?
failax said:
Now I try, thank you..
And CRT on is possible?
Click to expand...
Click to collapse
Yes. If everything is working as I expect, the new things vs your current situation are:
- No more flickering issues when CRT-Off
- Now also includes CRT-On
- Can detect device orientation and do a "vertical" CRT effect instead of horizontal
All these are optional and can be turned on/off in the Tweakbox preferences.
I tried.
CRT OFF has the same problem, CRT On is not visible, but I had to place also a jar file?
---------- Post added at 12:01 PM ---------- Previous post was at 11:50 AM ----------
I must add that I'm on checkromevo hd and I've already inserted a mod to see crt off, I don't know if this can help.
Other mods in tweakbox work.
failax said:
CRT OFF has the same problem, CRT On is not visible, but I had to place also a jar file?
Click to expand...
Click to collapse
Mmm, did you follow the steps I mentioned before, i.e. enabling the lib replacement in test mode and doing a soft reboot?
You should end up with a library on /vendor/lib (ramfs) and it should get loaded on startup instead of the one in /system/lib. Can you check with a file browser if the file under /vendor/lib does exist?
Also, could you open a terminal, run "set" and check if LD_LIBRARY_PATH is "/vendor/lib:/system/lib", as in S2?
Tungstwenty said:
Mmm, did you follow the steps I mentioned before, i.e. enabling the lib replacement in test mode and doing a soft reboot?
You should end up with a library on /vendor/lib (ramfs) and it should get loaded on startup instead of the one in /system/lib. Can you check with a file browser if the file under /vendor/lib does exist?
Also, could you open a terminal, run "set" and check if LD_LIBRARY_PATH is "/vendor/lib:/system/lib", as in S2?
Click to expand...
Click to collapse
I've rebooted totally, what do you mean for soft reboot?
Now I try to see those files..
EDIT:
under vendor/lib I see 2 things, I see a folder called DRM and inside libdrmwvplugin.so, and single file called libwvm.so.
Also, could you open a terminal, run "set" and check if LD_LIBRARY_PATH ?
Yes it's there.
failax said:
I've rebooted totally, what do you mean for soft reboot?
Now I try to see those files..
EDIT:
under vendor/lib I see 2 things, I see a folder called DRM and inside libdrmwvplugin.so, and single file called libwvm.so.
Click to expand...
Click to collapse
Can you open the Xposed Installer app and post a screenshot of each of the 3 tabs? "Framework", "Modules" and "Libraries" (in this last one, scroll to the bottom to display the "libsurfaceflinger.so" entry so it's visible in the picture)
Can you send me the modded libsurfaceflinger.so so I can test it directly?
Maybe a downloadlink via pm...
I have sphinx mod for CRT, so If I deselect CRT off on tweakbox, it is shown the same.
sphinx02 said:
Can you send me the modded libsurfaceflinger.so so I can test it directly?
Maybe a downloadlink via pm...
Click to expand...
Click to collapse
Would you mind just taking it from the Tweakbox package, and in the process also checking if the on-the-fly replacement is working for you?
---------- Post added at 12:03 PM ---------- Previous post was at 12:01 PM ----------
failax said:
I have sphinx mod for CRT, so If I deselect CRT off on tweakbox, it is shown the same.
Click to expand...
Click to collapse
Your lib settings are ok, so if you do a soft reboot (pressing the button on the app), it should come back with a libsurfaceflinger.so file in /vendor/lib. It's won't happen, though, if you do a "normal" reboot.
It isn't happening to you? Could it be that the soft reboot tries to load the new lib, fails, and immediately does a hard/normal reboot - did you notice anything that could point to this?

Device images for developers

I'm trying to resurrect alternative ROM development, CM9 with the target.
For analysis I want to ask advanced users to export images of their devices.
I am interested in ICS upgraded devices.
How to:
You have to be rooted.
Connect you device to ADB.
Export copy of your partitions by executing in adb terminal
Code:
su
dd if=/dev/block/mmcblk0p1 of=/mnt/sdcard/ROW-32-3G-Recovery-mmcblk0p1.img
dd if=/dev/block/mmcblk0p2 of=/mnt/sdcard/ROW-32-3G-Boot-mmcblk0p2.img
dd if=/dev/block/mmcblk0p3 of=/mnt/sdcard/ROW-32-3G-System-mmcblk0p3.img
You should name images with REGION-CAPACITY-NETWORK-xxxxxx, see my example in code.
After having images, post location, where devs can download it or PM me to find a way to transfer it.
I will make repository of all gathered versions and make it available to other developers.
Reserved for repository links
I'm assuming your looking for dumps of someone who isn't already on the 0.0.7.3 CM9 Alpha? I'm willing to help push development of an alternate roms as I just hate the lenovo changes to just stock android. Let me know if I can be of service
Of course dumps of Lenovo Roms. My target is CM9, but analysis of Lenovo way and ripping some binary blobs (like libs) will be helpfull.
We have to start from somewhere
jaba_cz said:
Of course dumps of Lenovo Roms. My target is CM9, but analysis of Lenovo way and ripping some binary blobs (like libs) will be helpfull.
We have to start from somewhere
Click to expand...
Click to collapse
US tablets welcomed?
Sent from my Galaxy Nexus using Tapatalk 2
Of course. US, WE, ROW and any other. This can help us deduce differences and make custom builds compatible with different devices.
jaba_cz said:
Of course. US, WE, ROW and any other. This can help us deduce differences and make custom builds compatible with different devices.
Click to expand...
Click to collapse
If you can send me the commands to do this I'm not sure if its same for row that you have on your op or I'm also going to give the nvflash a try
Sent from my Galaxy Nexus using Tapatalk 2
I also have working adb I was able to reboot using adb to confirm that's my extent on knowledge in adb lol
Sent from my Galaxy Nexus using Tapatalk 2
ker2gsr said:
If you can send me the commands
Click to expand...
Click to collapse
For command look into first post
In section "code"
Wouldn't this part of the code /ROW-32-3G-Recovery-mmcblk0p1.img different being that I got a US tablet
I only have a WiFi version
Sent from my Galaxy Nexus using Tapatalk 2
ker2gsr said:
Wouldn't this part of the code /ROW-32-3G-Recovery-mmcblk0p1.img different being that I got a US tablet
I only have a WiFi version
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
Than name it US-32-WIFI......
Or anything you like, just keep information, what device it was.
Sent from my ThinkPad Tablet using XDA Premium HD app
jaba_cz said:
Than name it US-32-WIFI......
Or anything you like, just keep information, what device it was.
Sent from my ThinkPad Tablet using XDA Premium HD app
Click to expand...
Click to collapse
Oh OK will try when I get home
Sent from my Galaxy Nexus using Tapatalk 2
may I ask? Isn't it a problem our device have ext4 FS instead of kind a imgfs(yaffs for example). Is it possible to disassemble system image then?
TPT_OTA3_US_ICS_rooted.zip is a Nandroid I made AFTER a factory reset and the OTA3 update but BEFORE I rebooted into ICS for the first time. CWR was lost after reboot. Root was preserved.
I'm not sure what use it will be... I don't have any tests to report. I was hoping that it might allow someone to get the official ICS update without losing CWR but I would feel terrible if someone bricked their TPT with this backup. If someone confirms it's usefulness I would be pleased.
Located at: http://everyrandom.com/files/download.php?file=216TPT_OTA3_US_ICS_rooted.zip
were do you want it sent?
jaba_cz said:
I'm trying to resurrect alternative ROM development, CM9 with the target.
For analysis I want to ask advanced users to export images of their devices.
I am interested in ICS upgraded devices.
How to:
You have to be rooted.
Connect you device to ADB.
Export copy of your partitions by executing in adb terminal
Code:
su
dd if=/dev/block/mmcblk0p1 of=/mnt/sdcard/ROW-32-3G-Recovery-mmcblk0p1.img
dd if=/dev/block/mmcblk0p2 of=/mnt/sdcard/ROW-32-3G-Boot-mmcblk0p2.img
dd if=/dev/block/mmcblk0p3 of=/mnt/sdcard/ROW-32-3G-System-mmcblk0p3.img
You should name images with REGION-CAPACITY-NETWORK-xxxxxx, see my example in code.
After having images, post location, where devs can download it or PM me to find a way to transfer it.
I will make repository of all gathered versions and make it available to other developers.
Click to expand...
Click to collapse
Ok, I guess I'll be the first So no matter how much you look via a file browser after mounting your TPT within your OS you will not find the dump files (at least on Windows, I didn't try my Linux box). Lenovo somehow filters out .img files or something. I tried renaming the file extension but I still wasn't able to see them.
So, I had to use adb to grab them. Simply:
Code:
adb pull /sdcard/US-16-WIFI-Recovery-mmcblk0p1.img
Anyways, here are my dumps for my tablet. The system dump is almost ~800MB so I'm gonna have to see where I can upload it. I might try Drive in a bit and I'll update the list.
US-16-WIFI-Recovery-mmcblk0p1.img
US-16-WIFI-Boot-mmcblk0p2.img
US-16-WIFI-System-mmcblk0p3.img
here is mine http://db.tt/VL2VLPzz boot. img_32_us
http://db.tt/FYFEILyf recovery. im_32_us
http://db.tt/jCn1WXaY system. img_32_us
rocking rooted ics ThinkPadTablet..... *****es
Happy to see that people are still working on cm9 for the tpt.
Unfortunately I don't have root. As there is currently bio iron to get root when running Lenovo ota3, is there a way to downgrade to 3.1 hc to use the old root method?
Sent from my GT-I9300 using xda premium

[GUIDE] UPDATED!!! [MOD] How to make Call Log Limit practically Unlimited

Well this Guide with all its spelling mistakes somehow made it to portal
Click to expand...
Click to collapse
For Developers: If you are planning to compile your ROM, and want to use this mod, then read This Post
Background Story:
I was missing the CyberShot Camera too much and found Google Camera has been ported to JB And I also wanted to try the Moded LifeLog app, which somehow was not working on my Pacman Rom.
These were the reasons I Decided to come back to JB Stock Base. I had a previous Nandroid Backup of Lovin's Z2 ROM for XV. I took all my Call-Log and SMS Backups and also took backup of some apps that I used. Then I restored the NAND Backup today.
after that I started restoring the apps+data. Everything was fine.
After few hours of using, As I always do, I took the periodic backup of my Call Logs again. That's when I noticed, the previous Logs were 700+ and now after making some calls, it came down to 500. after Some test, I found out, this is not problem of Backup software.
A little Google search revealed Android has a default call log limit set to 500 Calls.
I searched for Xposed Mod for this, found TrimNot. But it showed error. Most probably, it is only for KK. Then I thought why not MOD it myself?
That's how it all started...
The research & work procedure:
I first thought, OK, I need to find where the Calls are stored. After passing some time with Google, I found, the Logs are stored in a SQlite3 Database, in
Code:
/data/data/com.android.providers.contacts/databases/contacts2.db
There is no limit in this database storage. So, the limit must be in the code.
After another couple of hours, I found that Android checks if the contacts has reached 500 then removes the older. Searching with
Call Log Android
Click to expand...
Click to collapse
in android API reference, where I found some leads on my research.
"public class CallLog" which is under "android.provider.CallLog"
Something told me, to look for this class, in the actual source code. But that's almost 30 GB and I don't have time. from some prior Java knowledge I knew, all class have their own source file, with the same name, So the name would be "CallLog.java"
Now I searched Google, with it and found exactly what I was looking for. The search took me to a Git page android/platform_frameworks_base
And here I found this code.
Java:
private static void removeExpiredEntries(Context context) {
final ContentResolver resolver = context.getContentResolver();
resolver.delete(CONTENT_URI, "_id IN " +
"(SELECT _id FROM calls ORDER BY " + DEFAULT_SORT_ORDER
+ " LIMIT -1 OFFSET 500)", null);
}
The file is located in
Code:
platform_frameworks_base/core/java/android/provider/CallLog.java
and from the name I guessed, this should be inside framework files. Then I went into action. I first tried to de-compile the framework-res.apk file. I used Advanced APKTool by BDFreak
Using the windows search tool, I searched for "call log". I found nothing. Then I tried to de-compile "framework.jar". For this, I followed guide by Rizal Lovins - [Share Latest Apktool 4.2.2/Guide/Tutorial/] How to Decompile/Compile/Sign Apk/Jar
after the de-compiling was Done, I found there is a "android/provider" folder. Yes, it look similar to "platform_frameworks_base/core/java/android/provider/CallLog.java"
So, here should be the files. And I found Two files
Code:
CallLog$Calls.smali
CallLog.smali
I opened both with Notepad++,
CallLog.smali gave me noting.
But after a careful search, I found the exact query inside the ]CallLog$Calls.smali file.
I found this line -
Code:
const-string v2, "_id IN (SELECT _id FROM calls ORDER BY date DESC LIMIT -1 OFFSET 500)"
I just changed 500 to 100000 and I knew my task was done.
I then recompiled the framework.jar and took backup of my original framework.jar (took Nandroid backup ), replaced the original with my modified JAR file. Set the permission rw-r-r or 644. Then rebooted my phone.
Testing:
After the phone started, I made a call, then took backup of the Call Log with Call Log Backup Restore it showed 501.
This means my task is done.
Then I thought, why not share the whole experience today in XDA. So I started Writing this Guide.
F.A.Q.
Why I need more than 500 Call Log ?
- Well I work in Billing Department of a GSM Phone Exchange/Gateway. I periodically cross check my phone Call Logs with the Exchange SoftSwitch Data. Except for that, It's just fun to try something new.
Why this guide has no steps or required steps?
- Because, if anything I missed, those will be added later in the FAQ, from the comments.
Is this tested on any device?
-Yes,
My # Xperia V with LOVINS X™ Z2 ROM 9.2.A.2.5
# Xperia V NeoWave™ ROM
# Xperia TX OmniRom
# Xperia TX (unknown ROM )
# Xperia Z2 (unknown ROM )
# Xperia P Stock ROM
#Xperia P JB based Enigma v7.2 ROM
#CyanogenMod 11 M11 and M12
Can this work on my T/TX/TL/Z/Z1 etc. etc.
- Theoretically it should work on any Device and any ROM. But, practically, I don't know, why don't you try yourself and let me know
I'm newbie, can you provide me more simple guide?
- Well I'm a Newbie myself Just take a Nandroid Backup and start the process. What can go wrong? At most you'll have to restore the backup.
Go to every link and read those too. And Don't forget to Thank those people who provided the Tools and Guides.
Still If you don't understand my guide, read it twice, if it doesn't work read again.
Ha Ha Ha kidding. Here you go A Simple guide
Update:
If you are planning to compile your ROM, and want to use this mod, then read This Post
I switched to NeoWave™ ROM and just as usual applied my MOD. Restored 800+ Call Log from Backup. Now I find another limitation. It's in the Dialer. In the KitKat Call History, there is a Statistics option. Here it always shows
TOTAL: 500 Calls,....
Click to expand...
Click to collapse
So Now I'm digging the sources again to make the stats go higher.
Update: The issue was caused because, after sometimes (any call), the call history automatically turned to 500. Because the framework.jar was odexed and i guess, odex file had the old value set again. And for the NeoWave I used android MultiTool, it showed one error while compiling, Unsigned Short value exceeds, I didn't notice that. My bad. Now I have done the Mod again with Apktool (Lovins shared one) and removed the odex file and then Everything seems fine. Even the Statistics Shows, TOATAL: 1203 Calls, ....
Tested on OmniRom and works as expected. I've used an Xposed module before which does the same thing, but it's always nice to find new ways to implement things without having to use Xposed.
Antiga Prime said:
Tested on OmniRom and works as expected. I've used an Xposed module before which does the same thing, but it's always nice to find new ways to implement things without having to use Xposed.
Click to expand...
Click to collapse
Thanks for the Confirmation. I am updating the Tested Device & ROM. Your device is TX, Right? I guessed from the signeture
Antiga Prime said:
Tested on OmniRom and works as expected. I've used an Xposed module before which does the same thing, but it's always nice to find new ways to implement things without having to use Xposed.
Click to expand...
Click to collapse
Would you like to share the Xposed module you used before?
pollob666 said:
Thanks for the Confirmation. I am updating the Tasted Device & ROM. Your device is TX, Right? I guessed from the signeture
Click to expand...
Click to collapse
Yes, I have a TX.
tianzhisun said:
Would you like to share the Xposed module you used before?
Click to expand...
Click to collapse
It's the same one linked in the OP, except it's named TrimNot, not TimNot. I thought it might be a different one given that the one linked above didn't work for @pollob666, but I guess it's because I'm on a 4.4 ROM.
It's the same one linked in the OP, except it's named TrimNot, not TimNot. I thought it might be a different one given that the one linked above didn't work for @pollob666, but I guess it's because I'm on a 4.4 ROM.
Click to expand...
Click to collapse
Oops.. It was a Typo Yes, TrimNot works on KK but not on JB. that is why I needed to modify my Android Framework.
This is great and I will try it out.
But there is also another ridiculous limitation, that is the maximum of 20 alarms you can have in the clock
acb123 said:
This is great and I will try it out.
But there is also another ridiculous limitation, that is the maximum of 20 alarms you can have in the clock
Click to expand...
Click to collapse
for the clock there is this guide http://forum.xda-developers.com/showpost.php?p=53591001&postcount=6 give it a look
acb123 said:
This is great and I will try it out.
Click to expand...
Click to collapse
After trying, give us the update.
But there is also another ridiculous limitation, that is the maximum of 20 alarms you can have in the clock
Click to expand...
Click to collapse
I didn't notice that. Let's see what we can do about that
pollob666 said:
I didn't notice that. Let's see what we can do about that
Click to expand...
Click to collapse
give a look at the link in the post above yours... it's for z2 but it could work also for other version
Works fine on Xperia P running JB based Enigma v7.2
It works on stock based Xperia P. pollob666 small typo. How about renaming "tasted" to "tested"
usb2 said:
give a look at the link in the post above yours... it's for z2 but it could work also for other version
Click to expand...
Click to collapse
Yeah, saw that, going to try it tomorrow. Hopefully, here I can find some DB sources too.
prasadkumar013 said:
It works on stock based Xperia P. pollob666 small typo. How about renaming "tasted" to "tested"
Click to expand...
Click to collapse
Sorry about that, I guess I'll have to check the whole OP
Please make the steps simple for a newbie
Well, I was looking for this feature since Google invented Android!:good:
I was using MIUI because of they're giving unlimited Call log. Then some one invented TrimNot on Aug 15, 201, I came again to OzcanRom (My Fav). Trim not doesn't work at all.
My question is, Can you make this step more simple. I'm a new bie. :fingers-crossed:
pollob666 said:
Background Story:
I was missing the CyberShot Camera too much and found Google Camera has been ported to JB And I also wanted to try the Moded LifeLog app, which somehow was not working on my Pacman Rom.
These were the reasons I Decided to come back to JB Stock Base. I had a previous Nandroid Backup of Lovin's Z2 ROM for XV. I took all my Call-Log and SMS Backups and also took backup of some apps that I used. Then I restored the NAND Backup today.
after that I started restoring the apps+data. Everything was fine.
After few hours of using, As I always do, I took the periodic backup of my Call Logs again. That's when I noticed, the previous Logs were 700+ and now after making some calls, it came down to 500. after Some test, I found out, this is not problem of Backup software.
A little Google search revealed Android has a default call log limit set to 500 Calls.
I searched for Xposed Mod for this, found TrimNot. But it showed error. Most probably, it is only for KK. Then I thought why not MOD it myself?
That's how it all started...
The research :
I first thought, OK, I need to find where the Calls are stored. After passing some time with Google, I found, the Logs are stored in a SQlite3 Database, in
Code:
/data/data/com.android.providers.contacts/databases/contacts2.db
There is no limit in this database storage. So, the limit must be in the code.
After another couple of hours, I found that Android checks if the contacts has reached 500 then removes the older. Searching with
in android API reference, where I found some leads on my research.
"public class CallLog" which is under "android.provider.CallLog"
Something told me, to look for this class, in the actual source code. But that's almost 30 GB and I don't have time. from some prior Java knowledge I knew, all class have their own source file, with the same name, So the name would be "CallLog.java"
Now I searched Google, with it and found exactly what I was looking for. The search took me to a Git page android/platform_frameworks_base
And here I found this code.
Java:
private static void removeExpiredEntries(Context context) {
final ContentResolver resolver = context.getContentResolver();
resolver.delete(CONTENT_URI, "_id IN " +
"(SELECT _id FROM calls ORDER BY " + DEFAULT_SORT_ORDER
+ " LIMIT -1 OFFSET 500)", null);
}
The file is located in
Code:
platform_frameworks_base/core/java/android/provider/CallLog.java
and from the name I guessed, this should be inside framework files. Then I went into action. I first tried to de-compile the framework-res.apk file. I used Advanced APKTool by BDFreak
Using the windows search tool, I searched for "call log". I found nothing. Then I tried to de-compile "framework.jar". For this, I followed guide by Rizal Lovins - [Share Latest Apktool 4.2.2/Guide/Tutorial/] How to Decompile/Compile/Sign Apk/Jar
after the de-compiling was Done, I found there is a "android/provider" folder. Yes, it look similar to "platform_frameworks_base/core/java/android/provider/CallLog.java"
So, here should be the files. And I found Two files
Code:
CallLog$Calls.smali
CallLog.smali
I opened both with Notepad++,
CallLog.smali gave me noting.
But after a careful search, I found the exact query inside the ]CallLog$Calls.smali file.
I found this line -
Code:
const-string v2, "_id IN (SELECT _id FROM calls ORDER BY date DESC LIMIT -1 OFFSET 500)"
I just changed 500 to 100000 and I knew my task was done.
I then recompiled the framework.jar and took backup of my original framework.jar (took Nandroid backup ), replaced the original with my modified JAR file. Set the permission rw-r-r or 644. Then rebooted my phone.
Testing:
After the phone started, I made a call, then took backup of the Call Log with Call Log Backup Restore it showed 501.
This means my task is done.
Then I thought, why not share the whole experience today in XDA. So I started Writing this Guide.
F.A.Q.
Why I need more than 500 Call Log ?
- Well I work in Billing Department of a GSM Phone Exchange/Gateway. I periodically cross check my phone Call Logs with the Exchange SoftSwitch Data. Except for that, It's just fun to try something new.
Why this guide has no steps or required steps?
- Because, if anything I missed, those will be added later in the FAQ, from the comments.
Is this tested on any device?
-Yes,
My # Xperia V with LOVINS X™ Z2 ROM 9.2.A.2.5
# Xperia TX OmniRom
# Xperia TX (unknown ROM )
# Xperia Z2 (unknown ROM )
# Xperia P Stock ROM
Can this work on my T/TX/TL/Z/Z1 etc. etc.
- Theoretically it should work on any Device and any ROM. But, practically, I don't know, why don't you try yourself and let me know
Click to expand...
Click to collapse
---------- Post added at 11:08 AM ---------- Previous post was at 10:10 AM ----------
Can you please share the framework.jar file that edited and recompiled by you? If you can make a edited framework.jar for OzcanRom 4.2, I will be very thankful. I spent almost two nights on this and failed. Please help. :silly::fingers-crossed:
Antiga Prime said:
Tested on OmniRom and works as expected. I've used an Xposed module before which does the same thing, but
it's always nice to find new ways to implement things without having to use Xposed.
Click to expand...
Click to collapse
A Simpler guide
jamoen said:
My question is, Can you make this step more simple. I'm a new bie. :fingers-crossed:
Can you please share the framework.jar file that edited and recompiled by you? If you can make a edited framework.jar for OzcanRom 4.2, I will be very thankful. I spent almost two nights on this and failed. Please help. :silly::fingers-crossed:
Click to expand...
Click to collapse
No need to Quote the whole OP
My framework.jar won't work for you. We need to modify your ROM's framework.jar if you can provide me that file, I can MOD it for you.
But, I am giving the Simple steps. I would be very happy if you can do it yourself.
I am assuming you already have Notepad++ or Similar text editing tool and know how to pull files from /system
Step 1: Download APKTool of your choice. I used Advanced APKTool by BDFreak
Step 2: Decompile your framework.jar. For this, I followed guide by Rizal Lovins - [Share Latest Apktool 4.2.2/Guide/Tutorial/] How to Decompile/Compile/Sign Apk/Jar
Step 3: Open the CallLog.smali file and any other files that starts with CallLog ( like in my case CallLog$Calls.smali ) in Notepad++ or any other Text Editor.
Step 4: search for "SELECT _id FROM calls ORDER BY" or similar lines. You will find LIMIT -1 OFFSET 500 change 500 with any number you want.
Step 5: Save the modified file smali, and recompile the jar file.
Step 6: Just to be safe, take a NANDROID backup.
Step 7: Take a backup of the original framework.jar, delete it from system and push the modified framework.jar to System and change permission to rw-r-r or 644. Reboot.
Step 8: test
I couldn't find Provider folder. Please help.
I couldn't find Provider folder. Please help.
Failed! Please help
pollob666 said:
No need to Quote the whole OP
Click to expand...
Click to collapse
Thank you for the reply.
I could not find any folder called Provider. Searched all folders and failed to find a call entry.
I took the framework.jar from system folder. Any wrong?
Attached my framework.jar file. Please help me.
Found the string in framework2.jar and edited. Success!!
Please help me to push it again...
Can I use esfile explorer?
---------- Post added at 02:31 PM ---------- Previous post was at 02:09 PM ----------
jamoen said:
Found the string in framework2.jar and edited. Success!!
Please help me to push it again...
Can I use esfile explorer?
Click to expand...
Click to collapse
Unfortunately.. The method failed. Going back to MIUI in tears..
jamoen said:
Found the string in framework2.jar and edited. Success!!
Please help me to push it again...
Can I use esfile explorer?
---------- Post added at 02:31 PM ---------- Previous post was at 02:09 PM ----------
Unfortunately.. The method failed. Going back to MIUI in tears..
Click to expand...
Click to collapse
WOW, you really did it. Sorry I was in training my juniors at office, didn't reply earlier.
You can use es explorer, or if you have adb, then you can use some shell commands. I can give you the commands, if you haven't done it already.
It should work. Let me check and mod a it for you.
Edit: Sorry, I don't have the framework2.jar. ant the ROM is too big for downloading now at office. But for Samsung device, I guess the re-compile process needs a bit working. you need to recompile the file, then open it in 7zip or WinRAR replace the AndroidManifest file with the file of the original, (then sign it then zipalign it not sure for jar file though). Then push it to the system.
pollob666 said:
WOW, you really did it. Sorry I was in training my juniors at office, didn't reply earlier.
You can use es explorer, or if you have adb, then you can use some shell commands. I can give you the commands, if you haven't done it already.
It should work. Let me check and mod a it for you.
Edit: Sorry, I don't have the framework2.jar. ant the ROM is too big for downloading now at office. But for Samsung device, I guess the re-compile process needs a bit working. you need to recompile the file, then open it in 7zip or WinRAR replace the AndroidManifest file with the file of the original, (then sign it then zipalign it not sure for jar file though). Then push it to the system.
Click to expand...
Click to collapse
I double checked it. Again extracted the framework.jar and decompliled it.The string of 100000 is there. But this thing is not working. I don't know why.
Can I share you the framework2.jar with you?
jamoen said:
I double checked it. Again extracted the framework.jar and decompliled it.The string of 100000 is there. But this thing is not working. I don't know why.
Can I share you the framework2.jar with you?
Click to expand...
Click to collapse
I will modify it and upload it for you. But I guess I will need the framework-res.apk with it. if there is any. But, I'm going home now, I'll update you by 11pm.

APK Manager / Deodex / Odex Manager

So, I have put together an actual Windows program for a lot of Rom Builders. I used to build a lot of Roms, but really don't do much of it any longer. What I know though, is the tool I built is extremely easy to use and very effective. I thought some of you would very much enjoy this tool. It will also allow a lot more people to start theming and tinkering It has built in Draw9 support and will automatically detect what versions of Java you have and allow you to select which one you would like to use.
So I am going to post it here for now in the Note 4 forum for a few of you to install it and check it out. It will support many phones, if not all. All you have to do is make sure you have some type of Java program installed on your PC. The rest is all self-contained and updated.
The first thing you are going to need to do after install is to go into setup and setup the paths accordingly, to your liking. Once this program is setup it runs great. I have built it with threading, so it won't lag as you are working along.
I will post some screen shots for you all to check out.. I would use these as examples of what your environment should look like. Also, make sure you pull the system, from the adb options tab, from your phone as the first step before doing anything else, it will use the framework files as needed to work. This path is also where your deodex setup paths of originals should point to, the pulled files for app and framework.
Enjoy !!!
Link: https://drive.google.com/file/d/0B31X8bH_5Gl-eUtJODBhcUdPRDg/view?usp=sharing
Update: ** Updated file to fix a small issue.. ** EST: 10:24 p.m.
Thank you for this! Going to take a look into it here tonight!
Updated OP..
Made some modifications to the build..
Very Cool, thank you for creating this tool, I'm going to give it a try tonight after a few Christmas parties this evening.
Sounds like a useful tools. I will check it out when my retail phone gets rooted.
za33ck said:
Very Cool, thank you for creating this tool, I'm going to give it a try tonight after a few Christmas parties this evening.
Click to expand...
Click to collapse
Oh great, it will be even better after a few drinks in you..
Can you post source code as well ?
This looks awesome, so what do we use? Do we take a Odin flash able ROM....I don't understand how to use it?
Sent from my Definitive v1.4 Note 4 using Tapatalk
bdorr1105 said:
This looks awesome, so what do we use? Do we take a Odin flash able ROM....I don't understand how to use it?
Sent from my Definitive v1.4 Note 4 using Tapatalk
Click to expand...
Click to collapse
You just plug your phone in and wait for it to detect it.
From there you need to setup the program, look at the screen shots.
gatesjunior said:
You just plug your phone in and wait for it to detect it.
From there you need to setup the program, look at the screen shots.
Click to expand...
Click to collapse
So basically whatever mods you currently have you then make flushable?
I guess what I am asking is should we Odin the stock base that's odex, pull the folders with your program, deodex it and make whatever mods?
Biggest question, how do we make it flushable, I am extremely new to this
Sent from my Definitive v1.4 Note 4 using Tapatalk
Normal
Normal ? when selecting device? See attached Picture
bdorr1105 said:
So basically whatever mods you currently have you then make flushable?
I guess what I am asking is should we Odin the stock base that's odex, pull the folders with your program, deodex it and make whatever mods?
Biggest question, how do we make it flushable, I am extremely new to this
Sent from my Definitive v1.4 Note 4 using Tapatalk
Click to expand...
Click to collapse
So, I am assuming, you mean flashable. Look around for update.zip files associated with Android. You need to make sure you are rooted / dev edition in order to even pursue this. If you are then do some research on update.zip files and understanding our partition table for our phone or your phone, etc..
Wifi tethering unlock
I have my Note 4 DE ordered/shipped by Samsung. I have never used this program before, how easy is it to do your own Native WiFi Hotspot modification? Or is there any step by step I have missed somewhere? Basically, I am wanting to root, TWRP and then change a few things on my own.
Thanks!
gatesjunior said:
So, I have put together an actual Windows program for a lot of Rom Builders. I used to build a lot of Roms, but really don't do much of it any longer. What I know though, is the tool I built is extremely easy to use and very effective. I thought some of you would very much enjoy this tool. It will also allow a lot more people to start theming and tinkering It has built in Draw9 support and will automatically detect what versions of Java you have and allow you to select which one you would like to use.
So I am going to post it here for now in the Note 4 forum for a few of you to install it and check it out. It will support many phones, if not all. All you have to do is make sure you have some type of Java program installed on your PC. The rest is all self-contained and updated.
The first thing you are going to need to do after install is to go into setup and setup the paths accordingly, to your liking. Once this program is setup it runs great. I have built it with threading, so it won't lag as you are working along.
I will post some screen shots for you all to check out.. I would use these as examples of what your environment should look like. Also, make sure you pull the system, from the adb options tab, from your phone as the first step before doing anything else, it will use the framework files as needed to work. This path is also where your deodex setup paths of originals should point to, the pulled files for app and framework.
Enjoy !!!
Link: https://drive.google.com/file/d/0B31X8bH_5Gl-eUtJODBhcUdPRDg/view?usp=sharing
Update: ** Updated file to fix a small issue.. ** EST: 10:24 p.m.
Click to expand...
Click to collapse
Nice,
I just pulled my /system/
Thanks!!!
radionerd said:
Nice,
I just pulled my /system/
Thanks!!!
Click to expand...
Click to collapse
Great..

[MOD] Verizon Tether MOD for [N910VVRU1BOAF] [24 APR 15]

Enable Native Tether for Verizon DE on [N910VVRU1BOAF]
Found it here from ----> @scrosler
Originally came from here -----> @jovy23
Instructions:
Decompile framework-res
Open /res/values/arrays.xml
Find this:
Code:
<string-array name="config_mobile_hotspot_provision_app">
<item>com.sec.tetheringprovision</item>
<item>com.sec.tetheringprovision.TetheringProvisionActivity</item>
</string-array>
Change it to this:
Code:
<array name="config_mobile_hotspot_provision_app" />
That unlocks tether by telling framework to not look for a check.
Now recompile and pat yourself on the back because it literally is that easy. I will post a flashable zip if you are not feeling adventurous enough to do it yourself. Please hit thanks if I helped in anyway.
Download:
Tether MOD
Tether MOD DEODEXED
Thanks to:
@jovy23 - Orginal author of the MOD
@scrosler - Making a clear OP and pointing at Original Thread - Sharing
@Misterxtc - For letting me use his ROM and pulling the framework to deodex
Thank you!!!
bdorr1105 said:
Enable Native Tether for Verizon DE on [N910VVRU1BOAF]
Found it here from ----> @scrosler
Originally came from here -----> @jovy23
Instructions:
Decompile framework-res
Open /res/values/arrays.xml
Find this:
Code:
<string-array name="config_mobile_hotspot_provision_app">
<item>com.sec.tetheringprovision</item>
<item>com.sec.tetheringprovision.TetheringProvisionActivity</item>
</string-array>
Change it to this:
Code:
<array name="config_mobile_hotspot_provision_app" />
That unlocks tether by telling framework to not look for a check.
Now recompile and pat yourself on the back because it literally is that easy. I will post a flashable zip if you are not feeling adventurous enough to do it yourself. Please hit thanks if I helped in anyway.
Download:
Tether MOD
Tether MOD DEODEXED
Thanks to:
@jovy23 - Orginal author of the MOD
@scrosler - Making a clear OP and pointing at Original Thread - Sharing
@Misterxtc - For letting me use his ROM and pulling the framework to deodex
Click to expand...
Click to collapse
Excellent!!!
---------- Post added at 03:57 AM ---------- Previous post was at 03:45 AM ----------
bdorr1105 said:
Enable Native Tether for Verizon DE on [N910VVRU1BOAF]
Found it here from ----> @scrosler
Originally came from here -----> @jovy23
Instructions:
Decompile framework-res
Open /res/values/arrays.xml
Find this:
Code:
<string-array name="config_mobile_hotspot_provision_app">
<item>com.sec.tetheringprovision</item>
<item>com.sec.tetheringprovision.TetheringProvisionActivity</item>
</string-array>
Change it to this:
Code:
<array name="config_mobile_hotspot_provision_app" />
That unlocks tether by telling framework to not look for a check.
Now recompile and pat yourself on the back because it literally is that easy. I will post a flashable zip if you are not feeling adventurous enough to do it yourself. Please hit thanks if I helped in anyway.
Download:
Tether MOD
Tether MOD DEODEXED
Thanks to:
@jovy23 - Orginal author of the MOD
@scrosler - Making a clear OP and pointing at Original Thread - Sharing
@Misterxtc - For letting me use his ROM and pulling the framework to deodex
Click to expand...
Click to collapse
a while back, about a week or so ago, someone had a file which was supposed to include the 4 (or 5) way re-boot menu in the de-odexed rom. I think the file was android.policy.jar. Problem was, it did not work, as it was de-odexed. I am running the odexed (normal) version. Is there a way to get a flashable 5 way reboot menu that works in the confines of a stock (odexed) version???
---------- Post added at 04:04 AM ---------- Previous post was at 03:57 AM ----------
bdorr1105 said:
Enable Native Tether for Verizon DE on [N910VVRU1BOAF]
Found it here from ----> @scrosler
Originally came from here -----> @jovy23
Instructions:
Decompile framework-res
Open /res/values/arrays.xml
Find this:
Code:
<string-array name="config_mobile_hotspot_provision_app">
<item>com.sec.tetheringprovision</item>
<item>com.sec.tetheringprovision.TetheringProvisionActivity</item>
</string-array>
Change it to this:
Code:
<array name="config_mobile_hotspot_provision_app" />
That unlocks tether by telling framework to not look for a check.
Now recompile and pat yourself on the back because it literally is that easy. I will post a flashable zip if you are not feeling adventurous enough to do it yourself. Please hit thanks if I helped in anyway.
Download:
Tether MOD
Tether MOD DEODEXED
Thanks to:
@jovy23 - Orginal author of the MOD
@scrosler - Making a clear OP and pointing at Original Thread - Sharing
@Misterxtc - For letting me use his ROM and pulling the framework to deodex
Click to expand...
Click to collapse
Do you realize - you just fixed a bug in another product with this flashable native tether "hotfix"? - there is an application, called power toggles, you may be familiar with it. Ever since Lollipop, the hotspot toggle was not working - it gets stuck on stupid, and hangs, won't turn on the hotspot - or off for that matter. flashing your native hotspot provision hotfix now allows the Power Toggle hotspot toggle to work, like it did in KK. Excellent -
I am sending the developer the link to this thread... nice...
anticloud said:
Excellent!!!
---------- Post added at 03:57 AM ---------- Previous post was at 03:45 AM ----------
a while back, about a week or so ago, someone had a file which was supposed to include the 4 (or 5) way re-boot menu in the de-odexed rom. I think the file was android.policy.jar. Problem was, it did not work, as it was de-odexed. I am running the odexed (normal) version. Is there a way to get a flashable 5 way reboot menu that works in the confines of a stock (odexed) version???
---------- Post added at 04:04 AM ---------- Previous post was at 03:57 AM ----------
Do you realize - you just fixed a bug in another product with this flashable native tether "hotfix"? - there is an application, called power toggles, you may be familiar with it. Ever since Lollipop, the hotspot toggle was not working - it gets stuck on stupid, and hangs, won't turn on the hotspot - or off for that matter. flashing your native hotspot provision hotfix now allows the Power Toggle hotspot toggle to work, like it did in KK. Excellent -
I am sending the developer the link to this thread... nice...
Click to expand...
Click to collapse
The toggle probably was not working because of the tether provision and native tethering will not work on unlimited plans. Plus it bypasses any provision check probably why the toggle works now
anticloud said:
Excellent!!!
---------- Post added at 03:57 AM ---------- Previous post was at 03:45 AM ----------
a while back, about a week or so ago, someone had a file which was supposed to include the 4 (or 5) way re-boot menu in the de-odexed rom. I think the file was android.policy.jar. Problem was, it did not work, as it was de-odexed. I am running the odexed (normal) version. Is there a way to get a flashable 5 way reboot menu that works in the confines of a stock (odexed) version???
---------- Post added at 04:04 AM ---------- Previous post was at 03:57 AM ----------
Do you realize - you just fixed a bug in another product with this flashable native tether "hotfix"? - there is an application, called power toggles, you may be familiar with it. Ever since Lollipop, the hotspot toggle was not working - it gets stuck on stupid, and hangs, won't turn on the hotspot - or off for that matter. flashing your native hotspot provision hotfix now allows the Power Toggle hotspot toggle to work, like it did in KK. Excellent -
I am sending the developer the link to this thread... nice...
Click to expand...
Click to collapse
I can try and tinker with it and implement it if you are willing to test it out
more than willing...
anticloud said:
more than willing...
Click to expand...
Click to collapse
Sorry, I have to deodex it to be able to get the smali files, can't really figure out how to odex it again, I am looking up a way to reodex a deodexed jar file
yup...
bdorr1105 said:
Sorry, I have to deodex it to be able to get the smali files, can't really figure out how to odex it again, I am looking up a way to reodex a deodexed jar file
Click to expand...
Click to collapse
that seems to be the challenge... it's ok, unimportant.. nice to have, but unimportant... someone suggested I move to the deodexed version anyway...
Stupid question
I have the Verizon Note 4 and I am wondering how I can install this mod. Since there is no root, is it possible for me to apply this mod?
Thank You
Never mind. I Just noticed it is only for developer edition.
imrutledge said:
I have the Verizon Note 4 and I am wondering how I can install this mod. Since there is no root, is it possible for me to apply this mod?
Thank You
Never mind. I Just noticed it is only for developer edition.
Click to expand...
Click to collapse
It would work for the retail note but you Def need root it's impossible any other way
Worked Great
Worked great flashing the Odexed version from TWRP on my natively BOAF Dev Edition. Thanks.
ajh16 said:
Worked great flashing the Odexed version from TWRP on my natively BOAF Dev Edition. Thanks.
Click to expand...
Click to collapse
Good glad yw
How would I go about using this mod on the Verizon note 4 retail after using kingroot to get root?
Also is there a mod I can use to open control of the sdcard for write, delete, etc on kitkat after using kingroot for rooting retail?
There is a SD card fix in the marketplace... You can manually push the files in the zip file to your phone and set permissions to the file.
Rolled the dice and installed this on the new OF1 update. Works like a charm.
Not sure if I will run into any issues down the road from changes that may have been made in the framework? Any way someone can post up a flashable OF1 version of this just to be safe?
blubyu87gt said:
Rolled the dice and installed this on the new OF1 update. Works like a charm.
Not sure if I will run into any issues down the road from changes that may have been made in the framework? Any way someone can post up a flashable OF1 version of this just to be safe?
Click to expand...
Click to collapse
Sure can, I prefer the booting into TWRP and pushing via ADB but for those that prefer a flashable ZIP I've put one together. Didn't test it but shouldn't be an issue, also have originals for going back.
adb pull /system/framework/framework-res.apk
adb shell
su
mount -o remount rw /system
adb push framework-res.apk /system/framework/
Click to expand...
Click to collapse
Is there an updated version of this for BOG5 yet (or plans for one)? If not, I may attempt one myself a bit later. Process doesn't look too hard.
Download links not working, Can I get a copy?
bdorr1105 said:
Enable Native Tether for Verizon DE on [N910VVRU1BOAF]
Found it here from ----> @scrosler
Originally came from here -----> @jovy23
Instructions:
Decompile framework-res
Open /res/values/arrays.xml
Find this:
Code:
<string-array name="config_mobile_hotspot_provision_app">
<item>com.sec.tetheringprovision</item>
<item>com.sec.tetheringprovision.TetheringProvisionActivity</item>
</string-array>
Change it to this:
Code:
<array name="config_mobile_hotspot_provision_app" />
That unlocks tether by telling framework to not look for a check.
Now recompile and pat yourself on the back because it literally is that easy. I will post a flashable zip if you are not feeling adventurous enough to do it yourself. Please hit thanks if I helped in anyway.
Download:
Tether MOD
Tether MOD DEODEXED
Thanks to:
@jovy23 - Orginal author of the MOD
@scrosler - Making a clear OP and pointing at Original Thread - Sharing
@Misterxtc - For letting me use his ROM and pulling the framework to deodex
Click to expand...
Click to collapse
Also got any tips on how to use on the retail Note 2 with temporary Root on Demand..... Kingroot?
doctor-cool said:
Also got any tips on how to use on the retail Note 2 with temporary Root on Demand..... Kingroot?
Click to expand...
Click to collapse
I get home in a couple days I will try and help you then... I am in the middle east
I tried making a BOG5 version but ended up in a bootloop and had to revert. I used apktool to decode the file with apktool d framework-res.apk. Went in, modified the arrays.xml to remove the items from the list and self-terminate it (they were some samsung apps), then I did an apktool b framework-res and copied the apk from the dist folder over to my phone and installed it using TWRP.
Restarted, let my phone try to boot for about three times the normal boot time, was running hot and seemed to be looping, so I rebooted in to TWRP and restored the original and everything worked fine on reboot.
Any ideas what I might have done wrong on the replacement? I did get a couple of warnings about no default translation for some settings and I noticed my APK was unexpectedly smaller (by about 250k), which seems a bit odd, but when I decompiled it, the only differences were the arrays.xml and the manifest.
Update: It appears that when it rebuilt in apktool, it changed the string-array to an array. That seems like it has a decent chance of being the cause of the issue, but I'm not sure how to prevent that from occurring since the build did it on its own.
---------- Post added at 12:28 PM ---------- Previous post was at 12:00 PM ----------
Never mind, I was able to figure out what I was doing wrong. Apparently for the build I needed to do "apktool build -c framework-res". It appears the -c keeps the signature from the original for the unaltered binary portion while updating the resource.
I now have a working BOG5 modified framework-res.apk. I'd love to share it with people, but I'm not sure what to use as a file host. I have a request in with android file host but not sure how long it takes to get upload access with them. Any other platforms that work well for it? Also, am I correct in my assumption that I can simply take the previous recovery zip installer and replace the framework-res.apk in it with the new version and use that as a recovery zip? I just did the install completely manually when I was doing it as I'm not particularly familiar with the zip update format.
ajh16 said:
I tried making a BOG5 version but ended up in a bootloop and had to revert. I used apktool to decode the file with apktool d framework-res.apk. Went in, modified the arrays.xml to remove the items from the list and self-terminate it (they were some samsung apps), then I did an apktool b framework-res and copied the apk from the dist folder over to my phone and installed it using TWRP.
Restarted, let my phone try to boot for about three times the normal boot time, was running hot and seemed to be looping, so I rebooted in to TWRP and restored the original and everything worked fine on reboot.
Any ideas what I might have done wrong on the replacement? I did get a couple of warnings about no default translation for some settings and I noticed my APK was unexpectedly smaller (by about 250k), which seems a bit odd, but when I decompiled it, the only differences were the arrays.xml and the manifest.
Update: It appears that when it rebuilt in apktool, it changed the string-array to an array. That seems like it has a decent chance of being the cause of the issue, but I'm not sure how to prevent that from occurring since the build did it on its own.
---------- Post added at 12:28 PM ---------- Previous post was at 12:00 PM ----------
Never mind, I was able to figure out what I was doing wrong. Apparently for the build I needed to do "apktool build -c framework-res". It appears the -c keeps the signature from the original for the unaltered binary portion while updating the resource.
I now have a working BOG5 modified framework-res.apk. I'd love to share it with people, but I'm not sure what to use as a file host. I have a request in with android file host but not sure how long it takes to get upload access with them. Any other platforms that work well for it? Also, am I correct in my assumption that I can simply take the previous recovery zip installer and replace the framework-res.apk in it with the new version and use that as a recovery zip? I just did the install completely manually when I was doing it as I'm not particularly familiar with the zip update format.
Click to expand...
Click to collapse
I usually use Dropbox, I use android file host but that requires a little effort because you need to request developer status basically and explain why you need to be able to file host... There is a great tool called Tickle My Android that you could use for decompiling... Apk tool works great as well, but takes longer in my opinion...
I am glad you figured it out.. You seem like a good reverse engineerer....
You can use the zips in this post and just replace the files inside the zip and post them as updated
Sent from my Nexus 6 using Tapatalk

Categories

Resources