[MOD]Removing the ciphering warning message from notification - RAZR HD Themes and Apps

Hello,
This MOD is for the Razr XT926 VZW
I have been using Eclipse rom v1.3 by nitroglycerine33 based on 4.1.2
I keep on getting this annoying message in the notification, "ciphering is not available on your network. Phone calls and/or cellular data will be unencrypted."
I decided to try and remove this message. After a little searching, i found a solution in the Razr M forum.
I pulled the framework-res.apk from system/framework folder, decompiled it, did the following modification to the bool.xml file in res/values folder:
<bool name="config_enable_ciphering_indicator">false</bool>
<bool name="config_enable_ps_ciphering_indicator">false</bool>
<bool name="config_enable_cs_ciphering_indicator">false</bool>
After changing the values to false in notepad++, i save it and recompiled it. Now the tricky part. I used apk file manager 5.0.2 by jonny walkerRK and extracted both newly compiled apk and original apk. Now i copied the "resources.arcs" file and "res" folder from the new apk folder and pasted it in the original apk folder. After that i used 7zip to zip the original folder and renamed it as .apk. I rename the original apk as framework-res.apk and i used it to replace the framework-res.apk in system/framework.
Here are the required steps to remove that annoying notification:
1. Copy the framework-res.apk to sd card.
2. Use Root Explorer to copy the file.
3. Navigate to /system/ framework folder
4. Click on "Mount R/W" on the top to change permission.
5. Paste and overwrite the existing framework-res.apk
6. Done!!!

i hav tryed, but not worked n i got bootloop
after replace the file, the phoe automatically restart it self but no load...

it restarts as soon as you replace it. thats normal.

Related

[Q] Editing Images Framework-res.apk file

hello all
I was trying to edit the framework-res.apk which can be found in system/framework/framework-res.apk
this file holds alot of images that you can edit (e.g slider, incoming call, icons etc...) framework-res.apk\framework-res.apk\res\drawable-mdpi folder
i edited the png's jog_dial_bg_rev_down.png and jog_dial_bg_rev.png
they are the call slider revamped (just removed the shadows so it doesnt cover the incoming call)
i have used apk edit, Apk manager, APK sign and everytime i build the framework-res.apk and move it to the system/framework/ folder
everytime i move the file my phone either gets bricks, bootloops or get tons of force close down of some apps
has anyone got any solutions how to edit framework-res.apk without all this bricking bs?
i have uploaded the edited images for the sliders on Slider_Revamped.rar
When you sing apk than you need to replace :
Meta-inf and recourse.so from original framework-res.apk.
You just open both frameworks with 7zip and drag from original to edited
Sent from my U20i using xda premium
Eyama said:
When you sing apk than you need to replace :
Meta-inf and recourse.so from original framework-res.apk.
You just open both frameworks with 7zip and drag from original to edited
Sent from my U20i using xda premium
Click to expand...
Click to collapse
i had same issue.. thanx will try
Download "NinjaMorph" off of the market, it decompiles any APK, TAR whatever and allows you to replace any file (including XMLs if you like) from the APK with those on your SD. What I do is decompile the APK then plug my phone in and navigate to where NinjaMorph decompiled the APK to on the SD, which is "AndroidThemes", do the editing on my PC then disconnect the phone, recompile the APK and it automatically pushes the APK to wherever you pulled it from. I've used it many times when I've been messing with frameworkres, it works every time.
Does this method also work with .9.patched files?
christophermaisch said:
Download "NinjaMorph" off of the market, it decompiles any APK, TAR whatever and allows you to replace any file (including XMLs if you like) from the APK with those on your SD. What I do is decompile the APK then plug my phone in and navigate to where NinjaMorph decompiled the APK to on the SD, which is "AndroidThemes", do the editing on my PC then disconnect the phone, recompile the APK and it automatically pushes the APK to wherever you pulled it from. I've used it many times when I've been messing with frameworkres, it works every time.
Click to expand...
Click to collapse

Re-compile framework-res.apk (Custom Rom)

