This is work done by clockworx which can originally be found: http://xdaforums.com/showthread.php?t=877752
I just grabbed the original patch and merged it into 1.1.0 framework.jar; and I'm posting this here for reference on how to patch framework.jar in future B&N releases.
Things you'll need:
APKtool(by brutall): http://code.google.com/p/android-apktool/
framework.jar: Just grab it from the official sideload update.zip
Patch: http://dl.dropbox.com/u/9992367/TelephonyManager.patch
Pastebin: http://pastebin.com/4gxqHw6B
How-to:
You'll need to decompile the framework.jar from the sideload update.zip.
Create a separate folder to do all of this.
Should output:
Then you'll grab the above patch, and copy it to /framework.jar.out/smali/android/telephony/
Then cd to the directory, and patch the file!
output:
and you're done patching the file!
Remove the patch file before continuing!
You'll now need to build framework.jar again. Go back to the initial directory and run:
output:
Don't worry about the warning about not finding resources, it's expected.
And thats about it.
Here's the patched framework.jar for 1.1.0 that's already included in IOMonsters rootpack: http://dl.dropbox.com/u/9992367/framework.jar
Hopefully this will be a valuable reference in the future!
Credits:
Clockworx
brut.all
I just grabbed the original patch and merged it into 1.1.0 framework.jar; and I'm posting this here for reference on how to patch framework.jar in future B&N releases.
Things you'll need:
APKtool(by brutall): http://code.google.com/p/android-apktool/
framework.jar: Just grab it from the official sideload update.zip
Patch: http://dl.dropbox.com/u/9992367/TelephonyManager.patch
Pastebin: http://pastebin.com/4gxqHw6B
How-to:
You'll need to decompile the framework.jar from the sideload update.zip.
Create a separate folder to do all of this.
Code:
apktool d framework.jar
Should output:
Code:
I: Baksmaling...
I: Copying assets and libs...
Then you'll grab the above patch, and copy it to /framework.jar.out/smali/android/telephony/
Code:
cp TelephonyManager.patch /framework.jar.out/smali/android/telephony/TelephonyManager.patch
Then cd to the directory, and patch the file!
Code:
cd framework.jar.out/smali/android/telephony
patch -p0 -E < TelephonyManager.patch
output:
Code:
patching file TelephonyManager.smali
and you're done patching the file!
Remove the patch file before continuing!
You'll now need to build framework.jar again. Go back to the initial directory and run:
Code:
apktool b framework.jar.out
output:
Code:
I: Checking whether sources has changed...
I: Smaling...
W: Could not find resources
I: Building apk file...
Don't worry about the warning about not finding resources, it's expected.
And thats about it.
Here's the patched framework.jar for 1.1.0 that's already included in IOMonsters rootpack: http://dl.dropbox.com/u/9992367/framework.jar
Hopefully this will be a valuable reference in the future!
Credits:
Clockworx
brut.all
Last edited: