[Q] How to disable safe mode? - Sony Xperia T, TL, TX, V

My phone have stucked in safe mode long time(so sad...),because the volume button are very difficult to control.I try to research some information:
frameworks/base/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
feMode= menuState > 0 ....................................." this line change into "mSafeMode = false "
So I extract system.sin from Adroid 4.3 TFT,and open it.But the file “frameworks” isn"t have base file,if I find,I also don't konw how to edit java file,replace the file and pack them...
Moreover,the file ”qwerty.kl“,if I delete the “key 114 VOLUME_DOWN"&"key 115 VOLUME_UP ",would I enter safe mode when boot?
Can anyone give me advice?I am not good at English,thanks a lot...

Related

[CM7] Custom Keyboard Layout for NC - attached kcm/kl files for bluetooth keyboards

EDIT: Attached is a zip of my current qwerty.kcm.bin and qwerty.kl files.
IMHO, my qwerty.kcm.bin should replace the current version in CM7 as it only affects external keyboards, not the soft keyboard, and every US keyboard I've ever seen has <> above ,.
Now that we have bluetooth keyboards and finally have more than 4 keys to play with, maybe it's time to address this!
/system/usr/keylayout is a directory with the key layout files. These are plaintext files.
A few things to know going in:
It is probably easiest to use adb to push the files. You need a working ADB. "adb push <local file> <remote path>" is the format.
If the keyboard layout has any unrecognized stuff in it (When I tried VOLUME_MUTE, and MUTE keycodes) it will stop loading at that point, disabling all keys after it in the keylayout file. I highly recommend adding your test stuff at the bottom of the screen unless you are using ADB to push the files.
adb shell <command> will let you launch commands remotely. If you don't put in a command, it gives you a remote shell which is both epic and awesomely useful.
To push a qwerty.kl file to the device, this may be a way for you to do it:
Code:
cd <directory with your custom keylayout>
adb shell mount -o rw,remount /system
adb push qwerty.kl /system/usr/keylayout
adb reboot
You have to remount /system to be read-write because it defaults to read only.
Here is a sample of some keylayout:
Code:
key 399 GRAVE
key 2 1
key 3 2
key 4 3
key 5 4
key 6 5
key 7 6
key 8 7
key 9 8
key 10 9
key 11 0
key 158 BACK WAKE_DROPPED
key 230 SOFT_RIGHT WAKE
key 60 MENU
Here is the code I currently put in:
Code:
key 172 HOME WAKE
key 115 MENU
key 114 BACK
key 165 VOLUME_UP WAKE_DROPPED
key 164 MEDIA_PLAY_PAUSE WAKE_DROPPED
key 163 VOLUME_DOWN WAKE_DROPPED
Best I can figure, android documents a capslock state but doesn't natively support it? Maybe only in 3.0? I have no clue, but I can't get any capslocks working. The Motorola Xoom keyboard has a caps lock, but it may be a custom app. Trying to get thier keylayout files...
MORE TO COME:
links:
lots of KEYCODEs in here to play with: http://developer.android.com/reference/android/view/KeyEvent.html#constants
I think they correlate to our keycode names, but you don't use the KEYCODE_ prefix in the keylayout file.
If I sent you the needed files and an image of a keyboard with the codes on it, is there anyway you could edit the .kcm files for me. I currently am without a computer that I can do this on and it would be a big help. If you do decide to help I will be sure to credit you for the work in the OP on Evo Desktop PC thread.
Thanks
Lokifish Marz said:
If I sent you the needed files and an image of a keyboard with the codes on it, is there anyway you could edit the .kcm files for me. I currently am without a computer that I can do this on and it would be a big help. If you do decide to help I will be sure to credit you for the work in the OP on Evo Desktop PC thread.
Thanks
Click to expand...
Click to collapse
I would be happy to. This thread is depreciated in a sense. I've been using the dev thread in my signature.
PM me the info and I'll take a look at it.

[EASIEST GUIDE] How to unlocking bootloader

