[GUIDE] Make Google Camera save at 100% Quality (4 MB) photos [TW][AOSP][ALL PHONES] - Galaxy S 4 General

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

Related

[Q] Lock Screen xml?

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?

[video] [Guide] enable WhatsApp calling feature.. any device (4.4+)

video link https://www.youtube.com/watch?v=8RlIxhEJEOw
STEPS:-Install the latest apk (Of course)
Open any root explorer (es file explorer preferred )
and navigate to /data/data/com.whatsapp/shared_prefs/com.whatsapp_preferences.xml
Add these 2 lines anywhere in the file but within the <map></map> and save
<boolean name="call" value="true" /> <string name="call_allowed">all</string>
now force stop WhatsApp and open it again .... and you are done
Not able to post kink but video id = 8RlIxhEJEOw
Edit if any one can post link then plz add that video...thanks
Seems no one interested
Seems like not working.
I got the call tab, but anyone I'm trying calling to, it's just getting disconnect immediately.
(all the people I tried have the updated version)

[GUIDE][2.3+]Owner Pic in About Phone without smalis[Easiest way ever]

Yo Guys,I am here with a guide of adding Owner Pic in About Phone.I saw some guides which weren't noob friendly lots of codes were to be added and even smalis
I have made this guide as easy as possible also you don't have to do any work with smalis and you can easily do it on phone
REQUIREMENTS
-ApkTool(Not in a mood of giving you guide for decompiling/recompiling)
-Any text editor(NotePad++,920TextEditor or any other,ur choice)
STEP 1
Decompile your Settings.apk found in /system/app/*here
STEP 2
Go to Settings_src/res/xml/device_info_settings.xml and add the below line above first <PreferenceScreen and below xmlns:android="http://schemas.android.com/apk/res/android">
Code:
<PreferenceCategory android:layout="@layout/dpxd" />
STEP 3
Extract Guide-OwnerPic-SamarthXD.zip in the RESOURCES DOWNLOAD part below and copy-paste dpxd.xml in Settings_src/res/layout/*here and displaypic.png in Settings_src/res/drawable-*dpi/*here
One more thing people ask is what shud be the resolution of the pic for that just take screenshot of your phone and get its dimension for example SGYD screenshot dimension is 320X240 then there pic size should be 160X240 just take half the height of ur device and full breadth
STEP 4
Recompile and sign, don't get your phone messed up
In this guide you can add the Pic but it won't be changeable If you would want to change you'll hav to decompile Settings again (No smalis,remember XD)
Nice Guide

How to remove SIM Icon from SystemUI.apk 5.0.2 Lollipop

pls help me remove the sim icon from status bar
Galaxy A3 SM-A300H 5.0.2 Lollipop
If you don't know how to decompile or recompile apk's, You can go and learn by searching it on google.
Requirements:
SystemUI.apk (deodex)
Text editor like Notepad++ or etc.
Know how to decompile/recompile apk's
Have a basic editing xml skills
Usefull brain
Patience
Some snacks
Steps:
Decompile SystemUI.apk
Open res/layout-sw320dp-hdpi/signal_cluster_view
Find android:id="@id/sim_icon_chn" and replace that line with this line
<ImageView android:id="@id/sim_icon_chn" android:visibility="invisible" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_marginRight="0.0dip" />
Still on signal_cluster_view, find android:id="@id/sim_icon" and replace that line with this
<ImageView android:id="@id/sim_icon" android:visibility="invisible" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_marginRight="0.0dip" />
Save
Recompile
Push/Flash using flashable zip via CWM/TWRP
Enjoy
I give full credit to their developers.
Peace

T285 SystemUI + 3MinitClock + MM White + Blur Effect Deodexed

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.

Categories

Resources