[Tutorial] Crack Your Android LockScreen Security - Galaxy Note GT-N7000 Themes and Apps

This tutorial is inspired by @m.sabra thread here.
All credits are for @m.sabra and @hanaheeno for pointing out the files responsible for LockScreen Security :good:.
If you find this tutorial helpful, please go to the main thread above and thanks those people.
Disclaimer: This is for educational purpose. Neither xda, nor me or people above are responsible of any misuse of this hack tutorial.
Click to expand...
Click to collapse
{
"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"
}
As shown in picture above, you can now rescue your LockScreen security in case you forgot your personal pattern, password, pin, signature or even face.!!
There are different ways to do this that we are going to describe.. So, without any further words, lets start our tutorial
Tutorial toolbox:
1) ADB engine from android SDK | Here - 400+ mb | or extracted one | View attachment adb_29072013.rar - 0.4 mb |.
2) Notepad++ for editing in windows machine | Here |.
3) Flashable zip template | Here |.
4) 7-zip archiver | Here | or WinRAR | Here |.
5) Samsung USB driver to be installed. | Here for 32-bit or Here for 64-bit |.
6) Aroma file manager | Here |.
7) Any custom recovery.
The methods (choose the one you like):
Method #1 - ADB through android OS:
This needs USB debugging to be toggled (enabled) in the first place in order to get adb shell functioned.
Click to expand...
Click to collapse
- Plug your device to USB and start adb session:
Code:
adb shell
rm /data/system/locksettings.db
rm /data/system/locksettings.db-wal
rm /data/system/locksettings.db-shm
rm /data/system/gesture.key
rm /data/system/password.key
rm /data/system/signature.key
rm /data/system/sparepassword.key
exit
adb reboot
In between each line, don't forget to hit Enter Key
The following video is showing how is this done (credits to @melvinchng)
If you run into some access denied messages, use su binary to elevate your permission level as following:
Code:
adb shell
su
rm /data/system/locksettings.db
rm /data/system/locksettings.db-wal
rm /data/system/locksettings.db-shm
rm /data/system/gesture.key
rm /data/system/password.key
rm /data/system/signature.key
rm /data/system/sparepassword.key
exit
exit
adb reboot
The following video is showing how is this done using su binary (again credits to @melvinchng)
Method #2 - ADB through recovery:
This needs USB debugging to be toggled to get adb shell functioned; but no need for root access
Click to expand...
Click to collapse
- Reboot into recovery.
- Plug your device to USB and start adb session:
Code:
adb shell
mount /data
rm /data/system/locksettings.db
rm /data/system/locksettings.db-wal
rm /data/system/locksettings.db-shm
rm /data/system/gesture.key
rm /data/system/password.key
rm /data/system/signature.key
rm /data/system/sparepassword.key
umount /data
reboot
In between each line, don't forget to hit Enter Key
Note:
I don't no whether this needs busybox to be installed or not because mount and umount binaries are symlinked to toolbox and busybox
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Method #3 - updater-script flashable zip file through recovery:
The pros of this method, that you don't need USB debugging to be toggled or root access :good:
Obviously, you will need custom recovery that allow flashing zip with unrecognized signature.!!
Click to expand...
Click to collapse
- Grasp my flashable zip template (you can download it from here) and navigate to /META-INF/com/google/android folder and extract updater-script, open it by Notepad++ and change the whole script to:
Code:
ui_print(" ");
package_extract_file("busybox", "/tmp/busybox");
set_perm(0, 0, 0777, "/tmp/busybox");
run_program("/tmp/busybox");
run_program("/tmp/busybox", "mount", "/data");
delete("/data/system/locksettings.db");
delete("/data/system/locksettings.db-wal");
delete("/data/system/locksettings.db-shm");
delete("/data/system/gesture.key");
delete("/data/system/password.key");
delete("/data/system/signature.key");
delete("/data/system/sparepassword.key");
run_program("/tmp/busybox", "umount", "/data");
delete("/tmp/busybox");
Don't forget to leave one empty line at the end.
- Save changes, and drag/drop the updater-script inside the flashable template inside /META-INF/com/google/android folder.
- Put the flashable file on your sdcard and flash it through recovery.
Check attachment for the pre-made flashable file.
Method #4 - sh script in flashable zip file through recovery:
Also this method doesn't require the USB debugging to be toggled or root access. :victory: but you will need custom recovery.
Click to expand...
Click to collapse
- Open Notepad++ new page, and paste the following code inside it:
Code:
#!/sbin/sh
#
###############################################################
# Auto Clear LockScreen Security Script for Android Devices #
# By majdinj xda-developers.com #
# #
# Thanks To: m.sabra & hanaheeno for the primary method #
###############################################################
#
if [ -e /data/system/locksettings.db ]
then
rm /data/system/locksettings.db
fi
if [ -e /data/system/locksettings.db-wal ]
then
rm /data/system/locksettings.db-wal
fi
if [ -e /data/system/locksettings.db-shm ]
then
rm /data/system/locksettings.db-shm
fi
if [ -e /data/system/gesture.key ]
then
rm /data/system/gesture.key
fi
if [ -e /data/system/password.key ]
then
rm /data/system/password.key
fi
if [ -e /data/system/signature.key ]
then
rm /data/system/signature.key
fi
if [ -e /data/system/sparepassword.key ]
then
rm /data/system/sparepassword.key
fi
Also don't forget to leave one empty line at the end.
- Save the file as "rescue_lockscreen_security.sh" (it could be anything, but for the sake of tutorial.!!).
- Now open the flashable zip template (download it from here) and navigate to /META-INF/com/google/android folder and extract updater-script, open it by Notepad++ and change the whole script to:
Code:
ui_print(" ");
package_extract_file("busybox", "/tmp/busybox");
set_perm(0, 0, 0777, "/tmp/busybox");
run_program("/tmp/busybox");
run_program("/tmp/busybox", "mount", "/data");
package_extract_file("rescue_lockscreen_security.sh", "/tmp/rescue_lockscreen_security.sh");
set_perm(0, 0, 0777, "/tmp/rescue_lockscreen_security.sh");
run_program("/tmp/rescue_lockscreen_security.sh");
run_program("/tmp/busybox", "umount", "/data");
delete("/tmp/busybox");
delete("/tmp/rescue_lockscreen_security.sh");
Also here don't forget to leave one empty line at the end.
- Save changes, and drag/drop the updater-script inside the flashable template inside /META-INF/com/google/android folder.
- Drag/drop rescue_lockscreen_security.sh in the root of flashable zip template.
- Put the flashable file on your sdcard and flash it through recovery.
Check attachment for the pre-made flashable file.
Method #5 - Aroma File Manager through recovery:
Special thanks to @amarullz for this amazing tool.
Go to the main thread here and download Aroma File Manager.
- This method doesn't require the USB debugging to be toggled or root access. Some claims it works on stock Samsung e3 recovery.
- Make sure to mount data partition before starting Aroma File Manager in recovery. In stock Samsung e3 recovery, flash Aroma File Manager, click on menu option and go to settings and toggle "Automount all devices on start", then exit the Aroma File Manager and then reflash it again.
Click to expand...
Click to collapse
- As described by the developer, copy the aromafm-xx.zip into your sdcard, then reboot your device into recovery mode. Choose install from sdcard, then select the aromafm-xx.zip. The file manager will start, and you are ready to manage your system files (copy, cut, delete, make new folder, etc) while you are in recovery.
- Now in Aroma File Manager, navigate to /data/system folder and delete the following files if exist:
Code:
gesture.key
locksettings.db
locksettings.db-shm
locksettings.db-wal
password.key
signature.key
sparepassword.key
- Exit Aroma File Manager and reboot the phone.
Pre-made flashable files
You will see bellow in the attachment pre-made flashable files made from method #3 and method #4. Download the one you want, put it on sdcard and reboot to recovery and flash it.
Again, these flashable files are only made to help those who don't have technical skills to do the method themselves. I have the right to delete them anytime I feel there is misuse of them.
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Please stay safe,,

reserved

If only it was there a couple of days ago. I had to reset my note due to forgotten password.
Sent from my GT-I9500 using xda premium

