• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

[VIDEO] How google blocks 5G for unlisted countries (explained)

Search This thread

mindyabiznis

Senior Member
Oct 16, 2011
367
53
Hey @swangjang another xda member said you might be able to help me with a question on whether advanced charging controller is working or able to be working on protonkernel?

Apologies for not being on topic, if you're OK with it I'm happy to private message you?
 
  • Like
Reactions: elong7681

swangjang

Senior Member
Sep 12, 2018
136
90
Google Pixel 5
Hey @swangjang another xda member said you might be able to help me with a question on whether advanced charging controller is working or able to be working on protonkernel?

Apologies for not being on topic, if you're OK with it I'm happy to private message you?
Hey no worries! I'm just a dude sharing what I learned and discovered. PM me or use whatever method. I don't mind at all.

To answer your question about advanced charging controller, I posted this a month ago that worked for me.

But mind you, that was with the April update and with cleanslate kernel. I haven't updated mine to May patch yet and what used to work in the previous patch may no longer work in the new patch, so it's all just trial and error.

Charging control is all done by the kernel (I believe) so it doesn't matter which ROM you have installed. You'll have your phone tomorrow so I guess you'll just have to try out different kernels and find what works.

After installing the ACC module, open terminal (eg Termux) with "su" and type in "acc -t" with your phone plugged in to a charger. The terminal will tell you which charging switch will work or not. Then open the ACC app and choose the switch.

If the terminal doesn't give you anything that works, install a different kernel and run the command again.

Personally, I just decided to buy myself one of these bad boys. It's a hardware solution of ACC and this thing will last a life time, probably be more reliable and hassle-free because I won't need to tinker between different kernels anymore.

Edit: to actually answer your question: I haven't tried it on proton kernel lol I'll need to update my phone to the May patch first (which I plan to do this weekend) to try if it works on proton kernel.
 

elong7681

Senior Member
May 23, 2015
190
59
40
US
Google Pixel 2 XL
Google Pixel 5
Hey no worries! I'm just a dude sharing what I learned and discovered. PM me or use whatever method. I don't mind at all.

To answer your question about advanced charging controller, I posted this a month ago that worked for me.

But mind you, that was with the April update and with cleanslate kernel. I haven't updated mine to May patch yet and what used to work in the previous patch may no longer work in the new patch, so it's all just trial and error.

Charging control is all done by the kernel (I believe) so it doesn't matter which ROM you have installed. You'll have your phone tomorrow so I guess you'll just have to try out different kernels and find what works.

After installing the ACC module, open terminal (eg Termux) with "su" and type in "acc -t" with your phone plugged in to a charger. The terminal will tell you which charging switch will work or not. Then open the ACC app and choose the switch.

If the terminal doesn't give you anything that works, install a different kernel and run the command again.

Personally, I just decided to buy myself one of these bad boys. It's a hardware solution of ACC and this thing will last a life time, probably be more reliable and hassle-free because I won't need to tinker between different kernels anymore.

Edit: to actually answer your question: I haven't tried it on proton kernel lol I'll need to update my phone to the May patch first (which I plan to do this weekend) to try if it works on proton kernel.
So how do you like your chargie, does it work as advertised and are you satisfied with the outcome because I might get one myself.
 

mindyabiznis

Senior Member
Oct 16, 2011
367
53
Hey no worries! I'm just a dude sharing what I learned and discovered. PM me or use whatever method. I don't mind at all.

To answer your question about advanced charging controller, I posted this a month ago that worked for me.

But mind you, that was with the April update and with cleanslate kernel. I haven't updated mine to May patch yet and what used to work in the previous patch may no longer work in the new patch, so it's all just trial and error.

Charging control is all done by the kernel (I believe) so it doesn't matter which ROM you have installed. You'll have your phone tomorrow so I guess you'll just have to try out different kernels and find what works.

After installing the ACC module, open terminal (eg Termux) with "su" and type in "acc -t" with your phone plugged in to a charger. The terminal will tell you which charging switch will work or not. Then open the ACC app and choose the switch.

If the terminal doesn't give you anything that works, install a different kernel and run the command again.

Personally, I just decided to buy myself one of these bad boys. It's a hardware solution of ACC and this thing will last a life time, probably be more reliable and hassle-free because I won't need to tinker between different kernels anymore.

Edit: to actually answer your question: I haven't tried it on proton kernel lol I'll need to update my phone to the May patch first (which I plan to do this weekend) to try if it works on proton kernel.
Hey man, thanks for the response genuinely appreciate it.

The chargie looks awesome so thanks also for showing us it exists, have wondered why there isn't an adjustable USB wall outlet for this type of thing before now.

My p5 has just arrived so am just about to do all the flashy flash business, will update on here once I've found out if it works or not.
 
  • Like
Reactions: elong7681

swangjang

Senior Member
Sep 12, 2018
136
90
Google Pixel 5
Hey man, thanks for the response genuinely appreciate it.

The chargie looks awesome so thanks also for showing us it exists, have wondered why there isn't an adjustable USB wall outlet for this type of thing before now.

My p5 has just arrived so am just about to do all the flashy flash business, will update on here once I've found out if it works or not.
It's my pleasure. Good luck with all the flashy flash!
 
  • Like
Reactions: mindyabiznis

swangjang

Senior Member
Sep 12, 2018
136
90
Google Pixel 5
@mindyabiznis

So I updated my phone to the May update and looked for charging switches.
Despite what I told you previously, don't trust what the terminal tells you when you do "acc -t".
What I found was that ElementalX kernel v1.07 and Cleanslate kernel v1.8.1 adds a charging switch called
"/sys/kernel/debug/google_charger/input_suspend 0 1"
Even though the terminal says it won't work, it does.

For ElementalX kernel, install EX Kernel Manager (you have to purchase the app) then you can flash it through the app.
For Cleanslate kernel, download the "rooted installer zip" from this post and flash it with Franco Kernel Manager (also paid app).
If Proton Kernel also gives you that charging switch, then I guess you could just use that.
(This is assuming you are already rooted).

The only downside to this charging switch is that only the "Stop charge" works. The "Resume charge" doesn't work but that's not really important as long as the battery stops charging at 80%.

For my phone, I didn't install the latest ACC module because the ACC daemon kept on shutting itself down and I had to manually start it often. I only have the app installed which shows up on magisk manager as v2020.10.15.
 

elong7681

Senior Member
May 23, 2015
190
59
40
US
Google Pixel 2 XL
Google Pixel 5
@mindyabiznis

So I updated my phone to the May update and looked for charging switches.
Despite what I told you previously, don't trust what the terminal tells you when you do "acc -t".
What I found was that ElementalX kernel v1.07 and Cleanslate kernel v1.8.1 adds a charging switch called
"/sys/kernel/debug/google_charger/input_suspend 0 1"
Even though the terminal says it won't work, it does.

For ElementalX kernel, install EX Kernel Manager (you have to purchase the app) then you can flash it through the app.
For Cleanslate kernel, download the "rooted installer zip" from this post and flash it with Franco Kernel Manager (also paid app).
If Proton Kernel also gives you that charging switch, then I guess you could just use that.
(This is assuming you are already rooted).

The only downside to this charging switch is that only the "Stop charge" works. The "Resume charge" doesn't work but that's not really important as long as the battery stops charging at 80%.

For my phone, I didn't install the latest ACC module because the ACC daemon kept on shutting itself down and I had to manually start it often. I only have the app installed which shows up on magisk manager as v2020.10.15.

@mindyabiznis

So I updated my phone to the May update and looked for charging switches.
Despite what I told you previously, don't trust what the terminal tells you when you do "acc -t".
What I found was that ElementalX kernel v1.07 and Cleanslate kernel v1.8.1 adds a charging switch called
"/sys/kernel/debug/google_charger/input_suspend 0 1"
Even though the terminal says it won't work, it does.

