[MOD][ZSALED][SecPhone] Enable Call Recording

Status
Not open for further replies.

The Undertakerr

Senior Member
Apr 23, 2011
319
175
0
Still having problems decompiling/Recompiling.
1. Should I be using decompile with dependencies?
2. If so, How do I specify both of them with the drag and drop thingy?
3. Thanks.
I don't own an S3, but when you decompile S2 phone.apk,
you have to use twframework-res as dependencie file and set compression to 0.

I guess the same would count for the S3...

If you can't do it, upload your phone.apk. I will give it a try:)
 

eitama

Senior Member
Sep 18, 2010
625
202
0
Hod Hasharon
I don't own an S3, but when you decompile S2 phone.apk,
you have to use twframework-res as dependencie file and set compression to 0.

I guess the same would count for the S3...

If you can't do it, upload your phone.apk. I will give it a try:)
I added twframework and framework, but to no avail.
The compression hint is something is was not aware of.
The errors I am getting are at the compile time, I am getting errors for some of the translations.

My SecPhone.apk : https://dl.dropbox.com/u/15924481/S3 LF2/SecPhone.apk
Upload ETA 2 min.

Even just compile / recompile would be interesting to me.
 

The Undertakerr

Senior Member
Apr 23, 2011
319
175
0
I added twframework and framework, but to no avail.
The compression hint is something is was not aware of.
The errors I am getting are at the compile time, I am getting errors for some of the translations.

My SecPhone.apk : https://dl.dropbox.com/u/15924481/S3 LF2/SecPhone.apk
Upload ETA 2 min.

Even just compile / recompile would be interesting to me.
Ok, I will give it a try with your file.

Will be back at you within 15 minutes.

Since this is only a smali change, you can also choose not to use apktools, but de/re compile the classes.dex with smali/baksmali...

Will be back to you shortly...

---------- Post added at 01:33 AM ---------- Previous post was at 01:15 AM ----------



EDIT:

Here you are, push it to /system/app:

https://dl.dropbox.com/u/25779832/SGS2/ALLES ICS/SecPhone.apk

Please test it and let me know if it is working...
 

Tistitus

Senior Member
Mar 28, 2009
134
14
0
Thanks wanam, highly appreciate your work.
May I have a question: is there a possibility to make this call recording automatic?
Thank you.
 

wanam

Recognized Contributor / Developer
Jan 26, 2011
6,193
29,973
263
Toulouse
wanam.net
Still having problems decompiling/Recompiling.
1. Should I be using decompile with dependencies?
2. If so, How do I specify both of them with the drag and drop thingy?
3. Thanks.
Just push framework-res & twframework-res with apktool :
Code:
apktool if framework-res.apk
apktool if twframework-res.apk
 
  • Like
Reactions: 6pudu5

wanam

Recognized Contributor / Developer
Jan 26, 2011
6,193
29,973
263
Toulouse
wanam.net
I added twframework and framework, but to no avail.
The compression hint is something is was not aware of.
The errors I am getting are at the compile time, I am getting errors for some of the translations.

My SecPhone.apk : https://dl.dropbox.com/u/15924481/S3 LF2/SecPhone.apk
Upload ETA 2 min.

Even just compile / recompile would be interesting to me.
Give me you errors log.

Thanks wanam, highly appreciate your work.
May I have a question: is there a possibility to make this call recording automatic?
Thank you.
Maybe, I didn't try yet.
 

eitama

Senior Member
Sep 18, 2010
625
202
0
Hod Hasharon
Give me you errors log.
Maybe, I didn't try yet.
Into Script.bat I added these lines :
Code:
:de
cd other
DEL /Q "../place-apk-here-for-modding/signed%capp%"
DEL /Q "../place-apk-here-for-modding/unsigned%capp%"
IF EXIST "../projects/%capp%" (rmdir /S /Q "../projects/%capp%")
echo Decompiling Apk
echo "Adding if"
[COLOR="Red"]java -jar apktool.jar if framework-res.apk[/COLOR]
echo "Adding if"
[COLOR="Red"]java -jar apktool.jar if twframework-res.apk[/COLOR]
java -Xmx%heapy%m -jar apktool.jar d "../place-apk-here-for-modding/%capp%" "../projects/%capp%"
if errorlevel 1 (
echo "An Error Occured, Please Check The Log (option 21)"
PAUSE
)
cd ..
goto restart
Placed both files inside the other folder.
Running option 9, decompile apk no errors.
Making no changes, and running option 11 (Compile APK) has errors in log.txt
file.

