Hi all I was Searching way to do 30 steps mod for the new L preview version as this version dont support exposed that can enable this mod because it use art runtime as default.
I find a way and I want to share it to you.
You will need root and custom recovery for do this mod .
For who that dont have root already here a little guide for how toget root -
1.Download the boot file from http://downloads.codefi.re/savoca/hammerhead (not my work Thanks to savoca for do this)
2.Download SuperSU from http://forum.xda-developers.com/showthread.php?t=1538053 (big Thanks to Chainfire)
3.Flash SuperSU from the recovery menu.
4.Boot to bootloader mode and do fastboot flash boot boot.img .
how to do the Steps mod -
1.Download the mod from (framework.jar) https://mega.co.nz/#!UZ802DrJ!sW-YTPUg9l3X7Qfn3qJ-s8ymHa3OLo8soxv0ahQHPac
or
https://www.dropbox.com/s/xzmiifsbojc8ndf/framework.jar
MD5 - 937286FED640772EFE223EA486254672
2.copy the framework.jar to your phone sd card.
3.Install file manager (I recommend to use Root Browser or Root Explorer )
4.Open the file manager and go to system/frameworkpath and copy the framework.jar that you download on step 1 to framework folder and overwrite it .
5. set permission to rw-r--r and reboot and you are done.
Again for the root big Thanks for savoca and Chainfire.
Sorry for my bad english
@or965
can you tell me what changes are actually made in the framework.jar? I could not find any hints. thanks!
Xyam said:
@or965
can you tell me what changes are actually made in the framework.jar? I could not find any hints. thanks!
Click to expand...
Click to collapse
I edit the AudioService.smali in the framework .This mod is old for the L preview ,If you want to do it for newer rom or stock rom you need to take the framework.jar form your rom, open it, Search for AudioService.smali ,open it and Search for array_2c0 and change it to
0x5t 0x0t 0x0t 0x0t
0x7t 0x0t 0x0t 0x0t
0x7t 0x0t 0x0t 0x0t
0x1Et 0x0t 0x0t 0x0t
0x7t 0x0t 0x0t 0x0t
0x7t 0x0t 0x0t 0x0t
0x1Et 0x0t 0x0t 0x0t
0x7t 0x0t 0x0t 0x0t
0xft 0x0t 0x0t 0x0t
0xft 0x0t 0x0t 0x0t
Sorry for my bad english
Thanks @or965! But I cannot find "AudioService.smali" after decompiling "framework.jar". Are you using the smali and baksmali 2.0.3?
Can you try decompiling the attached .jar? It comes from CM12 nightly. thanks!
Xyam said:
Thanks @or965! But I cannot find "AudioService.smali" after decompiling "framework.jar". Are you using the smali and baksmali 2.0.3?
Can you try decompiling the attached .jar? It comes from CM12 nightly. thanks!
Click to expand...
Click to collapse
You're right there's not AudioService.smali file in it ,this mod dont work on cm12 ,its need to work on all aosp rom ,I tested this on optipop and Cataclysm.
Xyam said:
@or965
can you tell me what changes are actually made in the framework.jar? I could not find any hints. thanks!
Click to expand...
Click to collapse
http://forum.xda-developers.com/goo...-to-volume-steps-smooth-scroll-stock-t2617050
EnricoD said:
http://forum.xda-developers.com/goo...-to-volume-steps-smooth-scroll-stock-t2617050
Click to expand...
Click to collapse
Thanks but this works in kk only
Related
Newbies Thinks to make custom rom.. but dunno how
But when forever king's guide here NO prob!
Things we Need-
1 winrar or winzip
base rom
Brain
notepad ++
Things You will find in Rom (when will you extract-:
1- Boot.img (in some roms not)
2-System
3- Meta-inf
No need to touch Boot.img, Meta inf as i will tell later on
So open system folder
Open Build.prop in system folder and open with notepad++
Open this page
tweaks by forever king
See open build.prop tweaks
And open build.prop and scroll to last....
Press enter
and type
"#Tweaks"
Now add all tweaks in that Webpage
Mods
You can add many mods like
1 Beats Audio (2.3+)
2 Adrenaline Engine (2.3+)
3 SlaidyBoost (2.3+)
4 Megabassbeats (2.2+ need$ xloud)
U need to port them to ya fone , dont ask me as i also dunno l0l
Adding tweaks to ya rom (build.prop)
Open build.prop (system folder)
find line ' ro.build.id=xxxxxxx '
Now change this to ' ro.build.id=yournameorwhatever '
Adding Apps to your Rom
1 Open system>app (folder)
Add .apk files to it (copy n paste xD)
2 Adding Init.d tweaks (if your base rom having init.d support in boot.img)
Open this webpage
tweaks by forever king
Scroll down (lil bit)
and see init.d tweaks
Add like this
Make new file and paste any script
like
"echo "2048,3072,6144,15360,17920,20480" > /sys/module/lowmemorykiller/parameters/minfree"
this and save this file (no extention , save without .txt or any)
3 Adding bootanimation
Replacing bootanimation
-download bootanimation u want to use and rename it to "bootanimation.zip"
-delete animation u find in /./"rom"/system/media and then paste bootanimation u downloaded
Now modifying framework (u see statubar in rom and many tweaks)
Using UOT kitchen
Thanks to "CallMeVentus" for guide
Finnaly Done... will add more when i am freek xD >.<
Now Compress it in .zip
Now sign the Rom Signer
Open and see how
now flash Rom and test.....
if workeD then coool
Never say 'thanks' , hit it
Advance for N00bs
Never say thanks,hit it
How to make Rom transparent
See my guide = http://forum.xda-developers.com/showthread.php?t=1799373
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
How to decompile android app , u need this TUT for making rom transparent or editing apps..
See my guide= http://forum.xda-developers.com/showthread.php?t=1772220
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
How to add powermenu on your Rom
http://forum.xda-developers.com/showthread.php?t=811532
Thanks untermensch
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Some tweaks making Rom fast
http://www.mediafire.com/?t8rsdmedu5w2vo5 (by me)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
How to Deodex Rom and >odex back
Things nEeded
Code:
backsmali.jar
* smali.jar
* custom java.awt.jar
* dexopt wrapper
* recent version of busybox
Download this
Open CMD CD to folder extracted those scripts and type
1 Deodexing Framework files-
Code:
java -Xmx1024m -jar baksmali.jar -c :core.jar:bouncycastle.jar:ext.jar:framework.jar:android.policy.jar:services.jar:core-junit.jar -x android.policy.odex
(i am taking android.policy.jar as example , if framework.jar or whatever just change 'android.policy.jar' to 'framework.jar' and 'framework.odex'
This will make out folder
now smali that out folder by
typing
Code:
java -Xmx1024m -jar smali.jar out -o classes.dex
in CMD
HTML:
open android.policy.jar with 7zip without extracting
push the classes.dex created in the 7zip window in the root folder
close the 7zip windows and here is your deodexed android.policy.jar
2 Deodexing any App file i am taking systemUI.apk as example
Code:
java -Xmx1024m -jar baksmali.jar -c :am.jar:android.policy.jar:android.test.runner.jar:bmgr.jar:bouncycastle.jar:com.android.location.provider.jar:com.google.android.maps.jar:com.samsung.device.jar:com.yamaha.android.media.jar:core.jar:core-junit.jar:ext.jar:framework.jar:ime.jar:input.jar:java.awt.jar:javax.obex.jar:libvtmanagerjar.jar:monkey.jar:pm.jar:sec_feature.jar:seccamera.jar:sechardware.jar:secmediarecorder.jar:services.jar:sqlite-jdbc.jar:svc.jar:twframework.jar -x SystemUI.odex
Again out folder created now make it smali
by typing
Code:
java -Xmx1024m -jar smali.jar out -o classes.dex
in CMD
open SystemUI.apk with 7zip without extracting
push the classes.dex created in the 7zip window in the root folder
close the 7zip windows and here is your deodexed SystemUI.apk
Click to expand...
Click to collapse
3 Now we will learn to odexing back
1/ backup your original files (apk jar and odex) to /sdcard/Mod/
2/ copy modified deodexed files (.apk and .jar) in /system/framework/
3/ open a CMD prompt in the folder of adb.exe (usualy /android-sdk-windows/platform-tools/)
4/ type command :
Code:
adb shell
su
## for .JAR file :
dexopt-wrapper /system/framework/XXX.jar /system/framework/patched_XXX.odex /system/framework/core.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/core-junit.jar
response must be :
--- BEGIN '/system/framework/android.policy.jar' (bootstrap=0) ---
--- waiting for verify+opt, pid=7194
--- would reduce privs here
--- END '/system/framework/android.policy.jar' (success) ---
## for .APK file :
dexopt-wrapper /system/framework/XXX.apk /system/framework/patched_XXX.odex /system/framework/core.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/core-junit.jaradb shell
su
## for .JAR file :
dexopt-wrapper /system/framework/XXX.jar /system/framework/patched_XXX.odex /system/framework/core.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/core-junit.jar
response must be :
--- BEGIN '/system/framework/android.policy.jar' (bootstrap=0) ---
--- waiting for verify+opt, pid=7194
--- would reduce privs here
--- END '/system/framework/android.policy.jar' (success) ---
## for .APK file :
dexopt-wrapper /system/framework/XXX.apk /system/framework/patched_XXX.odex /system/framework/core.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/core-junit.jar
It will makepatched_apknameyouodexing file now remove (renaming) "patched_" line so it will be "apknameyouodexing.odex"
Now copy Signatures- (in same CMD)
Code:
# if not already done ...
adb shell
su
# copy the original .odex and .jar in system/framework (not .apk) :
cp /sdcard/MOD/original.XXX.odex /system/framework
cp -f /sdcard/MOD/XXX.jar /system/framework # where XXX.jar is the original odexed .jar
# give all permissions to XXX.odex files :
chmod 777 /system/framework/original.XXX.odex
chmod 777 /system/framework/patched_XXX.odex
# copy signature :
busybox dd if=/system/framework/original.XXX.odex of=/system/framework/patched_XXX.odex bs=1 count=20 skip=52 seek=52 conv=notrunc
response must be :
busybox dd if=/system/framework/original.XXX.odex of=/system/framewor
k/patched_XXX.odex bs=1 count=20 skip=52 seek=52 conv=notrunc
20+0 records in
20+0 records out
20 bytes (20B) copied, 0.002042 seconds, 9.6KB/s
Done now odex/deodex your Rom , so easy!
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Changing splash Screen (bootsccreen before bootanimation)
Ok. 1st of all i dont maDe this script and i dont know who made it xD but i would day 'thanks' to Him
http://www.mediafire.com/?sr6lso6w7vj21o6
How to use this!! >>??
Decompile boot.img Scroll down to see HoW to decompile it/use DSIXDA kitchen
Ramdisk>initlogo.rle (make new folder and paste initlogo.rle into it)
now extract that downloaded kit in it
1 Now open CD to location and type
Code:
convert_image to rle.bat initlogo.rle
(if u named .rle file to 'yourfilename'
then type
Code:
convert image to rle.bat yourfilename.rle
2 the filename.raw file and filename.rle file will be created at the same location as filename.rle
Now yoU will see filename.png edit it like what you Want xD
3 For compiling filename.png to .rle , CD to that folder having dose files!
typE
Code:
convert rle to image.bat filename.png
Use this if you see Decompiled .rle Burred-
Code:
@bin\convert -depth 8 -size 333x774 rgb:initlogo.raw initlogo.png
(take your phone's size i just took which my mind told xD)
4 Now you will see new file named
filename.png.rle rename it to filename.rle
Done now replace it into your extracted boot.img and repack it
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Decompilng Boot.img
I didnt made this Script http://www.modaco.com/topic/340710-tool-edit-bootimg/ is originall thread thanks to him
Download Boot.img tools
So easy to use
Just extract it in folder
Now place boot.img also in it
Now open 'start.bat'
* Press 1 to decompile the boot.img
* replace the ramdisk.gz (if you want)
* replace the kernel (if you want)
* Press 2 and it will compile the boot.img again!
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Modifying updater-script (found in /META-INF/com/google/android)
Open with Notepad++
Now you can see in this pic theres written 'Welcome to Cm installer....'
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
How to make this!
open updater-script
you will see 1st line ! make enter so you can add 1 line (at first)
Now add
Code:
ui_print("your text anything");
Code:
package_extract_dir("system", "/system");
tells extract directory system to system (in android)
Code:
mount("system");
tells mount specific directory like u can change location to dev folder
Code:
unmount("/system");
means unmount from where you mounted ! before
Code:
show_progress(0.200000, 5);
tells us that show progress like you can see when installing Rom yellow lines comes (CWM) u can control by this. its by Seconds..
Code:
symlink("busybox", "/system/xbin/fold");
means make symbolic link to that file at folder 'xbin'
Code:
format("MTD", "system");
means format mounted system folder
Code:
delete("/data/local");
Tells that delete /data/local folder
Code:
set_perm(0, 0, 0777, "/system/bin/chka2sd");
set pem means setting permission like chka2sd permission rww-rww-rww
Code:
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));
it means flash boot.img make raw file (image) at tmp/boot (afterwards android do which i dunno) and delete that file!
Now save this file
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Modifying settings.apk
Creed$ rom!
you can see 'author name' which is not in our normal settings!
how he D!d?
Decompile apk by apkmanager ( i wont tell again xD , not by apktool )
1 goto res>xml open "device_info_settings.xml"
2 scroll to last and add line before "</PreferenceScreen>" line
3 add this line
Code:
<Preference android:title="Rom name (or whatever" android:summary="My rom name (what ever)" style="?android:preferenceInformationStyle" />
you can add many of them
4 Now compile from apkmanager when ask delete any file from 'keep folder' delete this file from keep folder and Install apk
too easy!
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Enabling CRT animation on 2.3x
CRT animation is dam cool animation effect when locking phone so see how to make in your rom
But what is it?
1 Decompile framework-res.apk
2 goto res>values>bools.xml
3 Change "<bool name="config_animateScreenLights">true</bool>" to "<bool name="config_animateScreenLights">false</bool>"
Done.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Swipe to clear notifications
http://forum.xda-developers.com/showthread.php?t=1483193
thanks hansip87
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
When i do something (just that thing which i moded) i got bootloap/loop!
1 Open that think you will get loop
2 open terminal
3 type
Code:
su
logcat>sdcard/logcat.txt
So end. i will add more if i got any in mind/guidE xD
A nice guide for the noobs, but I think all of this is a little basic. But if you keep adding onto this, then it will be a great guide.
Nice
asvantypography said:
Nice
Click to expand...
Click to collapse
thanks button dere
invasion2-- adding sooon!!
Is it possible to deodex from terminal emulator?
-XoRoX- said:
Is it possible to deodex from terminal emulator?
Click to expand...
Click to collapse
sooory dude! but u can thru fone.... I saw app' odex me ' or maybe it was 'deodex me' I dunno it works/not
Thanks for your work!
john9 said:
Thanks for your work!
Click to expand...
Click to collapse
button there >.< read....this..every user commenting btw welcome!
Thanks for this guide! I assume no linux dev environment is needed, cuz I can't, at least that's what happened with dsixda kitchen
Sent from my HTC_Amaze_4G using Xparent Green Tapatalk 2
eggydrums said:
Thanks for this guide! I assume no linux dev environment is needed, cuz I can't, at least that's what happened with dsixda kitchen
Sent from my HTC_Amaze_4G using Xparent Green Tapatalk 2
Click to expand...
Click to collapse
press thanks n welcome...I will add sooon its long so its future plan xD
modifying settings tut is wrong.
we have to edit xml in strings and public also
lol ur wrong
Avilove.Cullen said:
modifying settings tut is wrong.
we have to edit xml in strings and public also
Click to expand...
Click to collapse
ps. I am not editing settings.xml!
its lyk this! I made it dude! public.xml?
which entry? of Icon? no Icon needed!
Well its comprehensive and noob proof
Just a side note: Always mention the link to original article of any forum especially the deodexing part!
Secondly as Avilove.cullen said the tutorial for modification in Settings is incomplete as you also have to kang up the respective strings in strings.xml
And FYI we need not modify public.xml only when you put icons or images
varun.chitre15 said:
Well its comprehensive and noob proof
Just a side note: Always mention the link to original article of any forum especially the deodexing part!
Secondly as Avilove.cullen said the tutorial for modification in Settings is incomplete as you also have to kang up the respective strings in strings.xml
And FYI we need not modify public.xml only when you put icons or images
Click to expand...
Click to collapse
ok... will makE comlelty fr noobs !
dude I sa!d credits to dere devs ok will add link soon xD
fr icons u r wrong
decompile microfire 2's rom decompil settings.apk lol seee fire icon deres entry in public.xml Icons- which sum roms having coloured icons ! seee I can calll aksh too he also say this!
its ofcourCe v need png entry in settings.xml (or whereva)
and 1 png of that name I'm drawable-xxx
For adding strings, adding those strings in string.xml and public.xml is not necessary.... u cat do that too... but it works without adding too... i checked it ma self.... just remv "@string\" and "your_text".....
When adding a new menu item you need to edit the layout right?
Sent from my LG-E739 using Tapatalk 2
mistere372002 said:
When adding a new menu item you need to edit the layout right?
Sent from my LG-E739 using Tapatalk 2
Click to expand...
Click to collapse
Actually this isn't fundamental
It depends on the original developer where he defines it
In case of settings.apk it is with xml folder.
varun.chitre15 said:
Actually this isn't fundamental
It depends on the original developer where he defines it
In case of settings.apk it is with xml folder.
Click to expand...
Click to collapse
OK so say you wanted to add a list item called start clock. You would add the preferencescreen code and specify the target in settings.XML only? You wouldn't add lines to Id.XML or strings.XML and values.XML and then specify where in the layout folder of the appropriate XML in that folder?
Sent from my LG-E739 using Tapatalk 2
Who knows the reason for always apps optimizing in my custom Rom in every reboot?( always android is upgrading)
Sent from my SK17i using xda premium
This Guide will show you how to Disable increasing ringtone and enable Record feature on Jellybean 4.1.1 without decompiling SecPhone.apk.
You will need to download the zip at the bottom of this thread and unpack folder to desktop.
Java jdk Installed and Environment Variables set correctly (if you don’t know how Google it)
SecPhone.apk for you rom (Deodexed)
Notepad ++
And 7zip.
1. Place SecPhone.apk into SecPhone Diss folder downloaded previously.
2. Hold shift and right click mouse in folder to bring up menu and click: open command prompt here.
3. Type: java -Xmx512m -jar baksmali.jar SecPhone.apk and hit Enter. When this is finished you should have a new folder called out.
4. Go to: SecPhone Diss\SecPhone.apk\smali\com\android\phone and open Ringer$1.smali with Notepad ++.
5. Search for:Landroid/media/AudioManager;->setStreamVolume(III)V .There will be 2 entries. You want the first one, it should match the code below. The v1 v6 etc may be different!
6. Delete the line marked with -- .Increasing ringtone gone!
---------------------------------------------------------------------------------------------------------
iget-object v1,v1,Lcom/android/phone/Ringer;>mAudioManager:Landroid/media/AudioManager;
-- invoke-virtual{v1, v6, v4, v5}, Landroid/media/AudioManager;->setStreamVolume(III)V
.line 573
const/4 v1, 0x7
const-wide/16 v2,0x7d0
----------------------------------------------------------------------------------------------------------
Now for the Record function. If you don’t want this function skip to step 10
7. Go to SecPhoneDiss\SecPhone.apk\smali\com\android\phone\PhoneFeature .smali and open withNotepad ++
8. Search for invoke-static {}, Lcom/android/phone/PhoneFeature;->makeFeatureForUsa()V
9. Add the code marked with ++
----------------------------------------------------------------------------------------------------------
invoke-static {}, Lcom/android/phone/PhoneFeature;->makeFeatureForJapan()V
.line 796
:cond_d
invoke-static {}, Lcom/android/phone/PhoneFeature;->makeFeatureForUsa()V
.line 797
++sget-object v0, Lcom/android/phone/PhoneFeature;->mFeatureList:Ljava/util/HashMap;
++const-string v2, "voice_call_recording"
++const/4 v4, 0x1
++invoke-static {v4}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
++move-result-object v3
++invoke-virtual {v0, v2, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/ObjectLjava/lang/Object;
return-void
-------------------------------------------------------------------------------------------------------------------
10. Now hold shift and right click mouse in folder to bring up menu and click: open command prompt here again and this time type: java -Xmx512m -jar smali.jar out -o classes.dex when complete you will have a new file called classes.dex
11. Right click SecPhone.apk and open archive with 7zip. Inside will be a file named classes.dex replace this one with the one just made by drag drop method.
Job done!
If this helps you the please click Thanks
Be sure to checkout my rom here: http://forum.xda-developers.com/showthread.php?t=1970440
Disclaimer: Do at your own risk. I am not responsible for any damage/data loss etc from doing this Mod. No one made you do it.
Thank you! Will be trying this today.
Sent from my SCH-I535 using Tapatalk 2
gharrington said:
This Guide will show you how to Disable increasing ringtone and enable Record feature on Jellybean 4.1.1 without decompiling SecPhone.apk.
You will need to download the zip at the bottom of this thread and unpack folder to desktop.
Java jdk Installed and Environment Variables set correctly (if you don’t know how Google it)
SecPhone.apk for you rom (Deodexed)
Notepad ++
And 7zip.
1. Place SecPhone.apk into SecPhone Diss folder downloaded previously.
2. Hold shift and right click mouse in folder to bring up menu and click: open command prompt here.
3. Type: java -Xmx512m -jar baksmali.jar SecPhone.apk and hit Enter. When this is finished you should have a new folder called out.
4. Go to: SecPhone Diss\SecPhone.apk\smali\com\android\phone and open Ringer$1.smali with Notepad ++.
5. Search for:Landroid/media/AudioManager;->setStreamVolume(III)V .There will be 2 entries. You want the first one, it should match the code below. The v1 v6 etc may be different!
6. Delete the line marked with -- .Increasing ringtone gone!
---------------------------------------------------------------------------------------------------------
iget-object v1,v1,Lcom/android/phone/Ringer;>mAudioManager:Landroid/media/AudioManager;
-- invoke-virtual{v1, v6, v4, v5}, Landroid/media/AudioManager;->setStreamVolume(III)V
.line 573
const/4 v1, 0x7
const-wide/16 v2,0x7d0
----------------------------------------------------------------------------------------------------------
Now for the Record function. If you don’t want this function skip to step 10
7. Go to SecPhoneDiss\SecPhone.apk\smali\com\android\phone\PhoneFeature .smali and open withNotepad ++
8. Search for invoke-static {}, Lcom/android/phone/PhoneFeature;->makeFeatureForUsa()V
9. Add the code marked with ++
----------------------------------------------------------------------------------------------------------
invoke-static {}, Lcom/android/phone/PhoneFeature;->makeFeatureForJapan()V
.line 796
:cond_d
invoke-static {}, Lcom/android/phone/PhoneFeature;->makeFeatureForUsa()V
.line 797
++sget-object v0, Lcom/android/phone/PhoneFeature;->mFeatureList:Ljava/util/HashMap;
++const-string v2, "voice_call_recording"
++const/4 v4, 0x1
++invoke-static {v4}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
++move-result-object v3
++invoke-virtual {v0, v2, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/ObjectLjava/lang/Object;
return-void
-------------------------------------------------------------------------------------------------------------------
10. Now hold shift and right click mouse in folder to bring up menu and click: open command prompt here again and this time type: java -Xmx512m -jar smali.jar out -o classes.dex when complete you will have a new file called classes.dex
11. Right click SecPhone.apk and open archive with 7zip. Inside will be a file named classes.dex replace this one with the one just made by drag drop method.
Job done!
If this helps you the please click Thanks
Be sure to checkout my rom here: http://forum.xda-developers.com/showthread.php?t=1970440
Disclaimer: Do at your own risk. I am not responsible for any damage/data loss etc from doing this Mod. No one made you do it.
Click to expand...
Click to collapse
Thank you.
When we're on a call and receive another call via call waiting, answering a call gives up a dialog with 2 options:
"1. Putting caller 1 on hold
2. Ending call with caller 1"
This choice imo is very stupid, since it wastes time and negates the very purpose behind call waiting.
By the time I choose an option the call gets missed.
Can you show how to set default as "put caller 1 on hold".
Sent from my GT-I9300 using xda app-developers app
Thks..that a pretty simple n straight forward guide. Tried n working on deodexed ELK4 firmware.
Sent from my GT-I9300 using xda app-developers app
Is there any guide for stock ODEXED JB rom? Please, guys, help me, really need this mode!
How should I alter these instructions for use on Ubuntu with an android development environment setup?
CorySCline said:
How should I alter these instructions for use on Ubuntu with an android development environment setup?
Click to expand...
Click to collapse
1. Insure java is installed.
2. Copy the two files downloaded baksmali.jar and smali.jar directly into home folder (remove them from SecPhone Diss folder) along with SecPhone.apk
3. Its pretty much same deal only you don't need 7zip just double click apks and they open as zip.
4.As long as the files are in home folder. instead of steps 2 + 10 just open terminal and type code.
5.In step 3 the folder created out will be created in home folder.
That should get you through if you get stuck just ask and ill try to help you. Also I just write this it might help you http://forum.xda-developers.com/showthread.php?t=2048132
its the same thing with 4.1.2 ?
F3nr1s said:
its the same thing with 4.1.2 ?
Click to expand...
Click to collapse
Yes mate will work for 4.1.2.
call recording for 4.2.1
gharrington said:
Yes mate will work for 4.1.2.
Click to expand...
Click to collapse
will work for 4.2.1?
anuar.ultimate said:
will work for 4.2.1?
Click to expand...
Click to collapse
I would say not without some modifications at least but I haven't looked yet.
What about CM10.1? Can we patch it with this? Or is it patched already out-of-the-box?
Great manual!
gharrington said:
This Guide will show you how to Disable increasing ringtone and enable Record feature on Jellybean 4.1.1 without decompiling SecPhone.apk
Click to expand...
Click to collapse
Thanks for this great manual!
DualJoe said:
What about CM10.1? Can we patch it with this? Or is it patched already out-of-the-box?
Click to expand...
Click to collapse
In CM10.1 increasing sound disabled by default
Worked on Neatrom 5.9 (SGS2). So easy and useful!
Thanks for the guide, would it be fesible to add a toggle in settings to turn increasing ring tone on and off if wanted.. Thanks again for your time
Sent from my SM-N900V using Tapatalk
Help me please
Hello,
I checked my own phone, but you said no files. Note 3 and Lollipop 5.0 installed on my phone.
What do I need to look into the file?
Thank you.
Description:
I developed this program so that i can build my script fast and easily with clicks of button so i thought of sharing my program. This program is designed to auto make your updater-script. You can edit a updater-script or build your own. It has a Graphical interface and is made on Java.
It allow the user to check some boxes and it will build a script.
For beginners they should take a look at ASC by Octanium91 its better than my program and might work better for you.
THREAD NAVIGATION:
1.Descrption,Features,Credits
2.Screenshots
3.Download & Installation,Usage
Click to expand...
Click to collapse
FEATURES
Auto build an updater-script of your choice
Edit an updater-script
Good for those who are lazy don't want to make a script (like me )
Now Supports ext3,ext4.yaffs2 mounting (change \mountpoint )
Based on JAVA
Version Information:
Developed By: Ayan
Version: 1.0.3
Stage: Beta
Bugs
1. Select Rom button does not work
2. Can view updater-script but cannot save.
3. updater-script tested on twrp, CWM, philz recovery thanks to nashj1975.
4.You tell me.
CREDITS To (Do not forget to thank them.)
1. Octanium91 for his android script creator.
2. Karadorde for his great tutorial to write updater-script.
3. coolexe for his script syntax
Mail me at [email protected] for any feedbacks or tell me more mountpoint so that i can add them.
__________________________________________________ __________________________________________________
SCREENSHOTS
__________________________________________________ __________________________________________________
DOWNLOAD
UPDATER-SCRIPT maker v1.0(mediafire)UPDATER-SCRIPT maker v1.0.3(mediafire)
INSTALLATION,USAGE1. Download Java from here.
2. Download updater-script maker.
3. Extract to any location.
4. Run Updater-script.jar
Code:
[COLOR="Teal"][SIZE="3"][COLOR="DarkRed"]I don't take responsibility of any negative things like, boot looping, bricked device,
broken SD card, your kitten run away with neighbors cat or your phone became a zombie
and a next world war caused by Tool above...[/COLOR][/SIZE][/COLOR]
Using updater-script maker
HOW TO USE
Don't use "auto build" if you have different mountpoint
You can use the "select updater-script"
You can use the auto-build for ext3,ext4 ;just change the mountpoints.
Using Auto Build
1. Tick your desired boxes .
Code:
You can easily choose between Rom and flashable zip
2. Click on 'Auto Build' button.
3. Choose your rom folder then select open
Code:
[COLOR="Sienna"]Don't use open button to view folder[/COLOR]
if you have no folder then choose desktop
4.Updater-script will be generated and will be previewed
Code:
updater-script is not yet saved, it can be edited
5.After doing any changes press save button
Code:
[B]NOTE:[/B] You can select your save location
Using Select Updater Script
1. Click on 'Select Updater Script'.
2. Choose your updater-script.
3. Edit the updater-script.
4. Copy-paste it to Notepad++ You can save the updater-script to anywhere.
5. Save it as updater-script.
Changelog
12th June 2015-Initial release UpSAM v1.0.0
17th June 2015-UpSAM v1.0.3 release
Included a lot of things
Changed .jar to .exe don't be afraid
Reserved
UpSAM v1.0.1 completed
will release UpSAM v1.0.3 directly
You can send me feedback here.
I've always wanted something like this, I tried ACS but I didn't understand it. Thank you
Thanks mate press the thank button if i helped you.
nashj1975 said:
I've always wanted something like this, I tried ACS but I didn't understand it. Thank you
Click to expand...
Click to collapse
Thanks mate press the thank button if i helped you.
@ayan312002 I tried your tool and it works . I forgot to edit the mountpoints since i have an ext4 emmc device but it worked either way . Thanks and also it works with cwm and philz recovery. :highfive:
EDIT: I've added my mountpoints here they are:
Code:
mount("ext4", "EMMC", "/dev/block/mmcblk0p7", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p9", "/data");
mount("ext4", "EMMC", "/dev/block/mmcblk0p8", "cache");
mount("ext4", "EMMC", "/dev/block/mmcblk0p5", "/custpack");
Those mountpoints are for an MT6572 device.
If I'm Porting CM 14.1 ROM To CM 11 Base ROM, Will This Work Fine?
Hello good afternoon.
I have a Samsung J5 (2016) SM-J510FN and on the lock screen, at the bottom, there is a phrase "Slide display to unlock". Does anyone know how to delete this sentence ?.
Thank you.
this sentence is most likely in systemUI.apk
decompile systemUI.apk, navigate to systemui/res/values/strings.xml and find it and remove text from there (replace with space as example) and then recompile with original signature and then replace stock systemUI with the new one in TWRP file manager, dont forget to set CHMOD 755
Edit: use notepad++ for editing on windows, Mousepad on linux.
I'm not too advanced, but I'll try.
Hi All I am using Lenovo K6 Power .
Last wee I unlocked boot loader and installed Lineage OS 15.1 after that I am facing low in call volume problem (volume is very low from speakers while in call even if its set to higher)
so to solve this problem again I flashed device with Stock ROM provided here but still I am facing same issue.
I tried method given in this video ( https://www.youtube.com/watch?v=_h14mrM7kxY )also but didn't worked.
Please help me urgent. :crying: :crying:
Any one having low in call volume issue?, What you did to solve it?
shyamk128 said:
Any one having low in call volume issue?, What you did to solve it?
Click to expand...
Click to collapse
You will have to root your K6 Power,download ES File Explorer from Google play
navigate to folder /vendor/etc/ ,it is in the main directory of the phone
Find mixer_paths.xml file ,and hold your finger on it,then choose open with ES Text Editor
When the file opens Look for the line:
<path name="handset">
it will be around line 894 or so
and in the following section
<ctl name="RX1 Digital Volume" value="84" />
And change numeric value to something higher.
Do not use value above 99!
I was using value=95,it was perfect for me,when you change the value,save and exit,restart the phone and do a call.
I was using Lineage around 3 months ,it was perfect.But everybody complained about an incall echo. I hope you don't have echo issues.
I am using Lenovo k53a48(K6 Note) ,this fix is for all Lenovo K6 users,tested and it worked 100% on any model.
If it doesnt work,go to the official thread of lineage 15.1 in xda and read the comments,i have answered the same queation about 20 times.So good luck!
P.S. Do not go in System or sys folder like in the video! just go to Vendor folder,then /etc and find mixer_paths.xml
nikoman1987 said:
You will have to root your K6 Power,download ES File Explorer from Google play
navigate to folder /vendor/etc/ ,it is in the main directory of the phone
Find mixer_paths.xml file ,and hold your finger on it,then choose open with ES Text Editor
When the file opens Look for the line:
<path name="handset">
it will be around line 894 or so
and in the following section
<ctl name="RX1 Digital Volume" value="84" />
And change numeric value to something higher.
Do not use value above 99!
I was using value=95,it was perfect for me,when you change the value,save and exit,restart the phone and do a call.
I was using Lineage around 3 months ,it was perfect.But everybody complained about an incall echo. I hope you don't have echo issues.
I am using Lenovo k53a48(K6 Note) ,this fix is for all Lenovo K6 users,tested and it worked 100% on any model.
If it doesnt work,go to the official thread of lineage 15.1 in xda and read the comments,i have answered the same queation about 20 times.So good luck!
P.S. Do not go in System or sys folder like in the video! just go to Vendor folder,then /etc and find mixer_paths.xml
Click to expand...
Click to collapse
Hi bro can you please give me exact path of file mixer_paths.xml
shyamk128 said:
Hi bro can you please give me exact path of file mixer_paths.xml
Click to expand...
Click to collapse
root/vendor
It is right beneath system.
nikoman1987 said:
root/vendor
It is right beneath system.
Click to expand...
Click to collapse
I m using stock ROM as of now and its missing that file on path given by you bro
Sorry bro but it didn't worked for me, I again flashed lineage os 15.1 and then tried
shyamk128 said:
Sorry bro but it didn't worked for me, I again flashed lineage os 15.1 and then tried
Click to expand...
Click to collapse
Are you rooted? And have you saved and exit the file?
I have done this at least 15 times,worked every time,only echo issues before and after that.The echo is not related with these changes
nikoman1987 said:
Are you rooted? And have you saved and exit the file?
I have done this at least 15 times,worked every time,only echo issues before and after that.The echo is not related with these changes
Click to expand...
Click to collapse
Yes bro.
Now volume is too low , i doubt whether it is problem of that speaker or what
One more thing have anyone facing heating issues with this device?
shyamk128 said:
Yes bro.
Now volume is too low , i doubt whether it is problem of that speaker or what
Click to expand...
Click to collapse
Nope,not device problem,change the value to 99(from 84 to 99)
---------- Post added at 18:31 ---------- Previous post was at 17:43 ----------
shyamk128 said:
I m using stock ROM as of now and its missing that file on path given by you bro
Click to expand...
Click to collapse
stock rom is not lineage rom,in stock rom,the mixer_paths file is in root/system/etc . There will be no difference if you copy the original mixer paths,i have already tried to fix that too.This fix works only on lineage 15.1 rom,because the incall low volume is lineage related problem.
nikoman1987 said:
Nope,not device problem,change the value to 99(from 84 to 99)
---------- Post added at 18:31 ---------- Previous post was at 17:43 ----------
stock rom is not lineage rom,in stock rom,the mixer_paths file is in root/system/etc . There will be no difference if you copy the original mixer paths,i have already tried to fix that too.This fix works only on lineage 15.1 rom,because the incall low volume is lineage related problem.
Click to expand...
Click to collapse
Ok i tried with 95 value, will chk with 99 also .
I did this and it worked: https://forum.xda-developers.com/k5-plus/themes/low-mic-volume-fix-a6020-t3640890
I use Lenovo K6 Karate (K33B36) - AEX 4.6
Lenovo k6 power mixer paths.XML missing
Hii my name rohit,today I am flash aicp custom ROM but my phone sound issue in earphone .Immediately I open Es file explorer and saw him /,etc, mixer paths.XML missing in etc folder
follow