nokiamodeln91 said:
If only it was there a couple of days ago. I had to reset my note due to forgotten password.
Sent from my GT-I9500 using xda premium
Click to expand...
Click to collapse
Heh.. hard luck mate.
Now you are part of our little secret :angel:

is there any way of securing a device from these hacks?

@majdinj
Hi
Somehow i have missed this thread, a week ago i made a flashable zip for this after referring a thread of some other device.
I have used simple script to delete gesture.key (for pattern) and password.key (for PIN/Password) and tested myself and working fine (Note2). In case of PIN/Password it just removes but in case of Pattern it just hack, still you will have pattern but able to unlock with any pattern you draw
I did something extra experiments to make backup and restore (dadyz eye ) to unlock and relock with same password. it getting resore PIn/PW/Pattern but you can able to unlock with any key. when time permits will try some more experiments. Btw db-wl/db-shm file restoring casing bootloop.

@majdinj
Success.
Sent you pm.
Sent from my GT-N7100 using xda premium

dr.ketan said:
@majdinj
Hi
Somehow i have missed this thread, a week ago i made a flashable zip for this after referring a thread of some other device.
I have used simple script to delete gesture.key (for pattern) and password.key (for PIN/Password) and tested myself and working fine (Note2). In case of PIN/Password it just removes but in case of Pattern it just hack, still you will have pattern but able to unlock with any pattern you draw
I did something extra experiments to make backup and restore (dadyz eye ) to unlock and relock with same password. it getting resore PIn/PW/Pattern but you can able to unlock with any key. when time permits will try some more experiments. Btw db-wl/db-shm file restoring casing bootloop.
Click to expand...
Click to collapse
It is good to see you doc here.. It is an honor to my thread
I don't think I want to backup my old pattern/pass/pin or face..!! What I want is a method how could I login into my device if I forget my pattern/pass/pin?
Refining to the procedure; you can only delete locksettings.db, locksettings.db-shm, and locksettings.db-wal and then reboot since the device will create these files again upon booting but without any LockScreen data base.
This will give clear LockScreen interface as if no security has been there before..!!

Actually it's not needed to backup pw, but i want just for fun and challenge . Also not advisable to post bcoz this will use only to spy. But yes it can be possible.
Yeah locksetting delete is clean way. What I beleive is locksetting files keeping track of action you have set like pin/pw/pattern. And it gets auto updated on changing pw/pin/pattern. That's reason deleting just key files working.
Regards.
Sent from my GT-N7100 using xda premium

dr.ketan said:
@majdinj
Success.
Sent you pm.
Sent from my GT-N7100 using xda premium
Click to expand...
Click to collapse
Mind sharing how we can protect ourselves from this...

Is disabling adb shell via USB any good?
Also, maybe a kernel without a recovery with the ability to flash zip files?
What can we do for protection??

passord protected kernell

dr.ketan said:
@majdinj
Hi
Somehow i have missed this thread, a week ago i made a flashable zip for this after referring a thread of some other device.
I have used simple script to delete gesture.key (for pattern) and password.key (for PIN/Password) and tested myself and working fine (Note2). In case of PIN/Password it just removes but in case of Pattern it just hack, still you will have pattern but able to unlock with any pattern you draw
I did something extra experiments to make backup and restore (dadyz eye ) to unlock and relock with same password. it getting resore PIn/PW/Pattern but you can able to unlock with any key. when time permits will try some more experiments. Btw db-wl/db-shm file restoring casing bootloop.
Click to expand...
Click to collapse
Dr ketan, my brother sent me his second phone which is the samsung galaxy s2 cause he forgot his password. Can u help me on this? ?
Sent from my GT-N7100 using XDA Premium 4 mobile app
---------- Post added at 02:52 AM ---------- Previous post was at 02:47 AM ----------
Would appreciate if someone help me on the other thread, here is the link http://forum.xda-developers.com/showthread.php?p=50917429
Sent from my GT-N7100 using XDA Premium 4 mobile app

cruelscene said:
Dr ketan, my brother sent me his second phone which is the samsung galaxy s2 cause he forgot his password. Can u help me on this? ?
Sent from my GT-N7100 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
You can follow what @majdinj said in OP
OR simply flash zip from here (you will need CWM)
http://forum.xda-developers.com/showthread.php?t=2437946

dr.ketan said:
You can follow what @majdinj said in OP
OR simply flash zip from here (you will need CWM)
http://forum.xda-developers.com/showthread.php?t=2437946
Click to expand...
Click to collapse
Exactly Dr Ketan, that is what I'm trying to do. Did u watch already the link of video that I provided? Would love if u see the video....
It's stock & doesn't have custom cwm....
Sent from my GT-N7100 using XDA Premium 4 mobile app

cruelscene said:
Exactly Dr Ketan, that is what I'm trying to do. Did u watch already the link of video that I provided? Would love if u see the video....
It's stock & doesn't have custom cwm....
Sent from my GT-N7100 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
why dont you :
1. backup current recovery(or just skip this)
2. install custom recovery
3. unlock it
4.revert the recovery to stock

SamantaSync said:
why dont you :
1. backup current recovery(or just skip this)
2. install custom recovery
3. unlock it
4.revert the recovery to stock
Click to expand...
Click to collapse
Did u already watch the link that I provided? If yes, can u provide me the step by step recommended by you?
Sorry but I already tried to install custom kernel, custom recovery, tried to do factory reset via stock recovery, tried use command prompt for adb shell, tried to flash flash stock rom via odin, and stuff like that but NONE OF THEM ARE WORK.
Would appreciate if u teach me more....
Sent from my GT-N7100 using XDA Premium 4 mobile app

Successfully unlocked my Phone using This!!!!!!!!!!!
Hey bro Thanks for giving this way to open a homoscreen lock. I just want to see that its working or not. So i manually put a pin password nd tried to open with this. Got success full!!!!!!!! :good::good::good:

I successfully disabled the lock pattern on a marshmallow rom by just removing the three files /data/system/locksettings.db{,-wal,-shm}

Thanks for this great tutorial! After I did the steps from method 1 the password was gone. If I go to settings and try to create a new password it asks me for the fingerprint or backup password. Any way to crack this aswell? FYI: Galaxy S6 @ Android 6.0.1

Related

[I9003][NEWBIEGUIDE] XXKPE+XXKPH DEODEX w/ Vanilla Lockscreen+Screenshots