For ElementalX kernel, install EX Kernel Manager (you have to purchase the app) then you can flash it through the app.
For Cleanslate kernel, download the "rooted installer zip" from this post and flash it with Franco Kernel Manager (also paid app).
If Proton Kernel also gives you that charging switch, then I guess you could just use that.
(This is assuming you are already rooted).

The only downside to this charging switch is that only the "Stop charge" works. The "Resume charge" doesn't work but that's not really important as long as the battery stops charging at 80%.

For my phone, I didn't install the latest ACC module because the ACC daemon kept on shutting itself down and I had to manually start it often. I only have the app installed which shows up on magisk manager as v2020.10.15.
That's good to know that 1.8.1 works with the May update
 
  • Like
Reactions: mindyabiznis

elong7681

Senior Member
May 23, 2015
190
59
40
US
Google Pixel 2 XL
Google Pixel 5
@mindyabiznis

So I updated my phone to the May update and looked for charging switches.
Despite what I told you previously, don't trust what the terminal tells you when you do "acc -t".
What I found was that ElementalX kernel v1.07 and Cleanslate kernel v1.8.1 adds a charging switch called
"/sys/kernel/debug/google_charger/input_suspend 0 1"
Even though the terminal says it won't work, it does.

For ElementalX kernel, install EX Kernel Manager (you have to purchase the app) then you can flash it through the app.
For Cleanslate kernel, download the "rooted installer zip" from this post and flash it with Franco Kernel Manager (also paid app).
If Proton Kernel also gives you that charging switch, then I guess you could just use that.
(This is assuming you are already rooted).

The only downside to this charging switch is that only the "Stop charge" works. The "Resume charge" doesn't work but that's not really important as long as the battery stops charging at 80%.

For my phone, I didn't install the latest ACC module because the ACC daemon kept on shutting itself down and I had to manually start it often. I only have the app installed which shows up on magisk manager as v2020.10.15.
That's good to know that 1.8.1 works with the May update
 

mindyabiznis

Senior Member
Oct 16, 2011
367
53
@mindyabiznis

So I updated my phone to the May update and looked for charging switches.
Despite what I told you previously, don't trust what the terminal tells you when you do "acc -t".
What I found was that ElementalX kernel v1.07 and Cleanslate kernel v1.8.1 adds a charging switch called
"/sys/kernel/debug/google_charger/input_suspend 0 1"
Even though the terminal says it won't work, it does.

For ElementalX kernel, install EX Kernel Manager (you have to purchase the app) then you can flash it through the app.
For Cleanslate kernel, download the "rooted installer zip" from this post and flash it with Franco Kernel Manager (also paid app).
If Proton Kernel also gives you that charging switch, then I guess you could just use that.
(This is assuming you are already rooted).

The only downside to this charging switch is that only the "Stop charge" works. The "Resume charge" doesn't work but that's not really important as long as the battery stops charging at 80%.

For my phone, I didn't install the latest ACC module because the ACC daemon kept on shutting itself down and I had to manually start it often. I only have the app installed which shows up on magisk manager as v2020.10.15.
Awesome thanks for the update.

I've tried using the only option that looks viable on proton kernel sys/devices/platform/soc/soc:google,charger/charger_disable

But it hasn't worked when I left my charger on over night, but I did have the ACC module activated, I've disabled it and will try again.

Will also try the switch you've posted here and let you know.
 

rusinov

Member
Oct 28, 2019
10
1
I live in an unsupported country, too (Austria) and wanted to tell you that installing Android 12 DP3 unlocked 5G (and VoLTE) on my Pixel 5!

So it looks like they changed something for the upcoming Android version...
That's a great news! I've noticed that going from Production Android11 to Dev Android12 is online without erasing the phone, but returning from Dev to Prod require full phone reset.
How is the DP3 is it stabile, what about the camera app?
Do you think that once you are on Dev Android, once the public production version of Android 12 is available you will receive OTA or you need to flash it and reset your phone?
 

mindyabiznis

Senior Member
Oct 16, 2011
367
53
@mindyabiznis

