[App][17.03.14]Dr.Ketan's Utilities

Search This thread

Mr_Big_ZN

New member
Jan 5, 2015
2
0
will the doc please report to Surgery

Doc please I need your help, my note 3 n900 started showing the circle with the line through it at the end of last year which I thought might be a faulty Sim reader so when the problem became more frequent I sent it to a local cell shop , after they had it for a couple weeks they said it wasn't the Sim reader that is the problem but rather the imei was corupted and that they can't fix it. When I got the phone back it already had a new Rom on it and all my info wiped off of it. Since then I have tried every app I can get my hands on and more roms then I can count to try get it working. I need your help please. I have currently flashed the latest stock Rom being ver. 5 but it's still the same. Can you assist me please
 

Mr_Big_ZN

New member
Jan 5, 2015
2
0
still needing help

Hey Doc, tried installing your lollipop Rom , great job by the way but unfortunately it hasn't helped with my problem. I still have the circle with the line and when dial *#06# it'd still says null/null. Your assistance would be greatly appreciated. FYI I live on a tiny island in the middle of the Indian Ocean and we don't have much in the way of tech support so please help me.
 

ashish0304

Senior Member
Feb 10, 2011
56
12
Hi,
I'm on Moto E(Condor), CM 12.1 ROM. There are two files in Sounds folder .amr and %CNAME_%CDATE_%CTIME.amr. while calling, I'm getting notification in the status bar, but no recording. I've given root permission after ending of the first call.
Any help will be much appreciated.
Thanks.

---------- Post added at 09:07 PM ---------- Previous post was at 08:55 PM ----------

 
Last edited:

kpirnie

Recognized Contributor
@dr.ketan

So I'm making an attempt at building a CSC Manager settings "page" for DomPop, and I figured I'd ask the master since you built an app that already does this LOL
And tho I am re-inventing the wheel, I'd really like to know....

Is there a way to dynamically add/process the csc settings without having to add each individual item?
For instance I currently have 3 done, but of course I have to and want to add alot more
But for each item I had to create a seperate section, etc...

.class public Lcom/android/settings/CscSettings;
.super Lcom/android/settings/SettingsPreferenceFragment;
.source "CscSettings.java"

# interfaces
.implements Landroid/preference/Preference$OnPreferenceChangeListener;


# instance fields
.field private mCamGpsMenuPref:Landroid/preference/CheckBoxPreference;

.field private mCamPauseMusicPref:Landroid/preference/CheckBoxPreference;

.field private mCamShutterSoundPref:Landroid/preference/CheckBoxPreference;


# direct methods
.method public constructor <init>()V
.locals 0

invoke-direct {p0}, Lcom/android/settings/SettingsPreferenceFragment;-><init>()V

return-void
.end method


# virtual methods
.method public onCreate(Landroid/os/Bundle;)V
.locals 7

const/4 v2, 0x1

const/4 v3, 0x0

invoke-super {p0, p1}, Lcom/android/settings/SettingsPreferenceFragment;->onCreate(Landroid/os/Bundle;)V

const v1, 0x7f070107

invoke-virtual {p0, v1}, Lcom/android/settings/CscSettings;->addPreferencesFromResource(I)V

const-string v1, "csc_gps_menu"

invoke-virtual {p0, v1}, Lcom/android/settings/CscSettings;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

move-result-object v1

check-cast v1, Landroid/preference/CheckBoxPreference;

iput-object v1, p0, Lcom/android/settings/CscSettings;->mCamGpsMenuPref:Landroid/preference/CheckBoxPreference;

iget-object v4, p0, Lcom/android/settings/CscSettings;->mCamGpsMenuPref:Landroid/preference/CheckBoxPreference;

invoke-virtual {p0}, Lcom/android/settings/CscSettings;->getActivity()Landroid/app/Activity;

move-result-object v1

invoke-virtual {v1}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v1