I got this figured out already, sorry about that.
Who ever thanked me, I wasn't posting a guide but a question.
I am trying from a fresh firmware base to learn from scratch but no idea how to get that framework to compile correctly.
did you install framework first?
Code:
apktool if framework-res.apk
Easy
I had problems with the apk tool and recompiling. The way I ended up doing it is:
I didnt decompile the framework-res.apk.
rename the file framework-res.apk.zip
open it with 7zip.
Extract the files you are wanting to work on
Do what ever work on the files you need done
Drag and drop the files back in the directories they go into while file is open in 7zip
Close 7zip
Rename file back to framework-res.apk
push to phone with adb
No decompile or recompile.
Hope this helps
Chadw1985 said:
I had problems with the apk tool and recompiling. The way I ended up doing it is:
I didnt decompile the framework-res.apk.
rename the file framework-res.apk.zip
open it with 7zip.
Extract the files you are wanting to work on
Do what ever work on the files you need done
Drag and drop the files back in the directories they go into while file is open in 7zip
Close 7zip
Rename file back to framework-res.apk
push to phone with adb
No decompile or recompile.
Hope this helps
Click to expand...
Click to collapse
If you just want to modify one of the 'normal' XML files or an image then that approach will work fine. The problem is he wants to edit the bool.xml file and that is contained in the 'resources.asrc' file and you need to decompile it first.
I am in the same situation although someone managed to edit the file for me and recompile it so I got there in the end, just not by doing it myself.
I followed the instructions you describe and the file never recompiled properly - or at least my device never booted with the one I recompiled
Try it like this:
1. Place APK in "place-apk-here-for-modding"
2. Choose "9" to Decompile
3. Grab resource "resources.arsc" from framework-res.apk
4. Do my edit in projects\framework-res.apk\res\values\bools.xml
5. Compile - Yes (system app) - Yes (copy files)
6. Go to "keep" folder and delete "resources.arsc" and the bools.xml file
7. Press any key
8. Either push by ADB or Root Explorer or Flash
nickiberli said:
Try it like this:
1. Place APK in "place-apk-here-for-modding"
2. Choose "9" to Decompile
3. Grab resource "resources.arsc" from framework-res.apk
4. Do my edit in projects\framework-res.apk\res\values\bools.xml
5. Compile - Yes (system app) - Yes (copy files)
6. Go to "keep" folder and delete "resources.arsc" and the bools.xml file
7. Press any key
8. Either push by ADB or Root Explorer or Flash
Click to expand...
Click to collapse
I have tried exactly like this and it didn't work for me. I downloaded lots of different APK tools and tried them all - there were comments about using older versions of apktool.jar etc. I kept getting different sizes of the output file depending on which one I used. I gave up in the end as someone edited the file for me and it was only one specific entry in bool.xmls I wanted changing. As far I could tell we were both doing exactly the same thing.
The last thing I said I was going to do was wipe the PC I was attempting to do this on. I never got round to doing it... I'd be interested to know why I could never get this working though
Andy
Give me the framework and tell me what u want to do.
I will do that for u
Btw is the framework ICS based?
Sent from my Micromax_A70 using Tapatalk 2 Beta-4
You have resigned?
Greets!

[Q] how can i sign framework-res.apk?

I dont know how to sign framework-res.apk
who will teach me?
What are you trying to do exactly? Why do you need to sign it? Have you decompiled it? Recompiled? Some more info may help you get more/better answers.
If you have decompiled it and made some changes to it, then recompiled it and now have an unsigned-framework-res.apk then what I usually do it use 7zip (WITHOUT UNZIPPING the .apk file and ONLY OPEN ARCHIVE)and remove the AndroidManifest.XML and meta-inf folder. Next use 7Zip to unzip the ORIGINAL framework-res.apk, then select the AndroidManifest.XML and meta-inf folder and DRAG it into the unsigned-framework-res.apk that you also have OPENED ARCHIVE, hit OK to add it on the popup. Now I then usually copy the unsigned-framework-res.apk to my phone, use root explorer to rename it framework-res.apk (so remove the "unsigned" part of the name). Then I use root explorer and copy it into /system, long press on the framework-res.apk and choose permissions, then set the permissions correctly , then long press again and select move, navigate to /system/framework and hit paste. Then reboot phone.
IF you have a issue where it doesn't boot up correctly then there is something g wrong with your framework-res.apk and you will HAVE TO go back to recovery and reinstall your ROM to fix it (or restore a nandroid backup). This last part is just FYI in case you have an issue.
Hope this helps. If it is not what you have done or trying g to do then give some more details as to what your trying to do and why.
Sent from My SGH-I777 Running Spiderman Themed AOKP or Spiderman Themed CM10

