[MOD][GUIDE] ENABLE MULTI-USER ON ANDROID 4.2.x - PHONE MODE - XDA-University

Found This Lying in Note 2 Forums . Thought it might help some Happy Students​Source monx® --> http://forum.xda-developers.com/showthread.php?t=2063195
monx® said:
BASIC INFO
Tablet vs Phone
Tablet has no Phone nor Messaging function so in this case, switching to other than primary user may cause Phone app (com.android.phone) force close. This is normal & make sense bcos we dont share phone to others. Whenever there is incoming call in other(s)user account, phone will ring as usual + LED notification but u need to switch to primary account immediately to pick up or will see miss called notification in primary account. Any activity related to Phone will force close in others account (outgoing call, ussd dialing, etc)
SMS messaging can be sent thru other(s) account but any received sms only viewable in primary account.
*Above info is correct when posted until other dev(s) make it work other way round.
MODDING
framework-res.apk >
\res\values\integers.xml (change to max users limit. 2 is enough IMHO, but i made it 3 just for fun)
\res\values\bools.xml (basically Tablet is in landscape thus user switching only visible in landscape in LockScreen. at least in current CM10.1 rom to date)
To make user switching visible in portrait LockScreen mode, manual layout modding is needed.
\res\layout-port\keyguard_host_view.xml (add this line before second </FrameLayout> to make more layout customization possible)
ADD \res\layout-port\keyguard_multi_user_selector.xml manually to customize the user switch location in portrait LockScreen.
Here is mine as example :
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.internal.policy.impl.keyguard.KeyguardMultiUserSelectorView android:layout_gravity="bottom" android:orientation="horizontal" android:id="@id/keyguard_user_selector" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:contentDescription="@string/keyguard_accessibility_user_selector" android:layout_childType="userSwitcher"
xmlns:androidprv="http://schemas.android.com/apk/res/android"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.android.internal.policy.impl.keyguard.KeyguardLinearLayout android:layout_gravity="bottom|center" android:orientation="horizontal" android:id="@id/keyguard_users_grid" android:layout_width="wrap_content" android:layout_height="@dimen/keyguard_avatar_size" android:layout_marginBottom="400.0dip" />
</com.android.internal.policy.impl.keyguard.KeyguardMultiUserSelectorView>
Click to expand...
Click to collapse

Can you make it in a better way ? Like, what should I do to prevent apps from Crashing ??

Sv: [MOD][GUIDE] ENABLE MULTI-USER ON ANDROID 4.2.x - PHONE MODE
How do i fix this?
{
"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"
}
Cheers
Daniel

RomWiz said:
How do i fix this?
View attachment 1759905
Cheers
Daniel
Click to expand...
Click to collapse
Edit the layout. For your phone
Sent from my GT-P7300 using xda app-developers app

Sv: [MOD][GUIDE] ENABLE MULTI-USER ON ANDROID 4.2.x - PHONE MODE
mithun46 said:
Edit the layout. For your phone
Sent from my GT-P7300 using xda app-developers app
Click to expand...
Click to collapse
That is the problem, i don't know how
Cheers
Daniel

RomWiz said:
That is the problem, i don't know how
Cheers
Daniel
Click to expand...
Click to collapse
Do slight editing and find out
Sent from my GT-P7300 using xda app-developers app

Related

[REQ] -NOTICE!!! All developers I'll need help from you all

