yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] Yasserbn:
I am an Android developer and I am doing now a project that requires the Android device to be always on.

I am using the Android device as a monitoring camera. The device will be always connected to the charger and I need to develop an app that boots into Android when charging if the phone is off. The phone might be turned off if the user turns off the electricity and the battery died.

I need to know how to start? What to start reading about developing this kind of app? Programming kernel, ROM? Is it doable?

I know there is a similar app

https://play.google.com/store/apps/details?id=eu.chainfire.nomoarpowah

But it runs only on some Samsung devices. I need to run it on Samsung Discover.
[Nexus 7 Q&A, Help & Troubleshooting] dmchssc:
I got a Nexus 7 3G for Christmas, and I'm happy with it except for a few issues. One is that it occasionally spontaneously reboots (although this could be CM, I'm not on stock) and the other is that it suffers from transient performance issues, especially when multitasking. Typically it is very smooth and everything works fluidly. However, when switching between different applications or using the tablet while a background service is running, there are frequently long lags of non-responsiveness and choppiness. Considering that it runs CPU/GPU intensive tasks fine and when the issues arise, I'm guessing that the problems come from poor I/O performance. Indeed, when I ran a few benchmarks, the Nexus was up to par except with its I/O scores, where it performed dismally.

Is this a normal problem, common to all Nexus 7's, or should I use warranty to get it replaced? If it is a common problem, is there a particular kernel, I/O scheduler, etc. recommended to disguise or work around the issue? I find it pretty annoying when it happens. The fact that there is a dedicated soft-button for multi-tasking makes the problem seem especially annoying because I have to remind myself not to use it too much.
[General Questions and Answers] dnchandana:
Dear Sir

iam changing my phone sim 3times continue.

after that iam restarting my phone.

buy my phone hanged at samsung first screen,

after i am updating firm ware using odin.

but my phone not turn on.that is sucked at android factory reset window.

the error is cant unmount sdcard...etc

my phone model is samsung si9003

plz can you help me about my phone how to turn on as usual.

plz suggest me about upgrading.

or give any solution for me plz
[General Questions and Answers] SpartamericaN:
phone help

It is very hard to understand what your exact problem is, I can suggest a Galaxy III for an upgrade. As far as your current phone...

I;m sure someone out there has had a problem close to yours, try YouTube and Google searching as well as educating yourself here (XDA) on anything related to your phone or similar problems.

You might find the info. you need in an unrelated post or video! Check your pins to see if they are worn or possibly broken (connections). Ensure that you are getting a clean and solid connection.

Good luck :cowboy:
[Galaxy Tab 2 Q&A, Help & Troubleshooting] yakir4u:
can i make gsm phone calls on this version and does it have custom roms that supporting gsm phone calls?
[Galaxy Tab 2 Q&A, Help & Troubleshooting] akp.ajinkya:
Yes,you can make both gsm and 3g calls by this tablet.And yes there are custom roms supporting gsm calls.Personally i have installed CM 10.1 on my P3100 and its great.Let me know if you need any help.

Hit Thanks,if i helped.
[Galaxy Tab 2 Q&A, Help & Troubleshooting] Menelkir:
Also wrong section.
[Galaxy Tab 2 Q&A, Help & Troubleshooting] yakir4u:
thank you very much

i affricate the quick respond

now i just need to buy it :)
[Galaxy Tab 2 Q&A, Help & Troubleshooting] thiagoribeirorj:
Install is cyanogem 10.1

Enviado de meu GT-P3100 usando o Tapatalk 2
[HTC Sensation] universal:
Hi all please help I need Unlocking

My HTC Sensation XE only working 3 network

I input a non accepted SIM card

my phone not display enter “SIM network unlock PIN”

check network operators avallable networks

02uk, t.mobile uk. vodafoneuk,organge,3uk

what's going wrong ?

DEVICE:HTC Sensation XE

S-OFF

HBOOT VERSION:1.17.0011
[HTC Sensation] jasminthoria:
Search forum there is one thread to unlock sensation. Any way your phone is locked to 3 you can't use it for other networks until u unlock it.

Sent from my HTC Sensation Z710e using Xparent Red Tapatalk 2
[Galaxy S II Android Development] Mirko ddd:
Hello xda'ers,