Here we go,
Step 0: (Must Follow)
A)I am not Responsible if it BRICK YOUR PHONE!!!!
B)Still intressted??
C)U MUST ON STOCK ROM (ORIGINAL ROM FROM SE)
D) Check Manufactoring date/code (behind batery)
11W29 above U better stay away and stop dreamming (i got 4 times hard bricked on 11W38)
11W28 below U can proceed and again I am not Responsible if it BRICK YOUR PHONE!!!!
Step 1: (Downloads)
A) READ THIS OR U will cry if you skip to read this
B) Download S1tool [UPDATED 13 FEB 2012]
C) Download Unlocker [UPDATED 13 FEB 2012]
Step 2: (Prepare)
A) Unzip all downloaded files
B) Shut Down Phone
C) Open S1tool, Click on DO JOB, Press Back on phone, Connect it to PC.
D) Look For Line "XXXX SIMLOCK CERTIFICATE"
Step 3: (Unlock)
A) Turn the phone on, Connect it with PC in Debugging mode.
B) if XXXX is "NOT RECOGNIZED" then sorry, it can't be unlocked.
C) if XXXX is SEMC then run "msm7227_semc.cmd"
D) if "XXXX SIMLOCK CERTIFICATE" was not found then run "msm7227_Setool2.cmd"
E) Wait...
F) if "Press any key to continue . . ." is found, press any key.
Step 4: (Verify)
A) Shut Down Phone
B) Open S1tool, Click on DO JOB, Press Back on phone, Connect it to PC.
C) Look For Line RUNNING S1_EROM VER "x8A029"
D) if x is "r" then it is done, Congrats...
E) if x is "R" then Sorry, Do everything again. or Search in the Frorum for Help
========================================================================================================
And here to relocking bootloader with easiest step
Shared and prepaired by Black Xperia X8
This is tutorial how to relock bootloader!
1.Step: i-Download S1Tool and ii-Download Flashtool
2.Step:Install FlashTool and Gordon Gate Driver
3.Step: Extract rar with 7zip,Winrar...
4.Step: Disable antivirus and firewall because it can interrupt process
5.Step: Open folder where you extract it
6.Step: Run S1Tool.exe
7.Step: Enable USB Debug and plug USB in PC and Phone
8.Step: Klick restore button
9.Step: Unplug your phone and turn it off
10.Step: Hold back key and plug USB in phone
11.Step: Unplug device and klick identify
12.Step: Hold back key and plug usb last number need to be 28
not 29 if is 28 then you relocked your bootloader or a litle r
the links for step A are broken... the ones from S1 Tools and Unlocker
plunplan said:
the links for step A are broken... the ones from S1 Tools and Unlocker
Click to expand...
Click to collapse
UPDATED new link..
thanks...
Is it safe to unlock the bootloader with a custom ROM or do i need to revert it back to stock ROM
for me, i managed unlocking with gingerDX but after a few days I has no network problem...
better unlocking with stok rom
Thanks a lot for guide newbie here..
hope i can help newbies here
someone help i have root rights
process requires standard 2.x android firmware.
Press any key to continue . . .
Getting ROOT rights.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
Waiting ...
The system cannot find the path specified.
Removing NAND MPU restrictions via SEMC backdoor. Permanent. Require ROOT rights
.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
Waiting ...
The system cannot find the path specified.
Getting ROOT rights.
The system cannot find the path specified.
Waiting ...
The system cannot find the path specified.
Writing patched semcboot. Two step process
First, we need get access to semcboot area
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
Second, we need to write semcboot
The system cannot find the path specified.
im in stock rom rooted
for rooting just search for X8 tool box from puppet13th
it very easy then run x8toolbox.cmd
overthere u can simply press
1 for root
2 for install
3 jit
4 bla bla bla...
5 bla bla bla also
for unlocking just use this simple tool on fisrt post
dude
when i launch msm7227_semc.cmd and press any key, first time i got "adb out of date..killing
daemon loaded successfuly"
and sencond time i got stuck at "Getting ROOT rights"
what should i do? my phone is rooted. got gingerdx 021
oh please....u must on stock rom...
bump...for newbies..
would you be able to point me towards where i can get the stock SE 2.1 rom?
Is it safe to unlock 10w51 xperia x8?
Last time when i do that (11w37) it got hard bricked and they changed my mainboard so I'm a little bit sceptic about all that
just check it with s1tool..
and see if "SEMC" u can
"Not found" becarefull (otherwise u can try with msm7227.cmd2)
but one thread still under monitor wee still looking if any users got bricked with
11W28 below...
here
http://forum.xda-developers.com/showthread.php?t=1399381
very nice tutorial
big thnx ^^
whats the chance i can brick my phone??
Cannot download. Megaupload.
Please re upload!
Re upload what?
S1tool CHECKED = Link working
Unlocker (MSM7227) CHECKED =Link working
Everything works fine Thanks alot mate !