const-string v5, "csc_gps_menu"

invoke-static {v1, v5, v3}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v1

if-ne v1, v2, :cond_0

move v1, v2

:goto_0
const-string v1, "csc_shutter_menu"

invoke-virtual {p0, v1}, Lcom/android/settings/CscSettings;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

move-result-object v1

check-cast v1, Landroid/preference/CheckBoxPreference;

iput-object v1, p0, Lcom/android/settings/CscSettings;->mCamShutterSoundPref:Landroid/preference/CheckBoxPreference;

iget-object v4, p0, Lcom/android/settings/CscSettings;->mCamShutterSoundPref:Landroid/preference/CheckBoxPreference;

invoke-virtual {p0}, Lcom/android/settings/CscSettings;->getActivity()Landroid/app/Activity;

move-result-object v1

invoke-virtual {v1}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v1

const-string v5, "csc_shutter_menu"

invoke-static {v1, v5, v3}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v1

if-ne v1, v2, :cond_1

move v1, v2

:goto_1
const-string v1, "csc_pause_music"

invoke-virtual {p0, v1}, Lcom/android/settings/CscSettings;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

move-result-object v1

check-cast v1, Landroid/preference/CheckBoxPreference;

iput-object v1, p0, Lcom/android/settings/CscSettings;->mCamPauseMusicPref:Landroid/preference/CheckBoxPreference;

iget-object v4, p0, Lcom/android/settings/CscSettings;->mCamPauseMusicPref:Landroid/preference/CheckBoxPreference;

invoke-virtual {p0}, Lcom/android/settings/CscSettings;->getActivity()Landroid/app/Activity;

move-result-object v1

invoke-virtual {v1}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v1

const-string v5, "csc_pause_music"

invoke-static {v1, v5, v3}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v1

if-ne v1, v2, :cond_2

move v1, v2

:goto_2
invoke-virtual {v4, v1}, Landroid/preference/CheckBoxPreference;->setChecked(Z)V

return-void

:cond_0
move v1, v3

goto :goto_0

:cond_1
move v1, v3

goto :goto_1

:cond_2
move v1, v3

goto :goto_2
.end method

.method public onPreferenceChange(Landroid/preference/Preference;Ljava/lang/Object;)Z
.locals 7

const/4 v2, 0x0

move v5, v2

return v5
.end method

.method public onPreferenceTreeClick(Landroid/preference/PreferenceScreen;Landroid/preference/Preference;)Z
.locals 5

const/4 v0, 0x0

const/4 v1, 0x1

iget-object v2, p0, Lcom/android/settings/CscSettings;->mCamGpsMenuPref:Landroid/preference/CheckBoxPreference;

if-ne p2, v2, :cond_2

invoke-virtual {p0}, Lcom/android/settings/CscSettings;->getActivity()Landroid/app/Activity;

move-result-object v2

invoke-virtual {v2}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v2

const-string v3, "csc_gps_menu"

check-cast p2, Landroid/preference/CheckBoxPreference;

invoke-virtual {p2}, Landroid/preference/CheckBoxPreference;->isChecked()Z

move-result v4

if-eqz v4, :cond_0

move v0, v1

:cond_0
invoke-static {v2, v3, v0}, Landroid/provider/Settings$System;->putInt(Landroid/content/ContentResolver;Ljava/lang/String;I)Z

:goto_0
return v1

:cond_1
invoke-super {p0, p1, p2}, Lcom/android/settings/SettingsPreferenceFragment;->onPreferenceTreeClick(Landroid/preference/PreferenceScreen;Landroid/preference/Preference;)Z

move-result v1

goto/16 :goto_0

:cond_2
iget-object v2, p0, Lcom/android/settings/CscSettings;->mCamShutterSoundPref:Landroid/preference/CheckBoxPreference;

if-ne p2, v2, :cond_4

invoke-virtual {p0}, Lcom/android/settings/CscSettings;->getActivity()Landroid/app/Activity;