Edit: An easier method has been done here, If you feel the need to be challenged, This is your style, But if you prefer a hassle-less method, [Click Here]
{
"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"
}
Credits: Firstly, I thank member’s such as Skin,Vivek,Amit,trip,ron for their work and motive towards the project regarding our phones..
Note: This post has been heavily edited from it’s previous XXKPE RootExploitGuide. This was edited to make deodexing easier for newbies who are new to this.
Great Success .
Deodexing
-NOTE: The Already Deodexed files are placed in the download section, This will save a great amount of time, If you have downloaded the already deodexed files, proceed with Step
1. At this point before you start you must be rooted via SOC or any method you preferred. And you must have Busybox, If you use/flash Skin's CWM or Amit's version they already contain Busybox so your ready to go.
2. Once you've gotten the green signal , Copy done_app and done_frame to your sdcard *Download link in the downloads section* , not external_sd. Disconnect VIA storage and connect via Debugging mode.
3. Launch cmd by pressing Window Key+ R and type "cmd"
4. Launch adb by copying the path of adb into command prompt till it appears something like this
Code:
cd C:\Program Files (x86)\Android\android-sdk\platform-tools
Note: location may differ based on where you downloaded adb into.
5. Then type adb shell
6. Type
Code:
adb shell
$ su
# stop
# mount -o remount rw /system
# rm /system/app/*.odex
# rm /system/framework/*.odex
# cp /sdcard/done_app/* /system/app/
# cp /sdcard/done_frame/* /system/framework/
# mount -o remount ro /system
# reboot
7. After this , Voila you are deodexed!.
- credits to Skin1980 for this.
Note: This is compatible with XXKPE+XXKPH
1. Install a root app such as Root Explorer
2. Navigate to your system/framework and copy android.policy.jar and back it up.
3. Copy and paste the attached to your system/framework and replace file.
4. Reboot
---------------------------
Download android.policy.jar
Download Deodexed System Files [COMPLETE XXKPE]
Download Deodexed System Files [COMPLETE XXKPH]
- Removed xUltimate and added completed deodexed files.
- Added Screenshot's to make it noob friendly.
- Revamped page and added additional info
- Added note on deodexed and outdated info.
- Removed outdated information and updated with latest one.
- Added already deodexed files for XXKPH
Flash the phone with pda file....can u please explain in detail...
Pls consider dis..i was never able to understand clock work mod...on kp9...pls can u guys..i mean thosewho acquie knowledge about dis stufff...can make videos for members like me..if possible plz...or explain in very detail
Sent from my GT-I9003 using XDA Premium App
I shall try to make a video on this later. But for now I shall explain.
Flash it using Odin. Place the file in pda *Note you must have flashed to XXKP9 or XXKPE for this to work* then flash it. Like this
stuck on step 5 of deodex...Help...><
Thanks misledz
Sent from my GT-I9003 using XDA Premium App
Dude I can'd Deodex the Phone
I have used the xultimate to convert the files
But i cant copy files to my phone
CP command is not working!!!
I have installed the busybox
and when i take the busybox installer it installs the busybox
and the busy box path is shown but NOT WORKING(cp command)
Just testing the cp command
vivekkalady said:
Dude I can'd Deodex the Phone
I have used the xultimate to convert the files
But i cant copy files to my phone
CP command is not working!!!
I have installed the busybox
and when i take the busybox installer it installs the busybox
and the busy box path is shown but NOT WORKING(cp command)
Just testing the cp command
Click to expand...
Click to collapse
try using the cp internal to busybox.
ie:
busybox cp /system/bin/am /system/am
IS Deodexing a pre requisite for installing the Vanilla LOck?Anyone reply fast?
tanu_invincible said:
IS Deodexing a pre requisite for installing the Vanilla LOck?Anyone reply fast?
Click to expand...
Click to collapse
Yes because all the files we edit are in the odex file
So to install any modes we must dedox(combine jar or apk with corresponding odex file)
Sent from my GT-I9003 using XDA Premium App
@ fooman123
I made the cp command to work on my phone and i can copy any file with cp command but i cant copy the done_frame to system/frame
There is some problem with mounting sdcard
cp /sdcard/done app ......... Etc as defined in the dedoxing guide
Sent from my GT-I9003 using XDA Premium App
hi,
i done dedox well and i saw no.odex files system->app folder
but every time when i am replacing the framework file ... after rebooting my phone struck at the samsung logo ... then i use recovery (update.zip) to come back ... can anybody give me the process how to copy the framework file
java fail...how??
ok got it now! =)
kchdeepak said:
hi,
i done dedox well and i saw no.odex files system->app folder
but every time when i am replacing the framework file ... after rebooting my phone struck at the samsung logo ... then i use recovery (update.zip) to come back ... can anybody give me the process how to copy the framework file
Click to expand...
Click to collapse
actually you haven't deodexed you only removed the odex file that doesn't mean you have deodexed.
by doing these 2 operations
rm /system/app/*.odex
rm /system/framework/*.odex
you are removing the odex files form the app & framework directory
but the next two steps are not working
so the files from the done_app and done_frame are not copying
so you cannot boot because of the error while copying(no files are copied)
this is the problem i am facing Too
vivekkalady said:
actually you haven't deodexed you only removed the odex file that doesn't mean you have deodexed.
Click to expand...
Click to collapse
ohh ok ok so you are also unable to do all these things... like krazzzy themes and this vinilla lock and all ?
kchdeepak said:
hi,
i done dedox well and i saw no.odex files system->app folder
but every time when i am replacing the framework file ... after rebooting my phone struck at the samsung logo ... then i use recovery (update.zip) to come back ... can anybody give me the process how to copy the framework file
Click to expand...
Click to collapse
How did you create the update.zip ???
explain???
is it [I9003][CWM] ClockworkMod Recovery porting for I9003 ??
so you haven't reflash original??
i have to format each time when i try to deodex
somebody help mee
man u need to install latest java sdk
DEODEXd xxkpe with Vanilla Lockscreen
u must be rooted
busybox
note:when u first time run su command in ur mobile superuser ask allow unknown u have allow
adb config(optional)
right click computer->properties
from lift side advance system setting
click->advanced tab
click->environment variables
from second column->path
select edit->
add aftter ";" this C:\Program Files\Android\android-sdk\platform-tools\(this is ur adb location)
after this u can simply type cmd/run adb shell
download and extract two folder (done_app&done_frame) to sdcard(if u did sdswap u have copy to ur orgenal external sdcard)
in adb run this comound
$ su
# stop
# mount -o remount rw /system
# rm /system/app/*.odex
# rm /system/framework/*.odex
# cp /sdcard/done_app/* /system/app/
# cp /sdcard/done_frame/* /system/framework/
# mount -o remount ro /system
# reboot
after reboot u are done deodexd with vanilla lockscreen
download here
vivekkalady said:
actually you haven't deodexed you only removed the odex file that doesn't mean you have deodexed.
by doing these 2 operations
rm /system/app/*.odex
rm /system/framework/*.odex
you are removing the odex files form the app & framework directory
but the next two steps are not working
so the files from the done_app and done_frame are not copying
so you cannot boot because of the error while copying(no files are copied)
this is the problem i am facing Too
Click to expand...
Click to collapse
after deodexing are you copying the done_app and done_frameworks folders to your internal or external sd card...if you have copied it to external sd card its wrong...copy the folders to internal sd and give it a try
To avoid getting CP error's use stericsons from the market.
Sent from my GT-I9003 using Tapatalk

BlueStacks Beta 4/3 ROOTED & Play Store Guide

SEE POST 3 FOR ROOT GUIDE
Below you will find the neccesary steps needed to get Google Play to run on BlueStacks Beta
1. Install Root Explore (can be downloaded for free using bluestacks and typing in the app name)
2. Download the Vending.apk and Google Framework from this post.
http://www.androidfilehost.com/main/Misc/Bluestack/
3. Copy them to /data/bst
4. Give them these Permissions
(rwxr-xr-x) or through adb:
Code:
adb shell chmod 755 /data/bst/vending.apk
adb shell chmod 755 /data/bst/googleservicesframework.apk
Click to expand...
Click to collapse
{
"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"
}
5. Reboot Bluestacks
6. Download ADW Launcher if you haven't (this is not a requirement but it helps as if you already have Google Play in your PC you just find it through /data/windowsdata)
7. Find Google Play and sign in with your email and password.
Step by Step Guide on how to get into root.fs and mount the system.img
Click Here
The programs that are listed in the tutorial can also be found on my site here:
http://www.androidfilehost.com/main/Misc/Bluestack/
Along with those programs you will find all the tools,apks, installers you will need to get the market on Bluestacks Beta along with the tools to modify its files.
Lost, Confused, Cant get the Market to run with the instructions above?
Alternative Way-UPDATED 4/2/2012 :
I have uploaded a modified root.fs to my site for you to download
I added the the market per the instructions in the tutorial on the blog.
Steps:
Download the root.fs and overwrite the current root.fs on your computer.
Location:
C:\ProgramData\BlueStacks\Android
Make sure to stop all instances of BlueStacks before overwriting the file. Also Please Please make a backup of your original root.fs before overwriting the file with the modified one.
Once you have copied over the new root.fs start Bluestacks and wait for it to load up.
Congrats you have the newest Market running on BlueStacks.
You might need to install ADW Launcher inorder to see the Play Store/Market. It doesnt show up in the bluestacks launcher
Files can be downloaded from here:
http://www.androidfilehost.com/main/Misc/Bluestack/
------------------------------------------------------------------------
Was going to post my own guide but someone beat me to it.
Here a guide on some of the Registry Tweaks
http://droidhackings.blogspot.com/2012/03/some-useful-registry-tweaks-to-optimize.html
---Rooting BlueStacks Beta---
DOWNLOAD LIST (assuming you already have BlueStacks installed):
Code:
1. initrd-betahack.img ***INCLUDED***
2. ramdisk.img ***INCLUDED***
3. system.img-----------------NOT INCLUDED!!!
4. su.x86 ***INCLUDED***
5. BlueRegistryMOD ***INCLUDED***
--------------------------------------------------------------------------------------------------
Download from Here:
http://www.androidfilehost.com/main/Misc/Bluestack/Rooting BlueStacks Beta/
Code:
These are the custom files needed for root and r/w
-initrd-betahack.img
-ramdisk.img
-system.img
-su.x86
FILE: initrd-betahack.img
-From Beta (modified)
-Place it in \%programdata%\BlueStacks\Android\
FILE: ramdisk.img
-From Mod-V3.zip alpha
-Place it in \%programdata%\BlueStacks\Android\
FILE: system.img
-Extracted from xRepinsSporsx Root.fs (for Google Play)
Or
-Extracted from latest BlueStacks Root.fs
-Place it in \%programdata%\BlueStacks\Android\
FILE: su.x86
-From Androidx86 build (extracted from rooted alpha)
-This is the x86 superuser binary that auto-grants superuser-rights
***This file will be pushed to android using adb later on***
-------------------------------------------------------------------------------------------------
Code:
These files are the stock Beta files and remain in place
-kernel.elf
-Data.fs
-Prebundled.fs
-SDCard.fs
FILE: kernel.elf, Data.fs, Prebundled.fs, SDCard.fs
-From Beta
-Placed in \%programdata%\BlueStacks\Android\
---------------------------------------------------------------------------------------
Changes that need to be made to the registry are contained in BlueRegistryMOD.reg
FILE: BlueRegistryMOD.reg
***WARNING***
YOU MUST ENTER YOUR SPECIFIC USER ID BEFORE RUNNING BlueRegistryMOD.reg !!!
Where the registry key says ENTER-YOUR-GUID-HERE you need to enter the number (with dashes) found here:
FIND YOUR SPECIFIC GUID HERE!!!
[HKEY_CURRENT_USER\Software\BlueStacks]
“USER_GUID”=”SOME-NUMBERS-HERE”
Example of a GUID:
“USER_GUID”=”8dfcb602-4b7d-11e1-9dc9-f3dea6cb4293”
Example of a modified “BootParameters” with correct GUID and changes made to mount /system:
[HKEY_LOCAL_MACHINE\SOFTWARE\BlueStacks\Guests\Android]
"BootParameters"="root=/dev/sda1 SRC=/android DATA=/dev/sdc1 SDCARD=/dev/sdd1 GUID=8dfcb602-4b7d-11e1-9dc9-f3dea6cb4293 armApps=true GlMode=1 OEM=BlueStacks "
***ENTER-YOUR-GUID-HERE must be changed in 2(two) places in BlueRegistryMOD.reg***
-------------------------------------------------------------------------------------------
THIS IS THE PROCESS:
***Make sure to exit BlueStacks before proceeding***
1. Paying attention to the guidelines above, place the following files in their correct location – this includes initrd-betahack.img, ramdisk.img, and system.img.
2. After finding your GUID and making the appropriate changes to BlueRegistryMOD.reg in 2(two) places, run the registry file.
3. Start/restart BlueStacks – go to the Start menu>type Start Bluestacks
4. Start adb on your computer
a. Connect to bluestacks - #adb connect 127.0.0.1:5555
b. Ensure you have root access - #adb root
i. You should get message: “adbd is already running as root”
c. Mount system as read/write - #adb remount
d. Remove ‘dummy’ superuser - #adb shell rm /system/xbin/su
e. Push x86 superuser to BlueStacks - #adb push su.x86 /system/xbin/su
i. su.x86 must be in the same Windows directory you are running in the console
f. Correct the permissions for superuser - #adb shell chmod 6711 /system/xbin/su
g. Remount system read only - #adb shell mount -o ro,remount t-ext4 /dev/sdb1 /system
h. Exit adb by closing the console window
5. Restart BlueStacks – go to the Start menu>type Start BlueStacks
6. At this point you should have root and read/write access.
a. Verify root using a tool like Root Check. I suggest Root Check Pro because it will point you to what the problem is if you do NOT have root.
b. Verify read/write access using a tool like Root Explorer.
7. Enjoy.
***This is a sure-fire way to get root and read/write access. However, I find that there are still issues with GAPPS (gmail, calendar specifically)
Download from here:
http://www.androidfilehost.com/main/Misc/Bluestack/Rooting BlueStacks Beta/
Extended system.img
http://www.androidfilehost.com/main/Misc/Bluestack/Extended system.img/
Thank you!
works perfect! Great!
Can not mount r/w system, any idea, is it possible ???
I used the alternative method - with the "root.fs"
that was perfect!
I would like to get the bluestacks-alpha-fullscreen again - without the suggested apps bar etc.
Any idea?
Thanks again,
Sascha
Stapelmeister said:
I used the alternative method - with the "root.fs"
that was perfect!
I would like to get the bluestacks-alpha-fullscreen again - without the suggested apps bar etc.
Any idea?
Thanks again,
Sascha
Click to expand...
Click to collapse
We cant get the whole bar to go away yet. im still experimenting with that. I can make it black but not 100% gone.
milniko said:
Can not mount r/w system, any idea, is it possible ???
Click to expand...
Click to collapse
It is not possible yet. Still working on it
imisa2 said:
Get Maximum out of your BlueStacks Beta, Some useful Registry Hacks, tips and tricks Here:
droidhackings.blogspot.com
Click to expand...
Click to collapse
Well frick lol Was just posting my tutorial/guide on how to do those things. you beat me to it.
MOD-Please combine last 3 Posts.
Sorry
@Repin
I went through the Mod-V3.exe that chevy uploaded for the alpha build that enables r/w access to sytem.
The main changes I saw involved system.img, init-hack.img, ramdisk.img, and registry hacks.
-The registry hacks are fairly self-explanatory, except that now there is a need for a /sde1 to allow for the PrebundledApps.fs
-We already have a good system.img with Superuser to use in place of Root.fs in the /Bluestacks/Android/ folder.
-I tore into the alpha initrd.img and compared it to the alpha initrd-hack.img. The only difference inside both initrd.img and initrd-hack.img was a bash script named init. After a comparison of the scripts I found the point where the initrd-hack init script sets up the /system for r/w access. I then compared the alpha init script and init-hack script with the beta init. The only difference between the alpha init script and the beta init script is that the beta script has two extra 'insmod' entries for HD that the alphs does not. So, I made the same changes to the beta init script that are in the alpha init-hack script to enable /system with r/w. ****I'm not sure how to repackage initrd.img with my modified init script so that we can replace the original***
-The only thing I am unsure of is ramdisk.img. My question to chevy is "Did you make any modifications to ramdisk.img contained in the Mod-V3.zip that was uploaded for the alpha build?"
Sent from my BlueStacks using XDA
(Edited for spelling)
What is wrong ???
Unpack original initrd.img:
mv initrd.img initrd.gz
gunzip initrd.gz
mkdir tmp
cd tmp
cpio -id < ../initrd
Archiving without any change:
find . -depth -print | cpio -o >../initrd
cd ../
gzip initrd.gz
mv initrd.gz initrd.img
The new cpio file initrd.img does not work, even no change ???
@milniko
Exactly. I need a way to repackage initrd.img with the new init script but I don't know how.
Sent from my Droid using XDA
Can you send me the new init script. ill try and repackage it
i have ubuntu in vmware and it very simple:
rename to gz
extract the file inside
copy and past this file in vmware ubuntu from windows
when i have this file on ubuntu i extract this file in a folder
edit the file of my interest in this folder
and for repack i use this when i'm inside the folder:
find . | cpio -o -H newc | gzip > ../initrd.gz
in the final i rename initrd.gz in initrd.img
p.s.
the same thisnks for the ramdisk.img
Blue Stack Help
Hello all, How are you
Thanks for help to root, but i've question
Once I Install Blue Stack, I Get automatically downloading some applications like pulse, Talk... etc . I can not cancel those applications.
Please how to cancel all this applications to download and install automatically.
How can I Manage Start up Items, and What Thnkgs that I Can Remove after Rooting Blue Stack. Thank you
Thanks
imisa2 said:
Try this:
Click to expand...
Click to collapse
Would you mind quoting the post you are responding to next time? It helps keep the thread organized. Additionally, please stop "spamming" the link to your website and simply link to the post in which you originally shared it.
My apologies if I sound like a **** for bringing it up. I assure you it isn't my intention.
We all appreciate your having put together a site with tutorials on it! Very helpful for those looking to play with BlueStacks.
Modified init for initrd.img
This is the edited init file found in initrd.img in Bluestacks Beta. Rename the stock beta initrd.img to initrd.bak. The init file is easily read in Notepad++.
The changes that were made reflect the same changes made in the alpha init that allows for r/w access. Specifically, the changes made are in the part where Androidx86 detection takes place. The script mounts /dev/sdb1 to /mnt and then moves /mnt to /android/system.
This init assumes that the following changes have been made to the Bluestacks Beta filesystem:
-The moddified init file has been repacked into initrd-hack.img. Place it in the \%programdata%\BlueStacks\Android\ folder.
-try the ramdisk.img from Mod-V3.zip alpha as /sda1. Place it in the \%programdata%\BlueStacks\Android\ folder.
-xRepinsSporx system.img file with superuser is to be used as /sdb1. Place it in the \%programdata%\BlueStacks\Android\ folder.
-the beta Data.fs is to be used as /sdc1
-the beta SDCard.fs is to be used at /sdd1
---------------------------------------------------------------------------------------
Changes that need to be made to the registry are:
[HKEY_LOCAL_MACHINE\SOFTWARE\BlueStacks\Guests\Android]
"BootParameters"="root=/dev/sda1 SRC=/android DATA=/dev/sdc1 SDCARD=/dev/sdd1 GUID= OEM=BlueStacks"
"Initrd"="C:\\ProgramData\\BlueStacks\\Android\\initrd-hack.img"
[HKEY_LOCAL_MACHINE\SOFTWARE\BlueStacks\Guests\Android\BlockDevice\0]
"Name"="sda1"
"Path"="C:\\ProgramData\\BlueStacks\\Android\\ramdisk.img"
[HKEY_LOCAL_MACHINE\SOFTWARE\BlueStacks\Guests\Android\BlockDevice\1]
"Name"="sdb1"
"Path"="C:\\ProgramData\\BlueStacks\\android\\system.img"
[HKEY_LOCAL_MACHINE\SOFTWARE\BlueStacks\Guests\Android\BlockDevice\2]
"Name"="sdc1"
"Path"="C:\\ProgramData\\BlueStacks\\Android\\Data.fs"
[HKEY_LOCAL_MACHINE\SOFTWARE\BlueStacks\Guests\Android\BlockDevice\3]
"Name"="sdd1"
"Path"="C:\\ProgramData\\BlueStacks\\Android\\SDCard.fs"
*** Also, “DisableRobustness” in [HKEY_LOCAL_MACHINE\SOFTWARE\BlueStacks\Guests\Android] may need to be changed from “0” to “1” ***
zulu99;24242353
and for repack i use this when i'm inside the folder:
find . | cpio -o -H newc | gzip > ../initrd.gz
in the final i rename initrd.gz in initrd.img
[/QUOTE said:
Still does'n work for me, please share initrd.img if it works for you
Thank you
Click to expand...
Click to collapse
i can repack, but the method of tenet24 not work.
the file is this:
http://www.2shared.com/file/wm2Wcqsa/initrd-hack.html
p.s.
i used the system.img inside the original Root.fs->system.sfs and the ramdisk.img of modv3
if i put this 3 files in other folder and correct the regedit to this other folder, the bluestacks hangs on a black screen, after this with hd-adb.exe i can connect to the virtual android and i can remount in rw the /system folder, but the gui of bluestacks not work. i think the ramdisk.img is not good, we can repack also this.
@zulu99
Can you post any debug or logs from when the GUI wont load? Check the Bluestacks folder for their log, and try to use adb to get the last ten lines or so of debug.
Thanks.
Sent from my Droid using XDA

[UTIL][22/2/13]Auto Odexer Script V2.1-Mod your odex files with a breeze

NEW VERSION 2.1, it is now much easier and like a breeze...
Before u read, u should know that this thread is for themers and modders only... and this is not a tool for odexing the whole ROM.
Hello everybody
While I was working on my ROM, and releasing an odex version, I suffered alot in working on the odex files and modifying them. Every time I should use the command line and copy certain commands from a notepad, in addition I have to edit the notepad file to make the commands odex other files... that was a pain...
ok.. the odex commands that were used are taken from this thread by sicopat, big thanks to his efforts. Actually I was thinking in how to make it easier for me to odex these modified files, so I tried to make a script that easily odex files, put the files in the right folder, run the script, and then write the name of the file u want to odex, then..... Waw the file is odexed in the phone and ready to run
For anyone that want to use these scripts, I wanted to share it with you, and I hope they would be useful to you.
Update (2/22/13) v2.1:
1. bootclasspath should be put manually from now, because $BOOTCLASSPATH doesn't work when no root in recovery.
2. Fixed a mistake in extracting and archiving files, now it's ok.
3. Now you can restore the original files if you like after odexing.
4. 7zip 32 bit is used instead of 64 bit, sorry for this, now it should work with 32 bit windows too.
5. Script re-arranged, and 7zip log operations saved in 7z_log.txt. you can check this one if you suspect in 7zip operation.
6. Backup of the original files before odexing and restore them after odexing.
Update (1/4/13) v2: All things automated, no need to edit the script for bootclasspath, and even no need to drag and drop the edited files from the modded apk or jar.
Update (9/20/12) v1.4: remount using busybox, this solves some remounting problems.
update (9/18/12) v1.3: adb added to the program, to make it work independently. And now you can pull the files after odexing if u need that.
update (9/10/12) v1.2: updated and added a missed command, it should works perfect. No need to put any files in your sdcard to make the operations... and the operations are commented so you can diagnose the problem if occurred.
download from here
Before you use, make sure u r running the corresponding odex rom in your device, then read how to use this tool.
How to use:
first extract the downloaded file to a folder then:
1. Put your bootclasspath in bootclasspath.txt (follow the instruction below in Important Note 2).
2. Put the original odex and apk (or jar) file in the "original" folder.
3. Put your modded deodexed apk (or jar) file in the "mod" folder
4. Connect your phone with usb and make sure adb is working. ( and don't forget to check the USB Debugging in the settings of your device).
5. It is better that you boot in recovery mod, specially when odexing framework files.
6. Now run the script (.bat file), choose the one for apk or for the jar, according to file you want to odex.
7. after the script opens, write the name of the apk (or jar) file without the .apk (or .jar)
8. Odexing......done.
9. after finishing odexing, u can pull the odexed apk or jar file by pressing 1 then Enter, the it will be pulled in the (pulled_files) folder. Or if you want to restore the original apk (or jar) file with its odex, then press 2.
If you find this thread useful, pressing the thanks button is appreciated.
Important note: If you r using a rooted stock kernel, then u could face problem in remounting, hence a problem in the script. To solve this problem check this post.
Important note 2:To get Your BOOTCLASSPATH:
1. In adb:
adb devices
adb remount
adb shell echo $BOOTCLASSPATH
after that, you can right click and choose (mark), then mark the bootclasspath then press (enter) now you have copied the bootclasspath. go to bootclasspath.txt in the extracted folder of the script, then paste the bootclasspath and save the file.
OR
2. In the root of your device, in the init.rc file:
look for a line with (bootclasspath= ), then copy everything on the right hand of the equal mark. Go to bootclasspath.txt then paste it there, then save the file.
screenshot:
{
"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"
}
Credit:
Sicopat- for his guide on odexing.
M_j_Nazari- for his guide on odexing and his written commands for the odexing operation. thread link
I keep getting this error when trying to use your script. Help please?
Code:
remounting
'adb' is not recognized as an internal or external command,
operable program or batch file.
daveyannihilation said:
I keep getting this error when trying to use your script. Help please?
Code:
remounting
'adb' is not recognized as an internal or external command,
operable program or batch file.
Click to expand...
Click to collapse
This happened cuz u didn't add the adb directory to the system variables...
Anyway I updated it and it should work now without doing that...please try it and give me a feedback..
alkhafaf said:
This happened cuz u didn't add the adb directory to the system variables...
Anyway I updated it and it should work now without doing that...please try it and give me a feedback..
Click to expand...
Click to collapse
Ok mate. I'll download it and try it when I get home. Just for future reference though, how do I add the ADB directory to system variables??
daveyannihilation said:
Ok mate. I'll download it and try it when I get home. Just for future reference though, how do I add the ADB directory to system variables??
Click to expand...
Click to collapse
Go to my computer,then properties, in advanced there is Environment Variables, press it .. then in system variables add the (path) and write the directory that leads to the adb that u have when u installed android development tools ( it should be in platform-tools folder).
Try odexer first before doing that I can not try it cuz I don't know who to delete the adb from the system variables
Sent from tapatalk using sgs i9000
[ROM][GB][JW8] MesoROM v2.0 8/27/2012 Ultra Light-Smooth-Beauty
Google+
alkhafaf said:
Go to my computer,then properties, in advanced there is Environment Variables, press it .. then in system variables add the (path) and write the directory that leads to the adb that u have when u installed android development tools ( it should be in platform-tools folder).
Try odexer first before doing that I can not try it cuz I don't know who to delete the adb from the system variables
Sent from tapatalk using sgs i9000
[ROM][GB][JW8] MesoROM v2.0 8/27/2012 Ultra Light-Smooth-Beauty
Google+
Click to expand...
Click to collapse
Will do when I get home from work mate. So in about 6 hours. But who's counting?
daveyannihilation said:
Will do when I get home from work mate. So in about 6 hours. But who's counting?
Click to expand...
Click to collapse
Lol.. of course not.. cuz I will sleep now... its 6 am here and didn't sleep yet... and you r living the new day
Sent from tapatalk using sgs i9000
[ROM][GB][JW8] MesoROM v2.0 8/27/2012 Ultra Light-Smooth-Beauty
Google+
alkhafaf said:
Lol.. of course not.. cuz I will sleep now... its 6 am here and didn't sleep yet... and you r living the new day
Sent from tapatalk using sgs i9000
[ROM][GB][JW8] MesoROM v2.0 8/27/2012 Ultra Light-Smooth-Beauty
Google+
Click to expand...
Click to collapse
Ok I tried it and it didn't work properly.
Code:
remounting
adb server is out of date. killing...
* daemon started successfully *
List of devices attached
0019295d0b1c9e device
remount failed: Operation not permitted
Enter the name of the .apk file u want to odex (without .apk): Mms
sending dexopt-wrapper to the device
failed to copy 'dexopt-wrapper' to '/system/bin/dexopt-wrapper': Read-only file
system
Unable to chmod /system/bin/dexopt-wrapper: Read-only file system
sending the deodexed file to the device
failed to copy 'mod\Mms.apk' to '/system/app/Mms.apk': Read-only file system
Odexing the file:
Unable to create '/system/app/new_Mms.odex': Read-only file system
No error found
pushing the original files to the system
failed to copy 'original\Mms.apk' to '/system/app/Mms.apk': Read-only file syste
m
failed to copy 'original\Mms.odex' to '/system/app/Mms.odex': Read-only file sys
tem
Setting permissions..
Unable to chmod /system/app/Mms.odex: Read-only file system
Unable to chmod /system/app/Mms.apk: Read-only file system
Unable to chmod /system/app/new_Mms.odex: No such file or directory
copying signature from original file:
/system/bin/sh: busybox: cannot execute - Permission denied
replacing with the new odex file
/system/bin/sh: cp: not found
settings permissions for the new odex file
Unable to chmod /system/app/Mms.odex: Read-only file system
Unable to chmod /system/app/Mms.odex: Read-only file system
deleting worked- on file
rm failed for /system/app/new_Mms.odex, No such file or directory
Finished
To odex a file again, press any key
To pull the apk file, press 1
To exit, press 0
That's the error I keep getting. What does it mean? Am I doing something wrong?
daveyannihilation said:
Ok I tried it and it didn't work properly.
Code:
remounting
adb server is out of date. killing...
* daemon started successfully *
List of devices attached
0019295d0b1c9e device
remount failed: Operation not permitted
Enter the name of the .apk file u want to odex (without .apk): Mms
sending dexopt-wrapper to the device
failed to copy 'dexopt-wrapper' to '/system/bin/dexopt-wrapper': Read-only file
system
Unable to chmod /system/bin/dexopt-wrapper: Read-only file system
sending the deodexed file to the device
failed to copy 'mod\Mms.apk' to '/system/app/Mms.apk': Read-only file system
Odexing the file:
Unable to create '/system/app/new_Mms.odex': Read-only file system
No error found
pushing the original files to the system
failed to copy 'original\Mms.apk' to '/system/app/Mms.apk': Read-only file syste
m
failed to copy 'original\Mms.odex' to '/system/app/Mms.odex': Read-only file sys
tem
Setting permissions..
Unable to chmod /system/app/Mms.odex: Read-only file system
Unable to chmod /system/app/Mms.apk: Read-only file system
Unable to chmod /system/app/new_Mms.odex: No such file or directory
copying signature from original file:
/system/bin/sh: busybox: cannot execute - Permission denied
replacing with the new odex file
/system/bin/sh: cp: not found
settings permissions for the new odex file
Unable to chmod /system/app/Mms.odex: Read-only file system
Unable to chmod /system/app/Mms.odex: Read-only file system
deleting worked- on file
rm failed for /system/app/new_Mms.odex, No such file or directory
Finished
To odex a file again, press any key
To pull the apk file, press 1
To exit, press 0
That's the error I keep getting. What does it mean? Am I doing something wrong?
Click to expand...
Click to collapse
That's because your system isn't being set to read write. And it looks like your using an old adb
Sent from my Sensation
blahbl4hblah said:
That's because your system isn't being set to read write. And it looks like your using an old adb
Sent from my Sensation
Click to expand...
Click to collapse
Ok then. Is there a way of setting my file system to read write? And do I just need to update the SDK via Eclipse to get a newer version of adb??
daveyannihilation said:
Ok then. Is there a way of setting my file system to read write? And do I just need to update the SDK via Eclipse to get a newer version of adb??
Click to expand...
Click to collapse
You need to mount it as read write.
Ask the OP to fix the script since he made it
Sent from my Sensation
Did u boot into recovery while doing this operation ?
Sent from tapatalk using sgs i9000
[ROM][GB][JW8] MesoROM v2.0 8/27/2012 Ultra Light-Smooth-Beauty
Google+
alkhafaf said:
Did u boot into recovery while doing this operation ?
Sent from tapatalk using sgs i9000
[ROM][GB][JW8] MesoROM v2.0 8/27/2012 Ultra Light-Smooth-Beauty
Google+
Click to expand...
Click to collapse
No I didn't. Do I just need to be on the main screen of ClockWorkMod recovery? And do I put it into recovery before I plug it into the USB cable or half way through the process?
alkhafaf said:
Did u boot into recovery while doing this operation ?
Sent from tapatalk using sgs i9000
[ROM][GB][JW8] MesoROM v2.0 8/27/2012 Ultra Light-Smooth-Beauty
Google+
Click to expand...
Click to collapse
You don't need to go into recovery to do this.
Just make the script to mount system as a rw
Sent from my Sensation
blahbl4hblah said:
You don't need to go into recovery to do this.
Just make the script to mount system as a rw.
Sent from my Sensation
Click to expand...
Click to collapse
But the script already include that (adb remount)
I think the problem is in the adb itself.. I put the adb with two files with it related to it for the script to use... r these the only files related to adb? Cuz I can not test it as i can not delete the adb from the system variables.
Sent from tapatalk using sgs i9000
[ROM][GB][JW8] MesoROM v2.0 8/27/2012 Ultra Light-Smooth-Beauty
Google+
alkhafaf said:
But the script already include that (adb remount)
I think the problem is in the adb itself.. I put the adb with two files with it related to it for the script to use... r these the only files related to adb? Cuz I can not test it as i can not delete the adb from the system variables.
Sent from tapatalk using sgs i9000
[ROM][GB][JW8] MesoROM v2.0 8/27/2012 Ultra Light-Smooth-Beauty
Google+
Click to expand...
Click to collapse
Well my advice is to test this completely before releasing an update
blahbl4hblah said:
Well my advice is to test this completely before releasing an update
Click to expand...
Click to collapse
It should work for anyone who added the adb path to the system variables...I really tested it and works fine.
The only thing that I didn't test is how the script run independently (using the adb which comes with it without using the adb of the platform-tools by adding its path to the system variables )
Sent from tapatalk using sgs i9000
[ROM][GB][JW8] MesoROM v2.0 8/27/2012 Ultra Light-Smooth-Beauty
Google+
daveyannihilation said:
No I didn't. Do I just need to be on the main screen of ClockWorkMod recovery? And do I put it into recovery before I plug it into the USB cable or half way through the process?
Click to expand...
Click to collapse
Bro. Did u add the adb path to the system variables and tried ?
If u want the instructions Google it and u will probably find it.
Sent from tapatalk using sgs i9000
[ROM][GB][JW8] MesoROM v2.0 8/27/2012 Ultra Light-Smooth-Beauty
Google+
alkhafaf said:
Bro. Did u add the adb path to the system variables and tried ?
If u want the instructions Google it and u will probably find it.
Sent from tapatalk using sgs i9000
[ROM][GB][JW8] MesoROM v2.0 8/27/2012 Ultra Light-Smooth-Beauty
Google+
Click to expand...
Click to collapse
No mate I didn't because you asked me not to so that I could test how it works independently for you. You gave me the instructions in a previous post in this thread.
If that's the only way that I can get it to work (by adding it to the system variables) then I will just have to do that. I don't mind testing it for you, but it's up to you.
Let me know what you would like me to do.
daveyannihilation said:
No mate I didn't because you asked me not to so that I could test how it works independently for you. You gave me the instructions in a previous post in this thread.
If that's the only way that I can get it to work (by adding it to the system variables) then I will just have to do that. I don't mind testing it for you, but it's up to you.
Let me know what you would like me to do.
Click to expand...
Click to collapse
I really appreciate yhat , thanks alot..
But u can try to to add The adb to the system variables, maybe the problem is not with the adb..
If it works for u then please give me a feedback about it
Sent from tapatalk using sgs i9000
[ROM][GB][JW8] MesoROM v2.0 8/27/2012 Ultra Light-Smooth-Beauty
Google+

[MultiTool][28/5/13]ROM TOOLS v3(dex de/recompiler with extended features)

Hi guys,
Here is third version of my ROM Tools PC Version (Automatic decompile classes.dex file to edit smali content). It is major release of this tool but further updates will follow.
After testing the third version on bunch of Devices successfully, here is the general release of it. This tool has been mainly constructed to decompile and recompile classes.dex of apk's and jar files without having to tediously type whole commands. However, there are few features I have added in it which in my opinion are useful bt not that much connected to dex operations.
What's New ?
Here is list of New features and detailed description of them:
Note:- No other fetaure except decompiling/recompiling will work if you have not connected your phone via USB cable and USB debugging is on.
Reboot Options:
Reboot:
Will normally reboot the phone
Necessary when replaced some framework file or pushed a system file
Code used
Code:
adb reboot
Click to expand...
Click to collapse
Recovery:
Reboot your phone in recovery mode
Necessary when thinking of flashing something and want to save time and instead of pressing a combo while phone is turned off.
Code used:
Code:
adb reboot recovery
Click to expand...
Click to collapse
Hot reboot: *May not work on all phones*
Reboots your phone faster
It reboots your phone faster by just killing all system processes forcing the GUI to restart. Preferred as its fast and reliable when pushing themed files. Not recommended if doing more intensive replacing(Sometimes syetem needs rebooting normally to show changes)
Code Used:
Code:
adb shell killall system_server
Click to expand...
Click to collapse
Miscellaneous:
logcat:
1. Display logcat:
Displays logcat with v long formatting with 10000+ lines.
Easy than typing whole command. Its with formatting. Has more lines than normal command prompt display
Code Used:
Code:
adb logcat -v long
Click to expand...
Click to collapse
2. Save logcat:
Saves logcat in main folder. A random prefix is added to each locat so that they do not get replaced by newer one.
Easier than typing the command. With good formatting.
Code used:
Code:
adb logcat -v long > logcat%random%.txt
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Fix permissions: *ignore errors*
Fixes permissions of /system/app, /system/framework/, system/etc/init.d
Necessary when replacing many files in system and saving time to set correct permissions. Sometimes, due to incorrect permissions, phone won't boot or scripts won't run. Very useful command to save you from these headaches.
Ignore errors because there may not be init.d folder present in your device. So it will show error for that, but all other permissions will be corrected
Code Used:
Code:
adb shell chmod 644 /system/app/*
adb shell chmod 644 /system/framework/*
adb shell chmod 777 /system/etc/init.d
adb shell chmod 777 /system/etc/init.d/*
Click to expand...
Click to collapse
Reset Password: *May not work on all devices* *Ignore errors*
Resets your pin, password, pattern lockscreen
Ignore errors because it will try to delete 4 files and there will be only one correct file to be deleted based on what type of password you have set.
May not work on all devices because I have only tested it on Gingerbread Samsung devices. *Confirmed to be working on rooted mobiles only*
Code Used:
Code:
adb shell rm /data/system/gesture.key
adb shell rm /data/system/password.key
adb shell rm /sd-ext/system/gesture.key
adb shell rm /sd-ext/system/passwork.key
Click to expand...
Click to collapse
Screenshot:
{
"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"
}
Changelog :
Code:
Version 3
28 Ma 2013
-Added Reboot
-Added Recovery
-Added Hot Reboot
-Added logcat
-Added Fix Permissions
-Added Reset Password
-Added an ugly easter egg
Version 2
18 April 2013
- Changed it from a script to multi tool
- Added folders for convenience
- Made eye candy
- Made it noob proof
- It's like changing Baichung Bhutiya to Lionel Messi
Version 1
- Just one smali.bat file and one baksmali.bat file with one one line each of commands to Baksmaling and Smaling (duh!)
PHP:
I am not responsible for your device being dead,
you flashing stock ROM,
you using your device as a brick,
or the decrease in love of your Girlfriend because you use your mobile so much
What does it do?
As you are aware, there are smali files in jar files and apks you need to edit for adding 4-way boot into power menu, extending Power options, changing clock colour, adding CRT effect, changing the pop up that comes up when you touch the easter egg image, adding brightness slidebar, adding lidroid toggles, etc and so manyyyy things
In order to edit them, you need to decompile apk and classes.dex
It is not a problem in editing smali files of apk as they are decompiled itself by APK-Multitool(I use it)
But, it does not work for jar files
I know that there is smali.jar and baksmali.jar for it but I don't like repeatedly commading same operations when I can do it with one click
This program decompiles and recompiles classes.dex from any jar or apk in one click(very useful when you only need to decompile dex file only)
Pre-Requisites:-
*PC
*My Tool
*Java JDK(or JRE) (If you are running Windows 7 64 bit, you may need to add Java in environment variable)
*7-Zip (For in zip operations[pull out classes.dex])
*classes.dex file(on which you will operate)
*Android Phone to be connected to PC with USB Debugging on to use features other than decompiling and recompiling
Guide:-
1. Download my Tool.
2. Extract it in any folder.
3. Place classes.dex in the input folder. DO NOT RENAME IT.
4. Run script.bat. Choose Option 1, Decompile classes.dex . In a few seconds, there will be a prompt that it is "Done. Press anykey to continue" (Note:- If you have UAC [User Account Control] on, you may run it as administrator or it might not be able to create folder if you have extracted it in System Drive)
5. Go to decompiled folder. There will BE classout folder. Make any changes in smali in classout folder(ALWAYS USE NOTEPAD++). DO NOT RENAME CLASSOUT FOLDER.
6. Again open script.bat if you had closed it or if not, then return to the window.
7. Choose 2 option "Compile classes.dex" . A new classes.dex will be formed in output folder.
8. Enjoy
Note:- Once you change things in classout folder, and you decompile another classes.dex, previous version in decompiled folder will be deleted. So if you want backup of it, move it somewhere else
Same thing will happen to classes.dex on output folder when you compile another one.
Other options
1. Connect you phone to PC with USB Debugging on and not on USB Tethering. Make sure you aren't using adb before using the tool. If so, Go to Alt+Ctrl+Del and to Task Manager and close adb.exe process
2. Choose the option what you want.
a) Logcat, either view or save it
If you view it, a window will appear with logcat in it. If you are done, just close that window
If you save it, it will be saved in the same folder where Script.bat is present. To stop saving it, Press Ctrl+C and type Y and press Enter
b) Reboot, may take some time in rebboting and rebooting in recovery.
c) Fix permissions and Reset password
3. Try to find Easter Egg
Download:-
ROMToolsPCv3.zip
Reserved
Definitely easier than the "java -jar smali.jar..." command.
Thank you.
Trying it out...
Thank You all
If you have suggestions, please post them here.
Great tool .Try to make one for resources also :thumbup:
Sent from my GT-I9082 using Tapatalk 2
balliboxer said:
Great tool .Try to make one for resources.dex also :thumbup:
Sent from my GT-I9082 using Tapatalk 2
Click to expand...
Click to collapse
Sure
Didn't knew there were such files too
balliboxer said:
Great tool .Try to make one for resources.dex also :thumbup:
Sent from my GT-I9082 using Tapatalk 2
Click to expand...
Click to collapse
Can you tell me which file contain these?
I searched it but did not find much
Are you talking about resources.arsc?
iamareebjamal said:
Can you tell me which file contain these?
I searched it but did not find much
Are you talking about resources.arsc?
Click to expand...
Click to collapse
Yea resources.arsc mistakenly written.dex
Sent from my GT-I9082 using Tapatalk 2
balliboxer said:
Yea resources.arsc mistakenly written.dex
Sent from my GT-I9082 using Tapatalk 2
Click to expand...
Click to collapse
Umm. That is automatically done by apktool
I did not find any way to do it separately
iamareebjamal said:
Umm. That is automatically done by apktool
I did not find any way to do it separately
Click to expand...
Click to collapse
But in apktool we have to manually put commands and sometimes it give error.
Sent from my GT-I9082 using Tapatalk 2
balliboxer said:
But in apktool we have to manually put commands and sometimes it give error.
Sent from my GT-I9082 using Tapatalk 2
Click to expand...
Click to collapse
Use apk multitool or vts instead
Linux Multitool
iamareebjamal said:
Thank You all
If you have suggestions, please post them here.
Click to expand...
Click to collapse
Here is something equal written for Linux.
http://d-h.st/UEh
Hope you like it.
Greetings.
Version 3 Released and OP Updated *Major Release*
iits cool dude thanks it helps a lot
badagila said:
iits cool dude thanks it helps a lot
Click to expand...
Click to collapse
Thanks. But don't quote the whole OP for saying something.
It takes some extra scrolls to move down o the point.
So, can you please remove the quote from you post?
----------------------------------------------------------------------------------------------------------------------------------------------------------
And guys, reset lock feature is now confirmed to be only working on rooted phones
Cheers
I can confirm "reset password" worked on sgs3 i727 on aokp rom, it still asking for a patron but any patron unlock it, for pass lock or pin it just reset it to default, big work thx
juancollado2003 said:
I can confirm "reset password" worked on sgs3 i727 on aokp rom, it still asking for a patron but any patron unlock it, for pass lock or pin it just reset it to default, big work thx
Click to expand...
Click to collapse
Yes, it works like that only
It will show the password screen but phone will get opened if you input any password
Funny though (Good for trolling people)
juancollado2003 said:
I can confirm "reset password" worked on sgs3 i727 on aokp rom, it still asking for a patron but any patron unlock it, for pass lock or pin it just reset it to default, big work thx
Click to expand...
Click to collapse
Yes, it works like that only
It will show the password screen but phone will get opened if you input any password
Funny though (Good for trolling people)
Does this work on linux?

[SCRIPT] Recovery & Kernel Management Tool

Hi guys,
I had some free time and decided to write this script specially for Terminal Emulator's users like me.
It's a simple script allows you to:
Backup
Restore backup
Flash
Reboot in any mode
Copy the script to /system/bin
recovery and /or kernel IMG files without the need to input so long codes again and again.
This script will make a new folder named Recovery-Kernel-Tools in your internal storage, including 3 more folders inside it:
Backups (max one backup for each partition, names are "case-sensitive")
Flash (but any recovery.img / boot.img to flash them, names are "case-sensitive")
Input (for future use)
Everything is self explanatory, when you execute this script for the first time, it will ask you to set your partitions, you can change them later at any time.
If it's useful for you and you need more options, feel free to suggest me.
Download link: ReKeTv1
After downloading, cd to installation folder and input:
Code:
su
sh ReKeTv1
If you're using Script Manager, just execute it as root.
Latest busybox is required.
Bassel Bakr said:
Hi guys,
I had some free time and decided to write this script specially for Terminal Emulator's users like me.
It's a simple script allows you to:
Backup
Restore backup
Flash
Reboot in any mode
Copy the script to /system/bin
recovery and /or kernel IMG files without the need to input so long codes again and again.
This script will make a new folder named Recovery-Kernel-Tools in your internal storage, including 3 more folders inside it:
Backups (max one backup for each partition, names are "case-sensitive")
Flash (but any recovery.img / boot.img to flash them, names are "case-sensitive")
Input (for future use)
Everything is self explanatory, when you execute this script for the first time, it will ask you to set your partitions, you can change them later at any time.
If it's useful for you and you need more options, feel free to suggest me.
Download link: ReKeTv1
After downloading, cd to installation folder and input:
Code:
su
sh ReKeTv1
If you're using Script Manager, just execute it as root.
Latest busybox is required.
Click to expand...
Click to collapse
There are three files in it...which 1 to download?
Sent from my GT-S7500 using Tapatalk 2
tandon.ayush said:
There are three files in it...which 1 to download?
Sent from my GT-S7500 using Tapatalk 2
Click to expand...
Click to collapse
ReKeTv1
Don't forget to leave some suggestions.
Bassel Bakr said:
ReKeTv1
Don't forget to leave some suggestions.
Click to expand...
Click to collapse
Tried with both terminal emulator and script manager
Got this error
" exec /system/bin/sh '/mnt/sdcard/download/ReKeTv1.txt'
# bin/sh '/mnt/sdcard/download/ReKeTv1.txt'
head: /mnt/sdcard/Recovery-Kernel-Tools/partitions: No such file or directory
tail: can't open '/mnt/sdcard/Recovery-Kernel-Tools/partitions': No such file or directory
tail: no files
Root access denied!
Please issue su command first"
Any solution?
Sent from my GT-S7500 using Tapatalk 2
tandon.ayush said:
Tried with both terminal emulator and script manager
Got this error
" exec /system/bin/sh '/mnt/sdcard/download/ReKeTv1.txt'
# bin/sh '/mnt/sdcard/download/ReKeTv1.txt'
head: /mnt/sdcard/Recovery-Kernel-Tools/partitions: No such file or directory
tail: can't open '/mnt/sdcard/Recovery-Kernel-Tools/partitions': No such file or directory
tail: no files
Root access denied!
Please issue su command first"
Any solution?
Sent from my GT-S7500 using Tapatalk 2
Click to expand...
Click to collapse
Run as root
Or in terminal emulator type
su
First
Bassel Bakr said:
Run as root
Or in terminal emulator type
su
First
Click to expand...
Click to collapse
Did both...still the same error
Any solution??
Sent from my GT-S7500 using Tapatalk 2
tandon.ayush said:
Did both...still the same error
Any solution??
Sent from my GT-S7500 using Tapatalk 2
Click to expand...
Click to collapse
In terminal emulator:
su
set -x
sh ReKeTv1 2> /sdcard/log1.txt
sh -n ReKeTv1 2> /sdcard/log2.txt
Then upload log1.txt & log2.txt files here.
Bassel Bakr said:
In terminal emulator:
su
set -x
sh ReKeTv1 2> /sdcard/log1.txt
sh -n ReKeTv1 2> /sdcard/log2.txt
Then upload log1.txt & log2.txt files here.
Click to expand...
Click to collapse
"No such file or directory"in both logs
Sent from my GT-S7500 using Tapatalk 2
tandon.ayush said:
"No such file or directory"in both logs
Sent from my GT-S7500 using Tapatalk 2
Click to expand...
Click to collapse
After set -x cd to installation directory then complete the code.

Categories

Resources