General :: Change / Remove Lock Code With Internal Class Or ADB Shell

Mar 14, 2012

Problem: I have one app that let's you lock the device using Device Administration. One of my users had some conflicts with my app and another. He then removed Device Administration and uninstalled my app, rebooted his phone, and now he cannot access his phone.

He of course cannot use my app to change the password now (since it's uninstalled).

His phone is stock 2.2 LG Optimus V, Virgin Mobile, Rooted.

Question:I'm needing to find a way that my user can now change his lock code.

I need:

1.) to know an internal class (from com.android.internal) that I could use within an app to change the lock code (just like the system settings do).

2.) to know a command I can use with adb shell to remove or change the phone lock code.

3.) to know the location of the file that stores the lock code information.

General :: Change / remove lock code with internal class or ADB shell


Android :: Run A Shell Command From Within Code

Jun 16, 2010

I am trying to execute a command from within my code, the command is "echo 125 > /sys/devices/platform/flashlight.0/leds/flashlight/brightness" and I can run it without problems from adb shell

I am using Runtime class to execute it : Runtime.getRuntime().exec("echo 125 > /sys/devices/platform/flashlight.0/leds/flashlight/brightness");

However I get a permissions error since I am not supposed to access the sys directory. I have also tried to place the command in a String[] just in case spaces caused a problem but it didn't make much differense.

View 5 Replies View Related

General :: How To Completely Remove Data From Phone Internal Memory

Nov 12, 2012

I have OPTIMUS 2x and if I plan to sell it, I want to remove my personal data from it. I know that external SD cards can be formatted with different (repeating format and data overwriting techniques) but my phone has internal 16gb which has some personal data in it. I can format it but the data will still be there? How can I completely remove my data without effecting the system data.

I have a custom rom installed and cwm as well. rooted

View 4 Replies View Related

HTC Incredible :: Remove Startup Items Via Shell

Oct 1, 2010

I know there are apps like Autostarts that do this, but I'm looking for a way to do it via the shell. Is there a directory or file within Android that stores startup stuff? For example in Windows, I'd look in All Programs/Startup or something.

View 7 Replies View Related

General :: Remove Pin Lock (OK) Button

Apr 11, 2012

On the Android Pin Lock screen, after entering the 4 digit number you have to hit OK before it unlocks. I want to remove this need. If the number I enter is correct, I do not want to have to hit OK to unlock the device. I'm not above doing some tinkering with my phone, but wouldn't know where to start. Maybe there's even an existing mod to do it? I can't be the only one who finds it annoying.

My phone is the Samsung Vibrant T959. I use 2.2 and 2.2.1 ROMs.

I know that there are other lockscreen apps, but I do not want to use any and want to stick with the stock Android one.

How do you remove/bypass the need for OK press on the Pin Lock?

View 1 Replies View Related

Android :: Using Internal Class That Is Not Shipped

Mar 8, 2010

I am very much interested and also needed to use an internal class which is not shipped with android sdk.the class is com.android.internal.telephony.Phone. Please if u guys have any idea about how ti use internal class then please let me know.

View 3 Replies View Related

General :: How To Remove Lock Of Samsung Galaxy Pocket

Jan 8, 2013

I Have Samsung galaxy pocket, when i m in call it locks the screen and I want to remove that lock Permanently can any Telme. How can I remove lock permanently of Samsung Galaxy pocket ?

View 1 Replies View Related

General :: Android / Will Changing IMEI Remove Sim Lock

Sep 26, 2013

If I have a phone that is sim locked will changing IMEI unlock it?

View 1 Replies View Related

Android :: Reference To Source Code For Adb Shell Command - Input That Is Used To Inject Keypresses

Aug 25, 2009

The use case that I have to emulate is to inject random keypresses. I have observed it that it is possible using adb shell command "input". Can someone point me to the source code in the android build tree, so that I can accordingly implement the same in our test app.

View 2 Replies View Related

General :: Change Internal Memory With ExtSdcard

Jan 17, 2014

Can I Change Internal Memory With ExtSdcard In My Samsung Galaxy Ace 3 3G Verison Android 4.2.2

View 1 Replies View Related

General :: How To Change App Install Location On Internal Memory

Sep 9, 2013

I have Prestigio PAP 4500 dual SIM phone with 4 GB internal memory and external microSD card 16GB - rooted. This 4 GB internal memory is devided on 2 part:

1.st labeled as Internal storage with 503 MB - this is location for app installation
2.nd labeled as Internal memory card with 2 GB - this is empty because I use externalSD 16GB.

Because Internal storage (503 MB) is too small for all app I'd like to install phone often pop up message "Storage space running out". How to change installation path so apps install on Internal memory card (2 GB) ??

I tried:
1. change in Settings, Storage, Preferred install location, SD card but after reinstalling all apps again get "Storage space running out"

2. install Mobile Uncle Tool (chinese menu), right button click on 1.st pop up, AppToSD, choose external, press button under it and install all apps again but again get "Storage space running out".

In both cases no change in capacity of Internal memory card with 2 GB.

View 5 Replies View Related

General :: How To Remove Added Soft Keys Showing On Lock Screen

Jun 20, 2012

I have added a couple of soft keys through navigation_bar.xml in SystemUI.apk. The soft keys show great, but are also showing on the lockscreen, when the others "disappear".

The added ones are Menu and Search, the order is Home, Menu, Recent Apps, Back, Search. This is to be the same as my desire hard keys. I know, no point in it, but have just got used to the soft keys so much!

Anyway, here is my coding, I have removed the android:visibilty="invisble" attribute to no ill effects...I have also added the relevant strings and ids in their respective places..

Code:
<FrameLayout android:id="@id/rot0" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:orientation="horizontal" android:id="@id/nav_buttons" android:clipChildren="false" [code]...

Could it be to do with the ID's? (I know that when I made the center clock, I added the "@id/clock" and it made the clock "disappear" on the lockscreen, where taking it out the clock stayed in the status bar!)...

View 4 Replies View Related

General :: Decompile APK To Change Appdata Path From Internal To SD Card

Jan 29, 2013

how to change the default appdata storage...

datadatacom.google.android.apps.currents to sdcardAndroiddatacom.google.android.apps.curren ts coz currents stores both cache and data to internal mem...which takes a whopping 100-150mb itself.

can i change some vaules to make it store in the sdcard instead.....

View 7 Replies View Related

Android : Internal Implementation Of Bitmap Class Use Shared Memory?

May 26, 2009

When I pass a Bitmap using the Binder Remote service mechanism, does the internal implementation of writeToParcel/createFromParcel of the Bitmap class use shared memory?

View 5 Replies View Related

General :: Galaxy Mini 2 S6500d - How To Change Internal Memory With SD Card

Apr 25, 2013

Im with samsung galaxy mini 2 s6500d how i can change internal memory with sd card ?

View 2 Replies View Related

HTC EVO 4G :: Cause Code 98 Error Class 2

Nov 12, 2010

I'm unable to find information about this and unable to find a fix. Every sms my wife or I send gets this error.

View 2 Replies View Related

Android :: Change Existing Apps Code Of G1 - Calendar And Camera Code

Feb 19, 2009

I wanna to add some code in Camera Apps code , so that it will invoke my Application and do the thing as per my desier. Is it possible to change the Application code? If any one already tried this then plz let me know, how to proceed and build if i change some code. How to integrate my application with camera apps.

View 2 Replies View Related

Sony Ericsson Xperia X10 :: Shell To Change For My Old One Which Have Scratches

Nov 10, 2010

I bought a new original shell to change for my old one which have scratches. Now I realize I need some special screwdrivers to release the phone from the shell.

I don't have to mention what I think of this madness but does anyone know what types of screwdrivers I need or will I really have to send it in for service?

View 1 Replies View Related

Android :: How To Get Package / Class Name By Code?

Nov 15, 2009

How can I use sdk to get the package/class name of a specific apk file, eg: I have a test.apk, and I want to know the package name and class name by API when I write a android program.

View 2 Replies View Related

General :: Change Pattern Lock Dots?

Jul 7, 2012

I own a ZTE Crescent- Rooted/CWM recovery running CM7.

I was messing around with using CM9 and I like it but it isn't up for the kind of usage I'd like to use it for so I went back to CM7. One thing I really liked about CM9 was the pattern lock dots- On ICS they are a lot thinner and look slicker, whilst on GB they are thick and bulky and I dislike them.

So my question is; Would it be possible to flash a zip in CWM to change the pattern lock dots on my device? Or any other method?

View 6 Replies View Related

Android :: Code To Serialize Manually A Class?

Sep 2, 2010

I want to serialize my class. I have this code...

