gpio switch apk

Xceeder

Senior Member
Apr 11, 2014
387
159
0
What the hell is this?
https://forums.oneplus.net/threads/gpio-switch.607478/

I personally had the message. I really hope it's a false alarm. If not I am really curious to know what is so bad in that app.

Time to use reversing tools and skills.
Weird I got the same message about 2 hours ago but I just clicked on keep (unsafe) , I thought it had something to do with the custom ROM I'm using but it seems it's affecting people mainly on the open beta 22 , we will have to wait for an answer from oneplus , I'm sure it's a bug or something I wouldn't worry about it..
 
  • Like
Reactions: Darkje

_Man0waR_

Senior Member
Oct 14, 2011
350
166
0
Weird I got the same message about 2 hours ago but I just clicked on keep (unsafe) , I thought it had something to do with the custom ROM I'm using but it seems it's affecting people mainly on the open beta 22 , we will have to wait for an answer from oneplus , I'm sure it's a bug or something I wouldn't worry about it..
I am on stock OOS 4.1.6 and got the message. I started to decompile it. It seems to be related with the antenna. See the strings.xml

Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="app_name">
        GPIO Switch</string>
    <string name="action_settings">
        Settings</string>
    <string name="hello_world">
        Hello world!</string>
    <string name="Antenna_gpio1">
        GPIO_097</string>
    <string name="Antenna_gpio2">
        GPIO_098</string>
    <string name="Antenna_gpio3">
        GPIO_100</string>
    <string name="Antenna_gpio4">
        GPIO_115</string>
    <string name="Antenna_gpio5">
        GPIO_127</string>
    <string name="Antenna_gpio6">
        GPIO_133</string>
    <string name="Antenna_gpio7">
        GPIO_136</string>
    <string name="Antenna_gpio8">
        GPIO_102</string>
    <string name="Antenna_gpio9">
        GPIO_103</string>
    <string name="Antenna_comment">
        comment</string>
    <string name="Antenna_success">
        success</string>
    <string name="Antenna_fail">
        fail</string>
    <string name="AntennaSwitch">
        请选择GPIO 警告:如果未生效,请关闭selinux 权限,关闭方法:adb shell setenforce 0</string>
    <string name="Antenna_toast_fali">
        操作失败,请查看确认</string>
    <string name="result">
        当前GPIO:</string>
</resources>
There is not anything special in the manifest

Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest package="com.oneplus.GpioSwitch" platformBuildVersionCode="25" platformBuildVersionName="7.1.1" xmlns:android="http://schemas.android.com/apk/res/android">
    <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="17" />
    <uses-permission android:name="android.permission.WAKE_LOCK" />
    <application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name">
        <activity android:label="@string/app_name" android:name="com.oneplus.gpioswitch.GpioSwitch" android:screenOrientation="portrait">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
            </intent-filter>
        </activity>
    </application>
</manifest>
 

Xceeder

Senior Member
Apr 11, 2014
387
159
0
From what I found it contains the GUI for the "Antenna switch" option in the hardware diagnostic tests. (Dial *#808#). Now I don't know why Google would detect this as a dangerous app.
Thanks for finding out what it was , it made me a bit suspicious maybe oneplus will patch it with an update or Google will whitelist it , again though thanks for running through all the logs and researching for us ?
 

NOSTALGIA

Retired Forum Moderator
Jan 11, 2012
3,708
1,632
253
Cebu
what the...

i also had this earlier today.. what was this ???

anyone able to sign in on oneplus forums?
im getting an error..
 

Attachments

Last edited:

zelendel

Senior Member
Aug 11, 2008
23,366
20,584
253
It is a utility for switching antenna in development mode. A search would have told you guys this. You can remove it or keep it. Either way it doesn't do anything. One plus is trying to figure out why Google flagged it.
 

LeiPo

Member
Dec 27, 2008
26
0
0
Apeldoorn
It is a utility for switching antenna in development mode. A search would have told you guys this. You can remove it or keep it. Either way it doesn't do anything. One plus is trying to figure out why Google flagged it.
Thanks for your anwser.. i got the message this morning , and this is the first google search anwser :p