Im coming from WM cooking, and just started with theming on my Nexus S.
But im missing a key ingredient on the N S.
and that is from Galaxy S i had, quick access to on/off swithes for wifi, bluetooth, silent etc. see screenshot.
if anyone can help me or build it for me i would be forever greatful as this feature is one of the best one.
{
"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"
}
Doesn't CM already have this feature for all phones?
theimpaler747 said:
Doesn't CM already have this feature for all phone?
Click to expand...
Click to collapse
yup. its in all nexus s's also, power control widget. its just modified in cm to include more features
there are paid apps $0.99 that can do that as well
as i recall Switch PRO (forgot correct name) have the option to attach itself to the status screen
smaberg said:
Im coming from WM cooking, and just started with theming on my Nexus S.
But im missing a key ingredient on the N S.
and that is from Galaxy S i had, quick access to on/off swithes for wifi, bluetooth, silent etc. see screenshot.
if anyone can help me or build it for me i would be forever greatful as this feature is one of the best one.
Click to expand...
Click to collapse
Stock Android 2.3.1 (which Nexus S) uses doesn't have that.
PS. Is it really necessary to write in bold/red/italics? Man it was annoying having to edit the quote to remove all that.
my work around is to stick the Power Control widget on a screen of my choice
it's included with stock Android
but there is no option to attach it to the status screen
simms22 said:
yup. its in all nexus s's also, power control widget. its just modified in cm to include more features
Click to expand...
Click to collapse
Yeah, that's what I thought
to above user, i loove to use different fonts/color/size.
well, i was looking for the powercontrol for the statusbar, as the statusbar is accesible everywhere, when desktop is not, as i recall
smaberg said:
to above user, i loove to use different fonts/color/size.
well, i was looking for the powercontrol for the statusbar, as the statusbar is accesible everywhere, when desktop is not, as i recall
Click to expand...
Click to collapse
Again, CM has the setting to change the colors and the items in the status bar power widget
Widgetsoid does a great job at a power control widget and it is free.
http://www.appbrain.com/app/widgetsoid2-x/com.jim2
I've missed this from my Galaxy S too, but the best work around I've found is Quick Settings - search on appbrain (cant post links as I'm 'new') and configure it to display in the notification shade, but to hide the icon in the notification bar.
If there is another solution to properly get buttons as on the Galaxy S ROMs (other than the often suggested - "flash CM7") I'd love to hear of it though. I know the notification shade can't be edited by a simple .apk, but this isn't the first time I've seen this request and would have thought it really ought to be possible somehow without delving into the deepest darkest recesses of the android system -but of course I am probably wrong

How to remove Xperia small apps and manager

If the small apps (calculator, notes, recorder, timer) annoy you when you press the task button here's a quick easy way to solve it.
Firstly you need root.
To remove the full small apps bar simply un-install/delete "SmallAppManagerService.apk" or "com.sony.smallapp.managerservice" from "system/app"
To keep the app bar but remove individual items here is the list of app and package names to remove from "system/app"
SmallApp-Calculator = com.sony.smallapps.calc
SmallApp-Notes = com.sony.smallapps.notes
SmallApp-Recorder = com.sony.smallapps.recorder
SmallApp-Timer = com.sony.smallapps.timer
ScreenShots
Before:
{
"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"
}
Uninstalling:
After:
dully79 said:
If the small apps (calculator, notes, recorder, timer) annoy you when you press the task button here's a quick easy way to solve it.
Firstly you need root.
To remove the full small apps bar simply un-install/delete "SmallAppManagerService.apk" or "com.sony.smallapp.managerservice" from "system/app"
To keep the app bar but remove individual items here is the list of app and package names to remove from "system/app"
SmallApp-Calculator = com.sony.smallapps.calc
SmallApp-Notes = com.sony.smallapps.notes
SmallApp-Recorder = com.sony.smallapps.recorder
SmallApp-Timer = com.sony.smallapps.timer
ScreenShots
Before:
Uninstalling:
After:
Click to expand...
Click to collapse
OH MY GOSH Thanks! Such a waste of space and crappy looking thing. GONE!
This is the first thing I do when flashing a new Rom! That damn thing just gets in the way
Sent from my LT30p using XDA Premium 4 mobile app
You still got it bro.
You still amaze this thread...
Nice Work dully.
Wow, it took 6 months for this to resurface lol.
When i seen i had a post quote i never expected it to be this.
Hope you guys are doing good.:good:
I suspect for many of us the small apps are as uninteresting as a mouses fart. They don't disturb. I am not aware of them using any relevant system resources. But they don't do anything for me. And they don't replace the bigger "sibling" apps. If an app is important I'll put it as a shortcut on my screen anyway.
That space should be used to give access to some phone functions. It could be a display area for a battery graph, the connected wifi network, the first two lines of the last message (be it SMS, Whatsapp or else), or a few on/off toggles, a reboot button, ..... so many useful ideas. Or a or new function which engages a low power state (reduce screen brightness, wireless, and GSM power by half or so, in conjunction with timer for Stamina Mode.
delete the...
\system\app\
TaskSwitcher.apk
SmallApp-Timer.apk
SmallApp-Recorder.apk
SmallApp-Notes.apk
SmallApp-Mirror.apk
SmallAppManagerService.apk
SmallApp-Currency.apk
SmallApp-Converter.apk
SmallApp-Calculator.apk
SmallApp-*****.apk
\system\framework\com.sony.smallapp.jar
\system\framework\com.sony.smallapp.odex
\system\etc\permissions\com.sony.smallapp.framework.xml
Anjoy~~
thanks it work really good
Thank you!
Everyone knows how to do it. There is nothing new
This will work on All xperia devices?
I got a Sony Rom for my Xperia Z Ultra for which the small apps where removed so I took all files he removed back into System/App but I cannot get Small Apps to show.
Any ideas?
These are the files:
SmallAppManagerService.apk
SmallAppsLAuncher.apk
SmallAppWidget.apk
Install a terminal app
type
SU
pm hide com.sony.smallapp.launcher
reboot
done
to change back
SU
pm unhide com.sony.smallapp.launcher
reboot
done
I deleted as in the first post, but white bar for small apps is still there... Any help?

[Q] A bunch of questions

Hi guys
I just got my first Android phone and I'm exploring everything, but I have some question about some stuff I encountered.
A) When I change the volume in the menu's, I change the volume of the ringtone.
Is it possible to just change the "general" volume like when you can do in an app?
B) Will the new 4.2.2 update have the option to have some toggles (wifi/bluetooth/location/...) in the notificationcenter.
If no, is it possible in another way?
C) When I lock my phone when the camera app is open and I the device is locked. When I press the powerbutton the camera app shows up from itself. That's without my sliding the "key icon" on the lockscreen.
Is this normal: yes/no?
D) Is it possible to change the raster layout from the homescreens from 4 icons (width) to something more? (Maybe 5 icons on 1 row).
E) What app should I use to watch movies (downloaded/converted)?
I can't find a stock app for that and I don't find what I seek in the Playstore
F) If I make a shortcut from a folder with apps to my home screen and I add some apps in the main menu (same folder), why doesn't my folder on the home screen get updated?
I guess that's it for the moment.
It would be awesome if you would answer some questions (not all!).
Thanks, really!
Matt
to answer
b) I believe so yes, they certainly are there on ARHD 11.0...you could aways try Power Toggles from the Play store...I found it really useful when I ran stock 4.1.2
c) yes, that's normal...HTC call it Tourist Mode or something like that
A) Nope, just change it in Settings or in an app like you say
B) Yes, it does. Using it now
C) Yeah that's so you can snap fast photos
D) Yeah, there is a mod for this (root only)
E) MX Player is pretty good
Thanks guys! I really appreciate it.
And would you know how the tweak is called to change the raster size?
Sent from my HTC One using xda app-developers app
I added a new question (F)
Sent from my HTC One using xda app-developers app
A) If you want to change other volumes instead of only ringtone, press the settings button on the right of the ringtone slider, shown below:
{
"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 HTC One using xda app-developers app
you can try a launcher from the play store like nova launcher or go launcher to change the number of dock apps

[MINI CODE MOD][2.3+] Colored Battery Percentage Text Level (left of battery) !

Hello guys, welcome to my new small work on eclipse.. This is a minor mod on Battery Text Level to make it a little bit colorize..
What is it for ?
Lots of users use battery % text on the left of battery icon and its color is white.
This will change color otomatically to;
BatteryLevel %0 - %9 >> RED
BatteryLevel %10 - %19 >> ORANGE
BatteryLevel %20 - %100 >> WHITE
{
"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"
}
Small Guide
Download file and unpack it. You will see com/erhany/ColoredBatteryText** ( 2 smali files)
Decompile SystemUI.apk and copy erhany folder inside smali/com folder.
ICS+, CM..
go to res/layout/ statusbar xml file, find battery text line if you have. add android:visibility="gone" into it and then rewrite same code
starting with <com.erhany.ColoredBatteryText ... and dont type android:visibility="gone" into this one.
If you dont have battery text line above battery; start with <com.erhany.ColoredBatteryText ... and you can use your clock line codes or how you want to set it..
* I can't give full code line, because it may differ due to stock ICS, CM or other..
GB
We all know GB icons are in a linearlayout and we cant seperate them so u can use
Code:
<com.erhany.ColoredBatteryText android:textSize="14.0dip" android:gravity="center" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" />
this code or whatever you want..
- Code tested on GB and must work on ICS+ , CM,.. Dont know for Aosp etc..
As I told, this is a minor mod to make statusbar area a lil bit colorize..
there was an error while compiling smali. Open smali file and change code to this>> const v0, 0xffffa500 and save
Download File : http://www.mediafire.com/download/td748g6azu3m39t/ColoredBatteryPercentageText.rar
Thanks
Kejar31 github, CM9 Battery Line creator..
Very cool! I use your battery text on a few of my devices and this would be a neat improvement.
This isn't very related but is it possible to do a mod like this that displays the carrier label?
When I say a mod like this, I mean a few smali files and a line of xml.
Sent from my C6603 using XDA Premium 4 mobile app
Ticklefish said:
Very cool! I use your battery text on a few of my devices and this would be a neat improvement.
This isn't very related but is it possible to do a mod like this that displays the carrier label?
When I say a mod like this, I mean a few smali files and a line of xml.
Sent from my C6603 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Here you go http://forum.xda-developers.com/showthread.php?t=2295136
Hope this is what you're looking for...
Sent from my GT-I9300 using xda app-developers app

[2.3xx][MOD][GUIDE] AlmasToggle(Noob Friendly) (Updated v2)

24 Toggle Almas Toggle
{
"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"
}
AlmasToggle
I am Bored with lidroid quickpanel and my friend spacecaker toggles because no methods to switch between gridview or horizontal view and some other stuff. I make This toggle from Scratch no fork of cm11 or any other toggle source it is totally open source everyone can fork and anything but just give credit to me This toggle take 4-5 day to complete because me soo busy these day . If You need any help regarding to this post here BUT NO PM there one app where some window are located if you don't install that force close when clicking on window based toggle. Also There almas-res.apk Where the resource are located you need to put almas-res.apk to system/framework the java of the toggle will load to app to give output of images and etc. If You want to have kitkat Status_Bar_Close just open status_bar_tracking find <ImageView and replace with com.almas.systemui.BottomBar after replacing you need remove android:src="blabla" from the tag. AlmasToggle contain 24 Toggle Now and can be switch grid view and horizontal view . We talk so much let's start ?
Required
1. almas-res.apk
2.AlmasToggle.apk
3.Toggle_Smali
Instruction
1st
1. Put almas-res.apk to /system/app or /system/framework and set Permission R - W - RR (Recommended to in /system/app)
2.Install AlmasToggle to Your Phone
2nd
1.Decompile Your SystemUI.apk
2.Open smali folder Merged Toggle_Smali
3.Open /res/layout/**** any layout where you want load
4.Add These Lines
Code:
<com.almas.toggles.ToggleGridView android:layout_width="match_parent" android:layout_height="wrap_content" />
<com.almas.toggles.ToggleHorizontalView android:layout_width="wrap_content" android:layout_height="wrap_content" />
Tips
How to change Profile name and photo
Click on the Toggle
SS
Credits
AndroidFire
PxL for Toggle Images
tentenponce
AKOP
SpaceCaker
Source
Go Here
Features and Change log
Change logs
v1
-Initial released
v2
-Added Wifi Hotspot Toggle
-Bug Fixed
-Added Toggle Order
-Many More
Features
Two Policy.
AutoUpdate
Toggle Order
Extended Toggle
more
Worked fine zte awe stock android 4.1.2. Did cause heavy lag when pulling down to access notification area. Almost to the point of completely stopping the status bar pull down from responding. Also caused system ui crash when turning particular toggles on or off. I am guessing but I believe most of these issues are coming from the toggle settings apk. Could be a system memory issue for my device. Operating with 1024mb ram. Should be enough though to easily run this. Did notice it uses 17mb memory. Thats an awful lot. Thats as much as a system launcher. Optimize memory use seems to be in order. But then again,that depends on your device.

Categories

Resources