yashsingh1/xdaforums huggingface dataset:
[Nook Touch Android Development] ryanpl:
Wow, Thanks for your work in making this app. I'm going to leave it on and see how I feel about it. I have a feeling I'm going to miss being able to access my library but we'll see. Just wondering how difficult it would be to keep the original popup menu but replace the B&N functions with your functions? I hope I'm making sense. Ryan
[Nook Touch Android Development] apeine:
Well, thanks for the great work. Now the N button has a real function. I got to switch between apps in portrait and landscape mode, each one keeping its orientation. I also get to program in RFO basic, using the manual just by switching apps in ezpdf and the program itself.

And I even get to keep button saviour minimized, so I get to type "P" and zero, which were partially covered by the off button!

Once again, thanks!

---------- Post added at 01:31 PM ---------- Previous post was at 01:27 PM ----------

BTW, the back button, the one that looks like a list and the zoom/search button shows a popup "Not rooted?". The home and orientation buttons work fine.
[Nook Touch Android Development] XorZone:
You are welcome.

Not rooted for that buttons is only because it's the buttons required root, home and orientation done usual legal android way.

I've seen the same with latest Superuser denying root commands for no apparent reason. Will have to play with it.

Anyway try to reboot, then bring up the menu and make sure to select check box to always allow root to this app and click allow.

Will see, if I move app to the policy jar and framework res itself it will not require root anymore as injectKeyEvent available inside system jars.
[Nook Touch Android Development] apeine:
Didn't work. Still showing the "not rooted?" popup.

Just didn't figured where I can find the checkbox to always allow root - superuser app list doesn't show nook button app, or shows a way I can add an app to its list.
[Nook Touch Android Development] XorZone:
Reboot unplugged from USB (otherwise it will overlay root request dialog) long press n button and if dialog shows to allow root make sure to select checkbox.

I'll take a look today to request root over and over if one failed.

EDIT: Just removed root privileges from my app manually and after reboot it failed siletly, will take a look. Try uninstall then reinstall, works here.
[Nook Touch Android Development] deepdusky:
Good afternoon. I ask to forgive for the bad English, it for me not the native.

It would be desirable to learn, whether probably to reassign short press for a call app launcher and long press for a call recent?

Thanks.
[Nook Touch Android Development] unattached:
works like a charm!

the long press takes a little bit too long for my taste, half the time would be enough, i think..

thanks!
[Nook Touch Android Development] tebra:
it's a very nice hack of the nook touch.

The "long presse" is a little too long and the window menu a little too smal
[Nook Touch Android Development] apeine:
Well, updated superuser, and re-registered all programs that needed rooted android, and the buttons came back to life.

And I do agree that long press should be called very-very-long-press. If you can fix, better. If not, it won't be a couple of seconds that's gonna make it a bad app.
[Nook Touch Android Development] XorZone:
Usual android show dialog immediately, in order not to package it inside policy jar right now, I'm sending broadcast from policy, then handle it in broadcast receiver in app and show dialog - this is the cause of delay. It will be solved once app moves to the policy.jar itself.

I'm thinking of leaving old quicknav menu for short press, but make it configurable, e.g. Configured apps instead of Library, Shop and Settings and if possible leave search as search button (short search and longpress search).

That do you think?

Also, do you need home, back, menu and other buttons on the bottom of the dialog?
[Nook Touch Android Development] apeine:
Well, I liked the duo short press/home x long press/recent apps. But making short/long press configurable for original style nook / new style nook (with selected apps) / recent apps / home / back would be good too - would just think twice regarding menu with selected apps, all the rest would be plain good
[Nook Touch Android Development] dorino1:
Configurable would be great. As is, this is a great little app and it beats the hell out of the n-button's normal functions if you don't actually use the B&N stuff.
[Desire Q&A, Help & Troubleshooting] zekeu:
S-off

Rooted Desire Oxygen

Latest radio etc.

I do get a msg on status bar about runnomg low on storage. Oxygen from my understanding has A2SD built in, + no need to have ext+

Any ideas what may I have done wrong?

Quick Sys Info:

Sd storage 8gb

A2SD 7mb, 2mb free
[Desire Q&A, Help & Troubleshooting] boelze:
You understand right that Oxygen has built in A2SD+.

But there is no way it can work without ext partition. Needs to put the apps somewhere :rolleyes:
[Desire Q&A, Help & Troubleshooting] Tiznom:
Here's some reading material

First, there is an Oxygen specific forum over at Oxygen.im. That's your best bet for Oxygen-specific questions.