[SOLVED] Edit .ogg in camera.apk

I have a rooted Galaxy M Style phone with stock Gingerbread 2.3.4 firmware. I am trying to customize my stock camera app, but am not sure what I'm doing wrong. I plan to replace the autofocus_ok.ogg with a different tune from my phone. I checked the properties of the autofocus_ok.ogg and saw it's a mono, 44100hz, and 96 bitrate file. The tune that I have has the same properties. So this is what I have done so far:
I backed up camera.apk to /system/app/camera.apk.bak and the camera.odex to /system/app/camera.odex.bak. I left a copy of camera.odex in /system/data. I copied the camera.apk to my memory card and placed the file on my computer. I renamed the file to a .rar. I then deleted the autofocus_ok.ogg and placed the tune that I wanted in that directory. Then I renamed it to autofocus_ok.ogg. I renamed the file back to .apk and transferred the file back to the memory card, then over to /system/app. The camera app will not install/not showing up on my phone. I am transferring the files through root explorer on my phone.
I worked with the original apk file again with apktool. I was able to decompile and replaced and renamed the files that I needed again. I compiled the file and transferred the file to /system/app again, but the apk will still not install. I checked the complied apk file and noticed that the file didn't have the META-INF folder, so I copied that over to. Tried to install it again by copying the file to /system/app, but it still won't show up on my phone. Is there anyway for me to change the autofocus_ok.ogg without a custom rom?
Thanks.
ImAhNoBoDy said:
I have a rooted Galaxy M Style phone with stock Gingerbread 2.3.4 firmware. I am trying to customize my stock camera app, but am not sure what I'm doing wrong. I plan to replace the autofocus_ok.ogg with a different tune from my phone. I checked the properties of the autofocus_ok.ogg and saw it's a mono, 44100hz, and 96 bitrate file. The tune that I have has the same properties. So this is what I have done so far:
I backed up camera.apk to /system/app/camera.apk.bak and the camera.odex to /system/app/camera.odex.bak. I left a copy of camera.odex in /system/data. I copied the camera.apk to my memory card and placed the file on my computer. I renamed the file to a .rar. I then deleted the autofocus_ok.ogg and placed the tune that I wanted in that directory. Then I renamed it to autofocus_ok.ogg. I renamed the file back to .apk and transferred the file back to the memory card, then over to /system/app. The camera app will not install/not showing up on my phone. I am transferring the files through root explorer on my phone.
I worked with the original apk file again with apktool. I was able to decompile and replaced and renamed the files that I needed again. I compiled the file and transferred the file to /system/app again, but the apk will still not install. I checked the complied apk file and noticed that the file didn't have the META-INF folder, so I copied that over to. Tried to install it again by copying the file to /system/app, but it still won't show up on my phone. Is there anyway for me to change the autofocus_ok.ogg without a custom rom?
Thanks.
Click to expand...
Click to collapse
erm... is the permissions set correctly rw-r--r-- ?
MoonBlade said:
erm... is the permissions set correctly rw-r--r-- ?
Click to expand...
Click to collapse
Yup, permissions were set correctly like rw-r--r--. Owner is root:root. Those are the permission that I set on the apk file like they were on the original file. I just realized that the compiled apk's from apktools doesn't show up on my phone. The apk that I created by opening up winrar and just replacing the .ogg files do show up, but I get the error "The application Camera (process com.sec.android.app.camera) has stopped unexpectedly. Please try again."
Anything else I can try or a thread to refer to?
ImAhNoBoDy said:
Yup, permissions were set correctly like rw-r--r--. Owner is root:root. Those are the permission that I set on the apk file like they were on the original file. I just realized that the compiled apk's from apktools doesn't show up on my phone. The apk that I created by opening up winrar and just replacing the .ogg files do show up, but I get the error "The application Camera (process com.sec.android.app.camera) has stopped unexpectedly. Please try again."
Anything else I can try or a thread to refer to?
Click to expand...
Click to collapse
why dont you try to push the modified apk manually using root explorer or so instead of pushing via adb ..
after decompiling apk and modifying it, compile it into some folder and then copy it into you sd card then use root explorer and manually push(copy) the apk into system/app .. give proper permissions and then reboot your phone..
Here are some guides to use apktool
http://forum.xda-developers.com/showthread.php?t=1891686
http://forum.xda-developers.com/showthread.php?t=1989533
MoonBlade said:
why dont you try to push the modified apk manually using root explorer or so instead of pushing via adb ..
after decompiling apk and modifying it, compile it into some folder and then copy it into you sd card then use root explorer and manually push(copy) the apk into system/app .. give proper permissions and then reboot your phone..
Here are some guides to use apktool
http://forum.xda-developers.com/showthread.php?t=1891686
http://forum.xda-developers.com/showthread.php?t=1989533
Click to expand...
Click to collapse
I have been pushing the modified apk through root explorer all this time. I don't even have adb install, haha. The procedure you explained have been the way I have been doing it the whole time, lol. I read the threads you posted and the procedure is the same as I've been doing it, except for the second thread. I can't grab the apktool from 4shared because I don't have an account. I am using the latest apktool 1.5.2. Also, I didn't understand what PulseDroid was talking when he said "We are NOT done just yet, we cannot use the new apk's... we have to take what we did and add it back to the original apk file to keep proper signature use something like 7zip, take the 'resources.arcs' file and any other xml files you edited out of the "-new" apk and copy them into Original apk". So I'm suppose to replace the resources.arcs and the .ogg files that I created from the new apk to the old apk? I didn't mess with any xml file.
Anyways, is there anything else I can try?
EDIT: ........I feel so embarrassed. I checked out this thread http://forum.xda-developers.com/showthread.php?t=2378177 and saw this post "Drag your replacement files into WinRAR and (here's the important part) in the Compression Method drop-down choose "Store"." All this time I have been compressing the file as "Normal" in Winrar, instead of "Store".
All in all, I did not need apktool at all. I used the original apk and opened it up in Winrar. I deleted the files that I wanted to replaced and put in the files that I wanted. Each time I put something in the file in Winrar I get a prompt for compression and instead of "Normal" compression just use "Store". It was that simple.
This helped me, thank you!

priv-app APK modification

Hello All,
I am trying to add/edit xml files found inside "assets", "vendor" directories of an APK included in system.img (priv-app directory) of a ROM.
The APK is available at
system/priv-app/CarrierConfig/CarrierConfig.apk
system/priv-app/CarrierConfig/oat/arm64/CarrierConfig.odex
system/priv-app/CarrierConfig/oat/arm64/CarrierConfig.vdex
I have used apk tool to decompile and re-compile the apk. I also zipaligned, signed with my own key. I copied the file to priv-app directory in the phone and restarted the phone. This did not work. I did have 644 permission for apk file after replacing. Also, I did clear the dalvik cache and cache after APK replacement.
1. Do I need to change the odex or vdex files? I did not touch them since my changes were in xml files.
2. Should I sign with originally signed signature?
3. I could not see the odex and vdex file in the priv-app directory in the phone after the ROM install(when I tried to replace the APK). Why is that?
4. Should I build a rom zip file to flash(along with existing odex and vdex files) as opposed to replacing the APK in the device?
Any help?
http://www.w3.org/2001/XMLSchema
I was looking into this as well. Everything I read said you have to be registered as carrier to make modifications to carrier config.apk , unfortunately:-/ Let me know if you did find a solution, though.

Categories

Resources