due to many PM requests I give to you an "how to" to get 5 (or even more) icons shortcut on lockscreen.

required:

SecSettings.apk

framework-res.apk

mid knowledge about apktool

For first we need to set icon shortcut to 5 (up to 5)

so decompile SecSettings.apk and navigate to:

smali\com\android\settings\lockscreenshortcut\LockScreenShortcutSettings.smali

.method static constructor <clinit>()V
.registers 2

.prologue
const/4 v1, 0x0

.line 79
[COLOR="YellowGreen"]const/4 v0, 0x5[/COLOR]
[COLOR="Red"]const/4 v0, 0x3[/COLOR]
sput v0, Lcom/android/settings/lockscreenshortcut/LockScreenShortcutSettings;->MAX_SHORTCUT_ICON:I

.line 80
sput v1, Lcom/android/settings/lockscreenshortcut/LockScreenShortcutSettings;->DEFAULT_CURSOR_WIDTH:I

.line 81
sput v1, Lcom/android/settings/lockscreenshortcut/LockScreenShortcutSettings;->ICON_5_CURSOR_WIDTH:I

return-void
.end method

now we need to set the right icon width for the icons, if not the fifth icon won t be showed

so let s go in framework-res.apk and navigate to:

res\values-hdpi\dimens.xml

and edit these 2 strings with following values

<dimen name="keyguard_lockscreen_application_shortcut_icon_width">52.0dip</dimen>
<dimen name="keyguard_lockscreen_application_shortcut_icon_height">50.0dip</dimen>

that s it, recompile and enjoy :)

NOTE:

you can also increase the numbers in settings, but don t forget to set decrease the dimens in framework, if not icons won t be showed.

i didn t do because icons become too small and i really don t need more than 5 icons :)

cheers
[Galaxy S II Android Development] Mr.Greg:
Another great guide:good: Thanks Mirko;)
[Galaxy S II Android Development] Mirko ddd:
thanks Greg, at least no PM bothering anymore :)

coming with Disaster ROM v6 obviously
[Galaxy S II Android Development] shoman94:
Nice job Mirko
[Galaxy S II Android Development] Mirko ddd:
thx mate, as u can see, easy as hell :)
[Galaxy S II Android Development] mythtrandyr:
Nice guide :D
[Galaxy S II Android Development] Mirko ddd:
thx
[Galaxy S II Android Development] grisoxxl:
Good work. Just keep going. I like it.
[Galaxy S II Android Development] pepsyone:
You're a great!!!!!! what a hidden secret always the first ........ great ... always make the difference
[Galaxy S II Android Development] Mirko ddd:
thanks :)
[Galaxy S II Android Development] davidwilson83:
Hi Mirko,

You have so many different mods that you provide to the XDA community in how-to guides which is fantastic, and we greatly appreciate it.

One thing is for sure, you are greatly skilled in the fine art of smali editing. Where did you learn to understand smali code so well? Is there some kind of guide that details what all the different smali codes mean?

It is like reading a foreign language to me, but I would really like to learn how to understand it properly.

Your help/advice would be greatly appreciated.

Thanks again for all your hard work for the community.

Dave
[Galaxy S II Android Development] Mirko ddd:
Thanks Dave, really.

The only one who really knows smali code is jesus freak, the one who invented it :)

Best way to "learn" is code a small app in java with sdk, and decompile it with apktool.

Compare smali with java and game is done.

But really, smali is a foreign language for everyone, u r not alone.

I love theming, layout edits, smali is too hard for me :)
[Galaxy S II Android Development] jeboo:
Hey Mirko, we came across this in sho's rom, was causing some people to have 4 icons across. Why samsung would limit US carriers to 4 is beyond me (fat fingers?) :p

:cond_3
const-string v30, "ATT"

invoke-static {}, Lcom/android/settings/Utils;->readSalesCode()Ljava/lang/String;

move-result-object v31

invoke-virtual/range {v30 .. v31}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v30

if-nez v30, :cond_4

const-string v30, "TMB"

invoke-static {}, Lcom/android/settings/Utils;->readSalesCode()Ljava/lang/String;

move-result-object v31

invoke-virtual/range {v30 .. v31}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v30

if-nez v30, :cond_4

const-string v30, "VZW"

invoke-static {}, Lcom/android/settings/Utils;->readSalesCode()Ljava/lang/String;

move-result-object v31

invoke-virtual/range {v30 .. v31}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v30

if-nez v30, :cond_4

const-string v30, "SPR"

invoke-static {}, Lcom/android/settings/Utils;->readSalesCode()Ljava/lang/String;

move-result-object v31

invoke-virtual/range {v30 .. v31}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v30

if-eqz v30, :cond_2

.line 160
:cond_4
[b][COLOR="Red"] const/16 v30, 0x4[/COLOR][/b]

sput v30, Lcom/android/settings/lockscreenshortcut/LockScreenShortcutSettings;->MAX_SHORTCUT_ICON:I

goto/16 :goto_0
[Galaxy S II Android Development] tdunham:
Hey Mirko. Been a while so I thought I'd bug you once more.

I only see 4 shortcuts in lockscreen settings. How do I add the fifth one so it will display, am I missing something again? LOL
[Galaxy S II Android Development] hii1:
any chance u can make this as an apk file or a flashable zip ?
[Galaxy S II Android Development] tdunham:
Thanks for this Jeboo. Made the change to 0x5 for Sprint phone and now lockscreen mod works fine.
[Galaxy S II Android Development] strokemesilly:
+1

Also, is it possible to add more rows of icons to the lockscreen?

Cheers.

p.s nice one Mirko.
[Galaxy S II Android Development] _alex74_:
Working on a flashable zip for 6 shortcuts, seems easy but being first time, it's like a climbing a Mountain.....

:eek::eek:

today compiling, tomorrow test day
[Galaxy S II Android Development] tdunham:
If you don't mind, can you also post your dimens values for 6 shortcuts please?

Also, why not show us a couple of screenshots so you can have bragging rights with some glitter on it too. ;)
[Galaxy S II Android Development] _alex74_:
don't care about stuff like that.... it is a first mod for me, nothing to show off...

First try modifying directly into Rom, than let's see....:)
[Galaxy S II Android Development] tdunham:
Ok, then post them anyway if you get it working because I'm curious to see how it looks with 6 icons. :)
[Galaxy S II Android Development] _alex74_:
Ok, work postponed for these days, when available will post here screenshot:good:
[Galaxy S II Android Development] _alex74_:
Hey Mirko, works like a charm on Alliance!!!

struggled a little just to find right dimensions:D

Great guide by great man!!
[Galaxy S II Android Development] gmpdelfin:
I can decopile frameworks-res :D

I can't decompile SecSettings! Error! :( I try 5.02 apkmanager) and apktool 1.5.2!

Rom XXLS8_XWLSD
[Galaxy S II Android Development] Biftor:
What's your error??

And you must use latest apktools for JB roms...

Goodluck

Armin.
[Galaxy S II Android Development] ymmelo:
Guys,

I've tried use the APK tool but i dont understand anything about it. Can you up a zip file from the mod to flash?

Thanks a lot for this anyway.
[Galaxy S II Android Development] _alex74_:
it is not so simple, it is always Rom dependant, and mods installed, in fact we are modifying System files, so if not same as yours installed, will borke mods or create FC

From my point of view, upload your files highlighted on Mirkoddd first post, and then have a little patience, I or someone else will do it for you :D:D
[Galaxy S II Android Development] strokemesilly:
_alex74_

Could you edit the apk from 0x5 to 1x5 or 2x5 and see if it will add a second or third row of shortcuts to the lockscreen?

I dont know how to use apktool...

Cheers ;)
[Galaxy S II Android Development] _alex74_:
Sup,

so busy these days, but will try and let u know ;)
[Galaxy S II Android Development] deyaaa:
good guide

good guide thank you
[Galaxy S II Android Development] The Undertakerr:
Hey Mirko!

How's life? Long time no spoken!

I got myselve an S4 and for the fun of it, tried to get this mod to work on my S4.

It works! Although it needed some more editing of the secsettings xml's to get the app-icons you choose in lockscreen menu to the right size...

Looks quite nice!

Thanks very much for the guide!

Will speak with you soon on GTalk,

Greetings Bas!
[Galaxy S II Android Development] Mirko ddd:
Looks kinda cool mate :) u can put 7 icons maybe :)
[Galaxy S II Android Development] Vivek_Neel:
Hey mirko..

I have followed all your guides mate..

Everything worked flawlessly..

Kudos to you buddy..

Great legend._/\_
[Galaxy S II Android Development] The_Rencis:
Where to locate smali\com\android\settings\lockscreenshortcut\Lock ScreenShortcutSettings.smali ?
[Galaxy S II Android Development] Troubadour666:
have you enable all files viewing in explorer display options ?

no error during decompil ?
[Galaxy S II Android Development] The_Rencis:
Yes, explorer showing all files, apktool -

Deodexed SecSettings.apk. Smali folder showed up, but empty. Redid decompiling

Why it says: ''W: Skipping ''android'' package group''?
[Galaxy S II Android Development] Troubadour666:
dont remember if we need twframework-res.apk as 2.apk in c:/users/..... too .
[Galaxy S II Android Development] The_Rencis:
How to add it as 2.apk? Is that correct?

apktool if framework-res.apk
apktool if twframework-res.apk
[Galaxy S II Android Development] Troubadour666:
just rename twframework-res.apk as 2.apk

and

push it in c:\users\lietotasjs\apktools\framework\2.apk
[Galaxy S II Android Development] The_Rencis:
All remains the same, smali folder empty!

Maybe you can modify files for me?
[Galaxy S II Android Development] engloa:
Thats correct.

Don't rename as 2.apk and push
[Galaxy S II Android Development] The_Rencis:
Tryed that several times, smali folder remains just empty.

Why is that happening?
[Galaxy S II Android Development] engloa:
No idea.

The usual suspect would be you're trying to decompile an odexed apk. Check and make sure that is not the case.