Next, 'Apps to SD' comes in more than one flavor. At a minimum, you will need to partition your SD card and run a script to move apps and app data to the new partition. A good thread covering all this is here, over at Android Forums.

Last, consider that this can be a hassle to learn and go through. I did it and it worked okay, but I still went back to an unpartitioned card with fewer apps. It was just simpler. For example, I had an app that gave me tide charts. I uninstalled it and just bookmarked a site that does the same thing in my browser. Keeping things simple was easier than tweaking the phone + ROM.

Good luck.
[Desire Q&A, Help & Troubleshooting] boelze:
It's not that hard to partition your sd-card, nowadays your custom recovery (cwm or amon-ra) do that for you. Oxygen comes preset for ext3 partition. Just let clockworkmod make ext3 partition for you, install oxygen, and everything works fine.

Btw you can always use GB built-in apps2sd, which works on every rom and doesn't require ext partition. BUT you have to move most apps manually to sd, because the app has to be programmed to go on sd automatically and most don't
[Desire Q&A, Help & Troubleshooting] zekeu:
Hey,

thanks to all:

boelze > I will do this. Actually my previous SD had ext4 and worked fine. My new one; I just left it as it is because I though that AdamG had said that in Oxygen you do not actually need an extra ext+.

Tiznom > I will go through this. Thanks
[Desire Q&A, Help & Troubleshooting] boelze:
Yes, I think ext4 works too on Oxygen.

---------- Post added at 08:47 PM ---------- Previous post was at 08:46 PM ----------

It doesn't, you just won't have a2sd+ then ;)
[Galaxy S II Android Development] lidroid:
I rebuild status bar power button in samsung rom in my national day holiday, now it has 14 buttons now, include all samsung buttons, wifi, data connection, gps, flashlight, sound, auto rotation, bluetooth, brightness, screen timeout, lock screen, sync, reboot and power down. Actually early time I coded some of those function in LidroidToolbox, but not included them in status bar. I actually rebuilt it with java, not just mod of samli.

This code can adapt to samsung i9000/i9100/i897/t959/m110s etc. I will port this in my new rom. The flashflight will display a white and brightest activity when the camera without flashlight, for example i9000/i897/t959/m110s etc.

Next I will explain how to adapt it to samsung 2.3 rom. There are 3 attachments QuickPanelSettings.apk, LidroidSystemUI.apk and lidroid-res.apk.

1. Download LidroidSystemUI.apk and decompile it whit apktool, then you get LidroidSystemUI dir.

