[GUIDE][ZTE DEVICES]Aosp lock screen - Blade General

Hi today im going to show u how to get AOSP lockscreen on most if not all ZTE devices
This guide assumes u know how to decompile and compile apk files!!!
"What you will need..."
1. Apktool or equivalent GUI
2. Notepad++ or another XML/hex editor
3. Java
4. SDK/adb
5. A brain
6. Patience...
Step 1: Decompile framework-res.apk
Step 2: Go to res/values and open strings.xml
Step 3: Search for: "<string name="config_lockscreen_classname">"
Step 4: Change "com.android.internal.policy.impl.xxxxxxxx" to "com.android.internal.policy.impl.LockScreen"
Step 5: Recompile framework-res.apk and dont forget to resign
Step 6: Push apk to device and enjoy AOSP lockscreen!!!!
Note: Layout may need to be fixed depending on device eg: lock ring to low etc...
Sent from my N800 using Tapatalk

Does not work on zte blade c2 jelly bean 4.2.2 can not find the line Step 3: Search for: "<string name="config_lockscreen_classname">"

joses444 said:
Does not work on zte blade c2 jelly bean 4.2.2 can not find the line Step 3: Search for: "<string name="config_lockscreen_classname">"
Click to expand...
Click to collapse
can u upload ur framework-res.apk and I will take a look
Sent from my N800 using Tapatalk

I have also enabled this through policy too, framework method is easier
Sent from my N800 using Tapatalk

brittnearl said:
can u upload ur framework-res.apk and I will take a look
Sent from my N800 using Tapatalk
Click to expand...
Click to collapse
thanks, I leave the framework-res

joses444 said:
thanks, I leave the framework-res
Click to expand...
Click to collapse
framework-res

can u post a screen of ur lockscreen?? is it a long press?? u are correct string does not exist in ur frame

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
This is aosp minus my mods lol
Sent from my N800 using Tapatalk

If ur lock is long press upload ur android.policy.jar
Sent from my N800 using Tapatalk

brittnearl said:
If ur lock is long press upload ur android.policy.jar
Sent from my N800 using Tapatalk
Click to expand...
Click to collapse
thanks, I left a snapshot and android.policy

Hmm... Ur policy is setup completely different than mine, not sure how to go about getting it to work as i dont have ur device to test

Related

[DEV][Request]Tablet Tweaks ( Soft-Buttons on Statusbar ) for CM7 Port

Hello Ace-Community!
I just found something interesting and i haven't found it yet on our ace forums so i'm posting this :
Let's have a look at this :
http://forum.xda-developers.com/showthread.php?t=1428909
These are onscreen buttons integrated into the statusbar like on a tablet .
This mod was made for cm7.
Here's a ROM from the galaxy mini forums wich includes this mod:
http://forum.xda-developers.com/showthread.php?t=1648213
Is someone interested to port this to our ace?
And notice this is only for CM7
First up,wrong section
Second,It is already present for Ace,only that it is integrated into roms.
Third,Its not only for CM roms,with the right modifications,it can be adapted to Stock as well.
Prawesome said:
First up,wrong section
Second,It is already present for Ace,only that it is integrated into roms.
Third,Its not only for CM roms,with the right modifications,it can be adapted to Stock as well.
Click to expand...
Click to collapse
Just tell me in wich rom ,you can enable softbuttons in statusbar...
and of course it can be edited to work on stock roms...
Its easy
Go to bools.xml
And chanhe some tablet values to true
And compile
Sent from my GT-S5830 using xda premium
NutellaBanane said:
Just tell me in wich rom ,you can enable softbuttons in statusbar...
and of course it can be edited to work on stock roms...
Click to expand...
Click to collapse
Infinity by nims for a start
Or look at razr ui v5 tablet patch
Search on xda to
How to enable tablet tweaks cm7
Sent from my GT-S5830 using xda premium
Prawesome said:
Infinity by nims for a start
Click to expand...
Click to collapse
Yes it has, but it was buggy course all buttons are overlapping the other icons on the statusbar...so it isn't useable...
i think thats rom is Cyanogenmod by Squadzone or CYANMOBILE REV A by him also..Many tweaks for that rom..
Loool wooot
I enabled them, CoolCatGetHome teached me.
Decompile framework-res.apk and go to res/values and edit bools.xml, search for the soft buttons line amd change false to true.
Screenshot
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Sent from my SG Ace
Adgoosuc said:
Loool wooot
I enabled them, CoolCatGetHome teached me.
Decompile framework-res.apk and go to res/values and edit bools.xml, search for the soft buttons line amd change false to true.
Screenshot
Sent from my SG Ace
Click to expand...
Click to collapse
can share the framework?
Made flashable zip, for noobs or lazy guys. Thanks
Sent from my GT-S5830 using XDA