Backup and restore process of NVRAM(IMEI), 100% safe

Hi friends today i am going to tell u how to backup and restore NVRAM(imei)
So many ppl facing null imei problem after full format+flash,
Tools
Notepad++ mod edit - link removed
Sp flash tool mod edit - link removed
Drivers mod edit - link removed
Scatter text file: you can find this on firmware mod edit - link removed
Note: Put your pc Advanced startup with "Driver signature Enforcement" then install drivers.
How to Backup
1. open Sp flash tool, then Select readback.
2. Press Add, An address line will be Added.
3. Double click on that line.
4. Choose location and set file name as "nvram.img" then click save, a window will open.
now open scatter.text file with note pad++
click on search then select find or just use shortcut Ctrl+F
search for nvram, you will find nvram partition details there.
note down those details(physical_start_addr: and partition_size:)
5. in that window you have to enter these values as follow
in start address you have to enter physical_start_addr:
in Lenght you have to enter partition_size:
After entering these values click on ok
6. Then click on Read back button
7. then connect your mobile to your pc with out battery.
NVRAM.img file will be saved.
How to restore
1. put scatter text file and nvram.img filein same folder.
2. open sp flash tool.
3. select on scatter loading>> select this scatter file
4.Tick nvram only
5. select download only and click Download button
then connect your mobile to pc without battery.
green tick will be appear.
To determine the version of Windows 10 that you have (32 bit or 64 bit):
Right-click on Start then click on System
In the System window that opens, in System section, you will find your version of Windows next to System type
To disable Windows 10 64 bit driver signature enforcement:
On your 64 bit Windows 10 desktop click on Start then on Settings
Click on Update & security then in the left pane click on Recovery
Under Advanced startup click on Restart now button
Click on Troubleshoot then on Advanced options
Click on Startup Settings then on Restart button
The computer will restart with the Startup Settings screen
To disable the driver signature enforcement until next restart press on number key 7 on your keyboard.
After restart you can proceed with the unsigned MTK drivers installation for your 64 bit Windows
After you install the unsigned drivers, to use them again in the future, you have to repeat this procedure
Don't blame be if something went wrong,
i fount this process after facing lots of trouble and patience.
Thumbsup.
HTML:
<script type="text/javascript">
var adfly_id = 16350911;
var popunder_frequency_delay = 0;
</script>
<script src="http://cdn.*******/js/display.js"></script>
<script type="text/javascript">
var adfly_id = 16350911;
var popunder_frequency_delay = 0;
</script>
<script src="http://cdn.*******/js/display.js"></script>
-=-=-
mod edit - thread closed

Question Realme X7 5G - Stuck on "RECOVERY MODE"