Do you have a file called SecSettings.odex?
[Galaxy S II Android Development] The_Rencis:
Oh yeah, first time i tried odexed secsettings, and i didn`t have smali folder. But then i deodexed secsettings, and smali folder showed up, but empty.
[Sony Ericsson Xperia Neo, Pro] MazQuick:
Hi there.

Today I've rooted my Neo V and unlocked bootloader with Sony's website.

Then I installed Clockwork Recovery 5.0.2.7 nAa-r2 and then installed Xperia Ultimate HD™ ROM using it.

I did all the wipes and formats of course.

Everything's fine except it seems I can't get into Recovery. I wanted to install new JB Adreno Drivers.

This is what I tried:

- three-finger method

- tried reinstalling Recovery using install-cwm1.bat.

- when using ROM Manager it gets stuck when I press OK to reboot in recovery (app freezes).

Whate heck?!

Greetings.

MazQuick
[Sony Ericsson Xperia Neo, Pro] ciubexx:
I just installed [ROM]=- Xperia Ultimate HD™ 2.0.3 -= [ Stable like a Rock ] & [ Best User Interface ] on mine Xperia Neo - MT15i.

Previously I had the original firmware (4.1.B.0.587) with ClockWorkMod Recovery 5.0.2.7-nAa-r2 installed.

I installed Ultimate HD using CWM method.

During installation process, Ulltimate files overwrite files used by the CWM.

So you should run again the ClockWorkMod Recovery 5.0.2.7-nAa-r2 installation by running the install-cwm1.cmd

On my phone I have following settings enabled, maybe could be helpful:

- Settings -> Developer options -> [x] USB debugging

- Settings -> Security -> [x] Unknown sources

- Settings -> Xperia™ -> Conectivity -> USB connection mode -> [x] Mass storage mode (MSC)
[Sony Ericsson Xperia Neo, Pro] Attitude.SSJ:
Just install a custom kernel like suave or alliance... Then you won't have to install cwm again and again...
[Sony Ericsson Xperia Neo, Pro] MazQuick:
Ok I have flashed Suave Kernel and then installed another ROM for test.

CW Recovery is available. Thank you @up :)

Thread can be closed.
[Sprint Samsung Galaxy S III] r.suchil2:
CleanBean

This ROM is based of the LJ7 JellyBean Leak Provided by Freeza

Features:

Root (obviously)

Deodexed

Zipaligned and Optimized for better performance

Debloated

BusyBox

Init.d support

Disabled Boot Up/Down Animation Sounds

Minor Tweaks (Getting rid of that annoying headphone icon when headphones are connected)

Silent Camera Mod (You can choose whether or not you want the camera sounds) (Thanks Dazednconfused)

Camera During Call Mod

Ktoonsez Kernel (Thanks Ktoonsez)

True Uncompressed MMS (Thanks Freeza)

AwesomeBeats v3

4 in 1 Reboot

Swype

Volume Up/Down to skip track mod

Galaxy Note 2 Camera

Galaxy Note 2 Gallery

Google 4.2 Camera

Google 4.2 Gallery

Pop-up Browser

Android 4.2 Keyboard

Enjoy.

Links:

CleanBean v1.0 http://www.androidfilehost.com/?fid=9390288116658470993

CleanBean v1.0 (Stock Kernel) http://www.androidfilehost.com/?fid=9390288116658471011

Most importantly, I am a new developer. If theres a problem with the ROM let me know and ill be sure to do my best to fix it.
[Sprint Samsung Galaxy S III] r.suchil2:
Changelog

v0.1

Debloated

Zipaligned and Optimized for better performance

Minor Tweaks

Init.d support

v0.2

More Debloating

Added AwesomeBeats v3

Added Ktoonsez Kernel

Added Silent Camera Hack

Added ability to use camera during call

Added True Uncompressed MMS

Added Screen ON/OFF when receiving a text

Message Settings Galore

v0.3

Added 4 in 1 Reboot (Thanks Dazednconfused)

v0.4

Changed Build Number to CleanBean

Ram Optimizations

Zipaligned the apps again due to the build.prop change (just to be safe)

v0.5

Fixed Build Number to CleanBean

Took out Samsung Keyboard (Swype is installed but I will try and get the 4.2 keyboard in here in the future)

Zipaligned

Should be very smooth and fast.

v0.6

Rebuilt whole rom from scratch

Fixed wifi issue with the stock version (still uploading)

Added Volume Up/Down to skip track mod (Works perfectly)

Zipaligned again

Everything should be working flawlessly. Stay tuned for v1.0....that release will have just a bunch of goodies installed. Consider them the cherries on top.

v1.0

Updated Ktoonsez kernel for those who arent on the stock build

Added Galaxy Note 2 Camera

Added Galaxy Note 2 Gallery

Added Google 4.2 Camera (with working photosphere)

Added Google 4.2 Gallery

Added Pop-up Browser

Added Android 4.2 Keyboard

Battery Enhancements (Should have slightly better battery life)

All bugs squashed

Should be extremely stable and smooth

Future Changes:

MULTI-VIEWWWWWWWWWWWWWW

Custom Boot Animation

You guys tell me. I'm here for you guys. I'm learning so cut me some slack every now and then haha.

Screenshots:
[Sprint Samsung Galaxy S III] dazednconfused:
First........Thank you. New roms are always a good thing.
[Sprint Samsung Galaxy S III] december.underground:
Second.. I'll give this a try, thank you for your effort good luck man.
[Sprint Samsung Galaxy S III] orlzzt:
First thing the name reminded me of was "CleanGB" on my old OG Epic... Toadlife, you were amazing!

Thanks for the hard work, man! I'm sure it will be a crowd-pleaser!!! Its stock kernel, right?
[Sprint Samsung Galaxy S III] r.suchil2:
Thanks! I hope it will be!

And yes, its stock kernel. :)
[Sprint Samsung Galaxy S III] BubZX:
Soon as I seen the name I thought toad was back.
[Sprint Samsung Galaxy S III] r.suchil2:
hahah sorry im not toad :(
[Sprint Samsung Galaxy S III] orlzzt:
Ha! I did the same, but we are grateful to you for bringing this to our community.. Like Dazed said, more devs and more roms is a great thing!
[Sprint Samsung Galaxy S III] r.suchil2:
Working on v0.2!! next update will include ktoonsez kernel and awesomebeats :)

Some other things here and there but those are the things i have done right now
[Sprint Samsung Galaxy S III] mcluvin1065:
Haha ahh I remember toad life....his ROM is still used by many today despite it being released way back when and no updates from toad because of his children....great guy....hopefully this ROM can be its younger modern brother...
[Sprint Samsung Galaxy S III] bog3nator:
Is this go with the clean rom series of roms? If so then I can't wait
[Sprint Samsung Galaxy S III] orlzzt:
It is not related to Toad's "CleanGB", but Suchil worked very hard on this for us, so I'd say to give it a go! (has anyone tried yet? I haven't flashed because I am recharging at the moment...)
[Sprint Samsung Galaxy S III] r.suchil2:
AndroidFileHost link is up. Will hopefully have v0.2 out by tonight :)

thanks for all the support guys
[Sprint Samsung Galaxy S III] r.suchil2:
Update is out! :)

CleanBean v0.2- Check out the OP

Lots of changes so check out the changelog too.

Enjoy :)
[Sprint Samsung Galaxy S III] orlzzt:
Downloading 0.2! I'll kick the tires and let you know how it does...
[Sprint Samsung Galaxy S III] r.suchil2:
Hows the ROM treating everyone?:)
[Sprint Samsung Galaxy S III] orlzzt:
Waiting for download; kids are sucking up all my bandwidth...
[Sprint Samsung Galaxy S III] TuscaloosKen:
Would love to try but my phone does not play well with that kernel
[Sprint Samsung Galaxy S III] r.suchil2:
Have you tried the aosp version of the kernel or the tw version?
[Sprint Samsung Galaxy S III] Cbass15:
Yes sir anytime :)
[Sprint Samsung Galaxy S III] travisd4est:
Nvm.
[Sprint Samsung Galaxy S III] Cbass15:
So I let my phone die all the way.. And when I went to plug it in it just vibrated.. I don't know if it was me or the rom? I had to boot into recovery then reboot system just to get my phone to turn on!
[Sprint Samsung Galaxy S III] randomrobbi:
Been very happy with battery life on this ROM. This was with me flashing about a day and a half ago....ktoonz conservative governor and otherwise stock settings.

I might suggest removing the battery full notification in next update. I have not seen that in so long and it reminded me of how much I hated it when I saw it today.

Great work otherwise.
[Sprint Samsung Galaxy S III] Cbass15:
Yeah I love the battery life. Haven't seen it better except on unrooted stock.
[Sprint Samsung Galaxy S III] Morghan:
I've had this exact problem multiple times. I'm thinking it's when battery saving is on and the phone dies that this occurs. I could be wrong, just my two cents.
[Sprint Samsung Galaxy S III] stricklerjosh:
Are you guys using stock kernel or ktoonz? I read that you shouldn't let it run all the way out on ktoonz as you might have to find a new battery to put in. Remember reading that somewhere in a forum.
[Sprint Samsung Galaxy S III] ImEVO:
I also had the same problem bout 2weeks ago.. phone was a paper weight for bout 2 hours before It powered on! I was running the "unknown kernel" tho... :cool:
[Sprint Samsung Galaxy S III] Cbass15:
Re: [ROM][LJ7] CleanBean v0.6

Battery saving wasn't on. ;)

stock sir. :p

If no one wants to speak of this kernel don't bring it up. I could care less about it.
[Sprint Samsung Galaxy S III] stricklerjosh:
Re: [ROM][LJ7] CleanBean v0.6

I might suggest removing the battery full notification in next update. I have not seen that in so long and it reminded me of how much I hated it when I saw it today.

Amen to that. Would love to see it gone as well if possible.
[Sprint Samsung Galaxy S III] r.suchil2:
Re: [ROM][LJ7] CleanBean v0.6

Hey everybody! I've been really sick and haven't been able to work on am update but I'm getting better and will work on one as soon as I can!

Some other news, I've joined a Development Team called the Super Charged Team. I will be a developer for their team as well so make sure to look for a ROM from them sometime in the future (hopefully!!!)

Anyways, that's the update. I will work on the update soon! All of your suggestions are taken into account :thumbup:

Super Charged Team | ROM Dev |
[Sprint Samsung Galaxy S III] Morghan:
Hurray! You sir are the first rom I check daily for an update. Glad to see you back.
[Sprint Samsung Galaxy S III] stricklerjosh:
Re: [ROM][LJ7] CleanBean v0.6

Hope all is well. I was in the ER myself last night with chest pains. But all is good.