[TUTORIAL] Enable Softkey for CM7 ROMS

hy all I will announce on how to activate Softkey in CM7 rom but please note that this framework-res his or her system should be deodexed
ok we go to step - its stride
ScreenShoot
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Click to expand...
Click to collapse
Requirements :
Apktool
Notepad++
Click to expand...
Click to collapse
Step 1
Open this Apktool/cmd.exe
Step 2
Decompile file framework-res.apk
Step 3
go to folder framework-res.apk/res/value/bools.xml open with notepad++
and select
"cm_default_tablet">true</bool>
"cm_default_has_soft_buttons">true</bools
Step 4
Decompile as framework-res.apk
Finnaly
open the framework-res.apk file using 7-zip
then go to the folder framework-res/build/apk
There disamna resource, arc
nah this file then drag the framework-res.apk
using 7-zip
Click to expand...
Click to collapse
Good luck :fingers-crossed:
Nice tut bro
Sent from my E16i using Tapatalk 2
Nice, i will try to include thi in the next version of GingerKC
Sent from my E15i using xda premium
I think that there is an option for enabling the soft keys in the "Tablet Tweaks" in cyanogenmod settings..
dagger said:
I think that there is an option for enabling the soft keys in the "Tablet Tweaks" in cyanogenmod settings..
Click to expand...
Click to collapse
This mod enables it.
No i meant that the soft keys can be enabled without this mod too
dagger said:
No i meant that the soft keys can be enabled without this mod too
Click to expand...
Click to collapse
No.
Sent from my Galaxy Nexus using xda app-developers app
I would like to alert all GingerZaraki users (and any other ROM which has the statusbar bug like mine) NOT to use this mod. You will loose all icons on the statusbar. No, launching Terminal Emulator and Rebooting WON'T work. Just a note.
@OP if you can, please add this to your post. I dont want 30 PM's due to this
@All thanks guys
good luck
They can be enabled on minicm7..
I tried them myself...
dagger said:
They can be enabled on minicm7..
I tried them myself...
Click to expand...
Click to collapse
yes this for CM7 ROMS
and system deodexed
Good topic, i'll try it tomorrow...
Hey, is anyone know is gdx 29 odex or deodex???
'Coz i've tried to mod fw on that rom with another method and got error --'
Sent from deepest heart of my x8
hmmm ... I've never tried these rom
and do not know its deodexed or ODEX system
but if its ODEX file ...
fox just to deodexed by using a kitchen cygwin
gdx 29 is deodex rom.

unable to recompile

i decompiled systemui.apk for adding brightness bar but i am unable to recompile it i had installed its systemui.apk framework-res.apk but still some big error is shown
Sent from my GT-S5360 using Tapatalk 2
sanchit0403 said:
i decompiled systemui.apk for adding brightness bar but i am unable to recompile it i had installed its systemui.apk framework-res.apk but still some big error is shown
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
can you add the error log?????????
amit34521 said:
can you add the error log?????????
Click to expand...
Click to collapse
i just repleced statusbar.xml with another systemui's its showing error related to this
Sent from my GT-S5360 using Tapatalk 2
sanchit0403 said:
i just repleced statusbar.xml with another systemui's its showing error related to this
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
sanchit0403 said:
i just repleced statusbar.xml with another systemui's its showing error related to this
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
you cant simply replace an xml file with one from another systemui as it will contain IDs and @drawable values which relate to other files which will not be in your systemui - hense when you try to recompile you will get errors because it cannot find the files the IDs and values it relates to!
you need to edit your own xml files with the steps in the brightness slider guide in the dev section
marcussmith2626 said:
you cant simply replace an xml file with one from another systemui as it will contain IDs and @drawable values which relate to other files which will not be in your systemui - hense when you try to recompile you will get errors because it cannot find the files the IDs and values it relates to!
you need to edit your own xml files with the steps in the brightness slider guide in the dev section
Click to expand...
Click to collapse
firstly i tried that but still i got an error in the xml which i moded
Sent from my GT-S5360 using Tapatalk 2
sanchit0403 said:
firstly i tried that but still i got an error in the xml which i moded
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
Then what ever mods you have made are incorrect
check your syntax
check you have corresponding ids & styles in values folder
you only get errors if you have done something incorrect