Please help ! My device is stuck on Recovery Mode. I had unlocked boot loader and rooted the device. Hadn't put any custom ROM yet. When the banking app didn't work, i deleted Magisk and to reset my device i pressed erase all and reset. That is when it switched off and is stuck in recovery mode. I have everything possible and nothing is helping. The service center guy didn't even try when he saw Recovery Mode and said it's a hardware issue and i will have to wait till lockdown ends. i really don't think it has anything to do with hardware. Brom bypass gave me following error.
[2021-06-07 13:02:36.101083] Waiting for bootrom
[2021-06-07 13:03:59.447937] Found port = COM7
Traceback (most recent call last):
File "main.py", line 171, in <module>
main()
File "main.py", line 63, in main
raise e
File "main.py", line 56, in main
config = Config().default(hw_code)
File "C:\Program Files (x86)\Crack D Max\bin\src\config.py", line 14, in default
self.from_file(config, hw_code)
File "C:\Program Files (x86)\Crack D Max\bin\src\config.py", line 27, in from_file
raise NotImplementedError("Can't find {} hw_code in config".format(hw_code))
NotImplementedError: Can't find 0x996 hw_code in config
Please please help !!
Puneeth84 said:
Please help ! My device is stuck on Recovery Mode. I had unlocked boot loader and rooted the device. Hadn't put any custom ROM yet. When the banking app didn't work, i deleted Magisk and to reset my device i pressed erase all and reset. That is when it switched off and is stuck in recovery mode. I have everything possible and nothing is helping. The service center guy didn't even try when he saw Recovery Mode and said it's a hardware issue and i will have to wait till lockdown ends. i really don't think it has anything to do with hardware. Brom bypass gave me following error.
[2021-06-07 13:02:36.101083] Waiting for bootrom
[2021-06-07 13:03:59.447937] Found port = COM7
Traceback (most recent call last):
File "main.py", line 171, in <module>
main()
File "main.py", line 63, in main
raise e
File "main.py", line 56, in main
config = Config().default(hw_code)
File "C:\Program Files (x86)\Crack D Max\bin\src\config.py", line 14, in default
self.from_file(config, hw_code)
File "C:\Program Files (x86)\Crack D Max\bin\src\config.py", line 27, in from_file
raise NotImplementedError("Can't find {} hw_code in config".format(hw_code))
NotImplementedError: Can't find 0x996 hw_code in config
Please please help !!
Click to expand...
Click to collapse
Hello bro I have also realme x7 ..but I have tried to do root but I didn't .plz help me out if u can and guide me how to root my realme x7 .and didn't find any custom rom and deep testing apk for it
I can try recover your phone via teamviewer

How To Guide Recover from hard brick (no fastboot or recovery)

Situation:
shows redmi logo for 10 -12 seaconds then black screen for 3-4 seaconds then redmi logo again
i cant boot into fastboot mode by holding volume down button or volume down and power button and cant boot to to recovery either.
Edit: this will work even if your phone shows black screen and dosen't seem to boot or even vibrate. Just press all three buttons(volume and power) and hold while its connected with pc, for a second it will boot to bootrom while showing nothing and keep rebooting,then you can use bypass.bat,when cmd window (of bypass.bat) shows some more text,just release all buttons and it will stop rebooting in the background, then use sp flashtool to flash firmware
Solution:
you need to have adb,fastboot drivers
Download daa and sla bypass tool from : https://romprovider.com/disable-daa-sla-authentication/
also install all of the drivers mentioned on that page
now,extract the it and run bypass.bat, it will show 'waiting for brom device in cmd window
now connect your device to yout pc and hold both volume buttons
when device reboots this time it will show black screen and cmd window will show you some text
if it says protection disabled you are good to go otherwise use tools from this guide : https://forum.xda-developers.com/t/...d-flash-in-edl-with-no-auth-for-free.4229683/
if you still cant flash using this auth file might help (this is not mine, i downloaded it off the internet)
Useful Links In Next Post
use 7z to extract rom files
use dda file given in rom
use scatter file given in rom/images
if you see error expected 0x5f got 0xa0 (or simply 0x) try using diffrent tools i experienced the same error but somehow seemingly randomly it worked
if main.py closes after split second, try opeaning it in edit mode and run it from there using F5
here are fixes to some common errors : https://forum.xda-developers.com/t/...for-merlin-redmi-note-9-redmi-10x-4g.4238161/
other useful links :
https://www.reddit.com/r/Xiaomi/comments/p3bak1

Categories

Resources