Hello friend, could someone guide me in knowing how to eliminate the "any name" field in Smarter V3 so that only the username and password remain. I would thank you a lot
HOW TO REMOVE THE "ANYNAME BOX" SMARTERS
STEP 1:
Look in public.xml for the following line:
<public type="string" name="add_user"
and copy what appears in id
<public type="string" name="add_user" id="xxxxxxxxx"
look in smali for the id you just copied without the quotes ("")
once the id is found in the file LoginActiviti.smali
identify the line that is a few lines below: rl_name:Landroid/widget/RelativeLayout and just below that line the following will appear depending on the version of smarters you have
invoke-virtual {v1, v3} , change it to invoke-virtual {v1, v2}
invoke-virtual {v0, v1} to invoke-virtual {v0, v4}
this hides the Any Name Box
STEP 2:
Look in public.xml for the following line:
<public type="string" name="your_name"
and copy what appears in id
<public type="string" name="your_name" id="xxxxxxxxxx"
look in smali for the id you just copied without the quotes ("")
once the id is found in the file LoginActiviti.smali
identify the line that is a few lines below the following will appear depending on the version of smarters you have:
invoke-virtual {v0, v10}, Landroid/widget/EditText;->setHint(Ljava/lang/CharSequence
invoke-virtual {v0, v2}, Landroid/widget/EditText;->setHint(Ljava/lang/CharSequence
change setHint to setText (this should remove the hint asking to please enter Any Name)
Save and recompile Any name should now be gone.
he only thing that remains afterwards is when you click on Switch User link on the app, right above the username , it will now show "Any Name" as the account name. However you can also remove or change it to whatever you want it
Just to the res/values/strings.xml
Go all the way to the last row
remove the Any Name from
<string name="your_name">Any Name</string> to <string name="your_name">""</string>