move-result-object v2

invoke-virtual {v2}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v2

const-string v3, "csc_shutter_menu"

check-cast p2, Landroid/preference/CheckBoxPreference;

invoke-virtual {p2}, Landroid/preference/CheckBoxPreference;->isChecked()Z

move-result v4

if-eqz v4, :cond_3

move v0, v1

:cond_3
invoke-static {v2, v3, v0}, Landroid/provider/Settings$System;->putInt(Landroid/content/ContentResolver;Ljava/lang/String;I)Z

goto/16 :goto_0

:cond_4
iget-object v2, p0, Lcom/android/settings/CscSettings;->mCamPauseMusicPref:Landroid/preference/CheckBoxPreference;

if-ne p2, v2, :cond_1

invoke-virtual {p0}, Lcom/android/settings/CscSettings;->getActivity()Landroid/app/Activity;

move-result-object v2

invoke-virtual {v2}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v2

const-string v3, "csc_pause_music"

check-cast p2, Landroid/preference/CheckBoxPreference;

invoke-virtual {p2}, Landroid/preference/CheckBoxPreference;->isChecked()Z

move-result v4

if-eqz v4, :cond_5

move v0, v1

:cond_5
invoke-static {v2, v3, v0}, Landroid/provider/Settings$System;->putInt(Landroid/content/ContentResolver;Ljava/lang/String;I)Z

goto/16 :goto_0
.end method


What I'm wondering is, if I change something in the .xml (say, the key or something), can the .smali be forced to read that info and update the CSC to the value? for instance

Code:
<CheckBoxPreference android:title="GPS Menu" android:key="csc_gps_menu" android:summaryOn="@string/csc_on" android:summaryOff="@string/csc_off" />

If I change this to something like
Code:
<CheckBoxPreference android:title="GPS Menu" android:key="CscFeature_Camera_DisableGPSMenu" android:summaryOn="@string/csc_on" android:summaryOff="@string/csc_off" />

Is .smali smart enough to be able to change it?

I appreciate any guidance you could send me, even if it's just a link bro...
 

tune2john

Member
Dec 5, 2011
12
0
Hi can you please confirm that the call recording is working for SM-N9005 with Lollipop?

Sent from my SM-N9005 using XDA Free mobile app
 

