FORUMS
Remove All Ads from XDA

Default rotation orientation

50 posts
Thanks Meter: 1
 
By saywow, Member on 18th June 2014, 03:22 PM
Post Reply Subscribe to Thread Email Thread
Hi,
I have a rooted android 4.2.2 tablet ,I want to block the default screen orientation when i turn off the auto rotation , that's mean :
when i turn off the auto rotation and i'm in landscape, i don't want it to turn to portrait (and vice-versa), and i prefer to use a code and not an app that stays always in memory
Someone can help me please?
Thank you
Note : Please quote my post when you want to answer me, like that i will receive an email telling me that there is a new reply
Last edited by saywow; 18th June 2014 at 03:30 PM.
 
 
18th June 2014, 04:21 PM |#2  
Member
Flag coimbatore
Thanks Meter: 27
 
More
Thumbs up
Quote:
Originally Posted by saywow

Hi,
I have a rooted android 4.2.2 tablet ,I want to block the default screen orientation when i turn off the auto rotation , that's mean :
when i turn off the auto rotation and i'm in landscape, i don't want it to turn to portrait (and vice-versa), and i prefer to use a code and not an app that stays always in memory
Someone can help me please?
Thank you
Note : Please quote my post when you want to answer me, like that i will receive an email telling me that there is a new reply

-If you know to editing apk files then follow these steps.
- Decompile your default system launcher for example SecLauncher2.apk for SAMSUNG phones using apk multitool.
- Go to \res\values folder and open integers.xml.
- Search for this line:

Code:
<integer name="config_screenOrientation">1</integer>
- Change the integer number to one of actions bellow:
1 = Disabled
2 = Enabled when Screen Rotation is switched on (270 degree)
3 = As same as 2
4 = Always enabled even if Screen Rotation is switched off (270 degree)
5 = Always default position
6 = Always in landscape mode (to the left)
7 = As same as 5
8 = Always in landscape mode (to the right)
9 = Upside down portrait when Screen Rotation is switched on
10= As same as 4 but for all directions (360 degree)
- Save changes.. recompile, push it to your device and fix permissions to 644 and reboot.

HIT THANKS if i helped you
The Following User Says Thank You to pandian8552 For This Useful Post: [ View ] Gift pandian8552 Ad-Free
18th June 2014, 07:26 PM |#3  
OP Member
Thanks Meter: 1
 
More
Quote:
Originally Posted by pandian8552

-If you know to editing apk files then follow these steps.
- Decompile your default system launcher for example SecLauncher2.apk for SAMSUNG phones using apk multitool.
- Go to \res\values folder and open integers.xml.
- Search for this line:

Code:
<integer name="config_screenOrientation">1</integer>
- Change the integer number to one of actions bellow:
1 = Disabled
2 = Enabled when Screen Rotation is switched on (270 degree)
3 = As same as 2
4 = Always enabled even if Screen Rotation is switched off (270 degree)
5 = Always default position
6 = Always in landscape mode (to the left)
7 = As same as 5
8 = Always in landscape mode (to the right)
9 = Upside down portrait when Screen Rotation is switched on
10= As same as 4 but for all directions (360 degree)
- Save changes.. recompile, push it to your device and fix permissions to 644 and reboot.

HIT THANKS if i helped you

Thank you for your answer , I'm using smart launcher , can i do that using only my tab or i need a computer?!
and i don't know how to "fix permission" can you explain to me please? and i don't really know which option is responding to what i need , is it 5/7th ?!
Last edited by saywow; 18th June 2014 at 07:31 PM.
19th June 2014, 06:33 AM |#4  
Member
Flag coimbatore
Thanks Meter: 27
 
More
Thumbs up
Quote:
Originally Posted by saywow

Thank you for your answer , I'm using smart launcher , can i do that using only my tab or i need a computer?!
and i don't know how to "fix permission" can you explain to me please? and i don't really know which option is responding to what i need , is it 5/7th ?!

no no no, i told to edit your home launcher not custom launcher
if your tablet is rooted then go to /system/app/(your system launcher.apk)
and you need a computer with all resources likeJAVA(jdk) , SDK , NotePad++ , for this download each one from THIS SITEEEEEE
and click here for apk multi tool and tutorial for using apk multi tool
if you know editing apk files using means then edit
i think this is new for you then learn it from the above website

PERMISSIONS

if your done editing your system launcher then you have to paste it using root explorer in /system/app/paste and overrite it
when you are pasted it successfully then by long press that apk file a tab opens in that clickpermissions in that tick all read box and tick first box of write
this is spelled as rw-r--r-- where the r-read w-write slash is represented as not to tick

click THANKS if i helped you
19th June 2014, 11:21 AM |#5  
OP Member
Thanks Meter: 1
 
More
Quote:
Originally Posted by pandian8552

no no no, i told to edit your home launcher not custom launcher
if your tablet is rooted then go to /system/app/(your system launcher.apk)
and you need a computer with all resources likeJAVA(jdk) , SDK , NotePad++ , for this download each one from THIS SITEEEEEE
and click here for apk multi tool and tutorial for using apk multi tool
if you know editing apk files using means then edit
i think this is new for you then learn it from the above website

PERMISSIONS

if your done editing your system launcher then you have to paste it using root explorer in /system/app/paste and overrite it
when you are pasted it successfully then by long press that apk file a tab opens in that clickpermissions in that tick all read box and tick first box of write
this is spelled as rw-r--r-- where the r-read w-write slash is represented as not to tick

click THANKS if i helped you

Ok thanks a lot , but the problem i have uninstalled the default launcher , what should i do?
20th June 2014, 06:58 AM |#6  
Member
Flag coimbatore
Thanks Meter: 27
 
More
Quote:
Originally Posted by saywow

Ok thanks a lot , but the problem i have uninstalled the default launcher , what should i do?

Then search for your launcher on google you may find solution for that
Give your phone detàils

Sent from my GT-I8552 using XDA Free mobile app
20th June 2014, 03:27 PM |#7  
OP Member
Thanks Meter: 1
 
More
Quote:
Originally Posted by pandian8552

Then search for your launcher on google you may find solution for that
Give your phone detàils

Sent from my GT-I8552 using XDA Free mobile app

Ok thanks a lot , idk how but it works now , i've just re-install my frimware and keept smart launcher 2 .
Thank you.
Last edited by saywow; 20th June 2014 at 03:33 PM.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes