Related
Hope this isn't a double post.... I would like to change the lockscreen image to something other than the background of the phone. Maybe through editing the .xml file on the phone? etc. Anyone know of how to do this?
PS... PLEASSEEEEE don't reply with anything about widgetlocker. I know it exists I know it can do this but and I am not trying to nor do I want to use it for various reasons ...
Thanks in Advance.
-Adam
Here your are
had a little trouble with this, but here's a full guide that worked for me "tools used apk manager 4.9"
using the apk manager
1. pull /system/framework/framework-res.apk (option 0)
2. Decompile apk (option 9)
3. add your pic to drawable-mdpi (must be a .png) eg. lockscreen_background.png
4. open the file res\layout\keyguard_screen_tab_unlock.xml with notepad, and find the line
<RelativeLayout android:gravity="center_horizontal" android:id="@id/root" android:background="#70000000" android:layout_width="fill_parent" android:layout_height="fill_parent"
change to
<RelativeLayout android:gravity="center_horizontal" android:id="@id/root" android:background="@drawable/lockscreen_background" android:layout_width="fill_parent" android:layout_height="fill_parent"
5. compile the apk (option 9)
(when recompile do)
5.1. Hit yes to "system app".
5.2. Hit yes to restoring the files:
6. -Open the "keep" folder and delete resources.arsc and res\layout\keyguard_screen_tab_unlock.xml
7. when done rename unsignedframework-res.apk to framework-res.apk and put it back to /system/framework/ again (i did this in recovery)
Done
Awesome... Thanks.. Did you try this on the Droid X?
or can you change the lockscreen background to a dedicated image through ninjamorph? anyone have a quick tut on how to do this with a droid x?
So I modifed the vending.apk by changing some of the colors in the xml and by theming some of the png files. I recompiled it and everything compiled fine. I signed it and then flashed it and it said that it installed yet when it boots up I still have the old marketplace. Any help would be appreciated. I have the file attached.
Did you replace it in /system/app?
freeza said:
Did you replace it in /system/app?
Click to expand...
Click to collapse
I used the same install script that I used on the Gmail that I modified and it installed correctly.
If google has updated the market, it may be in data/app and is using thst one instead
freeza said:
If google has updated the market, it may be in data/app and is using thst one instead
Click to expand...
Click to collapse
No it is in system/app...looks like I got it to install...I just need to do more modifications to it.
In the public.xml is has lines like this
<public type="color" name="header_background_highdarkTransparent1" id="0x7f090029" />
<public type="color" name="header_background_highdark2" id="0x7f09002a" />
<public type="color" name="light_foreground" id="0x7f09002b" />
<public type="color" name="black" id="0x7f09002c" />
<public type="color" name="white" id="0x7f09002d" />
<public type="color" name="header_text" id="0x7f09002e" />
What does id="0x7f09002e mean? is that a color? I do not recognize that as a color.
So no one can tell me what the above means?
Introduction
Google Camera uses media_profiles.xml file where the Image quality is never set to 100 except if you're using a custom ROM where it is set by the ROM developer.
As a consequence, Google Camera and maybe other camera apps that works similarly, saves photos at around 600 kb in Galaxy S4. This is a lot of compression and may disappoint users who prefer the Google Goodie.
All thanks to @Alberto96 who brought this into light in his amazing ROM GearCM (Don't forget to thank him :highfive: )
Note: ROOT is Required
The Guide
Head on to system/etc and get the file "media_profiles.xml". You can back it up for your convenience.
You can use a PC for quick Find and Replace.
Open the file via an editor and find the code:
Code:
<ImageEncoding quality="90" />
<ImageEncoding quality="80" />
<ImageEncoding quality="70" />
(Tip: just search "ImageEncoding" and you'll get right there as the quality values can be different)
You'll find this three line code at two places and will be similar at both the places.
All you have to do is make it like this:
Code:
<ImageEncoding quality="100" />
<ImageEncoding quality="95" />
<ImageEncoding quality="90" />
Change to this code at both the places and save it. Then obviously put this file and replace it with original one at system/etc
Make sure and check if the permissions are rw-r--r--
Reboot and Enjoy taking Full Quality and Uncompressed photos from Google Camera :victory:
Don't forget to press Thanks button if you find this useful
Source: @Alberto96 's Github commit (https://github.com/GearCM/android_d...mmit/ba2f5d83665197b17bc68b9480986430e5d7ef3a)
All credits goes to him :angel:
thank for this TUT i really hate to use google camera for it quality in AOSP and CM rom but next time i diffidently use it when install AOSP or CM rom
Hello XDA,
This guide will show you how to add network traffic data to your status bar, with customization options in Settings. There are already several similar guides on XDA, but all of the one I've seen only give you one overall speed, whereas this gives you separate in and out speeds.
Everything needed to make this mod work was pulled from CM12, so full credit goes to the Cyanogenmod Team and Temasek, who I believe contributed it to CM. Out of respect, I have left the Temasek folder structure intact, but you may alter it as you see fit...
I have tested this on Kit-Kat and Lollipop TouchWiz ROMs, and on AOSP Lollipop ROMs, but it should work on just about anything. If it does not work on your ROM for some reason, let me know and I'll see if I can help you figure it out.
***Before proceeding, MAKE A BACKUP***
***I am not responsible for any loss of data or ***
***damage to your device resulting from this mod.***
This mod assumes that you have working knowledge of how to decompile, edit, and recompile apps. If you do not, there are plenty of threads on XDA that will teach you. This is not one of them.
Now, let's get down to business....
We are going to be working with two apps, SystemUI and Settings (or SecSettings, depending on your ROM). Go ahead and decompile both of them, then download the attached zip file, and extract it to a location of your choice.
SystemUI
-Begin by copying the smali files from the attached zip to their respective location in your decompiled SystemUI. The correct folder structure is in the zip file, so just make sure you're putting them in the same place in your apk.
-Do the same thing for the .png files in drawable-xxhdpi.
***Note, if your device has a resolution lower than xxhdpi, you will probably need to resize the included images and place them in the drawable folder corresponding to your device's resolution***
-Next, open up the values folder in your decompiled SystemUI. In the corresponding folder in the zip file, you will see four xml files: colors, dimens, ids, and styles. Open them up one at a time, and add the lines to the same files in your values folder.
-Finally, go to layout/status_bar.xml in your decompiled SystemUI, and add the following line wherever you choose:
Code:
<com.android.systemui.statusbar.policy.NetworkTraffic android:id="@id/networkTraffic" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="false" />
***Note: Where you place this line determines where on your status bar it will be shown, so pay attention***
-Next, recompile your SystemUI, and once it's done, go ahead and decompile the one you just compiled (say that ten times fast).
-Go to res/values/public.xml, keep it open in a separate window, then open up smali/com/android/systemui/statusbar/policy/NetworkTraffic.smali. You are going to search the smali file for the IDs on the left, then search your public.xml for the matching string on the right, and replace the IDs in the smali with the corresponding ID from your public.xml. To make things simpler, I have also included a list of the IDs and what they correspond to in the zip file...
Code:
0x7f0c00c9 <public type="dimen" name="net_traffic_single_text_size"
0x7f0c00ca <public type="dimen" name="net_traffic_multi_text_size"
0x7f02042a <public type="drawable" name="stat_sys_network_traffic_updown"
0x7f020429 <public type="drawable" name="stat_sys_network_traffic_up"
0x7f020428 <public type="drawable" name="stat_sys_network_traffic_down"
-Once you have replaced all the IDs, recompile your SystemUI, push it back to your phone, and get ready to do Settings!
Settings
-This will be almost the same as SystemUI....Begin by copying the smali files from the zip to the corresponding locations in your decompiled Settings. Again, be sure to keep the folder structure intact.
-Next up, copy network_traffic.xml from the zip to res/xml, dialog_color_picker.xml and seek_bar_preference to res/layout, add the lines in the five files in values to the corresponding files in your res/values, and finally copy ic_action_set and ic_settings_backup.png to res/drawable-xxhdpi.
***Note: You don't have to worry about resizing ic_settings_backup if you're on a lower resolution device, as you'll never actually see it. It was part of the mod when I pulled it from CM12, so that's why it's here...***
***If you're on a lower resolution than xxhdpi, ic_action_set will need to be resized, or else it will be quite large (though still perfectly functional) in the color picker window.***
-Next, recompile your Settings, then immediately decompile it again (any guesses as to what comes next?)
-Open up res/values/public.xml in your decompiled Settings, and then navigate to the smali files you copied earlier. Again, you are going to search the smali for the IDs below, then search your public.xml for the string next to the ID, then replace the ID in the smali with the corresponding ID from your public.xml...
NetworkTraffic.smali
Code:
0x7f0e000f <public type="integer" name="maskUp"
0x7f0e0010 <public type="integer" name="maskDown"
0x7f0e0011 <public type="integer" name="maskUnit"
0x7f0e0012 <public type="integer" name="maskPeriod"
0x7f09188a <public type="string" name="network_traffic_color_reset"
0x7f09188b <public type="string" name="network_traffic_color_reset_message"
0x7f091677 <public type="string" name="ok"
0x7f090198 <public type="string" name="cancel"
0x7f0700ef <public type="xml" name="network_traffic"
0x7f09188a <public type="string" name="network_traffic_color_reset"
0x7f02021d <public type="drawable" name="ic_settings_backup"
SeekBarPreference.smali
Code:
0x7f0b0696 <public type="id" name="seekBarPrefBarContainer"
0x7f040229 <public type="layout" name="seek_bar_preference"
0x7f0b0694 <public type="id" name="seekBarPrefValue"
0x7f0b0693 <public type="id" name="seekBarPrefUnitsRight"
0x7f0b0695 <public type="id" name="seekBarPrefUnitsLeft"
ColorPickerDialog.smali
Code:
0x7f04022b <public type="layout" name="dialog_color_picker”
0x7f091920 <public type="string" name="dialog_color_picker"
0x7f0b069f <public type="id" name="color_picker_view"
0x7f0b06a2 <public type="id" name="old_color_panel"
0x7f0b069a <public type="id" name="new_color_panel"
0x7f0b069b <public type="id" name="white_panel"
0x7f0b069d <public type="id" name="black_panel"
0x7f0b069c <public type="id" name="cyan_panel"
0x7f0b069e <public type="id" name="red_panel"
0x7f0b06a0 <public type="id" name="green_panel"
0x7f0b06a1 <public type="id" name="yellow_panel"
0x7f0b06a5 <public type="id" name="hex"
0x7f0b06a6 <public type="id" name="enter"
0x7f0b069a <public type="id" name="new_color_panel"
[STRIKE]0x7f020035 <public type=“drawable” name=“ic_action_set”[/STRIKE]
*** NOTE: I made a mistake with 'ic_action_set' above. It is not ***
*** referenced in the smali, only in layouts. If I mentioned it in the ***
*** text file in the zip, please disregard it there as well. ***
-Finally, paste the following line into the xml corresponding to the Settings Category you wish the options to be listed under. These will either be in res/xml or res/layout. Personally, I've placed mine at the end of display_settings.xml.
Code:
<PreferenceScreen android:title="@string/network_traffic_title" android:key="network_traffic_state " android:summary="@string/network_traffic_summary" android:fragment="com.android.settings.temasek.NetworkTraffic" />
-Once you're done, recompile you Settings.apk, push back to your phone, set permissions, reboot, and you should be all set!
If I've left anything out, or if you have any questions on any part of the process, please feel free to ask!
Enjoy!
This is awesome but am I blind where is the downloadable zip? lol
sawixso81 said:
This is awesome but am I blind where is the downloadable zip? lol
Click to expand...
Click to collapse
+1 double lol!
This is a great post, but i did not imagine it would be so much work (even having to recompile)...
there's a great tool (free) which i use over 4 years, does exactly the same thing and does not require root:
Network Monitor Mini by KF Software House.
it will run not in the status bar, but just below it. if you make the label transparent, decrease font size and change the color to something more visible, it will be just perfect.
I believe this was first on OmniROM before it was on CM (via Temasek or not), but good stuff I know I got it from there(Omni) for my CM build months ago.
@Morningstar where is attach dear?
Network Monitor Mini Pro
I've been using Network Monitor Mini Pro for maybe a couple of years, and Pro has an option to display upload & download speeds in the status bar. You'll see it in the middle of the status bar - size, width, font, position all configurable.
I don't have time or expertise to follow the decomple/recompile route, but respect to Morningstar for the post.
I'm using official CM12 for Nexus5, and I can't seem to find the network traffic options in settings by default?
@Morningstar are you teasing us ? Forget to put the zip attached
Hey OP have a question for you I havent tried this yet but my said rom I am running has the network deal like this by thanhfhuongf(built into rom) but I was actually going to use your guide to reverse the mod back to stock, needless to say I managed to get it to how I want network indicator gone and regular 4g/lte icon back but the problem is the indicator arrows do not move I have web service able to browse web and download but no arrow movement Im thinking it has to with my icons because I did take from another stock systemUI and copyed/paste into my Current systemUI those icons and later on noticed that the original Icon was 54x54 in size where as my modded systemUI was bigger in size but any way if you can assist me give me a pm,thanks and I do plan on giving this a try I like the looks of this one better if I decide to give it ago.:highfive:
Awesome stuff morningstar. Thanx for sharing and taking the time to make this guide.
Sent from my SCH-I545 using Xparent BlueTapatalk 2
Simply use cool tool
https://play.google.com/store/apps/details?id=ds.cpuoverlay&hl=en
Crap, sorry guys. Forgot to attach the zip! It's been a long week.... I'll be back at my computer in about 10 minutes and I'll add it to the OP. Sorry...
nice sir :good:
waiting for attach the zip
Updated OP to include the zip, and one image/id I had forgotten. Sorry again for the tease!
[emoji12]
itachi_2611 said:
Simply use cool tool
https://play.google.com/store/apps/details?id=ds.cpuoverlay&hl=en
Click to expand...
Click to collapse
That's always an option, but I prefer to use in-built services rather than external apps whenever possible, as it results in better performance and less overhead.
I started from scratch (noob here) and it was worth my time. I read forums on how to decompile and compile an apk and just followed carefully the instructions given plus some patience. Thank you @Morningstar for your effort.
Sent from my GT-I9505 using XDA Free mobile app
@Morningstar
there is no 0x7f020035 hex in ColorPickerDialog.smali
please check it and tell me correct id for ic_action_set
Hamidreza2010 said:
@Morningstar
there is no 0x7f020035 hex in ColorPickerDialog.smali
please check it and tell me correct id for ic_action_set
Click to expand...
Click to collapse
Dammit, I had a feeling that might happen...That's the one I forgot initially, and pulled from a different build...lemme check....
Morningstar said:
Dammit, I had a feeling that might happen...That's the one I forgot initially, and pulled from a different build...lemme check....
Click to expand...
Click to collapse
Yes dear i checked a lot
Please check it and tell me , because i want to finish it
Thanks
1) The full date on the lock screen language English UK and Russian
2) Removed the inscription "Swipe screen to unlock" language English UK and Russian
3) Replaced icons of Phone and Camera
5) To turn off the backlight, press the clock
6) 3MinitClock/ https://forum.xda-developers.com/android/apps-games/3minit-clock-mod-v1-0-t3400221
7) Installation : twrp
T285 SystemUI Deodexed 1/2
1. mobile operator in the upper left corner, the clock in the center
2. Installation : twrp
SystemUI
if you are using a different SystemUI, you can add the operator name to the top left corner
SystemUI/res/layout/status_bar.xml and add a red line
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:id="@id/status_bar" android:background="@drawable/system_bar_background"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<FrameLayout android:id="@id/call_background" android:layout_width="fill_parent" android:layout_height="fill_parent" />
<ImageView android:id="@id/notification_lights_out" android:paddingBottom="2.0dip" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" android:paddingStart="6.0dip" />
<LinearLayout android:orientation="horizontal" android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingStart="@dimen/status_bar_contents_padding_start" android:paddingEnd="@dimen/status_bar_contents_padding_end">
<com.android.systemui.statusbar.AlphaOptimizedFrameLayout android:orientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:alpha="@dimen/status_bar_icon_alpha">
<com.android.keyguard.AlphaOptimizedLinearLayout android:id="@id/notification_icon_area_inner" android:layout_width="fill_parent" android:layout_height="fill_parent">
[COLOR="Red"]<com.android.keyguard.CarrierText android:textAppearance="?android:textAppearanceSmall" android:textColor="#ffffffff" android:ellipsize="marquee" android:gravity="center_vertical" android:id="@id/keyguard_carrier_text" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />[/COLOR]
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentStart="true" />
T285 SystemUI Blur Effect Deodexed
1. the picture on the lock screen will duplicate the picture on the home screen,you have to set the picture on the home screen and the picture will be displayed on the lock screen
2. If you have installed a new image on the home screen, you must restart the tablet
3. Installation : TWRP
T285 SystemUI/Framework-Res/WallpaperPickerZero2 Deodexed
1. Replaced all stock pictures on the pictures S9
2. Installation : twrp
3. https://yadi.sk/d/jY_vwdQo3UZR9K
4. You can also use this Framework-Res Full Screen Apps https://forum.xda-developers.com/showpost.php?p=76249002&postcount=3
T285 SystemUI/WallpaperPicker/FrameworkRes/Stock Deodexed
1. Stock Pictures
2. Installation : twrp
3. https://yadi.sk/d/_fNnse9Y3VDtda
snifing said:
1. Replaced all stock pictures on the pictures S9
2. Installation : twrp
3. https://yadi.sk/d/jY_vwdQo3UZR9K
4. You can also use this Framework-Res Full Screen Apps https://forum.xda-developers.com/showpost.php?p=76249002&postcount=3
Click to expand...
Click to collapse
I get bootloop when I flash this
---------- Post added at 10:15 AM ---------- Previous post was at 10:13 AM ----------
snifing said:
1. Stock Pictures
2. Installation : twrp
3. https://yadi.sk/d/_fNnse9Y3VDtda
Click to expand...
Click to collapse
Hello how do I get this to work, i have flashed previous once and I get bootloop phone keeps restarting.
willsrockson said:
I get bootloop when I flash this
---------- Post added at 10:15 AM ---------- Previous post was at 10:13 AM ----------
Hello how do I get this to work, i have flashed previous once and I get bootloop phone keeps restarting.
Click to expand...
Click to collapse
only for deodexed firmware
snifing said:
only for deodexed firmware
Click to expand...
Click to collapse
So you mean I will have to flash a new ROM before I can use the mod, please do you have link for that
---------- Post added at 01:22 PM ---------- Previous post was at 01:13 PM ----------
snifing said:
only for deodexed firmware
Click to expand...
Click to collapse
Whats deodexed firmware
willsrockson said:
So you mean I will have to flash a new ROM before I can use the mod, please do you have link for that
Click to expand...
Click to collapse
any modifications can be used only for deodexed firmware, you cannot use stock firmware
https://forum.xda-developers.com/ga...5-deodexed-stock-firmware-region-btu-t3691875
https://forum.xda-developers.com/showpost.php?p=75805830&postcount=13
snifing said:
any modifications can be used only for deodexed firmware, you cannot use stock firmware
https://forum.xda-developers.com/ga...5-deodexed-stock-firmware-region-btu-t3691875
https://forum.xda-developers.com/showpost.php?p=75805830&postcount=13
Click to expand...
Click to collapse
Please how is the performance of the deodexed compared to stock, I want to know please
willsrockson said:
Please how is the performance of the deodexed compared to stock, I want to know please
Click to expand...
Click to collapse
there is no difference between stock firmware and deodexed firmware, but if you use stock firmware, you will not be able to install the modifications, the modifications can only be installed if you use deodexed firmware
snifing said:
there is no difference between stock firmware and deodexed firmware, but if you use stock firmware, you will not be able to install the modifications, the modifications can only be installed if you use deodexed firmware
Click to expand...
Click to collapse
Okay I had an update last week and I updated it , I just want to know if it's not gonna conflict with the bootloader when Im flashing the deodexed
willsrockson said:
Okay I had an update last week and I updated it , I just want to know if it's not gonna conflict with the bootloader when Im flashing the deodexed
Click to expand...
Click to collapse
Deodexed installed on a specific firmware version, cannot be installed on any version of stock firmware,you can choose BTU stock firmware or INS + deodexed BTU or INS
Odex
In Android file system, applications come in packages with the extension .apk.
These application packages, or APK contain certain .odex files whose supposed function is to save space.
These ‘odex’ files are actually collections of parts of an application that are optimized before booting.
Doing so speeds up the boot process, as it preloads part of an application.
On the other hand, it also makes hacking those applications difficult because a part of the coding has already been extracted to another location before execution.
Deodexed
Deodexed is basically repackaging of these APKs in a certain way, such that they are reassembled into classes.dex files.
By doing that, all pieces of an application package are put together back in one place, thus eliminating the worry of a modified APK conflicting with some separate odexed parts.
snifing said:
Deodexed installed on a specific firmware version, cannot be installed on any version of stock firmware,you can choose BTU stock firmware or INS + deodexed BTU or INS
Odex
In Android file system, applications come in packages with the extension .apk.
These application packages, or APK contain certain .odex files whose supposed function is to save space.
These ‘odex’ files are actually collections of parts of an application that are optimized before booting.
Doing so speeds up the boot process, as it preloads part of an application.
On the other hand, it also makes hacking those applications difficult because a part of the coding has already been extracted to another location before execution.
Deodexed
Deodexed is basically repackaging of these APKs in a certain way, such that they are reassembled into classes.dex files.
By doing that, all pieces of an application package are put together back in one place, thus eliminating the worry of a modified APK conflicting with some separate odexed parts.
Click to expand...
Click to collapse
I'm not understanding this please explain to me, I wanted to follow the instructions from the site you sent me, but I just wanted to Know if there's a specific build number I have to be on to be able to flash that, or any build number on 5.1.1 is okay, please I'm talking of me flashing Deodexed firmware.
willsrockson said:
I'm not understanding this please explain to me, I wanted to follow the instructions from the site you sent me, but I just wanted to Know if there's a specific build number I have to be on to be able to flash that, or any build number on 5.1.1 is okay, please I'm talking of me flashing Deodexed firmware.
Click to expand...
Click to collapse
you have to flash stock firmware T285XXU0AQH1 + T285XXU0AQH1_DEODEXED I gave you this link https://forum.xda-developers.com/ga...5-deodexed-stock-firmware-region-btu-t3691875
snifing said:
you have to flash stock firmware T285XXU0AQH1 + T285XXU0AQH1_DEODEXED I gave you this link https://forum.xda-developers.com/ga...5-deodexed-stock-firmware-region-btu-t3691875
Click to expand...
Click to collapse
Okay I will follow through instructions there thanks so much
willsrockson said:
Okay I will follow through instructions there thanks so much
Click to expand...
Click to collapse
Man thanks so much, I have successfully flashed it and it working great, but I can't install Facebook messenger and also not all icons looks like s8 themed.