[BOOTANIMATION] [MDPI] Moto X Bootanimation

Presenting the Moto x bootanimation for Optimus one and other mdpi devices.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Installing:
Download Bootanimation.zip and copy to your sdcard.
Copy it (and replace it, if already exists) in /system/media
Change permissions to rw-r--r-
Reboot and enjoy
Download:
Will be back shortly. Not working right now.
Waiting... : )
Sent from my GT-S5830 using Tapatalk 4 Beta
Impulse1020 said:
Waiting... : )
Sent from my GT-S5830 using Tapatalk 4 Beta
Click to expand...
Click to collapse
I have built the bootanimation. But dont know why, the phone does not boot after installing the bootanimation. The bootanimation starts but after sometime, the screen goes white and the phone reboots
rhar**** said:
I have built the bootanimation. But dont know why, the phone does not boot after installing the bootanimation. The bootanimation starts but after sometime, the screen goes white and the phone reboots
Click to expand...
Click to collapse
Steps you can try to fix the problem:
Add an extra empty line at the end of "desc.txt"
Archive the files WITHOUT compression
Compressed it with store compression.
Sent from my LG-P690 using xda premium
Junior Einstein said:
Steps you can try to fix the problem:
Add an extra empty line at the end of "desc.txt"
Archive the files WITHOUT compression
Click to expand...
Click to collapse
kunnaliskinng said:
Compressed it with store compression.
Sent from my LG-P690 using xda premium
Click to expand...
Click to collapse
Tried both the methods. Still not working. I can preview it through pc but when put in my phone, it doesnt work.
rhar**** said:
Tried both the methods. Still not working. I can preview it through pc but when put in my phone, it doesnt work.
Click to expand...
Click to collapse
Please upload the file. I (an probably other people) will try to see what is the error
This thread motivated me to create the bootanimation http://forum.xda-developers.com/showthread.php?t=2389140
Impulse1020 said:
Please upload the file. I (an probably other people) will try to see what is the error
Click to expand...
Click to collapse
Link
There's a thread for it too http://forum.xda-developers.com/showthread.php?t=2389190

[How To] Decrease buttons Navigation android (NavBar)

First have the APKTools, NotePad + +, 7Zip and Paciencia, lol ....
- Follow up framework-res.apk \ res \ values
- Open dimens.xml
- Search for the lines:
dimension name = "navigation_bar_height'' 48
dimension name = "navigation_bar_height_landscape'' 48
dimension name = "navigation_bar_width'' 42
-Change the values ​​48/48/42 to 35/35/32
- SystemUI -> res -> layout -> navigation_bar.xml and open it with Notepad++.
- Inside the navigation_bar.xml file find the following two lines:
"@drawable/ic_sysbar_back" android:scaleType="center"
"@drawable/ic_sysbar_back_land" android:scaleType="center"
- Now, delete the android:scaleType="center" from both lines.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
- Recompile
- Open Framework recompiled using 7Zip resources.arsc copy the file to the original file.
- Done!
before
after
Ps. Tested on devices
Motorola Razr HD
Motorola Razr D3
Motorola Moto G XT1033
Credits for the How to: Fabio PAB
Why just not using xposed / gravitybox? It does the very same thing and much more without going through all of this headache.
Sent from my XT1033 using Tapatalk
Doublepranks said:
Why just not using xposed / gravitybox? It does the very same thing and much more without going through all of this headache.
Sent from my XT1033 using Tapatalk
Click to expand...
Click to collapse
I prefer to use the means of development upon the friend's own apk apk tools
Hug.
I like it! But, i've installed GravityBox on my Moto G and i couldnt find an option for this.. How can i do this using GravityBox?
Thanks!
ponxho said:
I like it! But, i've installed GravityBox on my Moto G and i couldnt find an option for this.. How can i do this using GravityBox?
Thanks!
Click to expand...
Click to collapse
The option can be found in GravityBox [KK]<Navigation Bar Tweaks<Dimensions.
Doublepranks said:
Why just not using xposed / gravitybox? It does the very same thing and much more without going through all of this headache.
Sent from my XT1033 using Tapatalk
Click to expand...
Click to collapse
Is there a way to hide or decrease it without root?

Categories

Resources