Top Liked Posts

  • There are no posts matching your filters.
  • 35
    Dr.Ketan's Utilities

    attachment.php
    attachment.php


    Features :
    Application have list of functions it can offers, which devided in two parts A.Toggles - Simply you can On with single Press OR OFF with long press on Icon. B.Tasks - single press on icon warn you about task and long press on icon will perform task.
    All Menu have self explanatory po up menus and clicking on any menu, it will inform you detail about feature.

    1.Call Recording - It can auto record Incomng call and Outgoing call. You can select it separately. File will be saved to IntSD/Sounds folder. Make sure folder is available otherwise make it manually.

    2.Auto GPS This will turn ON GPS when you open some common applications which requires GPS like Maps,Camera,Sygic,N Drive,S Note, Scrapbook and few more. It also will turn OFF GPS when you exit from these applications.

    3.Auo Wifi It will Auto Turn OFF WIFI if there is no active connection for 10 min.

    4.Auto Blutooth This will auto turn OFF Bluetooth if BT is ON with unpaired stat for more than 10min.

    5.Smart Network. This will turn OFF Mobile data after 30sec of turning screen off, and Auto turn ON with screen ON.

    6.Media Scanner You must be knowing about media scanning process of android with every boot and USB disconnection. This utility can turn OFF media scanning and you can scan device (usually needs after updating media files) anytime by turning it ON.

    7.Torch (Flash light) on shaking device. If you shake device Lt to Rt when screen is ON (Home screen OR Lock screen), torch light will be ON. it will auto off after 20sec. You can manually turn off earlier from screen. Note that if you turn off manually then you can use this utility again after 20sec finish. Also note that if your ROM doesn't have Flashlight Toggle inbuilt then you have to flash Torch files separately (available in download section)

    8.Ligin security This will silently capture picture if someone attempts to unlock screen two times with wrong password. File will be stored in IntSD/DCIM/DrKetan utilities folder
    If login security not working then do this
    setting-general-security-deviec admin - enable for Secure setting here
    Also make sure you have Dr.Ketan_utilities folder under Int sdcard/DCIM


    9.EFS Backup/Restore (only on N900) Simple as name suggest it will make EFS back and Restore. When you backup, file will ve saved to IntSD root directore as efs.img, also there will be other text file for time stamp. Note than when you restore EFS you must have to keep efs.img on root directory of IntSD

    10.Data FIX This is work around for issue after restoring data with titanium on latest firmware. If you find force closes after restoring data with TB, you can perform this task.

    11.IntSD FIX This is workaround for IntSD read error on latest kitkat. usually happens after moving AOSP to TW ROM.

    12.Recovery Flasher No more PC dependency for flashing recovery. Just extract your desire recovery to recovery.img and keep on root directory of IntSD and run the task, that's it. You can use this even on stock recovery.

    Special Instructions
    -Needs rooted device
    -This application needs some plug in and if it missing on your device running first time this app will leads to play store to download it.
    -This requres root. If any function doesn't work then check SuperSU if SU permission was not denied accidently. You can trigger superSU permissin by turning outgoing call record ON and when you end first outgong call it will ask for SuperSU permission.

    ROM Inclusion and sharing
    This application you can includes to ROM without my permission but you have to follow these conditions
    • Application can't be temper by any means and have to include as it is, also you havn't to hide from drawer.
    • Proper credits is must on OP
    • Link to this thread is must on OP

    Download and Installation Instruction
    If you want to support development you can buy a coffee by donation OR you can buy donate application from play store

    Play store link - Play store version now updated to functional application. This play store appl have 3min time to switch off non connected wifi and bluetooth. also have user application for Torch. you can install without CWM. Pro CSC features also included in Play store version just to note, play store version is common for all device and EFS,Recovery tool excluded.

    N900
    1.Download Dr.Ketan Utility N900 V1.0 and simply install as regular apk
    2.If your ROM doesn't having Torch Toggle, you needs to flash Torch.apk use flashlight on shaking feature. Download Torch file and flash from CWM

    N9005
    1.Download Dr.Ketan Utility N9005 V1.0 and simply install as regular apk
    2.If your ROM doesn't having Torch Toggle, you needs to flash Torch.apk use flashlight on shaking feature. Download Torch file and flash from CWM
    3.If your ROM is not patched for Call recording (if not patched then saved file just records noise) you needs to apply call recording fix credit for recording fix to lidroid

    N7100

    Other Devices
    All features except for EFS Backup/Restore and Recovery flash should work on any 4.0 + devices. To add support these features to your device in future, you needs to send me PIT files of your device.
    4
    Play store version updated

    -Totally new UI
    -Flashlight on shaking device no more requires third party app but using device camera flashlight.
    -Added my paid app Meet Me (car parking) application free to Dr.Ketan Utility donate users. (application is part of utilities now)
    -Added Auto scan option (media scanning only when device connected to AC charger)
    1
    Ohhh the suspense. ... lol....
    No doubt it will be good.....

    Sent from my SM-N900P using Tapatalk
    1
    Download links updated
    1
    *done*

    Even if free version is working perfect, I feel better to use the V1.3 paid version ;)

    Great work Doc ! and Thank you !


    Edit : have to launch the app at every boot and close it to switch everything (Auto GPS, Call record ON , etc ) ? Anything that I did wrong ?
    Edit 2 : Everything's fine : have to wait for a while(~1 min) for the system to grant access to all options through Super SU.