So I updated my phone to the May update and looked for charging switches.
Despite what I told you previously, don't trust what the terminal tells you when you do "acc -t".
What I found was that ElementalX kernel v1.07 and Cleanslate kernel v1.8.1 adds a charging switch called
"/sys/kernel/debug/google_charger/input_suspend 0 1"
Even though the terminal says it won't work, it does.

For ElementalX kernel, install EX Kernel Manager (you have to purchase the app) then you can flash it through the app.
For Cleanslate kernel, download the "rooted installer zip" from this post and flash it with Franco Kernel Manager (also paid app).
If Proton Kernel also gives you that charging switch, then I guess you could just use that.
(This is assuming you are already rooted).

The only downside to this charging switch is that only the "Stop charge" works. The "Resume charge" doesn't work but that's not really important as long as the battery stops charging at 80%.

For my phone, I didn't install the latest ACC module because the ACC daemon kept on shutting itself down and I had to manually start it often. I only have the app installed which shows up on magisk manager as v2020.10.15.
Hi mate, hope all is well with you and yours.

So I've tried everything and so far nothing has worked, I'm currently using it without the magisk module active, just the app.

Strange thing is every switch I test returns the info that it works, but definitely doesn't.

Bit gutted really but am thinking I'm just going to have to give up on this, don't have the funds available to get a chargie and not sure when I will.

Thanks for all your help though mate, much appreciated.

I would just install Cleanslate but I'm using proton rom and kernel and very much enjoy the performance it offers along with the very good battery life, I'm skeptical that Cleanslate will offer the same.
 

mindyabiznis

Senior Member
Oct 16, 2011
367
53
@swangjang Hi mate,

So after numerous trial and error nights sleeping with my phone on charge I finally found a way of getting AccA working on my device with protonAOSP and proton kernel...

Selecting v2020.10.28 in the ACC version in settings of the android app.

Having the magisk module activated, doesn't work for me when it's not active

And the the only switch that works everytime is dc/input_suspend. The sdm750 and soc:google_charger switch did both work once but didnt re-enable charging when it drops below threshold and then wouldn't work again the night after leaving it set when it did work, if that makes sense lol

Also the dc/input switch does restart charging surprisingly so as of 3 nights in a row I've woken up with a phone charged to exactly what I set it at :D

Just thought I'd let you guys know, and hopefully it will help someone get it working.
 
  • Like
Reactions: swangjang

swangjang

Senior Member
Sep 12, 2018
136
90
Google Pixel 5
@swangjang Hi mate,

So after numerous trial and error nights sleeping with my phone on charge I finally found a way of getting AccA working on my device with protonAOSP and proton kernel...

Selecting v2020.10.28 in the ACC version in settings of the android app.

Having the magisk module activated, doesn't work for me when it's not active

And the the only switch that works everytime is dc/input_suspend. The sdm750 and soc:google_charger switch did both work once but didnt re-enable charging when it drops below threshold and then wouldn't work again the night after leaving it set when it did work, if that makes sense lol

Also the dc/input switch does restart charging surprisingly so as of 3 nights in a row I've woken up with a phone charged to exactly what I set it at :D

Just thought I'd let you guys know, and hopefully it will help someone get it working.
That's great news!
Also, that chargie usb thing I told you about a while ago, I received the item and have used it for a few days. It works well and the app has an auto plugin detector. But I still prefer having the software control because it would be a hassle to carry that usb everywhere I go.
I'm currently on Elemental X kernel and have ACC stop charge working so I'm just happy with that.
 
  • Like
Reactions: mindyabiznis

mindyabiznis

Senior Member
Oct 16, 2011
367
53
Yeah I'd consider getting one of those chargies but it would literally only ever be for when I charge at night, I rarely need to charge any other time and seeing as I have a software solution, it would probably be money wasted.
 

Panichdi

Member
Jan 24, 2011
44
4
Hong Kong
Google Pixel 5
Anyone tried this solution in Hong Kong (and if so, with which carrier)?
Or does anyone know if the Android 12 Beta allows for access to 5G network in Hong Kong (as it apparently does for some other unsupported countries)?

Cheers!
 

mslezak