I apparently need to implement :

private void writeObject(java.io.ObjectOutputStream out) throws IOException

private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException

Anyone know what I should do in these function ?? How should I write my Bitmap variable ?Any code examples ? anyone did it ?

View 2 Replies View Related

Android : Construct Class Diagram From Code?

Oct 19, 2010

I have a huge codebase. I am not very clear about its design as documents are rear to find.

Is there any tool available to construct the class diagram from the code? I need to know the interactions between the classes and relations between them. If there is any such tool where i can give the entire code as input and get the class diagram as out put, it will be best for my understanding.

View 2 Replies View Related

Android :: Code Won't Work In New Class / Resolve This?

Aug 31, 2010

The code in the main class works perfekt but i need a other thread but there the code won't work code...

The method create(Context, int) in the type MediaPlayer is not applicable for the arguments (Alarm, int)

and

The method getSystemService(String) is undefined for the type Alarm

View 1 Replies View Related

Android :: Adb Shell Commands To Change Settings Or Perform Tasks On A Phone

Feb 4, 2010

How do I use adb to perform some automated tasks on my android phone? I need to find commands that I can issue from the command line (ideally, using a .bat file) that will be capable of more than simply opening an application or sending an input keyevent (button press).

For instance, I want to toggle Airplane Mode on or off from the command line. Currently, the best I can do is launch the Wireless & network settings menu and then use input keyevents to click Airplane mode:

CODE:.................

There are quite a few drawbacks to this method, primarily that the screen has to be on and unlocked. Also, the tasks I want to do are much broader than this simple example. Other things I'd like to do if possible:

1.Play an mp3 and set it on repeat. Current solution:

CODE:..................

2.Play a video. (current solution: open MediaGallery, send keyevents, similar to above)

3.Change the volume (current solution: send volume-up button keyevents)

4.Change the display timeout (current solution: open sound & display settings, send keyevents)

As before, these all require the screen to be on and unlocked. The other major drawback to using keyevents is if the UI of the application is changed, the keyevents will no longer perform the correct function. If there is no easier way to do these sort of things, is there at least a way to turn the screen on (using adb) when it is off? Or to have keyevents still work when the screen is off?

I'm not very familiar with java. That said, I've seen code like the following (source: http://yenliangl.blogspot.com/2009/12/toggle-airplane-mode.html) to change a setting on the phone:

Settings.System.putInt(Settings.System.AIRPLANE_MODE_ON, 1 /* 1 or 0 */);

How do I translate something like the above into an adb shell command? Is this possible, or the wrong way to think about it?

View 2 Replies View Related

General :: Change Android System Settings By Code

Jun 8, 2012

some tutorial for changing android system settings by code.System Settings like:

-Ringtones
-Vibration
-Volume
-Brightness

names of the classes in which I have to look into, it will also be useful.

View 2 Replies View Related

General :: How To Change The Font Of Lock Screen Clock

Jun 18, 2013

I have looked all over, and I can't find any answers - Can you change the font of the lock screen clock? Or can you change the clock out for other clock widgets?

View 6 Replies View Related

General :: Change App Shortcuts On LG Lucid Lock Screen?

Aug 31, 2012

I just want to switch out one of the app shortcuts on my lock screen with a different app. I've seen apps that change the lock screen entirely, but I'm just wondering if there's a way to change which apps are there without changing it completely?

View 3 Replies View Related

General :: How To Change Jelly Bean Lock Screen

Apr 15, 2013

How to change jb lockscreen to this?

1. I want to remove white bounding box.

2. I want to move up the clock over widget boundary.

In ICS, there is a way to move clock upside.

By modifying keyguard_screen_unlock_portrait.xml file in framework-res.apk.

But in JB this method doesn't work well.

ps. I don't want to do this by 3rd party app like widget locker.

View 4 Replies View Related

General :: How To Change Default Lock Screen Wallpaper

Sep 14, 2013

i want to change the default wallpaper of lock screen to be different from home screen wallpaper.

View 1 Replies View Related

General :: How To Change Lock Ring Icon On KitKat Rom

May 16, 2014

Is there any way change to lock ring handles something like this

I am on resurrection remix 5.1.1 KitKat 4.4.2 , i want to change my lock handle icon on my android 4.4.2 how to do that.

I found several articles but all of them seem to be for ICS and JB The Metamorph tool also does not seem to support 4.3+ ROMS

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved