[Tip] Removing the Airplane mode icon for cellular Note tablets (P605) - Galaxy Note 10.1 (2014 Edition) General

When I am not traveling, I have wifi coverage at work and home, and I turn off the cell radio of my Note tablet to conserve battery use. The easy way is to enable Airplane mode, and then turn on wifi. However, you would have a persistent airplane icon showing up in the status bar. This thread will provide instruction on how to remove that icon.
First, I should acknowledge this thread for posting the general approach, which I modified to work specifically for the Note 10.1 (2014) with TW-based rom.
1. Your tablet must have root access, and a root file browser. I use ES File Explorer.
2. Browse to /System/priv-app, copy the file 'SystemUI.apk' and paste it in another directory (e.g., Document folder)
3. Transfer the file to a Windows computer
4. Open the file with Winrar, do not extract. Just browse the content within Winrar.
5. Go to /res/drawable-xhdpi, look for the "stat_sys_signal_flightmode.png" file. Delete this file within Winrar.
6. Exit Winrar. It automatically save the file (SystemUI.apk). Transfer it back to the Note tablet (e.g., Document folder)
7. Use ES File Explorer, copy the (new) SystemUI.apk to "/System" folder ***(NOT the "/System/priv-app" folder)
8. Once inside the /System folder, change file permission of SystemUI.apk to rw- r- r- (R/W for owner, R only for Group and Other)
9. Move (Cut and Paste) the SystemUI.apk file from "/System" folder to the "/System/priv-app" folder
10. Restart, and you should see the little Airport icon gone forever. (Airplane mode on/off still functions normally)
This method has been tested on the xKat rom by hanspampel. However, it should work on stock other deodexed TW roms with root, since the systemUI.apk location and the way it defines the status bar icons are the same.
PS. On the web, some suggested that ROM Toolbox Pro offers the function to modify the status bar icons. I have tested that and I did NOT work at all. As far as I know, the above the only method that works at the moment.
[Update] This method does NOT work on stock ROM, as the apps are still odexed. So you couldn't just replace the SystemUI.apk with a new one by overwriting.
[Update 2] I got it to work with stock Roms, by taking a SystemUI.apk file from a deodexed TW rom (like the xKat ROM from hanspampel), and modifying it (deleting the png file). Finally, I removed also the SystemUI.odex (from the stock ROM) before overwriting the System.apk with the modified one (from deodexed ROM).

Related

[Q] is this the right step to modify framework-res.apk ?

hi...
i want to change standard notification bar from my htc desire running sense froyo rom with mod battery percentage, animation icons for data, signal, etc.
what i did is :
1. pull framework-res.apk from /system/framework folder
2. extract framework-res.apk using apktool
3. extract & overwrite with icons colour pack v4 downloaded from http://forum.xda-developers.com/showthread.php?t=722993 into drawable & drawable-hdpi folder from extracted framework apk folder.
4. bundled modified framework-res.apk using apktool
5. sign framework-res.apk
6. in recovery mode, adb push framework-res.apk to /system/framework. before doing that, i mount /system first..
7. reboot
what i found, everytime i choose network setting or wireless setting it crashed with error message process.com.android.settings has stopped unexpectedly.
why this error occured ? any other step that i did is wrong ?
I just pull from adb, my PC has 7zip installed so can see drill into the compressed file, drag replace the altered images, back out of the compressed file to commit, push via adb, reboot.
Sent from my Nexus One using XDA App
Why not use the UOT kitchen?
Sent from my HTC Desire using XDA App
HTCinToronto said:
I just pull from adb, my PC has 7zip installed so can see drill into the compressed file, drag replace the altered images, back out of the compressed file to commit, push via adb, reboot.
Sent from my Nexus One using XDA App
Click to expand...
Click to collapse
This is what I do, basically. I make the battery mod with UOT, and when the flashable zip is ready I extract the framework-res to some folder and just replace couple of images, then I'll put the modified framework-res back to the UOT-file and flash it. Works every time.
EDIT: I don't extract the files within framework-res.zip, only the .zip itself so I can open it via WinRar and replace the files. It isn't probably even needed, you could probably replace the needed files when browsing the UOT file with winrar/whatever etc etc. Haven't tried.
Can this same method be applied to anything that can be found in the framework ?

is deodexing like this?

if there is an apk named browser.apk and an odex file named browser.odex
if i do is modify the zip and rename the .odex to classess.dex and placing it on .apk will this be eodexing?
if so would this work on my cherry mobile titan tv/karbonn a30 ics MTK6577?
No Deodexing is something else.... If you wanna deodex then
1.) Download XUltimate (google it)
2.) Switch on USB Debugging Mode and connect phone to pc! (Dont switch on USB Transfer)
3.) Now Select pull and deodex all folders! (if this option is not there then something similar to this will be there)
4.) After deodexing all apks the place where you installed xUltimate there will appear to folder done_app and done_framework.. (Something similar... This depends on the version of xUltimate)
5.) Rename the folders to app and framework and then copy to sdcard after activating usb mode
6.) Push the folders into system folder va Root Browser! (I hope you have rooted your mobile)
7.) Reboot! You are done
*NOTE: If you get an error while deodexing delete the .odex of which it is giving error and then select deodex both folder!
death_sinker said:
No Deodexing is something else.... If you wanna deodex then
1.) Download XUltimate (google it)
2.) Switch on USB Debugging Mode and connect phone to pc! (Dont switch on USB Transfer)
3.) Now Select pull and deodex all folders! (if this option is not there then something similar to this will be there)
4.) After deodexing all apks the place where you installed xUltimate there will appear to folder done_app and done_framework.. (Something similar... This depends on the version of xUltimate)
5.) Rename the folders to app and framework and then copy to sdcard after activating usb mode
6.) Push the folders into system folder va Root Browser! (I hope you have rooted your mobile)
7.) Reboot! You are done
*NOTE: If you get an error while deodexing delete the .odex of which it is giving error and then select deodex both folder!
Click to expand...
Click to collapse
I found one on xda but link is dead can u give me a copy and does xultimate work with ics?
Sent from my Titan TV S320 using xda premium
odex is a file which makes the system load apps faster,
so you cannot modify a system app without editing the odex file,
it's like a browser with cache,
deodexing would cause the system to load each time you access a system app,

[Q] stat-bar

How to change status bar icons on stock odex?
There is no bad choises. Only bad results.
deodex the rom first
then root phone
extract systemui.apk to your pc
change apk extention to .zip
use winrar to extract zip
goto res/drawable-ldpi
change any png not ending in .9 keeping all file names the same
rezip everything
change extention back to apk (you will have to enable show file extentions in folder options in control panel)
put in flashable zip
flash in cwm with system mounted
iv explained this a few times now so search next time
also this method is only for changing png images - do not use it to edit anything else like xml files - you will need to decompile with apktool for that

CM12 superuser mod without computer

Since Serajr 'one click' superuser mod only works on stock ROM, you have to use apktool to achieve the same on CM. Here's how you can do it on your phone. Only tested on official CM12 on Xperia Z1c, with a clean flash of /system, (unmodified), but probably can be applied elsewhere, maybe with some adjustment.
1. Follow steps 1 and 2 in this post, (except for the part about copying theme files) - http://forum.xda-developers.com/sony-xperia-z1-compact/general/tweak-theme-computer-t3279649 Note that the /system/framework/SemcGenericUxpRes/SemcGenericUx file is not present in CM ROM, so instead you would copy /system/framework/org.cyanogenmod.platform-res.apk. Also copy /system/framework/services.jar to the same directory.
2. Import the first 2 files as framework, according to step 3 in the link above, then tap on services.jar, and 'decompile all'. You will end up with a folder called 'services-src'.
3. Using a root browser and capable text editor, (I used Mixplorer and Jota+), follow instructions to mod PackageManagerService.smali file here - http://forum.xda-developers.com/showpost.php?p=62909773&postcount=4
Notes on this step: This file is over 60,000 lines long, which is why I specified 'capable' above. Many text editing programs won't handle it very well. Even if they can display it OK, you're going to need something that has a good search function, and copy/paste ability or it will be a big headache trying to do this on a phone. I found the first line to edit somewhere around line 8,700, by searching for 'compareSignatures'. The tutorial recommends using the word 'cannot' to help find the second one, but that didn't work for me. I used 'compareSignature' for that also, and just used the arrows to jump ahead through the search results until I found it.
4. Once the mods are made, save and exit. Then go back to apktool, and tap on 'services-src' folder and choose 'recompile'. You will end up with a file called 'services.apk'. All that is in the 'apk' is a classes.dex file. Use Mixplorer or RTB to extract the classes.dex from the apk. Then, with Mixplorer, go into your original services.jar, (that you copied into apktool folder), and delete the classes.dex file in there. Then go back to your new classes.dex, that you extracted from services.apk, and copy it into the services.jar. Using Mixplorer, you don't have to unzip/rezip or extract anything. Just long-press your new classes.dex, choose copy, then go into the jar just by tapping it, and then paste.
5. Move the new services.jar to /system/framework and reboot, (of course back up your original just in case).
The only way I know to test su mod is to attempt to use something that claims to require it, so I tested it with this - http://forum.xda-developers.com/cro...t-xperia-z5-systemui-particle-effect-t3206206 (the same thread as above). See screenshots for success verification.
very nice

[Guide] 3Min Battery Mod(Step By Step Instructions) using BatchApkTool

Hi guys, i really love the 3Min battery Mod from @gharrington Tyvm bro. There is a lot of threads of how to make it yourself but i think most of them are not too detailed and cover everything. So since i use these instructions my self i thought of sharing them in case someone may benefit from it.
Preparation: :
1. Download the latest BatchApkTool .
2. Tools needed and how to extract System.img.
3. Recommended tools needed: Notepad ++, 7zip or Winrar
Instructions::
A.
1. Download the latest BatchApkTool unzip it and move the need files to their designated folders explained in the next step.
2. We need to get SystemUI folder and framework folder(Inside it Framework_res.apk and arm64 folder is needed) either from a System.img in that case use the guide in the preparation section on how to extract it or import them from your device using any file manager with root.
3. Put SystemUI folder in _priv-app folder, and framework folder in to _framework folder.
B.
Open BatchApkTool select your language make sure that all the settings match your rom, enter the following numbers for changes:
83. Smali(By default it's the latest "2.2 latest when writing this" so just check it in case)
84. Api level: ------------- select 23( for Marshmallow)
85. Apktool(By default it's the latest stable version "it was 2.2.0 when writing this" just make sure it is)
C.
1. Under Smali section select '01 Deodex all apks and jars'(In case your rom isn't deodexed yet if it is skip this step). If your rom is stock then your SystemUi.apk needs to be deodexed for this to work. (For Nexus 6p select Arm64 when asked)
2.Under Smali section select '02' to move the deodexed files to _Input_Apk folder.
*Make a backup of META-INF folder and AndroidManifest.xml after extracting them from the deodexed SystemUI.apk file using Winrar or 7zip.
3.Under ApkTool section select '1' to decompile Apks.
4. After that go to _Input_Apk folder and open the decompiled SystemUI folder, navigate to res/layout/system_icons.xml and open with notepad ++
5. Find:
Code:
android:layout_width="9.5dip"
and
Code:
android:layout_height="14.5dip"
Note: These values may not be an exact match, doesn't matter
Change both values to
Code:
android:layout_width="0.0dip"
and
Code:
android:layout_height="0.0dip"
6. Hit enter and directly underneath that line add the following:
Code:
<com.android.systemui.statusbar.policy.MinitBattery android:layout_width="wrap_content" android:layout_height="wrap_content" />
7. Save your work and close notepad ++
8. You now need to navigate to smali/com/android/systemui/statusbar/policy folder
** Download the latest Modfiles package(3MinitBatterySettings, MinitBatteryResources, 3 Smali files) needed from here or main website.
9. Copy the 3 smali files(files that end with .smali) into that policy folder.
10. Time to recompile the SystemUI.apk. Under ApkTool section select '3 recompile apks' in Batchapktool.
11. Once recompiling of SystemUI.apk is complete go to it in _OUT_APK you will find it there, open it with 7zip or Winrar and Don't Extract.
12. Delete META-INF folder and AndroidManifest.xml from newly recompiled SystemUI.apk and replace them with the original backup we took in step C.2.
13. Download the 3MinitBattery_Template1.zip(will remove original SystemUi.apk and replace it) or 3Minit_Battery_Template2.zip(Will not remove the original SystemUi.apk and will leave it for you to remove it manually in case you want to back it up).
14. Use one of the template zips then open it don't extract it just open it with Winrar or 7zip and drop 3MinitBatterySettings, MinitBatteryResources that we got in step C.8 to their respective folders in the zip file. Drop the newly recompiled SystemUI.apk to SystemUI folder if you choose template 1 and if you choose template 2 put it in priv-app folder.
P.s: If you choose template 2 after flashing it go to system/priv-app/SystemUI folder in your device and with any file manger with root delete SystemUi.apk after you back it up to where ever you choose then reboot the device.
15. After this make a backup of your rom and flash the zip.
16. To use 3minBattery app open it and choose your customization then reboot you should see the changes after that. Good luck! :good:
Credits go to:
- @gharrington for his Mod&Guide.
- bursoft for Batch ApkTool.
- @bdorr1105 for his Thread.
- https://androidmtk.com for the Guide&Tools.
Awesome tutorial.. I am looking to add it into a modified stock rom for a Samsung tablet that I have.. Do you know of any easy to follow tutorials for that? i am very new to this part of android..lol.. i am usually on the flashing end and now i am trying to help out for this tab because it has no custom roms until mine. Again, awesome tutorial.
glockman4519 said:
Awesome tutorial.. I am looking to add it into a modified stock rom for a Samsung tablet that I have.. Do you know of any easy to follow tutorials for that? i am very new to this part of android..lol.. i am usually on the flashing end and now i am trying to help out for this tab because it has no custom roms until mine. Again, awesome tutorial.
Click to expand...
Click to collapse
Ty much appreciated. It has been a while since I created this thread since then I have stopped using this mod because it's kind of a headache to do it for every update add to that since Google already enabled the battery percentage inside the battery there was no need any more for the mod. Anyway it's still great to be able to change from time to time. Regarding the tutorial I am sorry to say I haven't tried to create a custom ROM so I can't help you much with that but I am sure there are a lot of tutorials but will require some time to search. Good luck with your project.

Categories

Resources