Unlock Text entfernen

STaaFF7o

STaaFF7o

Erfahrenes Mitglied
87
Für alle die den Unlock Text enternen wollen,hier die Lösung.................

Intro

Okay
smile.gif
I heard a lot of people want to disable this text from the Lockscreen, first time it may be useful! But then it just becomes plain Ugly..

So with a little of research, I have come to see where this text comes from, and with the knowledge that the lockscreen is built from classes inside the android.policy.jar I searched there a little and found what I was looking for.


So let's do it! First of all, if you don't know about smali and baksmali this tutorial contains the commands, but it will still be a little hard for beginners so I included a ZIP for flashing.




Needed Resources​

You need the JRE to run the jars, found here
You will also need the smali and baksmali jars.
Smali: here
Baksmali: here

[This is for Windows, Although I use Ubuntu] I'll also make things easier for you, here download my simple scripts to make the usage of smali and baksmali easier: here





The Process​


*Now we will use baksmali to revive the code to a low-level language (hard to understand, not like java which is a high-level language) called smali.

*So once you have all resources extract Smali.jar/Baksmali.jar/Smali.bat/Baksmali.bat to any folder you like.

*Extract the android.policy.jar found in the system/framework directory inside the ROM, to the same folder.

*Now we need to open a cmd window pointing to the folder, an easy way to do this if I remember correctly, was Hold Shift and then press right button on the folder, and select Open command line here.

*Once you do this, let's get to work. In your cmd type this command: Code:
baksmali android.policy.jar -o extracted

and don't close the cmd, just minimize it as we will need it later on.
NOTE: Basically, this command extracts the classes.dex (which is the code) found inside android.policy.jar and then reverses it to the smali language, then moves the resulting code to the directory named extracted.
NOTE 2: This is the same as extracting the classes.dex using an archiver (like 7-zip) and using this command: baksmali classes.dex -o extracted. The one above is a faster way to do it.

*Now you will notice the newly created folder called extracted. Open it then go to: com/android/internal/policy/impl. You'll see a lot of files (Don't freak out :p).

*Now find the file named CircleLockScreen.smali and open it using any text editor, I prefer notepad++ for windows. (Don't mind other files sharing the same name with a $ and a number at the end, these are called sub-classes)

*Now we need to find the chunk of code which sets the text to "Swipe screen to unlock" and delete it completely.
So using the find functionality (CTRL + F) find this code

Code:
.line 178 iget-object v5, p0, Lcom/android/internal/policy/impl/CircleLockScreen;->mHelpText:Landroid/widget/TextView; const v6, 0x10405f6 invoke-virtual {v5, v6}, Landroid/widget/TextView;->setText(I)V
And Simply Delete it!

*We're done so now we should compile the code to classes.dex again. To do this go back to your cmd you had before and type this code

Code:
smali extracted -o classes.dex
*A new classes.dex file will be created (will overwrite the old one if you had an old classes.dex), so Simply open android.policy.jar with an archiver (like winrar) and drag the classes.dex and drop it inside.
NOTE: If it asks you to overwrite the classes.dex choose yes.

And we are ready to go, now you have your android.policy.jar you can try it by pushing it to /system/framework and rebooting.
You can also use it inside your ROMs
smile.gif


Zip is attached

Happy Modding!

Attached Files
zip.gif
XWLP2-LK-SwipetoUnlockRemove.zip - [Click for QR Code] (307.9 KB, 37 views)
Quelle:[MOD][DEV][LP2/LPQ]Remove "Swipe Screen to Unlock"(Multilanguage)(Noob-proof) - xda-developers

Ein Danke tut nicht weh.
 
Hallo alle zusammen,

ich hoffe ihr könnt mir, einem Samsung S2 Nutzer - aber nicht wirklich versteher ;-), helfen.

