[Q] password.key decription - Android Q&A, Help & Troubleshooting

!!! Discussion is for educational purpose only !!!
As we know, Android stores Lockscreen's Pin and Password in data/system/password.key
In this file appears an alphanumeric string (probably an hex string which refer to other databases).
I've made a research, but I didn't find if it's possible to know the Lockscreen's password/pin starting with this file.
Any idea?
Can anyone try to explain how does it work?

Related

[REQ] Autogenerate strings

Hello everyone,
can I generate strings as if typed from the keyboard?
what I mean is if i can develop a code capable of generating strings, making them believe the system type on the keyboard of the device.
Help me pls...

[QQ] Save textfile on SD

Hello devs.
I have a quick request for some skilled developer in Eclipse,how to save strings to SD card as a text file? I am noobie in Java development,so if someone is so friendly to provide me some source code of the solution,I'll be very grateful for it.
All I want is to create a simple program,which will save string from editbox to a file and it is appended to previous lines,already saved before. All other things I am able to do myself.
Please try out this program,that creates 'append.txt' file for imagination of my request.
Thanks all for your help in advance.
Here is my source in Delphi:
Code:
procedure TForm1.Button1Click(Sender: TObject);
var f:textfile;
const fi:string='append.txt';
begin
assignfile(f,fi);
if(fileexists(fi))then append(f) else rewrite(f);
writeln(f,edit1.text);
closefile(f);
end;

Eclipse Question

I'm in the process of figuring out how to develop for android...and I'm trying to add an EditText field but I get and error. Looking at the graphical layout, the screen fades out. Is there a reason this would happen.
I am also getting an error that says "Failed to load properties file for android project".
Any help is welcomed.
Thanks in advance.
ok
jacari91 said:
I'm in the process of figuring out how to develop for android...and I'm trying to add an EditText field but I get and error. Looking at the graphical layout, the screen fades out. Is there a reason this would happen.
I am also getting an error that says "Failed to load properties file for android project".
Any help is welcomed.
Thanks in advance.
Click to expand...
Click to collapse
if you what to write something on a button on your app screen,,,, it's not directly done for android
so you have to go to a "Value" folder of your project and u will find a "string.xml " file
here you can add what ever text you want to use it on your app screen where ever you wanna
1- click on string file and you will see an interface and an add button
2- click on add button -> select string
3- now you have to enter a string NAME and string Value
4- string NAME is an ID of this string
5- string Value is an Value that you can use it on your app screen
NOW save your project
and go to main.xml
right click on button -> edit text
and you will see add ID's that you interned in string .xml
<<<<this is used for managing app's that have Multi Languages :good:>>>>
click on THANKS button if you find it helpful
osama_m2s said:
if you what to write something on a button on your app screen,,,, it's not directly done for android
so you have to go to a "Value" folder of your project and u will find a "string.xml " file
here you can add what ever text you want to use it on your app screen where ever you wanna
1- click on string file and you will see an interface and an add button
2- click on add button -> select string
3- now you have to enter a string NAME and string Value
4- string NAME is an ID of this string
5- string Value is an Value that you can use it on your app screen
NOW save your project
and go to main.xml
right click on button -> edit text
and you will see add ID's that you interned in string .xml
<<<<this is used for managing app's that have Multi Languages :good:>>>>
click on THANKS button if you find it helpful
Click to expand...
Click to collapse
Thanks. Let's say I'm making a to-do app...would this allow me to make an area where the user would enter their task?

[Q] lockstyle coding

Hi, i'm wondering where i can read more about /system/media/lockstyle file structure and coding language. Yeah, i know that manifest is an XML file, but if we for example have this code:
Code:
<Var name="isreached_to_pressed" expression="1" const="true"/>
<Var name="lock_state_pressed" expression="eq(#unlocker_lock.state,1)+eq(#unlocker_call.state,1)+eq(#unlocker_mess.state,1)"/>
<Var name="lock_state_normal" expression="eq(#unlocker_lock.state,0)*eq(#unlocker_call.state,0)*eq(#unlocker_mess.state,0)"/>
<Var name="lockstate" expression="#unlocker_lock.state+#unlocker_call.state+#unlocker_mess.state"/>
<VariableCommand name="camera_show_ani_end" expression="ifelse(#leftToRight,#screen_width-abs(#touch_dist),abs(#touch_dist)-#screen_width)" const="true" condition="#camera_show_ani_con"/>
Where do i get more information about all this eq, abs, ifelse expression, and Var names like lock_state_pressed, lock_state_normal, camera_show_ani_end etc. Is there any guide out there, i wasn't able to find by myself.
Oh, one more thing.
Does the lockstyle file only describes the outlook of lock screen or does it also handle the actions like how to unblock (press, swap or tap)?

how can i write to a file and read from it in android studio?

hi always use c and c++ but now i'm trying to create a game application with ndk
but it needs some java codes and i dont know java at all!!
i want to create a file
write a string in that file
then read that string again from that file?
can you help me? or show me a way to do that?!
mjs2001227 said:
write a string in that file
then read that string again from that file?
Click to expand...
Click to collapse
Write String to File in Java - TutorialKart
To write String to File in Java, there are many processes we can follow. Some of them are using FileUtils class of apache's commons.io library, Input Streams, etc.
www.tutorialkart.com
good luck!

Categories

Resources