2. Decompile SystemUI.apk, copy LidroidSystemUI/smali/* into SystemUI/smali.

3. Modify SystemUI/AndroidManifeset.xml, add this code before </Application>

<activity android:name="com.lidroid.systemui.quickpanel.FlashlightActivity"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
android:clearTaskOnLaunch="true"
android:configChanges="orientation|keyboardHidden"
android:launchMode="singleTask" />

if your model has flashlight, you can skip this step.

4. Open SystemUI/smali/com/android/systemui/status/StatusBarService.smali. Find(Ctrl + F) QuickSettingsView, locate fellow codes

const v7, 0x7f030002

invoke-static {p1, v7, v9}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

move-result-object v3

check-cast v3, Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;

.line 379
.local v3, qsv:Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;

modify

const v7, 0x3030003

invoke-static {p1, v7, v9}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

move-result-object v3

check-cast v3, Lcom/lidroid/systemui/quickpanel/PowerWidget;

.line 394
.local v3, qsv:Lcom/lidroid/systemui/quickpanel/PowerWidget;
invoke-virtual {v3}, Lcom/lidroid/systemui/quickpanel/PowerWidget;->setupWidget()V

5. Compile SystemUI with apktool, Sign it if you have modify AndroidManifest.xml. Push it into /system/app/

6. push lidroid-res.apk in /system/framework/, push QuickPanelSettings.apk in /system/app, reboot.

Simplicity, no need to modify layout, id and Strings which is painful. If you know how to do it, you will know how simple it is. Any android/rom developer can download this code and add more buttons.

Enjoy!
[Galaxy S II Android Development] 89luca89:
thank you very much for this work!

I will study the code and try to develop also new toggles :D

Little question, the java source (god bless you! I HATE Smali! xD) is about systemUI, what about lildroid-res.apk?

Is it only a "complementar" framework for icons and string for the toggles? Or whatelse?

Just curiosity and little question to better understand the project!

Thx!
[Galaxy S II Android Development] lidroid:
I compiled all required images, strings and layout that toggle buttons into lidroid-res.apk to make the future ROM transplant work easier and finish the new ROM's mod work faster.
[Galaxy S II Android Development] 89luca89:
Ok understood thx that was only what I need to know :D

Maybe with a little more work can try to fuse it with framework.apk or twframework.apk but for now just knowing that will make things clearer to me :D
[Galaxy S II Android Development] akbarhash:
Screenshots please...
[Galaxy S II Android Development] D.O.C:
Nice bro....this is what we need.....nice
[Galaxy S II Android Development] lidroid:
I have uploaded screenshots as attachment.
[Galaxy S II Android Development] kolo200:
This way you can add a shortcut to the application?

I know silly question :D

thank you very much :)

sorry for my English
[Galaxy S II Android Development] akbarhash:
Thanks.

Tip: Home Button + Power Button = Screenshot.
[Galaxy S II Android Development] ephumuris:
This is disgustingly good work i'm really impressed...

Hmm the line numbers don't seem to match on my rom stock ki3 does that matter?
[Galaxy S II Android Development] lidroid:
you should remain original line number.
[Galaxy S II Android Development] akbarhash:
I will do this tomorrow and post a direct zip file for xxki3 stock...
[Galaxy S II Android Development] Siberian Tiger:
Nice one.

Is there a way for the users to select the toggle and the order of the toggles? ;)
[Galaxy S II Android Development] zabihjan:
great work

i misss my miui from x10 status bar
[Galaxy S II Android Development] ralphreyes:
Will this mod also allow for long-clicking a quickpanel item and it takes you to the respective settings page?
[Galaxy S II Android Development] ::indie:::
Thank you for your guide, great work!
[Galaxy S II Android Development] gcrutchr:
Cannot get it to work on KI3 (v2.3.5).

Statusbar does not even show.
[Galaxy S II Android Development] lidroid:
my newest ROM was just based of XXKI3, maybe you missed some works.
[Galaxy S II Android Development] gcrutchr:
Thanks for the reply.

Could you be a little more specific about what to copy and where to copy the files/folders from your lidroidSystemUI.apk to the stock SystemUI.apk.

I followed the steps multiple times using a stock, deodexed SystemUI.apk and all times no statusbar showed.

Or...could you post your SystemUI.apk so I can a look at how you inserted the folders into it.

Thanks.
[Galaxy S II Android Development] theXeffect:
do you have a zip file for this.....it would be nice :)
[Galaxy S II Android Development] danieldmm:
Here we go, its based in my custom rom XXJVT deodexed...

Lidroid I9000 XXJVT Deodexed

Cheers
[Galaxy S II Android Development] Qobok:
In the end was my mistake, I was using an odexed version of JVT. The above attachment works great on i9000 JVT Deodexed. Only the Flash Light is not really working, but hey, who needs it? :)

Thanks to danieldmm that he mentioned that is for deodexed!

Thanks lidroid for all your work!
[Galaxy S II Android Development] DAGr8:
I dont know if this has been asked already , but for some reason im un-able to remove the text (under the toggles ) woudld that be located in lidroid-res.apk ?

or do I just remove the whole gettext method from each smali ?
[Galaxy S II Android Development] :
You can remove it by editing power_widget_button.XML in lidroid-res.apk. the problem is that you can't recompile it after making changes.

Li has provided one without text for me. Check a few pages back.
[Galaxy S II Android Development] DAGr8:
you mean this one : http://xdaforums.com/showpost.php?p=18491071&postcount=123

it stillhas the text ... but ill look into the powerwidget button xml...
[Galaxy S II Android Development] TAMIM2007:
lidroid

Great work

100% working

We want to add

wifi hotspot

Thank you:)
[Galaxy S II Android Development] NunHugger:
I too would like one with the text removed. It would rox my sox!
[Galaxy S II Android Development] lidroid:
I have added Wifi Hotspot button, and i'll release it.
[Galaxy S II Android Development] Siberian Tiger:
When? Can't wait to try it ;)
[Galaxy S II Android Development] Goldie:
Any chance we're going to be able to make changes to this ourselves without errors at any stage in the future to save you doing different versions for different requests e.g no text etc? :)
[Galaxy S II Android Development] ChikiBujia:
Hello Lidroid!!!!

Thank you soooo much for this amazing mod!!!!!

I have a question. I am trying to add this to our Team's ROM and Themes, but we don't have a camera flash (Samsung Captivate i897). So, I added the flashlight code to the SystemUI's Android Manifest, but while it works for my phone, it does not work on other phones :(

I didn't delete anything on the manifest. I simply added the code at the end.

Here is how it looks:

<?xml version="1.0" encoding="UTF-8"?>
<manifest android:sharedUserId="android.uid.system" android:process="system" android:versionCode="10" android:versionName="2.3.5" package="com.android.systemui"
xmlns:android="http://schemas.android.com/apk/res/android">
<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="10" />
<uses-permission android:name="android.permission.STATUS_BAR_SERVICE" />
<uses-permission android:name="android.permission.MANAGE_USB" />
<application android:label="@string/app_label" android:icon="@drawable/ic_launcher_settings" android:allowClearUserData="false" android:persistent="true">
<service android:name=".statusbar.StatusBarService" android:exported="false" />
<activity android:name=".usb.UsbStorageActivity" android:excludeFromRecents="true" />
<activity android:theme="@android:style/Theme.Dialog.Alert" android:name="com.android.internal.app.ExternalMediaFormatActivity" android:excludeFromRecents="true" />
<activity android:theme="@android:style/Theme.Dialog.Alert" android:name=".usb.UsbConfirmActivity" android:permission="android.permission.MANAGE_USB" android:exported="true" android:excludeFromRecents="true" android:finishOnCloseSystemDialogs="true" />
<activity android:theme="@android:style/Theme.Dialog.Alert" android:name=".usb.UsbPermissionActivity" android:permission="android.permission.MANAGE_USB" android:exported="true" android:excludeFromRecents="true" android:finishOnCloseSystemDialogs="true" />
<activity android:theme="@android:style/Theme.Dialog.Alert" android:name=".usb.UsbResolverActivity" android:permission="android.permission.MANAGE_USB" android:exported="true" android:excludeFromRecents="true" android:finishOnCloseSystemDialogs="true" />
<activity android:theme="@android:style/Theme.Dialog.Alert" android:name=".usb.UsbAccessoryUriActivity" android:permission="android.permission.MANAGE_USB" android:exported="true" android:excludeFromRecents="true" android:finishOnCloseSystemDialogs="true" />
<activity android:name="com.lidroid.systemui.quickpanel.FlashlightActivity" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" android:clearTaskOnLaunch="true" android:configChanges="orientation|keyboardHidden" android:launchMode="singleTask" />
</application>
</manifest>

What am I doing wrong? :(

Also, I know there are a lot of questions about this here, but has anyone figured out how to successfully get read of the text on the toggles?

Thank you so much!!!!!!!!!!!!!!!!

:D
[Galaxy S II Android Development] :
If you change androidmanifest.XML then you need to resign systemui.apk and all the other system apps with the same key, else your statusbar will FC.

As far as removing text is concerned, only li can do it as he uses a modified apktool to recompile.
[Galaxy S II Android Development] ChikiBujia:
So, I have to resign every single system app? The ROM has a lot of apps in system/app, some are just to improve the performance of the phone and others are the ones we can actually use.

What about themes? Those don't have all the system apps that the actual ROMs have, so, will the mix of the theme and the ROM cause the SystemUI to FC?

And as far as the resigning, I use APK Manager, so I decompiled my SystemUI (option 9), made the changes on the smali and the manifest, and then compiled it again (option 11). So, my next step should be to sign the apk (option 12) and that is it, it will save my Manifest changes?

Sorry for all the questions! :o

One more question :D Why do I need to sign every single system app in the ROM for it to work?

Thank you sooooo much for your help!!!!! :D

Too bad we can't change the text :( but hey, this mod is amazing so I can deal with the text :p
[Galaxy S II Android Development] lidroid:
yes, you need to resign all apks in /system/framework and /system/app.
[Galaxy S II Android Development] _JKay_:
I can't seem to get this working on odexed rom. Shouldn't this work on odexed?

I mean... If I deodex stock SystemUI.apk then it still works on odexed rom.
[Galaxy S II Android Development] :
You need to resign systemui.apk becoz you edited androidmanifest.XML.

Since you resigned systemui.apk, you need to resign all the system apps becoz they need to have the same signature.

Easy way to resign is to use the Auto signer application. Just drag and drop.

Can be found from the link below.

http://xdaforums.com/showthread.php?t=997180
[Galaxy S II Android Development] Brotuck:
Great MOD !

But i am getting a bit confused, isn't re-signing the systemui.apk problematic ?

I mean then not samsung certificates will be used, and i thought this was required on system apk's ?
[Galaxy S II Android Development] Qobok:
If you mod the SystemUI.apk without modifying the xml file, you'll have to create SystemUI.odex if you want to use it on an odexed ROM.

Try this tutorial to make an odex for your file. Or if you wanna test it to an odexed ROM without SystemUI.odex just go to system/app/ and move the actual SystemUI.odex from there to sdcard.
[Galaxy S II Android Development] ChikiBujia:
Oh cool!!!! Thank you sooooooooo much!!!!

:D

Sent From My Mosaic Powered Cappy
[Galaxy S II Android Development] pnbpnb:
Thank you Lidroid for this great mod. I've been looking for it.

But one thing is missing for me.

let's say you need to look at someting for a longer time

but screen goes off after screen timeout.

To prevent this you need to close running app to

get to the proper option.

It would be very convenient to have

acces to "Screen always on" button from notification bar.

Regards
[Galaxy S II Android Development] velenoso84:
Ciao lidroid

sto provando a tradurre lidroid.apk ma alla minima modifica manda in Bootloop la statusbar.

Per caso ha delle dipendenze con qualche altro apk? Tu quale versione di apktool usi?

Google Translate

Hello Lidroid

I'm trying to translate but at the slightest change lidroid.apk Bootloop sends the statusbar.

For the case has dependencies on some other apk? You use the version of apktool?

Sconcau84
[Galaxy S II Android Development] gcrutchr:
Li uses a modified apktool to make the lidroid-res.apk. At this time no one can remake the lidroid-res.apk except Li.
[Galaxy S II Android Development] velenoso84:
you can have that version of apktool?
[Galaxy S II Android Development] Goldie:
No, it's not released.
[Galaxy S II Android Development] dragoescu:
Hi,

Is this working for odex SystemUI? Because I can not find smali folder after decoding
[Galaxy S II Android Development] Nuja:
If im right, u need to deodex your systemui.apk make the modification then odex it back.
[Galaxy S II Android Development] MAQ7:
Perfect, good job man.

Only one thing is missing, the battery indicator.

Please try to add it.

Many thanks
[Galaxy S II Android Development] oserx:
i;m having some strange behavior using your mod in my rom ...

1. if I install a non-wipe version over an older version of my rom, everything is ok

2. if I install an Wipe version, then the status-bar is no longer shown !!

Can you give me some advice regarding this issue ?
[Galaxy S II Android Development] IamA3DFan:
Hi, sorry for my silly question,

I'm using S2 with KH3 from samfirmware.

When decompile my SystemUI.apk, the SystemUI folder doesn't have any folder named smali.

Anyway, I kept going on with your steps, my notification bar was gone.

Many thanks for your advice.
[Galaxy S II Android Development] :
That's becoz you decompiled a odexed SystemUI. You need to try it on a deodexed SystemUI.
[Galaxy S II Android Development] oserx:
hello lidroid, I resigned all apps using auto-signer or whatever it is called, all apps got signed in system and framework, but I got bootloop after bootanimation ..

Can you tell me what can be the problem ?

I tried to use samsung CERT to sign your lidroid-apk .. no status bar ... I don't really understand why it doesn't work ... I have a rom based on odexed JVT version ...
[Galaxy S II Android Development] Brotuck:
Did you odex the files back ?
[Galaxy S II Android Development] parasmi:
I wonder if this can be implemented on other Galaxy phones as well. Here is the content of our StatusBarService.smali

EDIT: Found solution

Thanks for this mod, Li

.line 344
:cond_1
const v8, 0x7f030002

invoke-static {p1, v8, v10}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

move-result-object v4

.end local v4 #qsv:Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;
check-cast v4, Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;

.restart local v4 #qsv:Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;
goto :goto_0
.end method
[Galaxy S II Android Development] taha_e:
Thanks to OP

I have done it on JPKJ2 2.3.5 and its working, just the camera failed, I removed the flash light toggle and the camera working now.
[Galaxy S II Android Development] yoderk:
Has anyone gotten this working on KJ3, I can't for the life of me get the statusbar to show up despite following the OP to a T....Any input is helpful.
[Galaxy S II Android Development] :
Yes. I had it working. No issues.
[Galaxy S II Android Development] yoderk:
Do you happen to have the SystemUI you used so I can take a look at it?
[Galaxy S II Android Development] :
Attached the modded SystemUI.apk form KJ3.
[Galaxy S II Android Development] nobrakes:
I have a Sprint GS2 Epic 4G Touch, got to step 4 but inside my SystemUI folder, I don't have an android folder. Can someone help me out? I'd really want this mod on my phone. Thanks

4. Open SystemUI/smali/com/android