Hello,
I decompiled framework.jar for our phone and found some infos about FM radio
1:in android/app/SystemServiceRegistry.java from framework.jar
Code:
const-string v0, "0"
invoke-static {v0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
move-result v0
if-lez v0, :cond_4e3
const-string v0, "FMPlayer"
const-class v1, Lcom/samsung/media/fmradio/FMPlayer;
new-instance v2, Landroid/app/SystemServiceRegistry$93;
invoke-direct {v2}, Landroid/app/SystemServiceRegistry$93;-><init>()V
invoke-static {v0, v1, v2}, Landroid/app/SystemServiceRegistry;->registerService(Ljava/lang/String;Ljava/lang/Class;Landroid/app/SystemServiceRegistry$ServiceFetcher;)V
which is equal with:
temp=0
if (temp>0){activate FM system service} so never
2: In com/android/server/FMPlayerNative.java from same jar
Code:
.line 16
const-string v2, "fmradio_jni"
invoke-static {v2}, Ljava/lang/System;->loadLibrary(Ljava/lang/String;)V
equal: System.loadLibrary("fmradio_jni"); which dont exist in our phone but i found an old one from S5 maybe is ok
Anyone can help me to test more things? i made a new framework.jar to enable FM service but i cant test it because i cant just put it in system/framework on android 6 and i dont know what to do. i can upload it here if someone can test new jar and i made a small apk to try to see what logcat say if i try to acces FM service
ilie321 said:
Hello,
I decompiled framework.jar for our phone and found some infos about FM radio
1:in android/app/SystemServiceRegistry.java from framework.jar
Code:
const-string v0, "0"
invoke-static {v0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
move-result v0
if-lez v0, :cond_4e3
const-string v0, "FMPlayer"
const-class v1, Lcom/samsung/media/fmradio/FMPlayer;
new-instance v2, Landroid/app/SystemServiceRegistry$93;
invoke-direct {v2}, Landroid/app/SystemServiceRegistry$93;-><init>()V
invoke-static {v0, v1, v2}, Landroid/app/SystemServiceRegistry;->registerService(Ljava/lang/String;Ljava/lang/Class;Landroid/app/SystemServiceRegistry$ServiceFetcher;)V
which is equal with:
temp=0
if (temp>0){activate FM system service} so never
2: In com/android/server/FMPlayerNative.java from same jar
Code:
.line 16
const-string v2, "fmradio_jni"
invoke-static {v2}, Ljava/lang/System;->loadLibrary(Ljava/lang/String;)V
equal: System.loadLibrary("fmradio_jni"); which dont exist in our phone but i found an old one from S5 maybe is ok
Anyone can help me to test more things? i made a new framework.jar to enable FM service but i cant test it because i cant just put it in system/framework on android 6 and i dont know what to do. i can upload it here if someone can test new jar and i made a small apk to try to see what logcat say if i try to acces FM service
Click to expand...
Click to collapse
I am willing to help, you. If this can benefit us getting FM radio working for Exynos
@soka said:
I am willing to help, you. If this can benefit us getting FM radio working for Exynos
Click to expand...
Click to collapse
ty i,ve deodexed my stock rom i will try to test more today
also in our framework there are FMradio files for broadcom wifi/BT chip which has fm integrated---- i will try this path also
Until now just this message :
09-12 20:41:39.239 3343 3351 E System : java.lang.IllegalArgumentException: Receiver not registered: [email protected]
I think no good Fmradio_jni.so or no chip to get. I search more. Broadcom has the *. so in phone but fm acces was deleted from it
From what i see fm was made for Qualcomm and disabled because we have exynos kinda bad news. No service manual to see on schematic if Broadcom chip fm part is connected so again bad news
can someone with qualcomm variant test this FM app to see if is working for them?
no ones with qualcomm ?? to test
broadcom has incomplete files in framework so dead way and my final opinion is : no fm in s7 exynos
Didn't work for me. I'm on G935U, USA edition.
The app crashes on startup. I'm not rooted though.
anyone can provide me service manual/ schematic diagram for 935F to check if connection for fm exist
edit:done for me with this not enough data available
Related
I would like make white theme for froyo/sense rom but I can't change clock color in status bar.
- colorChange.jar v3.1 no work ( no found line 46 ..... )
- manually i extract StatusBarIcon.smali but no found " const/high16 v6, -0x100 invoke-virtual {v4, v7}, Landroid/widget/TextView;->setTextColor(I)V "
Please help
thanks
Same problem.
No .line 46...
I used the search and i cant find solution to this.
My phone is a huawei, but is the same problem, i want change the clock to white.
EDIT: Problem solved
Just add the color code over this line:
Code:
const v6, -0x1
invoke-virtual {v4, v6}, Landro / widget / TextView; -> SetTextColor (I) V
Before was like this:
Code:
move-result-object v6
invoke-virtual {v4, v6}, Landroid/widget/TextView;->setTextColor(I)V
"colorchanger.jar" helps me to find that line, because the error said me something like this:
"No color or old color: move-result-object v6" (LOL! i cant remember).
So I figured that was the line where the color goes.
Sorry for my bad English
JOSEunit10 said:
Same problem.
No .line 46...
I used the search and i cant find solution to this.
My phone is a huawei, but is the same problem, i want change the clock to white.
Click to expand...
Click to collapse
It's in line 60 on the Huawei Ideos X5.
Changed it to white successfully yesterday.
Same here =(
[DFT Freedom ROM] 7740 V3 Mozart DFT freedom ROM
DFT freedom ROM see http://forum.xda-developers.com/showthread.php?t=1205369
This version of the ROM support 22 languages, which are:
1.USA_CHT_CHS English_Simplified Chinese_Traditional Chinese
2.USA_ENG_FRA_ITA_GER_ESN_NLD_DAN_FIN_NOR_SVE_PTB_PTG_RUS_ELL_HUN_CSY_PLK English_Britain_France_Italy_Germany_Spain_Poland_Czech_Hungary_Denmark_Finland_Netherlands_Sweden_Norway_Brazil_Portuguese_Greece_Russia_Traditional Chinese_Simplified Chinese_Japanese_Korean 22 in one
Updates from V2:
Replace the native part of the 7740 code
Replace HTC HUB 2.2 (build 2119.36274)
Replace Connection setup 1.12 (build 18323)
Replace Location 1.1 (build 2119.32213)
Replace Connection Media 1.1 (build 2119.23307
Replace AttentivePhone 1.14
Replace Sound Enhancer 2.1
The first boot screen image update DFT
Reg tweaks of Volume changed from 0-30 to 60-100
Beijing time zone the default boot time zone (no SIM card)
USA_CHT_CHS version adds
HTC Watch (build 2119.26297)
Flashlight 1.2 (build 2118.36274)
Photo Enhancer 1.5 (build 2118.40242)
Note 1.6 (build 2118.41307)
Dock mode 1.1(build 2119.33256)
Compass 1.1 (build 2120.17141)
UC mango version of browser
DFT_DC (DFT Download Center)
Important Note
1. Before doing anything, make sure you have more than 50% battery!
2. You must have RSPL / HSPL installed on your device, download RSPL / HSPL see this http://forum.xda-developers.com/showthread.php?t=1195647
3. Supported Operating Systems: Windows XP, Windows Vista, Windows 7.
Disclaimer
This ROM is free of charge, at your own risk. We do not have any conflict, fault, or damage caused by the process of responsibility. Implied or otherwise, if you agree that any use of the product warranty. Did not find the problem, several different devices simultaneously to test this product, your experience may vary.
Products used for commercial purposes is strictly prohibited, and prohibited xda.cn forum, coolxap froum, nduoo Forum reproduced and used
For the protection of the DFT our official website and XDA-developers.com, it is not allowed within 5 days reproduced in this ROM, after five days free reproduced, reprinted, be sure to indicate the DFT produced the original post and add links
22 langs
Download link 1
Download link 2
WWE/CHS/CHT
Download link 1
Download link 2
Thanks downloading now
fix volume problem
[HKEY_CURRENT_USER\ControlPanel\Volume]
"Key"=dword:2
"Screen"=dword:2
"Mute"=dword:7
"Volume"=dword:C666C666
"MaxSystemUIVolume"=dword:1E
"MaxInCallUIVolume"=dword:A
"MaxdBAtten"=dword:2D
"MinInCallVolume"=dword:1111
DFT ROM V3 - change a search engine???
Great work!!! Thx....
I have a small question. It possible to change a search engine from the BING to the GOOGLE? Now I use the DFT ROM V2. In this ROM with APP Advance config. I can't do it, it's blocked.
I´m sorry for my english.
mwang said:
fix volume problem
[HKEY_CURRENT_USER\ControlPanel\Volume]
"Key"=dword:2
"Screen"=dword:2
"Mute"=dword:7
"Volume"=dword:C666C666
"MaxSystemUIVolume"=dword:1E
"MaxInCallUIVolume"=dword:A
"MaxdBAtten"=dword:2D
"MinInCallVolume"=dword:1111
Click to expand...
Click to collapse
I am unable to set the registry values it gives me error saying can't write registry values
Unable to set the registry values!!!????
mwang said:
fix volume problem
[HKEY_CURRENT_USER\ControlPanel\Volume]
"Key"=dword:2
"Screen"=dword:2
"Mute"=dword:7
"Volume"=dword:C666C666
"MaxSystemUIVolume"=dword:1E
"MaxInCallUIVolume"=dword:A
"MaxdBAtten"=dword:2D
"MinInCallVolume"=dword:1111
Click to expand...
Click to collapse
Error "unable to set the registry values" for changing!!!!!!!!
is very bad.
Adjusted as follows:
[HKEY_CURRENT_USER\ControlPanel\Volume]
"Key"=dword:2
"Screen"=dword:2
"Mute"=dword:7
"Volume"=dword:3328624230
"MaxSystemUIVolume"=dword:30
"MaxInCallUIVolume"=dword:10
"MaxdBAtten"=dword:45
"MinInCallVolume"=dword:1111
Click to expand...
Click to collapse
reboot! finish
Regards
great job
is it possible to change my predicting keyboard from chines to english
it is my only problem on this rom so far
Thanks for this one !!!
Hi,
i was searching but i can`t find clear information. Can i update my dft v1 to dft v3 without loosing contacts, photos, vids, app etc. ?
I was searching a good backup app but i can`t find any suitable.
Can you answer me ?
no you cant
Is anybody see the color banding problem when open HTC Hub? And I think the touch focus function camera is not appeared in V3, I saw this function in V2.
yugiohhh said:
Is anybody see the color banding problem when open HTC Hub? And I think the touch focus function camera is not appeared in V3, I saw this function in V2.
Click to expand...
Click to collapse
Modify your registry as follows (quoted from DFT China Forum, by Mwang)..
[HKEY_LOCAL_MACHINE\Drivers\Display\Primary]
"BPP"=dword:20
"PrimBPP"=dword:20
"PanelBPP"=dword:20
[HKEY_LOCAL_MACHINE\System\GDI\Drivers]
"DisplayType"="VGA"
"Bpp"=dword:20
"PalletteSupport"=dword:0
"ContrastSupport"=dword:0
"BacklightSupport"=dword:1
"BacklightMin"=dword:0
"BacklightMax"=dword:f
"BacklightDefault"=dword:2
then reboot. U'll find the color smoother.
For the touch focus function, which appeared in V2, was not perfect. You can touch the point to activate the focus frame but it wasn't effective. so it was removed in V3. it will be added again when running perfectly in future versions.
dft v3 runs perfectly smooth. thx!
can you implement burst shoot and panorama in the future versions? this would be cool.
BING to GOOGLE
Hi, For everybody .... Can you change search engine BING to GOOGLE in V3?? I have V2 + Advence Config., and in this version is impossible to do it
Sorry for my bad English...
EmpTea said:
[HKEY_LOCAL_MACHINE\Drivers\Display\Primary]
"BPP"=dword:20
"PrimBPP"=dword:20
"PanelBPP"=dword:20
Click to expand...
Click to collapse
This registry edit brings back the same color distortion.
You can check that in HTC Hub easily...
I want to remind that it's "Nodo fix 16 bit colour banding". Keyword is NoDo!!! We don't need to apply it anymore because it's fixed in the system by default.
The default meanings - 10 (hex) for all three parameters - work perfectly on latest 7740.
Low Signal Strength
message deleted due to wrong forum
AndrewSh said:
This registry edit brings back the same color distortion.
You can check that in HTC Hub easily...
I want to remind that it's "Nodo fix 16 bit colour banding". Keyword is NoDo!!! We don't need to apply it anymore because it's fixed in the system by default.
The default meanings - 10 (hex) for all three parameters - work perfectly on latest 7740.
Click to expand...
Click to collapse
EmpTea is right, you should test this rom with MOZART before you say that. May be this issue is not the colour banding problem. However, before I change the registry value like EmpTea, the gradient background in HTC Hub is not smooth.
yugiohhh said:
EmpTea is right, you should test this rom with MOZART before you say that. May be this issue is not the colour banding problem. However, before I change the registry value like EmpTea, the gradient background in HTC Hub is not smooth.
Click to expand...
Click to collapse
Are you kidding me? You wanna tell me what should I test? I don't use DFT rom V3 because:
1. it's pretty buggy (comparing to V2)
2. I use only my own roms
But believe me - I tested both V2 & V3.
I also tested that color **** on 3 different Mozarts. If the system is normally made 7740 - the Nodo color banding - just useless, even it makes it worse.
AndrewSh said:
Are you kidding me? You wanna tell me what should I test? I don't use DFT rom V3 because:
1. it's pretty buggy (comparing to V2)
2. I use only my own roms
But believe me - I tested both V2 & V3.
I also tested that color **** on 3 different Mozarts. If the system is normally made 7740 - the Nodo color banding - just useless, even it makes it worse.
Click to expand...
Click to collapse
What should you test?
1. Flash DFT V3
2. After flashing, open the HTC Hub and look at the blue gradient background. Is it smooth?
3. Edit the registry value like EmpTea's post
4. Reboot and open the HTC Hub again, look at the blue gradient background anf you will see the difference. Is it smoother?
If you don't want to do this test, I will show you some evidence pictures later. Anyway, I don't say that this issue is colour banding problem, may be it's another problem and my question in the post #12 above is wrong (in the post #12, I want to expland that the bg in HTC Hub is not smooth, sorry because I thought it is colour banding problem, sorry for my miss understanding). However, the registry fix in EmpTea's post is affective.
I'm not using DFT V3 like you because I like unlocked roms based on lastest ship rom without any tweaks for stability. But the EmpTea's solution works well, it's useful for people who want to use this rom.
Thanks.
How to port MIUI v4 to the Galaxy S II:
This guide is pretty much this guide but more changed for the SGS2.
Note: This guide isnt complete yet and will be updated regularly!
Also, check out my port here: M1UI
STEP A:
1. First off youre going to want to choose base rom. I recommend official CM10!
2. Delete these folders from base and add them from MIUI:
- app (Delete NFC.apk, rom wont work if you dont delete this. And LegacyCamera.apk, add Gallery2.apk from base for camera.
- fonts
- framework
- media
3. Add these files from MIUI LIB folder to base:
- content-types.properties (Themes wont work without this)
- liblbesec.so (For LBE Guard - MIUI superuser)
- liblocSDK_2.5OEM.so (For baidu location service, prevents network location provider FC)
4. Add these files from MIUI ETC folder to base:
- yellowpage.db (Phone call ability)
- telocation.td (If your porting for Nexus S, telocation.db in others) (Location provider dependency)
5. Add these files from MIUI ETC/permissions folder:
- com.nxp.mifare.xml (I dont think its needed for the SGSII though since we dont have NFC)
- miui-framework.xml (Activates MIUI framwork, very important]
- com.google.android.media.effects.xml (For the gallery)
- com.google.widevine.software.drm.xml (Needed for Google apps)
- com.google.android.maps.xml (For Google Maps)
6. Add these files from MIUI XBIN folder to base:
- su (Superuser)
- invoke-as (Binary with near busybox and toolbox functionality. Needed everywhere in system, mostly in themes and SU]
7. Add these lines anywhere in build.prop:
ro.build.id=MIUI
ro.build.display.id=MIUI
ro.build.version.incremental=2.x.x <-- Change this to the android version of your base rom
ro.config.ringtone=MI.ogg
ro.config.notification_sound=FadeIn.ogg
ro.config.alarm_alert=GoodMorning.ogg
ro.config.sms_received_sound=FadeIn.ogg
ro.config.sms_delivered_sound=MessageComplete.ogg
8. Add these lines in your updater-script in META-INF/com/google/android:
set_perm(0, 0, 06755, "/system/xbin/invoke-as");
set_perm(0, 0, 06755, "/system/lib/liblbesec.so");
set_perm(0, 0, 0755, "/system/addon.d/70-gapps.sh");
# Add these lines under all other "set_perm" lines.
9. Now download GApps (http://goo.im/gapps/gapps-jb-20121011-signed.zip) and copy over /system folder from it to your rom. (Or else Google Now etc might not work)
STEP B (Framework changes to make the rom boot):
I'll make an guide for specific changes for the SGS2 later, until then take a look at this post:
http://forum.xda-developers.com/showpost.php?p=28885450&postcount=2
A "Thanks" for my effort?
Thanks to:
* Lens_flare for original guide
* The android community for all knowledge
Click to expand...
Click to collapse
If you have issues/questions/anything to say then post in the thread and get help by the SGS2 community.
Reserved
I will finish it later, I dont have time atm! I think I will also make an automatic bash script that does everything for you.
LETS KEEP MIUI OWNING ON THE GALAXYYYYYY S2!
wow great job buddy, but I do not want to be bothered with it, was quite satisfied with the rom you are on me. sorry but i like :good:
pedro.coba said:
wow great job buddy, but I do not want to be bothered with it, was quite satisfied with the rom you are on me. sorry but i like :good:
Click to expand...
Click to collapse
No problems! I made this guide on my computer to make my porting abit easier so I though why not just upload it here?
a1exander said:
No problems! I made this guide on my computer to make my porting abit easier so I though why not just upload it here?
Click to expand...
Click to collapse
hahahaha I understand your point mate, btw when you Multilang rom version out?? I can not wait
Hello Xperia friends....
I just want to show you how to hack All Xperia Camera :laugh:
Requirement :
Knowladge in decompile/recompile apps
Hacking Audio Bitrate Video Recording
INFO for smali code
Value 0
Name: LowRate
Type: REG_DWORD
Data: 0x1f400 (SONY use this low bitrate so find this code to replace in the next step)
Value 1
Name: MediumRate
Type: REG_DWORD
Data: 0x2ee00
Value 2
Name: MediumHighRate
Type: REG_DWORD
Data: 0x3e800 (i'm use this code)
Value 3
Name: HighRate
Type: REG_DWORD
Data: 0x4e200
1. Decompile SemcCameraUI.apk
2. Go to smali/com/sonyericsson/android/camera
open Constants.smali using text editor/notepad++ then find this line
Code:
.field public static final VIDEO_AUDIO_BIT_RATE:I = [COLOR="Red"]0x1f400[/COLOR]
change RED Color code to code from INFO CODE, example :
Code:
.field public static final VIDEO_AUDIO_BIT_RATE:I = [COLOR="Red"]0x3e800[/COLOR]
save it!!!!
3. Go to smali/com/sonyericsson/android/camera/configuration/parameters
open VideoSize$VideoProfile$Builder.smali ( if there smali available, i mean different Xperia have diffierent parameters like older Xperia 2011)
search this code
Code:
[COLOR="Red"]0x1f400[/COLOR]
then change to
Code:
[COLOR="Red"]0x3e800[/COLOR]
save it!!!
4. Go to smali/com/sonyericsson/android/camera/configuration/parameters
open VideoSize.smali
search all this code
Code:
[COLOR="Red"]0x1f400[/COLOR]
then change all code to
Code:
[COLOR="Red"]0x3e800[/COLOR]
save it!!! Done
LAG ON VIDEO RECORDING ON XPERIA 2011 & XPERIA 2012 (Snapdragon S3/Novathor)???
Here is solution change FORMAT H264 to MPEG4!!!
INFO H264 VS MPEG4http://www.y-cam.com/blog/mpeg4-vs-h-264-45/
Smali code
H263 is
Code:
0x1
H264 is
Code:
0x2
MPEG4 is
Code:
0x3
1. Go to smali/com/sonyericsson/android/camera/configuration/parameters
open VideoSize.smali using text editor/notepad++ then find this line
(Note the Local maybe different)
Code:
.local v7, "videoFrameRate":I
const/4 v6, [COLOR="Red"]0x2[/COLOR]
change to
Code:
.local v7, "videoFrameRate":I
const/4 v6, [COLOR="Red"]0x3[/COLOR]
Save it!!! Done
Hacking Video Recording Bitrate
INFO for smali code
Value 1
Name: MediumRate
Data: 0xb71b00
Value 2
Name: MediumHighRate
Data: 0x10b0760
Value 3
Name: HighRate
Data: 0x1312d00
Value 4
Name: UltraHighRate
Data: 0x1c9c380
1. Go to smali/com/sonyericsson/android/camera
open Constants.smali using text editor/notepad++ then find this line
For HD 720p
Code:
.field public static final VIDEO_BIT_RATE_EX_HIGH_12M:I = [COLOR="Red"]0xb71b00[/COLOR]
change to
Code:
.field public static final VIDEO_BIT_RATE_EX_HIGH_12M:I = [COLOR="Red"]0x10b0760[/COLOR]
For FULL HD 1080p
Code:
.field public static final VIDEO_BIT_RATE_EX_HIGH_17_5M:I = [COLOR="Red"]0x10b0760[/COLOR]
change to
Code:
.field public static final VIDEO_BIT_RATE_EX_HIGH_17_5M:I = [COLOR="Red"]0x1312d00[/COLOR]
save it!!!
2. Go to smali/com/sonyericsson/android/camera/configuration/parameters
open VideoSize.smali the find this line
For HD 720p
Code:
[COLOR="Red"]0xb71b00[/COLOR]
change to
Code:
[COLOR="Red"]0x10b0760[/COLOR]
For FULL HD 1080p
Code:
[COLOR="Red"]0x10b0760[/COLOR]
change that all code to
Code:
[COLOR="Red"]0x1312d00[/COLOR]
save it!!! Done
NOW AFTER EDITING VIDEO AUDIO BITRATE & VIDEO BITRATE YOU NEED TO EDIT media_profile.xml
open media_profile.xml using text editor/notepad++ then find this line
FIX 100% Image Quality
Code:
<!ATTLIST ImageEncoding quality [COLOR="Red"](90|80|70|60|50|40)[/COLOR] #REQUIRED>
change to
Code:
<!ATTLIST ImageEncoding quality [COLOR="Red"](100|90|80|70|60|50)[/COLOR] #REQUIRED>
There is 2 lines code for back camera & front camera
Code:
<ImageEncoding quality="[COLOR="Red"]95[/COLOR]" />
<ImageEncoding quality="[COLOR="Red"]80[/COLOR]" />
<ImageEncoding quality="[COLOR="Red"]70[/COLOR]" />
change all code to
Code:
<ImageEncoding quality="[COLOR="Red"]100[/COLOR]" />
<ImageEncoding quality="[COLOR="Red"]90[/COLOR]" />
<ImageEncoding quality="[COLOR="Red"]80[/COLOR]" />
Adjust the value of smali Video & Audio Video bitrate with media-profile.xml (as you modified it)
There is many lines code for Video you need to change them all, example
Code:
<EncoderProfile quality="1080p" fileFormat="mp4" duration="60">
<Video codec="h264"
bitRate="17500000"
width="1920"
height="1080"
frameRate="30" />
<Audio codec="aac"
bitRate="156000"
sampleRate="48000"
channels="2" />
</EncoderProfile>
<EncoderProfile quality="720p" fileFormat="mp4" duration="60">
<Video codec="h264"
bitRate="12000000"
width="1280"
height="720"
frameRate="30" />
<Audio codec="aac"
bitRate="156000"
sampleRate="48000"
channels="2" />
</EncoderProfile>
change to
Code:
<EncoderProfile quality="1080p" fileFormat="mp4" duration="60">
<Video codec="h264"
bitRate="20000000"
width="1920"
height="1080"
frameRate="30" />
<Audio codec="aac"
bitRate="256000"
sampleRate="48000"
channels="2" />
</EncoderProfile>
<EncoderProfile quality="720p" fileFormat="mp4" duration="60">
<Video codec="h264"
bitRate="1750000"
width="1280"
height="720"
frameRate="30" />
<Audio codec="aac"
bitRate="256000"
sampleRate="48000"
channels="2" />
</EncoderProfile>
Code:
<VideoEncoderCap name="h264" enabled="true"
minBitRate="64000" maxBitRate="[COLOR="Red"]20000000[/COLOR]"
minFrameWidth="176" maxFrameWidth="1920"
minFrameHeight="144" maxFrameHeight="1080"
minFrameRate="15" maxFrameRate="30" />
Code:
<AudioEncoderCap name="aac" enabled="true"
minBitRate="8000" maxBitRate="[COLOR="Red"]256000[/COLOR]"
minSampleRate="8000" maxSampleRate="48000"
minChannels="1" maxChannels="[COLOR="Red"]2[/COLOR]" />
Note maxChannels Number in RED Color, can be 6 or 2
EXperimental hacking, Change format RGB_565 to ARGB8888
I use ONLY on Xperia 2011
1. Go to smali/com/sonyericsson/android/camera
open CameraActivity.smali using text editor/notepad++ then find this line
Code:
sget-object v12, Landroid/graphics/Bitmap$Config;->[COLOR="Red"]RGB_565[/COLOR]:Landroid/graphics/Bitmap$Config;
Code:
sget-object v0, Landroid/graphics/Bitmap$Config;->[COLOR="Red"]RGB_565[/COLOR]:Landroid/graphics/Bitmap$Config;
Change RED Color code to
Code:
[COLOR="Red"]ARGB_8888[/COLOR]
2. Go to smali/com/sonyericsson/android/camera
open ImageManager.smali then search for RGB example :
Code:
sget-object v0, Landroid/graphics/Bitmap$Config;->[COLOR="Red"]RGB_565[/COLOR]:Landroid/graphics/Bitmap$Config;
change all code to
Code:
sget-object v0, Landroid/graphics/Bitmap$Config;->[COLOR="Red"]ARGB_8888[/COLOR]:Landroid/graphics/Bitmap$Config;
3. Go to smali/com/sonyericsson/android/camera/device
open CameraExtensionValues.smali then search for RGB example :
Code:
.field public static final POSTVIEW_FORMAT_RGB565:Ljava/lang/String; = [COLOR="Red"]"rgb565"[/COLOR]
change to
Code:
.field public static final POSTVIEW_FORMAT_RGB565:Ljava/lang/String; = [COLOR="Red"]"argb8888"[/COLOR]
save it!!!
Enable inPreferQualityOverSpeed (I Use ONLY on Xperia 2011)
1. Go to smali/com/sonyericsson/android/camera
open CameraActivity.smali
Code:
[COLOR="Red"].local v11, opt:Landroid/graphics/BitmapFactory$Options;[/COLOR]
[COLOR="Red"]sget-object v15, Landroid/graphics/Bitmap$Config;->RGB_565:Landroid/graphics/Bitmap$Config;[/COLOR]
[COLOR="Red"]iput-boolean v6, v11, Landroid/graphics/BitmapFactory$Options;->inPreferQualityOverSpeed:Z[/COLOR]
iput-object v15, v11, Landroid/graphics/BitmapFactory$Options;->inPreferredConfig:Landroid/graphics/Bitmap$Config;
Look for RED Color it's should be like this
Code:
[COLOR="Red"]
.local v11, opt:Landroid/graphics/BitmapFactory$Options;
const/4 v6, 0x1[/COLOR]
[COLOR="Red"]iput-boolean v6, v11, Landroid/graphics/BitmapFactory$Options;->inPreferQualityOverSpeed:Z
iput-boolean v6, v11, Landroid/graphics/BitmapFactory$Options;->inDither:Z[/COLOR]
[COLOR="Red"]sget-object v15, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;[/COLOR]
iput-object v15, v11, Landroid/graphics/BitmapFactory$Options;->inPreferredConfig:Landroid/graphics/Bitmap$Config;
Hacking Camera Resolution/MP (More Options)
More Options for Photo (Only work for Xperia 2011 & 2012 Snapdragon S3/Novathor)
For Xperia 2012 Snapdragon S4 and 2013/2014 doesn't work, need to be removing some code in smali, i'm still looking for it
1. Go to res/value
open arrays.xml using text editor/notepad++ then find this line
For 12MP Camera
Code:
<string-array name="ux_recommended_resolution_array_main_12m">
<item>TWELVE_MP</item>
<item>NINE_MP</item>
<item>TWO_MP</item>
<item>TWO_MP_WIDE</item>
add others line
Code:
<string-array name="ux_recommended_resolution_array_main_12m">
<item>TWELVE_MP</item>
<item>NINE_MP</item>
<item>EIGHT_MP</item>
<item>FIVE_MP</item>
<item>THREE_MP_WIDE</item>
<item>TWO_MP</item>
<item>TWO_MP_WIDE</item>
For 8MP Camera
Code:
<string-array name="ux_recommended_resolution_array_main_8m">
<item>EIGHT_MP</item>
<item>SIX_MP</item>
<item>TWO_MP</item>
<item>TWO_MP_WIDE</item>
add others line
Code:
<string-array name="ux_recommended_resolution_array_main_8m">
<item>EIGHT_MP</item>
<item>SIX_MP</item>
<item>FIVE_MP</item>
<item>THREE_MP</item>
<item>TWO_MP</item>
<item>TWO_MP_WIDE</item>
More Options for Video (Work for all Xperia)
1. Go to res/value
open arrays.xml using text editor/notepad++ then find this line
For 20MP Camera
Code:
<string-array name="ux_recommended_video_size_array_main_20m">
<item>FULL_HD</item>
<item>HD</item>
<item>MMS</item>
add others line
Code:
<string-array name="ux_recommended_video_size_array_main_20m">
<item>FULL_HD</item>
<item>HD</item>
<item>FWVGA</item>
<item>VGA</item>
<item>QVGA</item>
<item>MMS</item>
For 13MP Camera
Code:
<string-array name="ux_recommended_video_size_array_main_13m">
<item>FULL_HD</item>
<item>HD</item>
<item>MMS</item>
add others line
Code:
<string-array name="ux_recommended_video_size_array_main_13m">
<item>FULL_HD</item>
<item>HD</item>
<item>FWVGA</item>
<item>VGA</item>
<item>QVGA</item>
<item>MMS</item>
For 12MP Camera
Code:
<string-array name="ux_recommended_video_size_array_main_12m">
<item>FULL_HD</item>
<item>HD</item>
<item>MMS</item>
add others line
Code:
<string-array name="ux_recommended_video_size_array_main_12m">
<item>FULL_HD</item>
<item>HD</item>
<item>FWVGA</item>
<item>VGA</item>
<item>QVGA</item>
<item>MMS</item>
For 8MP Camera FULL HD 1080p
Code:
<string-array name="ux_recommended_video_size_array_main_8m_full_hd">
<item>FULL_HD</item>
<item>HD</item>
<item>MMS</item>
add others line
Code:
<string-array name="ux_recommended_video_size_array_main_8m_full_hd">
<item>FULL_HD</item>
<item>HD</item>
<item>FWVGA</item>
<item>VGA</item>
<item>QVGA</item>
<item>MMS</item>
For 8MP Camera HD 720p
Code:
<string-array name="ux_recommended_video_size_array_main_8m_hd">
<item>HD</item>
<item>FWVGA</item>
<item>QVGA</item>
<item>MMS</item>
add others line
Code:
<string-array name="ux_recommended_video_size_array_main_8m_hd">
<item>HD</item>
<item>FWVGA</item>
<item>VGA</item>
<item>QVGA</item>
<item>MMS</item>
For 5MP Camera HD 720p
Code:
<string-array name="ux_recommended_video_size_array_main_5m_fwvga">
<item>HD</item>
<item>FWVGA</item>
<item>QVGA</item>
<item>MMS</item>
add others line
Code:
<string-array name="ux_recommended_video_size_array_main_5m_fwvga">
<item>HD</item>
<item>FWVGA</item>
<item>VGA</item>
<item>QVGA</item>
<item>MMS</item>
Save it!!!
Enable 12MP Superior Auto on Jelly Bean 4.3
How to Install :
- Download the file in attachment
- Copy to system with root explorer etc
- Set permissions to 644 (rw-r--r--)
- Move the file to system>vendor>overlay
- Reboot
- After boot go to settings>apps>all
- Clear data Camera & try open camera app
Enjoy :laugh:
Credits :
Thanks to SONY Mobile that made all this possible
Thanks to my old friend @Xperia-Ray for helping me from beginning
Nice guide man!
Will try it
Sent from my LT18i using Tapatalk 2
Thanks,this guide change audio bitrate only,how about video bitrate?
Nuhun kang, I'll try ur guide, anyway how to change the photo quality? Is it same method?
Sent from my C1905 using XDA Premium 4 mobile app
wow
awesome guide bro very nice :good:
It WOKS.....
thank you it does work for decompile and recompile of the apk iused this tool
http://forum.xda-developers.com/showthread.php?t=2326604
awesome....
Any mode to add manual shutter controll?
Jpeg image quality can be change in build.prop? Righ?
great job !!!!!!!!!!!!!!
one request..., tell us how to enable scene recognition...
hi @Rizal Lovins
i didn't see media_profile.xml in xml folder
devilmaycry2020 said:
hi @Rizal Lovins
i didn't see media_profile.xml in xml folder
Click to expand...
Click to collapse
it's located on ur rom,, system/etc/ media_profile.xml
Grt
Will try it :good:
raajplays said:
it's located on ur rom,, system/etc/ media_profile.xml
Click to expand...
Click to collapse
thanks. i've tried and got Error : Camera not available when recording video. any helps.
devilmaycry2020 said:
thanks. i've tried and got Error : Camera not available when recording video. any helps.
Click to expand...
Click to collapse
don't say thanks, hit thanks
double check ur videoSize.smali,
raajplays said:
don't say thanks, hit thanks
double check ur videoSize.smali,
Click to expand...
Click to collapse
did you make it work ? i'm using TX 4.3.
Report: No sound when using video to record,
Sent from my C1905 using XDA Premium 4 mobile app
[Q&A] [Guide How-to] KitKat 4.4.2/Android L Music Control - Volume Music Skip and Mo
Q&A for [Guide How-to] KitKat 4.4.2/Android L Music Control - Volume Music Skip and More
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for [Guide How-to] KitKat 4.4.2/Android L Music Control - Volume Music Skip and More. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
tdunham said:
I think you mean the other choices. It's a known issue I think. The only dependable ones that work are the music skip right now.
Click to expand...
Click to collapse
Hi,tried your guide to make a mod to your Sony Xperia M2.Here is the log
Code:
OM PowerHAL( 3933): Invalid hint ID.
rfaceFlinger( 310): Screen acquired, type=0 flinger=0xb81b2450
rfaceFlinger( 310): screen was previously acquired
stemServer( 3933): Consumer IR Service
stemServer( 3933): Alarm Manager
armManagerService( 3933): Kernel timezone updated to -180 minutes west of GMT
stemServer( 3933): Init Watchdog
stemServer( 3933): Input Manager
putManager( 3933): Initializing input manager, mUseDevInputEventForAudioJack=true
stemServer( 3933): Window Manager
lvikvm( 3933): VFY: expected non-float cat-1 arg to if
lvikvm( 3933): VFY: rejecting opcode 0x38 at 0x01cb
lvikvm( 3933): VFY: rejected Lcom/android/internal/policy/impl/PhoneWindowManager;.interceptKeyBeforeQueueing (Landroid/view/KeyEvent;IZ)I
lvikvm( 3933): Verifier rejected class Lcom/android/internal/policy/impl/PhoneWindowManager;
lvikvm( 3933): threadid=11: thread exiting with uncaught exception (group=0x4158cd88)
stem ( 3933): ******************************************
ocess ( 3933): Sending signal. PID: 3933 SIG: 9
droidRuntime( 3933): *** FATAL EXCEPTION IN SYSTEM PROCESS: WindowManager
droidRuntime( 3933): java.lang.VerifyError: com/android/internal/policy/impl/PhoneWindowManager
I specifically can't understand what is wrong do and think what you did here
Code:
.line 4598
:cond_13
:goto_7
move-object/from16 v0, p0
iget v0, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mVolBtnMusicControls:I
if-eqz v0, :cond_td
invoke-virtual/range {p0 .. p0}, Lcom/android/internal/policy/impl/PhoneWindowManager;->isMusicActive()Z
move-result v0
if-eqz v0, :cond_td
move-object/from16 v0, p0
iget-boolean v0, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mScreenOnEarly:Z
if-nez v0, :cond_td
if-eqz v10, :cond_td2
move-object/from16 v0, p0
move/from16 v1, v12
invoke-virtual {v0, v1}, Lcom/android/internal/policy/impl/PhoneWindowManager;->handleVolumeLongPress(I)V
const/4 v15, 0x0
goto/16 :goto_0
:cond_td2
move-object/from16 v0, p0
invoke-virtual {v0}, Lcom/android/internal/policy/impl/PhoneWindowManager;->handleVolumeLongPressAbort()V
iget-boolean v1, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mIsVolLongPressed:Z
if-nez v1, :cond_td3
move/from16 v1, v12
const/4 v3, 0x3
invoke-virtual {v0, v2, v1}, Lcom/android/internal/policy/impl/PhoneWindowManager;->handleVolumeKey(II)V
:cond_td3
const/4 v1, 0x0
iput-boolean v1, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mIsVolLongPressed:Z
:cond_td
if-eqz v10, :cond_0
.line 4599
invoke-static {}, Lcom/android/internal/policy/impl/PhoneWindowManager;->getTelephonyService()Lcom/android/internal/telephony/ITelephony;
move-result-object v20
.line 4600
.restart local v20 # "telephonyService":Lcom/android/internal/telephony/ITelephony;
if-eqz v20, :cond_18
.line 4602
:try_start_1
invoke-interface/range {v20 .. v20}, Lcom/android/internal/telephony/ITelephony;->isRinging()Z
move-result v2
if-eqz v2, :cond_17
.line 4609
const-string v2, "WindowManager"
const-string v3, "interceptKeyBeforeQueueing: VOLUME key-down while ringing: Silence ringer!"
invoke-static {v2, v3}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
I hope for your help.