[I9100] Useful fixes for Lineage OS [OS 7.x.x]

Search This thread

toy_story

Senior Member
Feb 5, 2017
355
573
41
Tambov
Useful fixes for LineageOS 14.1
I am very glad that you are here!
It may be helpful to you:

__________________________________________________
Rollback to the official Android 4.1.2 without a PC
Today, we will roll back to the official android 4.1.2 without a PC, through custom recovery.
You need a phone S2-i9100 with the ability to enter into the recovery and installation of the zip file.
__________________________________________________
Restore the firmware on Samsung GT-I9100 Galaxy S II.
More detailed instructions on firmware with Odin.
__________________________________________________
[Guide/Tutorial] Installing LineageOS 14.1 + TWRP-3.1.0-0 for Samsung Galaxy S2 i9100
More detailed instructions on firmware with Odin.
__________________________________________________
Script remove the superuser indicator "#" !
Hello, I noticed that many of you don't like the superuser indicator ('#')
in the status bar and that some of you even flash SuperSU or Xposed, just to get rid of it.
Well, that's not necessary, because there is a much easier way.

__________________________________________________
Script fix Dialer for LineageOS !
- Has large photo of the caller
- Improved the display speed of the caller
- Enable call record (in test mode)
- In order to improve the quality of the recording of telephone conversations,
use a headset (headphones with microphone) !

__________________________________________________
Script fix CMFileManager for LineageOS !
If you have such a problem in the LOS!
"CMFileManager: not see the internal memory or it says that I need elevated rights to do..."
Root rights are recommended.

__________________________________________________
Script fix LockClock for LineageOS !
Weather widget clock with two assembly suppliers (OpenWeather and Yahoo weather).
__________________________________________________
Script fix Ril for LineageOS !
If you have such a problem in the LOS of 02/08, 02/13, 02/16 !
"Each time when I end a phonecall (no matter if it's incoming our outgoing calls)
I get a popping message that there is no reception, and the antenna shuts for about half a minute and then returns ..."

__________________________________________________
Root Addon Packages for Lineage OS!
Fixed the error 4, when installing addonsu-arm-signed.zip !
"addonsu-arm-signed.zip can't flash via recovery. Gives an error : Updater process ended with signal: 4 ..."

__________________________________________________
__________________________________________________
 
Last edited:

toy_story

Senior Member
Feb 5, 2017
355
573
41
Tambov
Great job mate, thanks for the awesome fixes :D :good:
Mutually, you also do many useful things!
You can also post useful fixes and additions here, just be sure to test them first!
LOS is constantly evolving, but with the advent of Innovations - appear flaws and inaccuracies!
I think our "Useful fixes for LineageOS 14.1" will serve for a long time and help all those who need it !
Thank you all...
 

toy_story

Senior Member
Feb 5, 2017
355
573
41
Tambov
@toy_story: Hi, can you please post the source code that need to be changed to enable call recording?
Hello, I will write about the standard application Dialer.apk in CM and LOS.
In many countries, the recording of calls is prohibited by law. Google, SM, LOS and others, just protect themselves from trouble:
- They in the Dialer.apk application have installed filters for countries and mobile operators, who can be recorded and who can not.
- Changed the libraries and again the problem kernel.
Okay the lyrics aside, go to work, what needs to be done:
1) Unpack the firmware or copy from the already installed, but we have the file Dialer.apk.
2) Decompile Dialer.apk.
3) On the path: Dialer \ res \ values ​​\ look for the file bools.xml
4) Using a text editor (preferably using Notepad ++ or something similar) open bools.xml
5) We search and check the line:
<Bool name = "call_recording_enabled"> true </ bool>
If instead of true it is written false ,change to true
6) Save the changes.
7) Next on the path: Dialer \ res \ values-mcc202 \ open the file bools.xml and edit the line:
<Bool name = "call_recording_enabled"> false </ bool>
Replace false with true
8) This line should be changed in all, from "values-mcc202" to "values-mcc505".
How many "values-mcc" , in so many countries is prohibited from recording a call!
Only after correcting all "values-mcc" , in the phone during the call to appear a choice for recording.
9) Compile (collect back) Dialer.apk
10) What to do with properly configured Dialer.apk, I think you know.
 

ale5000

Senior Member
Dec 24, 2013
1,291
1,164
i9100
@toy_story: Thanks, do you know also a method to change the country detected by the phone?
Does it use the CSC?
If yes, can it be changed without change the ROM?
 

toy_story

Senior Member
Feb 5, 2017
355
573
41
Tambov
@toy_story: Thanks, do you know also a method to change the country detected by the phone?
Does it use the CSC?
If yes, can it be changed without change the ROM?

Hi, you could have done that before.
The record could be included by writing only 2 lines to the file "build.prop" or to install a suitable module for "Xposed"
Now if you take the application "dialer.apk" from LOS and from CM 13, it will be almost two different applications:
- change system libraries
- Enhance application security
- structure, location, and standard behavior
The control (check) is in 5 places, us for the time being limited to the easiest filter for the "MCC" country code.
And I think that a proven and well-working "Xposed" on android 7.1.? We will not see soon!
 
  • Like
Reactions: Denpech

ale5000

Senior Member
Dec 24, 2013
1,291
1,164
i9100
Hi, you could have done that before.
The record could be included by writing only 2 lines to the file "build.prop" or to install a suitable module for "Xposed"
Now if you take the application "dialer.apk" from LOS and from CM 13, it will be almost two different applications:
- change system libraries
- Enhance application security
- structure, location, and standard behavior
The control (check) is in 5 places, us for the time being limited to the easiest filter for the "MCC" country code.
And I think that a proven and well-working "Xposed" on android 7.1.? We will not see soon!
I mean another thing.
I'm not sure but there should be another memory somewhere to flash.

Correct me if I'm wrong but doesn't CSC survive a format of the /system partition?
When you flash LineageOS it should read the country somewhere in the phone (I think) since the ROM is the same for all countries.
 

toy_story

Senior Member
Feb 5, 2017
355
573
41
Tambov
I mean another thing.
I'm not sure but there should be another memory somewhere to flash.

Correct me if I'm wrong but doesn't CSC survive a format of the /system partition?
When you flash LineageOS it should read the country somewhere in the phone (I think) since the ROM is the same for all countries.
Hi! No, you're wrong.
Yes, the disk is the same for all countries, but it already has different settings and behavior for different languages. Now when installing "LOS Pom" , the system automatically determines where we are (installation language), before this was not.
Behavior for countries is recorded in the form of a blacklist, according to the qualifications of "MCC" and "MNC".
MCC (Mobile Country Code) - the mobile country code in combination with MNC is the unique identifier of the cellular operator of GSM, CDMA, iDEN, TETRA and UMTS networks, as well as some satellite communication operators. ITU-T Recommendation E.212 defines mobile country codes.
MNC (Mobile Network Code) - the mobile network code in combination with MCC is the unique identifier of the cellular operator of GSM, CDMA, iDEN, TETRA and UMTS networks, as well as some satellite communication operators. ITU-T Recommendation E.212 defines mobile country codes.
Example:
Next on the path: Dialer \ res \ values-mcc202 \ open the file bools.xml and edit the line:
<Bool name = "call_recording_enabled"> false </ bool>
"Mcc202" - country code Greece
"Bools.hml" - with the parameter > false <
If we do not change to > true <
Then with this "POM" in the territory of Greece, the recording of the call will not work.
Previously, without modifying the "POM" workaround, the "modules" for "Xposed" were made.
 

ale5000