Code:
Please make your decision:11
Building Apk
"An Error Occured, Please Check The Log (option 21)"
Press any key to continue . . .
And the log.txt : http://pastebin.com/2xPk6kv4

To be honest I don't want to make a specific change to SecPhone.apk, I have some ideas and I want to try them out, but first I need a basic decompile/compile working :(

---------- Post added at 08:24 PM ---------- Previous post was at 08:22 PM ----------

Ok, I will give it a try with your file.

Will be back at you within 15 minutes.

Since this is only a smali change, you can also choose not to use apktools, but de/re compile the classes.dex with smali/baksmali...

Will be back to you shortly...

---------- Post added at 01:33 AM ---------- Previous post was at 01:15 AM ----------



EDIT:

Here you are, push it to /system/app:

https://dl.dropbox.com/u/25779832/SGS2/ALLES ICS/SecPhone.apk

Please test it and let me know if it is working...
Thanks mate,
You misinterpret my goal, I don't want this specific mod. I want to be able to decompile and recompile :(

I greatly appreciate your effort even so.
 

eitama

Senior Member
Sep 18, 2010
625
202
0
Hod Hasharon
I guess you have a plural expression to be fixed on your "/values/strings.xml", upload it.
But I have not changed anything aside from compile / decompile.
If you can explain what exactly you mean, I will fix it myself.

Let me ask you this :

When you patched up the call recording, did you do this with apktool / apkmultitool / did you have to fix strings.xml yourself before compiling with apktool?

I can upload my strings.xml, but I don't want you to waste time on it.
My purpose is to know what to do myself :(
I would even be glad if you used teamviewer to show me on my own PC if you have time / will.

Thanks.

Edit: If you still decide you want to see my strings.xml file. Here : http://pastebin.com/A4uRL0kY
 
Last edited:

wanam

Recognized Contributor / Developer
Jan 26, 2011
6,193
29,973
263
Toulouse
wanam.net
But I have not changed anything aside from compile / decompile.
If you can explain what exactly you mean, I will fix it myself.

Let me ask you this :

When you patched up the call recording, did you do this with apktool / apkmultitool / did you have to fix strings.xml yourself before compiling with apktool?

I can upload my strings.xml, but I don't want you to waste time on it.
My purpose is to know what to do myself :(
I would even be glad if you used teamviewer to show me on my own PC if you have time / will.

Thanks.

Edit: If you still decide you want to see my strings.xml file. Here : http://pastebin.com/A4uRL0kY
I always use my packed ApkManager, and yes you may have to fix some plurals even if you didn't change it, it's maybe a baksmali issue.

Fix these lines :
Code:
<string name="throttle_status_subtext">"%1$s (%2$d٪) of %3$s period maximum
Next period starts in %4$d days (%5$s)"</string>
    <string name="throttle_data_usage_subtext">%1$s (%2$d٪) of %3$s period maximum</string>
like this :
Code:
<string name="throttle_status_subtext">"%1$s (%2$d) of %3$s period maximum
Next period starts in %4$d days (%5$s)"</string>
    <string name="throttle_data_usage_subtext">%1$s (%2$d) of %3$s period maximum</string>
It should work now.
 

eitama

Senior Member
Sep 18, 2010
625
202
0
Hod Hasharon
I always use my packed ApkManager, and yes you may have to fix some plurals even if you didn't change it, it's maybe a baksmali issue.

Fix these lines :
Code:
<string name="throttle_status_subtext">"%1$s (%2$d٪) of %3$s period maximum
Next period starts in %4$d days (%5$s)"</string>
    <string name="throttle_data_usage_subtext">%1$s (%2$d٪) of %3$s period maximum</string>
like this :
Code:
<string name="throttle_status_subtext">"%1$s (%2$d) of %3$s period maximum
Next period starts in %4$d days (%5$s)"</string>
    <string name="throttle_data_usage_subtext">%1$s (%2$d) of %3$s period maximum</string>
It should work now.
Thanks!
I had another problem which I think I just realized.
ApkManager asks if the apk is a system app, I hit yes, so it copies the certificates etc.
I didn't know I don't have to sign after because the filename is "unsigned..."
So I kept signing it. I believe I was ruining the certificates.

I was no able to produce one SecPhone.apk that actually works without any modifications to xmls.

Now I can go ahead and do what I wanted to do :)
Let's see if it works.

I'll share my work when I'm done :)
 
  • Like
Reactions: wanam

eitama

Senior Member
Sep 18, 2010
625
202
0
Hod Hasharon
Wanam,

Are you able to find the video-call button tag in any of the layout files?
I can't find it.
Closest I got is :
dialpad_additional_buttons.xml
Which has 3 buttons in it:

call / search / delete

Call and delete have the correct icons I am looking for.
Search has a search Icon which is not presented in the phone app when used.

My Goal : (Was hoping to keep it secret till I do it!)
Swap video call and voice call buttons location.
I keep hitting Video call because samsung swapped the order on the SGS3 vs SGS2/1/Note
 
  • Like
Reactions: wanam

NaabKing

Senior Member
Dec 2, 2010
667
86
58
Does this automatically records all the conversations or does it add a button or something to turn recording on and off when you wanna?
 

slonn

Senior Member
Nov 6, 2010
1,462
165
0
I flashed the GT-I9300_WanamLite.ZSALED.Enable.Call.Recording.zip file but receiving/making a call does not show a Record Call button. I'm on the AOKP rom. Do I need to do anything with the zipped file besides flashing it?
 

The Undertakerr

Senior Member
Apr 23, 2011
319
175
0
I flashed the GT-I9300_WanamLite.ZSALED.Enable.Call.Recording.zip file but receiving/making a call does not show a Record Call button. I'm on the AOKP rom. Do I need to do anything with the zipped file besides flashing it?
I think you are extremely lucky you are still able to make phonecalls after flashing that zip on an AOKP Rom...

The title of the zip you flashed, tells you the mod is made for Samsung rom ZSALED... And you flashed it on no-samsung rom...:p

Verstuurd van mijn GT-I9100 met Tapatalk
 

wanam

Recognized Contributor / Developer
Jan 26, 2011
6,193
29,973
263
Toulouse
wanam.net
Wanam,

Are you able to find the video-call button tag in any of the layout files?
I can't find it.
Closest I got is :
dialpad_additional_buttons.xml
Which has 3 buttons in it:

call / search / delete

Call and delete have the correct icons I am looking for.
Search has a search Icon which is not presented in the phone app when used.

My Goal : (Was hoping to keep it secret till I do it!)
Swap video call and voice call buttons location.
I keep hitting Video call because samsung swapped the order on the SGS3 vs SGS2/1/Note
Good idea, but you are looking on the wrong file :D , it's easy to do on "SecContacts.apk", just edit :

  1. "SecContacts.apk\res\layout-sw359dp-xhdpi\dialpad_additional_buttons.xml"
  2. "SecContacts.apk\res\layout-sw359dp-xhdpi\dialpad_additional_buttons_land.xml"
  3. "SecContacts.apk\res\layout-sw359dp-xhdpi\dialpad_additional_buttons_land_can.xml"
and swap your lines.

I made a cwm patch (+ hidden sms logs) if you want to try it.
GT-I9300_WanamLite.XXALF2.Swap.Video.Voice.Call.zip
 

eitama

Senior Member
Sep 18, 2010
625
202
0
Hod Hasharon
Good idea, but you are looking on the wrong file :D , it's easy to do on "SecContacts.apk", just edit :

  1. "SecContacts.apk\res\layout-sw359dp-xhdpi\dialpad_additional_buttons.xml"
  2. "SecContacts.apk\res\layout-sw359dp-xhdpi\dialpad_additional_buttons_land.xml"
  3. "SecContacts.apk\res\layout-sw359dp-xhdpi\dialpad_additional_buttons_land_can.xml"
and swap your lines.

I made a cwm patch (+ hidden sms logs) if you want to try it.
GT-I9300_WanamLite.XXALF2.Swap.Video.Voice.Call.zip
Oh my god.
I'm such an idiot. I was so sure it is there, i thought maybe the 3rd button is generated at runtime so I started studying the smali code to a point where I almost understand what's going on there ;)

I'll give it a try soon and post results.

Edit : Thanks for the help, I really appreciate it!
 
Last edited:
Status
Not open for further replies.