Senior Member
Dec 12, 2016
359
321
Houston
@swangjang I have a quick question for you, before I rooted and started flashing roms and kernels but after I unlocked my bootloader I had the ability to record phones calls through the Google phone app but I only used it once so I stopped paying attention to the phone app while I was using it but I just recently noticed that I can no longer record phone calls, the record button is no longer present when I'm using the phone. I live in the US and that option is available for us but I no longer have the option, is there any chance you could help me get that option back ?
Just install MagiskHide PropsConfig, install, reboot, load Termux (App store), type su, type props, then pick a certified fingerprint for a country where call recording is legal. After rebooting the record calls should come back. Worked for me I chose EU I think as the region.
 
  • Like
Reactions: CrashTestDroid

Top Liked Posts

  • There are no posts matching your filters.
  • 5
    I made a video explaining how google blocks 5G in the software by default for unlisted countries.
    I also tried posting this on reddit at r/googlepixel but mods deleted it.
    I think this information should be spread to the wider general public because it affects just about every one of us here, having to root our phones to enable 5G, when this should just be enabled out of the box with absolutely no tinkering required.

    If a phone is advertised as "5G ready", we should expect to be able to connect to our carrier's 5G network out of the box, regardless of being in a "supported country" or not.
    This video shows that carrier-google certification is not necessary to connect to your carrier's 5G network.
    I wonder if it's possible to file a class action lawsuit because blocking 5G in the software clearly has to be some sort of "misleading" or "false advertising" in terms of the phone being "5G" ready.

    3
    @elong7681
    In reply to your other question. (proton rom thread may not be the best thread to discuss this)
    carrier_policy.xml file is located inside the carrier mbn file.

    To extract the mbn file, you need:
    Efs Tools https://github.com/JohnBel/EfsTools/releases
    dotnet-core https://dotnet.microsoft.com/download/dotnet-core/3.1
    dotnet https://dotnet.microsoft.com/download/dotnet/5.0

    1. Install dotnet-core and dotnet
    2. Copy mbn file into the efstools folder
    3. Run in command prompt: EfsTools.exe extractMbn -i mcfg_sw.mbn -p mcfg
    4. New folder (mcfg) will be created and mbn file will be extracted inside.

    Carrier_policy.xml is inside the "policyman" folder.

    This video will also explain how the mbn files are used to enable or disable 5G.
    3
    I live in an unsupported country, too (Austria) and wanted to tell you that installing Android 12 DP3 unlocked 5G (and VoLTE) on my Pixel 5!

    So it looks like they changed something for the upcoming Android version...
    2
    Hey @swangjang another xda member said you might be able to help me with a question on whether advanced charging controller is working or able to be working on protonkernel?

    Apologies for not being on topic, if you're OK with it I'm happy to private message you?
    Hey no worries! I'm just a dude sharing what I learned and discovered. PM me or use whatever method. I don't mind at all.

    To answer your question about advanced charging controller, I posted this a month ago that worked for me.

    But mind you, that was with the April update and with cleanslate kernel. I haven't updated mine to May patch yet and what used to work in the previous patch may no longer work in the new patch, so it's all just trial and error.

    Charging control is all done by the kernel (I believe) so it doesn't matter which ROM you have installed. You'll have your phone tomorrow so I guess you'll just have to try out different kernels and find what works.

    After installing the ACC module, open terminal (eg Termux) with "su" and type in "acc -t" with your phone plugged in to a charger. The terminal will tell you which charging switch will work or not. Then open the ACC app and choose the switch.

    If the terminal doesn't give you anything that works, install a different kernel and run the command again.

    Personally, I just decided to buy myself one of these bad boys. It's a hardware solution of ACC and this thing will last a life time, probably be more reliable and hassle-free because I won't need to tinker between different kernels anymore.

    Edit: to actually answer your question: I haven't tried it on proton kernel lol I'll need to update my phone to the May patch first (which I plan to do this weekend) to try if it works on proton kernel.
    2
    Seems it's not necessary any more.
    I haven't tried it yet but it seems promising.