Alsi ich gestern Abend mittels Kies wieder ein mal meine Kontaktdaten vom Gerät auf den PC übertragen und sichern wollte, kam der Hinweis auf ein Firmware-Update für das Handy.
Also, naiv wie ich bin, habe ich das gemacht ;-((

Danach musste ich erst wieder meine ganzen App's mühsam verknüpfen, usw. aber gut, dass kann ich schon.


Seit gestern habe ich nun zwei "Probleme".
1. Auf dem Sperrbildschirm oben einen saublöden Text "Zum Entsperren über den Bildschirm streichen". - Wie kann ich diesen sch... text abstellen, deaktivieren?

2. Vorher, also vor dem Update, konnte ich mit dem App "QuickPic" problemlos auch das Bild der Bildschirmsperre verändern, also durch ein eigenes ersetzen. Das wollte ich heute wieder ein mal machen, also ein anderes Bild als Sperrbildschirm-Bild einsetzen.
Also mach ich das wie immer. "Einstellungen / Anzeige / Sperre-Hintergrund", suche das passende Bildchen aus, will es speichern, und dann kommt folgender Text:
"Speichern fehlgeschlagen. Falls Sie den Hintergrund ändern benutzen Sie bitte QuickPic"


Könnt ihr mir bitte helfen und verständlich erklären wie ich diese beiden Dinge bewältigen kann?


Gruß und Danke im Voraus
 
Volker58 schrieb:
1. Auf dem Sperrbildschirm oben einen saublöden Text "Zum Entsperren über den Bildschirm streichen". - Wie kann ich diesen sch... text abstellen, deaktivieren?

Das liegt an der neuen Android Version. Das ist so ab 2.3.6
Das kann man nicht abschalten.
 
  • Danke
Reaktionen: Volker58
Danke für die schnelle Antwort. Aber blöd find ich das schon :D

Übrigens, ich habe mir gerade überlegt das es mit dem Sperrbildschirm vielleicht klappen könnte wenn ich in den Ordner, in dem die 4 mitgelieferten Bilder gespeichert sind, noch mein Wunschbilder hineinkopiere.
Nur, ich habe keine Ahnung wo die sich auf dem Gerät befinden. Kennt jemand den Ordnerpfad?
 
Hallo ihr Lieben,

Ich möchte den lästigen "Zum entsperren über den Bildschirm streichen."-Text von meinem Lockscreen tilgen. Kann mir jemand sagen welche Datei ich wie bearbeiten muss, damit ich den Text editieren kann?

SGS 2 auf ICS 4.0.3 (Update via Kies, Vodafone-Branding) zzgl. CF-Root und CWM. Root Explorer vorhanden.

By the way:
WidgetLocker habe ich zwar gekauft, hat mir allerdings missfallen, da ich den Lockscreen mittels Homebutton umgehen konnte und WL überdies für meinen Geschmack a bissi zu fest am Akku genuckelt hat. Davon abgesehn fand ichs weniger toll, beim Aufwecken (des Handys) erst meinen Homescreen und DANN meinen Lockscreen zu sehen.

Vielen Dank im Voraus!

werschaf (, der weiß, wozu der Danke-Button gut ist :) )
 
Bedauerlicherweise fruchtet der Einsatz des Home Helpers (auch mit Zuweisung von SU-Rechten) nicht. Oder aber ich blick die richtigen Settings nicht, das könnte natürlich auch sein. :thumbsup:
 
Zuletzt bearbeitet von einem Moderator:
Ja, man muss etwas fummeln, evtl. musst du in den HomeHelper-Einstellungen den WL-Home-Helper als Standardanwendung eintragen. Ich weiß nicht mehr genau was ich einstellte, verirre mich regelmäßig in den Menüs, aber es klappt definitiv - Ich kann nur mit Wischen unlocken, nicht mit "Home". :)
 
  • Danke
Reaktionen: werschaf
Wusa, das war das fehlende Rädchen! DANKE DANKE DANKE :love: :thumbsup: Zumindest tut WL jetzt was er soll, heut Abend werd ich mich evtl. aus Lust und Laune mal dran machen und das Tutorial ausprobieren, sieht zwar (ohne Linux- und Programmierer Vorkenntnissde) knackig aus, aber mehr als schiefgehn kanns ja nicht.
 
Zuletzt bearbeitet von einem Moderator:
Hallo, wollte genauer wissen wie bekomm ich beim lockscreen das swipe to unlock text weg?? hab zwar threads hier gefunden, allerdings english da bin ich leider schlecht, hätte es gerne in deutsch und hab die stockrom XWLP7 von open germany drauf :(:confused:
 
Zuletzt bearbeitet von einem Moderator:
Du musst die framework-res.apk entpacken mittel APKmanager. Dann gibt es dort einen Ordner values worin eine strings.xml liegt. In der mal nach dem Unlock Text suchen, durch nix ersetzen und mittels APKManager wieder packen.
 

Ähnliche Themen

Rantanplan
  • Rantanplan
Antworten
5
Aufrufe
1.216
xXMrGreenXx
xXMrGreenXx
R
Antworten
0
Aufrufe
893
rogers11
R
A
  • AndroidNewest
Antworten
11
Aufrufe
2.511
toscha42
toscha42
Zurück
Oben Unten