Senior Member
Dec 24, 2013
1,291
1,164
i9100
Hi! No, you're wrong.
Yes, the disk is the same for all countries, but it already has different settings and behavior for different languages. Now when installing "LOS Pom" , the system automatically determines where we are (installation language), before this was not.
Behavior for countries is recorded in the form of a blacklist, according to the qualifications of "MCC" and "MNC".
MCC (Mobile Country Code) - the mobile country code in combination with MNC is the unique identifier of the cellular operator of GSM, CDMA, iDEN, TETRA and UMTS networks, as well as some satellite communication operators. ITU-T Recommendation E.212 defines mobile country codes.
MNC (Mobile Network Code) - the mobile network code in combination with MCC is the unique identifier of the cellular operator of GSM, CDMA, iDEN, TETRA and UMTS networks, as well as some satellite communication operators. ITU-T Recommendation E.212 defines mobile country codes.
Example:
Next on the path: Dialer \ res \ values-mcc202 \ open the file bools.xml and edit the line:
<Bool name = "call_recording_enabled"> false </ bool>
"Mcc202" - country code Greece
"Bools.hml" - with the parameter > false <
If we do not change to > true <
Then with this "POM" in the territory of Greece, the recording of the call will not work.
Previously, without modifying the "POM" workaround, the "modules" for "Xposed" were made.
I have installed it without SIM.
Before installation I have wiped system, data, cache (almost everything).

How can it detect country?
How can I verify what country is detected?
 

toy_story

Senior Member
Feb 5, 2017
355
573
41
Tambov
I have installed it without SIM.
Before installation I have wiped system, data, cache (almost everything).

How can it detect country?
How can I verify what country is detected?
Yes, I agree. Without a SIM card and without an Internet connection, applications will not determine in which country you are.
But you still insert a SIM card and will be connected to the Internet!
As soon as you insert the sim, the cellular operator will immediately tell your phone which country you are in.
 

s2l9100

Member
Mar 4, 2017
25
9
Hi,
I just made a test with a fresh install of lineage-14.1-20170322-nightly-i9100-signed.zip, gapps pico with TWRP.
I installed Fix_addonsu-arm-signed.zip without errors, but the phone is still not rooted.
Any ideas what is going on?
As far as i remember last time i rooted it i had to use CWM-SuperSU-v0.97.zip too.

Thanks!

Edit: Please, ignore the above zzzz - i simply forgot to assign root rights to adb+apps in developer settings.
 
Last edited:

toy_story

Senior Member
Feb 5, 2017
355
573
41
Tambov
Hi,
I just made a test with a fresh install of lineage-14.1-20170322-nightly-i9100-signed.zip, gapps pico with TWRP.
I installed Fix_addonsu-arm-signed.zip without errors, but the phone is still not rooted.
Any ideas what is going on?
As far as i remember last time i rooted it i had to use CWM-SuperSU-v0.97.zip too.

Thanks!
Follow the path:
Settings - Developer options - Root access - choose Apps and ABD
Check root access.
 
  • Like
Reactions: s2l9100

toy_story

Senior Member
Feb 5, 2017
355
573
41
Tambov
Script remove the superuser indicator "#" !

Script remove the superuser indicator "#" !
Hello,
I noticed that many of you don't like the superuser indicator ('#') in the status bar
and that some of you even flash SuperSU or Xposed, just to get rid of it.
Well, that's not necessary, because there is a much easier way.
So here is the "right way" to remove the "#":
Set in TWRP: Hide_SU_Icon.zip - Download
P.S. After the first power-up, you may need to reboot!



Disliked Returned back !
Set in TWRP: SU_Icon-REVERT.zip - Download


 
Last edited:

toy_story

Senior Member
Feb 5, 2017
355
573
41
Tambov
Script fix Dialer for LineageOS !

Script fix Dialer for LineageOS !
- Has large photo of the caller
- Improved the display speed of the caller
- Enable call record (in test mode)
- In order to improve the quality of the recording of telephone conversations, use a headset (headphones with microphone) !
Set in TWRP: Fix_Dialer.zip - Download
Be sure to "Wipe Cache / Dalvik"
If you see the message "Failed to start call recording" - do a reboot!

Disliked Returned back !
Set in TWRP: Dialer-REVERT.zip - Download
P.S.After installation, the phone briefly be slightly hotter than usual, this is due to the optimization of application
.

 
Last edited:

toy_story

Senior Member
Feb 5, 2017
355
573
41
Tambov
Script fix CMFileManager for LineageOS !

Script fix CMFileManager for LineageOS !
If you have such a problem in the LOS!
"CMFileManager: not see the internal memory or it says that I need elevated rights to do..."
Root rights are recommended.
Set in TWRP: Fix_CMFileManager.zip - Download
Be sure to "Wipe Cache / Dalvik"
When you first start it may not see the folders, you need to reboot!

P.S. In nightie LOS from 02/26 before 03/29 deleted CMFileManager!
But the script still works well!


 
Last edited:
  • Like
Reactions: MARCOSOFT

toy_story

Senior Member
Feb 5, 2017
355
573
41
Tambov
Script fix LockClock for LineageOS !

Script fix LockClock (version 3.5) for LineageOS !
Weather widget clock with two assembly suppliers (OpenWeather and Yahoo weather).
Set in TWRP: LockClock_LOS-mod.zip
Disliked Returned back !
Set in TWRP: LockClock_LOS-REVERT.zip
Wipe cache/dalvik after flash do not necessarily.
P.S. If you have installed my script "LockClock_LOS-mod.zip!" .
after upgrade LOS, even after the OTA,
it is necessary to again set in TWRP: LockClock_LOS-mod.zip!


 
Last edited:

toy_story

Senior Member
Feb 5, 2017
355
573
41
Tambov
Script fix Ril for LineageOS !

Script fix Ril for LineageOS !
If you have such a problem in the LOS of 02/08, 02/13, 02/16 !
"Each time when I end a phonecall (no matter if it's incoming our outgoing calls) I get a popping message that there is no reception, and the antenna shuts for about half a minute and then returns ..."
Set in TWRP: Fix_Ril - Download
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 52
    Useful fixes for LineageOS 14.1
    I am very glad that you are here!
    It may be helpful to you:

    __________________________________________________
    Rollback to the official Android 4.1.2 without a PC
    Today, we will roll back to the official android 4.1.2 without a PC, through custom recovery.
    You need a phone S2-i9100 with the ability to enter into the recovery and installation of the zip file.
    __________________________________________________
    Restore the firmware on Samsung GT-I9100 Galaxy S II.
    More detailed instructions on firmware with Odin.
    __________________________________________________
    [Guide/Tutorial] Installing LineageOS 14.1 + TWRP-3.1.0-0 for Samsung Galaxy S2 i9100
    More detailed instructions on firmware with Odin.
    __________________________________________________
    Script remove the superuser indicator "#" !
    Hello, I noticed that many of you don't like the superuser indicator ('#')
    in the status bar and that some of you even flash SuperSU or Xposed, just to get rid of it.
    Well, that's not necessary, because there is a much easier way.

    __________________________________________________
    Script fix Dialer for LineageOS !
    - Has large photo of the caller
    - Improved the display speed of the caller
    - Enable call record (in test mode)
    - In order to improve the quality of the recording of telephone conversations,
    use a headset (headphones with microphone) !

    __________________________________________________
    Script fix CMFileManager for LineageOS !
    If you have such a problem in the LOS!
    "CMFileManager: not see the internal memory or it says that I need elevated rights to do..."
    Root rights are recommended.

    __________________________________________________
    Script fix LockClock for LineageOS !
    Weather widget clock with two assembly suppliers (OpenWeather and Yahoo weather).
    __________________________________________________
    Script fix Ril for LineageOS !
    If you have such a problem in the LOS of 02/08, 02/13, 02/16 !
    "Each time when I end a phonecall (no matter if it's incoming our outgoing calls)
    I get a popping message that there is no reception, and the antenna shuts for about half a minute and then returns ..."

    __________________________________________________
    Root Addon Packages for Lineage OS!
    Fixed the error 4, when installing addonsu-arm-signed.zip !
    "addonsu-arm-signed.zip can't flash via recovery. Gives an error : Updater process ended with signal: 4 ..."

    __________________________________________________
    __________________________________________________
    7
    Rollback to the official Android 4.1.2 without a PC

    Rollback to the official Android 4.1.2 without a PC
    Today, we will roll back to the official android 4.1.2 without a PC, through custom recovery.
    You need a phone S2-i9100 with the ability to enter the recovery and installation of the zip file.
    The original size of the Preload section (512 MB) and the partitions formatted into their standards (VFat for internal SD and ext4 for data).
    .
    Download and save on an external memory card:
    PhilZ Touch Recovery :
    - PhilZ-cwm6-XWLSE-OXE-4.88.1-signed.zip - Download
    Official ROM assembled in zip format :
    - I9100XWLSE.zip - Download
    1. In the recovery, install PhilZ-cwm6-XWLSE-OXE-4.88.1-signed.zip
    2. Restart and enter the recovery of PhilZ Touch.
    Preparing the phone to install a new firmware.
    Select Wipe data / Factory reset - press Wipe data-Cache-System-Data-Preload-Emmc
    3. Install Zip firmware - select I9100XWLSE.zip, wait a couple of minutes and reboot.
    Select the language you want.
    First adjust and rejoice.
    P.S. The layout of the partitions remains the same as before the rollback.
    After the firmware, type the code * # 1234 # and make sure that all parts of the firmware are up and detected.
    Congratulations on installing the firmware 4.1.2 (I9100XWLSE)
    7
    Script fix Dialer for LineageOS !

    Script fix Dialer for LineageOS !
    - Has large photo of the caller
    - Improved the display speed of the caller
    - Enable call record (in test mode)
    - In order to improve the quality of the recording of telephone conversations, use a headset (headphones with microphone) !
    Set in TWRP: Fix_Dialer.zip - Download
    Be sure to "Wipe Cache / Dalvik"
    If you see the message "Failed to start call recording" - do a reboot!

    Disliked Returned back !
    Set in TWRP: Dialer-REVERT.zip - Download
    P.S.After installation, the phone briefly be slightly hotter than usual, this is due to the optimization of application
    .

    7
    Root Addon Packages for Lineage OS!

    Root Addon Packages for Lineage OS!
    Fixed the error 4, when installing addonsu-arm-signed.zip !
    "addonsu-arm-signed.zip can't flash via recovery. Gives an error : Updater process ended with signal: 4 ..."
    Set in TWRP: Fix_addonsu-arm-signed.zip ! - Download
    Follow the path:
    Settings - Developer options - Root access - choose Apps and ABD
    Check root access.

    5
    @toy_story: Hi, can you please post the source code that need to be changed to enable call recording?
    Hello, I will write about the standard application Dialer.apk in CM and LOS.
    In many countries, the recording of calls is prohibited by law. Google, SM, LOS and others, just protect themselves from trouble:
    - They in the Dialer.apk application have installed filters for countries and mobile operators, who can be recorded and who can not.
    - Changed the libraries and again the problem kernel.
    Okay the lyrics aside, go to work, what needs to be done:
    1) Unpack the firmware or copy from the already installed, but we have the file Dialer.apk.
    2) Decompile Dialer.apk.
    3) On the path: Dialer \ res \ values ​​\ look for the file bools.xml
    4) Using a text editor (preferably using Notepad ++ or something similar) open bools.xml
    5) We search and check the line:
    <Bool name = "call_recording_enabled"> true </ bool>
    If instead of true it is written false ,change to true
    6) Save the changes.
    7) Next on the path: Dialer \ res \ values-mcc202 \ open the file bools.xml and edit the line:
    <Bool name = "call_recording_enabled"> false </ bool>
    Replace false with true
    8) This line should be changed in all, from "values-mcc202" to "values-mcc505".
    How many "values-mcc" , in so many countries is prohibited from recording a call!
    Only after correcting all "values-mcc" , in the phone during the call to appear a choice for recording.
    9) Compile (collect back) Dialer.apk
    10) What to do with properly configured Dialer.apk, I think you know.