Any intrest in multi-user support for CM10 & Carbon builds? - Motorola Photon Q 4G LTE

I keep both the CM10.1 & Carbon repo's on my computer to save bandwidth when updating and the other day I noticed that enabling multi-user support on these is super easy. Just need to change a variable in two files..
Anyway, I built Carbon with the changes allowing multi-user support and have been testing. From a clean flash I have not really found any additional bugs when enabling it though. The only downside is users can only be switched from the lockscreen while it is in landscape mode. Other than that everything seems to work so far.
This will only work on 4.2+ though!
My main question though; is there interest for this?
There are three ways this can be applied if there is enough interest, a} maybe a flashable mod b} pushing a patch to the repo(s) c} A separate rom.
Some pics.
{
"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"
}

I am having a hard time finding the source for the edits I made though... Using THIS method is not persistant after rebooting though...
Here is the diff for anyone else that builds, not sure if the first edited line is absolutely necessary however the second I know is.
Code:
project frameworks/base/
diff --git a/core/java/android/os/UserManager.java b/core/java/android/os/UserManager.java
index d73f99a..6d95a81 100644
--- a/core/java/android/os/UserManager.java
+++ b/core/java/android/os/UserManager.java
@@ -330,7 +330,7 @@ public class UserManager {
*/
public static int getMaxSupportedUsers() {
// Don't allow multiple users on certain builds
- if (android.os.Build.ID.startsWith("JVP")) return 1;
+ if (android.os.Build.ID.startsWith("420")) return 1;
return SystemProperties.getInt("fw.max_users",
Resources.getSystem().getInteger(R.integer.config_multiuserMaximumUsers));
}
diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml
index 88c1410..8e922d4 100644
--- a/core/res/res/values/config.xml
+++ b/core/res/res/values/config.xml
@@ -973,7 +973,7 @@
<bool name="config_syncstorageengine_masterSyncAutomatically">true</bool>
<!-- Maximum number of supported users -->
- <integer name="config_multiuserMaximumUsers">1</integer>
+ <integer name="config_multiuserMaximumUsers">8</integer>
<!-- Minimum span needed to begin a touch scaling gesture.
If the span is equal to or greater than this size, a scaling gesture

Related

Coding an app help[C#|Visual Studio 2008]

Hi there, need some help coding an app, it's similar to somekind of "who wants to be a millionaire?"
The base is that there is a question and 4 variants each page(window), answering one question leads you to the next one, the problem is that i don't know how to connect the windows.
i have kind of
Q1.cs
Q2.cs
....
Q10.cs
------
form1.cs - which is the main window
the code is
private void button1_Click(object sender, EventArgs e)
{
MessageBox.Show("Right! go to the next", "Information");
?????????????? // for example Q3 is next which is in other window with other image and style, and which is already created as Q3.cs in same project
}
i don't know what to put inside to call for example next question(window) same with menu items like About and Settings...
Please help. maybe somekind of link with tutorials.
msdn i know, didn't found this moment there.
Thanks.
private void button1_Click(object sender, EventArgs e)
{
if(MessageBox.Show("Right! go to the next", "Information")==dialogresult.Ok)
{
//<other formname> maybe q1
q1 = new q1();
if(q1.showdialog()==dialogresult.ok)
{
//whatever
}
}
?????????????? // for example Q3 is next which is in other window with other image and style, and which is already created as Q3.cs in same project
}
your problem is not really a spc mobile problem
so any c# net examples you can dig up can help you
to be more precise
Rudegar thank you, but it isn't quite what i am searching for,
here is the image which probably will explain better what i ask/search.
hope somebody can help with code.
{
"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"
}
there is Form1.cs and Form2.cs, how to pass from one to another using button_click event?
private void options_click(blablabla bla)
{
form2 myform = new form2();
myform.showdialog();
}
private void back_click(,,,,,)
{
Close();
}
Without knocking your method, why have you not got one page that has the buttens etc set up and change them when the questions change, rather then have 10 forms that are exactly the same?
Rudegar THANK YOU! that was it! it works perfect! RESPECT for your help!
MrRalphMan well because there will be different forms - ones with textbox to fill in, others with guess the image, others with sound to recognise and so on...
the purpose of the programe should be E-Learning - foreign language learning app, it will help user study new words of the new language.
Rudegar Thank you!

[Q] Android 1.6 saving PNG bitmap doesn't maintain alpha component

Hello all,
So I have searched many api libraries and tried many different ways to save, but I cant seem to keep the alpha channel for an image.
So here is the problem
Step 1: Load an image that is some file type ... say rgb 565..., and convert that to argb 8888. This works great, and the bitmap's hasAlpha flag is true, and I tested it and was able to write to alpha, and read it properly.
Step 2: Save the converted image to a file using something like this:
Code:
bitmap.compress(Bitmap.CompressFormat.PNG, 100, out);
Where out is my FileOutputStream.
Step 3: Once saved I try to load that file again using:
Code:
bitmap = BitmapFactory.decodeFile(bmapFileName, bfo);
Where bfo is my BitmapFactory.Options, which has no prefferedConfig or whatnot.
At each step i print bitmap.getConfig() and bitmap.hasAlpha()
Prints:
Step 1 -> bitmap.getConfig() = rgb565 (or whateverfiletype), hasAlpha = false
Step 2 -> bitmap.getConfig() = argb8888 (or whateverfiletype), hasAlpha = true
Step 3 -> bitmap.getConfig() = argb8888 (or whateverfiletype), hasAlpha = false
So why am I getting hasAlpha in step 3 to be false. And how can I make sure that writing the bitmap to file will maintain its alpha component.
Thanks for any input
Multiple images Animated in Portable Network Graphics
I'm sorry I do not have the answer for you, though since there are two animation formats for PNG related graphics, you could consider using MNG. That most API's do not support them is because (currently) programmers are (still) not familiar with these file formats. Solution; create your own API
Here is some insight in APNG (Animated Portable Network Graphics) and MNG (Multiple-images Network Graphics) obtained from WiKiPEDiA for others to obtain more information regarding this subject.
Read here what w3c.org had to say about PNG.
An APNG image example -=[HERE]=- taken from en.wikipedia (not all browsers support this format)
{
"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"
}
We need more input from others regarding this interesting subject

[SOLVED] CM 10.1 porting: How can I change (pixel)size of Fonts (and Layout)

Hallo,
I am creating a port of CM 10.1 for Acer A210
This is a Tablet with 10" and 1280x800 pixels.
My port works so far, but some fine tuning is left.to do. I have the problem, that the size of fonts is not correct. In the DisplaySettings I find the four values for font size small, normal large and x-large, but even small is a for this device too big. (See attached picture, this is the small font).
{
"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"
}
Which setting is responsible for the (pixel) sizes of fonts used for small, normal, large and x-large?
Is there any other way to change the size of font?
I would be happy about any help.
Kind regards Uwe
Solved:
In device.mk:
Code:
PRODUCT_PROPERTY_OVERRIDES += \
ro.sf.lcd_density=160\
regards Uwe
u.k-f said:
Hallo,
I am creating a port of CM 10.1 for Acer A210
This is a Tablet with 10" and 1280x800 pixels.
My port works so far, but some fine tuning is left.to do. I have the problem, that the size of fonts is not correct. In the DisplaySettings I find the four values for font size small, normal large and x-large, but even small is a for this device too big. (See attached picture, this is the small font).
Which setting is responsible for the (pixel) sizes of fonts used for small, normal, large and x-large?
Is there any other way to change the size of font?
I would be happy about any help.
Kind regards Uwe
Solved:
In device.mk:
Code:
PRODUCT_PROPERTY_OVERRIDES += \
ro.sf.lcd_density=160\
regards Uwe
Click to expand...
Click to collapse
where is device.mk located? it is just as easy as changing the file with RootExplorer?
ealax said:
where is device.mk located?
Click to expand...
Click to collapse
On the Build-PC, in the CM-sources. More detailed: in the device-tree.
ealax said:
it is just as easy as changing the file with RootExplorer?
Click to expand...
Click to collapse
Just editing with the text-editor of the Linux.
Regads Uwe

[Experiment] MARS Vendor Overlay for GSI ROMs

Hello Folks!
Had a long Night and just wanted to share what i've done in some Hours of Work. I have enabled various Features which aren't available on our Xperias running GSIs normally. The following is mainly added and noticeable:
-Always on Display Options (Lift up, Notify, AoD Toggles)
-Ambient Display (With Pixel Wallpaper Support)
-Double Tap to wake (Dependend on the ROM i think)
-Doze and Power Profiles enabled (Saves Juice and works with AoD/Ambient)
-Lockscreen Rotation (AoD / Ambient rotates too)
-360 Degreee Rotation (Systemwide Rotation possible in all orientations)
-AUTO White Balance (Display Settings)
-Optimized AUTO Backlight handling
And various other Things i found around the Web (Google and other Devices) which may or may not need ROMs like Havoc or such with extended UI and Pixel Content.
I never worked with Overlays before so this is my first attemp. I will update the Overlay from Time to Time since it will be part of My MARS_SOM and there is much more to come. Another Unique Piece from Me....:angel:
Install:
-Download the attached Overlay from this Post
-Copy the Overlay with a Root Browser (JRummys Root Explorer does it) to /vendor/overlay
-Give it the correct Rights which are 0644 -rw-r--r-- (Owner and Group = Root / 0)
-Reboot and enjoy <3
SCREENSHOTS
{
"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"
}
Leave a Thanks or consider making a Donation if You use and like My Work
100% Stable to use. I ran it with PHHs V220 AOSP GSI with GApps and no other Edits. Working just fine and everything is tested... Hope it will be appreciated
Removing the Overlay since it is now in the wrong Section. This has nothing to do with Theming or Modding. Thanks for moving My Thread while Others can Post Questions and sh** in all possible Sections...

[APP][4.1+] Unofficial Searx App + Pi-hole

{
"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 my new app for searx, the metasearch engine. It's a pretty simple app as there's not much that needs done and I'm new to app development. It's essentially webview with some extra functionality for navigation and with an easy method of switching between public searx instances (or using a custom url for your own or whatever). I also have another branch with pi-hole option as well because it's something I use.
I'm not entirely sure exactly what direction I'll go with it (whether it'll largely stay the same, I'll add more features, turn it in to a self-hosting kind of app, etc.), but it's completely functional at this point. I currently have the releases listed as beta because they're subject to major changes due to the above.
I'm open to any feedback/suggestions in the app/direction it'll go so let me know what you think!
In app ads/trackers
No. Would defeat the purpose of this whole thing
Features
Easy access to any public searx instance listed in the official instances list
Default instance is Disroot
Can change it to any other public instance by simply clicking on the link through settings within the app
Or you can enter a custom url
Basic navigation controls:
Back
Forward
Refresh
Home (Tapping on the instance title in the top left acts as the home button)
Option to open the current page in your web browser - useful for multiple tab scenarios as that functionality is not in this app (no need for the extra bloat
Option to add your pi-hole url
Long press the instance title in top left to open pi-hole page
Screenshots
Download
The latest release apk can be found at the repo below or at the link about. Pi-hole is disabled by default so if you don't have it, don't worry about it
Credits
Searx
Pi-hole
Source
Is this on F-droid?
No but you're welcome to add it if you want. I won't be updating this anymore either so if anyone wants to fork it and change it, that's fine by me
Zackptg5 said:
I won't be updating this anymore either so if anyone wants to fork it and change it, that's fine by me
Click to expand...
Click to collapse
Greetings. In regards to your comment, please let me know if you would like me to close this thread. Thank you.
-Badger50
@Badger50 Ya, I'm not working on this anymore so best if the thread would be closed. Thanks!

Categories

Resources