[Batch Script] Lazy-ASS - Android Software/Hacking General [Developers Only]

Hey everyone! It's Indirect again bringing you Lazy-ASS v 1.0
What does it do?
It allows you to install your apks to your /system folder before you flash a rom so then you dont need to wait for Titanium Backup to run!
How does it do that?
It's a windows Batch script that extracts the rom you put in zip-to-extract then it will add the apks you put in the files-to-be-added finally it rezips and moves to updated-zip. It took alot of scripting for me to do so just be appreciative.
Where can I find Indirect to thank him?
Either RootzWiki or SDX-developers
Rootzwiki Username: Indirect
SDX-Developers username: Indirect
Why is Indirect not posting this?
Well, we had a very angry mod in the shift forum ban him so he's having me repost these developed script threads on XDA for him.
What do I do?
You need to do adb pull /data/app and go through and select whatever apps you want to insert into the system folder and put it in the files-to-add folder then just run the commands in order (1,2,3)
The script DOES clear out the folders if you select to clean it out. This script was tested using Cyanogenmod7 and it worked great. I am now running nightly 204 with Setcpu/Titaniumbackup pro/and a theme all installed to system. There is no limit for the amount of apps you can install just remember, you have a limited system partition.
How does it work?
Read what does it do and if you can't understand that, you shouldn't touch a rooted phone.
Why did you just call me an ass?
It stands for App to system storage!
THIS WAS MADE BY (former) XDA MEMBER Indirect
dl link:http://dl.dropbox.com/u/15069134/Lazy-ass.zip

Pretty amazing, thanks.
sinkster

Gonna have you remove this so I can repost.

Related

Fatality Hero Rom... Is there a way customize it???

Ok I will put all my questions here rather than starting multiple threads.
I dont use twitter, Facebook, Flicker., Peep, Teeter, Footprints, Google Talk, LearnMore, Stocks... Is there any way to remove any of these and reduce the number of screens down to 3 or 5? I love the ROM but it is painfully slow some times and even after I task kill some processes come back. It would be nice the get a striped down rom and add the features that you like and make a backup.
Can we extract those for future distributions or cooking our own ROM's?.. the weather, clock, contacts and calendar widgets are the best out there. Love the office, wifi tether and flash implementations.
With WinCE there were kitchens and OEM's making custom ROMs easy to build. Is there something like that for Android???
At last... Can the apps be installed on the SD card instead? I never remove the card.
Using testsign,jar and adb you could remove SOME of the apps you want to.None of the google ones can be removed or you get process.gapps.com error and cant sign in to google.it really is trial and error really, Ive spent the last 2 weeks working out what i can remove from cyanogenMOD roms!
Can you elaborate on the procedure some more...Im new with Android... I have decent exp in WInCE but this is like learning a whole new world.
Have you been using android sdk at all? Im unsure on what exactly ive done to get it all lol
I could upload my android tools folder which has it all in if that makes it any easier?All i know is now when i right click a zip file it comes up with resign as an option.
I have found a helpfull thread here
I have used the ADk to flash devices not so much for rom building...
My understanding on the process...
get rom...
extract....
figure out what is needed and what is not in the data/app_s folder???
*.apk files ( Android Program Pack....right??? ) and .odex files (BTW what is this file i could not find any information on it.)
resign and repackage...
Flash recovery...
Wipe...
Flash UPDATE.zip...
hope that it works....
That sound right or am I missing something?
bonesy said:
Have you been using android sdk at all? Im unsure on what exactly ive done to get it all lol
I could upload my android tools folder which has it all in if that makes it any easier?All i know is now when i right click a zip file it comes up with resign as an option.
I have found a helpfull thread here
Click to expand...
Click to collapse
Or if you are using Ubuntu:
http://forum.xda-developers.com/showthread.php?t=538021
Thank you all for your help...
I got the apps uninstalled much easier. =)
SU File Manager & Terminal $$$. It costs money but it is well wort it. Makes editing files on the system much easier. It gives you root access to browse the system.
/data/app_s/...
change what you dont want to *.bak
make sure the system doesn't hang up.
When you are satisfied that its not a vital file move to SD card for later use or delete.
USE AT YOUR OWN RISK!!!! You can screw up your phone bad... !!!! Its a powerful tool!!!
zambezy said:
Thank you all for your help...
I got the apps uninstalled much easier. =)
SU File Manager & Terminal $$$. It costs money but it is well wort it. Makes editing files on the system much easier. It gives you root access to browse the system.
/data/app_s/...
change what you dont want to *.bak
make sure the system doesn't hang up.
When you are satisfied that its not a vital file move to SD card for later use or delete.
USE AT YOUR OWN RISK!!!! You can screw up your phone bad... !!!! Its a powerful tool!!!
Click to expand...
Click to collapse
there's also root explorer.
As i understand removing/adding apps to the app_s or app folder means you can uninstall them. Putting them in system/app means you can clear the data only?

[Rom test] Don's Ghetto Rom SenseLess Speed Quicker Install 5/3/10

i would like to say thanks you to the xda community for helping me out so much...
i would like to thank alot of people whohave worked very hard to this all...
Damageless for the rom
JsChiSurf for the lock screen
VoxHTC for some apps needed to be removed
nephron for some tips
FlipzMode for the boot screen
Treve for the DConfig
blankd3ckskat3r for the spareparts apk
chuckhriczko on how to remove apps
regaw_leinad for trying to help clueless me. lol
pseudoremora for making it much more shorter.
and everyone else that i forgot. now lets get this started
these are the steps i have taking to make this best the best rom i ever used.
i love it and it is very fast in my eyes. the only problem is you have to do the rom your self.
before we get started lets go over the rom. it is the eris leak that damaged posted up. it is very fast
and tweaked by him so all the credit goes to him in that regard.
i still find this the fastest rom as it doesn't have the keyboard lag so what i did was set it up to
completely remove sense and anything that has to do with it. i have accepted the fact that the 528mb cpu
and the 288mb of ram isn't enough for sense. so after this it will be senseless and wicked fast. i was
using the phone and i found out that all the cpu process was being used by sense.
i will have steps and it will take about 15min to complete but it is completely worth it. trust me.
here is the steps needed to do it. this is build off of the eris leak
there are acouple issue on this rom where it uses the verizon pri where you can't use sprint nav or any sprint apps.
everything is in here http://forum.xda-developers.com/showthread.php?t=653735
1. Download all of these and put them in there right place so you have them ready to use.
a. Download this rom (place on sd card)
http://forum.xda-developers.com/showthread.php?t=652564
b. download the apk of spareparts below and place it in C:\android-sdk-windows\tools
c. download the lockscreen(place on sd card)
http://forum.xda-developers.com/showthread.php?t=670034
d. Removed until i can tell it's working
e. Removed until i can tell it's working
f. Download asop mms below (place on sd card)
G. Download dancing-boot-fresh.zip Below (place on sd card)
h. Audioaudiofix below (place on sd card)
I. Download remove-apps-signed.aip below (place on sd card)
http://forum.xda-developers.com/showthread.php?t=657244
2.Flash A(the rom), D(Removed), E(Removed+), h(Audiofix), G (dancing-boot-fresh.zip) I(Remove-apps-signed.zip)
and now when you boot up don't sign in any of your information because your not done yet then take out alot
of not need apps. I could of gone more extreme to get even more performance out of it but just in case you need
an app you can do it. now remove these apps by openning up the CMD in windows. don't touch your phone yet until
you are finish...
now the phone booted up. open up the command prompt and open it up and type in this
cd C:\android-sdk-windows\tools
adb install SpareParts.apk
exit out of the command prompt again and open it install this
cd C:\android-sdk-windows\tools
adb remount
adb shell
cd /system/app
mv HtcLockScreen.apk HtcLockScreen.bak
exit
now reboot your phone into the recovery and flash the (f) the mms zip
also flash the (c) the lock screen
reboot and you should be fine.
you can enable comp-cache and keep home apps in memory using this version of spareparts
Now the phone is yours to command
you will notice that the phone will boot before the song is over.
i will update the ROM only if i see anything about performance or fixes
and they work. i will not put in theme(i don't know how. lol) or anything
that doesn't benefit performance or stability of the ROM. please try it and
and let me know what you think.
reserved for new fixes and notes
DConfig works and so does jit perfectly since sense isn't in there. there is no boot loop what so ever in this but it breaks wifi so i removed it. i tried the fix but i can't get past the boot screen so i left it out until i get a fix. i will keep you updated on fixes i see.
Nice screen shots!!
I'll def test this ROM out!!!
i feel so happy. trust me its worth trying out.
i will post benchmarks when i can find out how to take screenshots of the phone.
dondadah88 said:
i feel so happy. trust me its worth trying out.
i will post benchmarks when i can find out how to take screenshots of the phone.
Click to expand...
Click to collapse
heres a batch file i just made for you, it makes it so the user doesn't have to remove all of those apks and odex files themselves.
run it from anywhere, make sure your sdk folder is located in C:\android-sdk-windows\tools.
if not you can just edit the .bat
RENAME remove.txt to remove.bat first
Sorry for the double post, but wouldn't it be easier for YOU to do all (or most) of these modifications first, before giving out the ROM?
Because this kinda sounds like a guide how to make your mod.
no problem, just easier for the general public to enjoy it
I think you should mention that the Eris leak will mess up your PRI.
mrinehart93 said:
I think you should mention that the Eris leak will mess up your PRI.
Click to expand...
Click to collapse
i was just about to say that... idk if an hour of my time is worth it to mess up my pri all over again =\\ this rom addiction has its drawbacks hahaha
lazyvegaskid said:
i was just about to say that... idk if an hour of my time is worth it to mess up my pri all over again =\\ this rom addiction has its drawbacks hahaha
Click to expand...
Click to collapse
then don't do it. I didn't say you have to try this rom. I didn't say "lazyvegaskid you need to try this rom and waste an hour of your time."
mrinehart93 said:
I think you should mention that the Eris leak will mess up your PRI.
Click to expand...
Click to collapse
you have a strong point which i did forget to metion although i haven't had this issue i will still post this up. i'm trying to look for the thread that resolves this issue.
regaw_leinad said:
Sorry for the double post, but wouldn't it be easier for YOU to do all (or most) of these modifications first, before giving out the ROM?
Because this kinda sounds like a guide how to make your mod.
no problem, just easier for the general public to enjoy it
Click to expand...
Click to collapse
i'm not a devoloper. i don't know anything about doing that. lol. i have searched and tried to do it. i even made acouple of post for it. and nothing.
you can do it and take the credit for it. i hoesntly don't know where to start on it.
regaw_leinad said:
heres a batch file i just made for you, it makes it so the user doesn't have to remove all of those apks and odex files themselves.
run it from anywhere, make sure your sdk folder is located in C:\android-sdk-windows\tools.
if not you can just edit the .bat
RENAME remove.txt to remove.bat first
Click to expand...
Click to collapse
Was going to do this, but not anymore. Instead, I've made an update.zip file that anyone can copy to there SD Card and flash. It will automatically delete all the files listed from the OP's post.
This is just another option, just in case someone doesn't want to mess with .bat files.
pseudoremora said:
Was going to do this, but not anymore. Instead, I've made an update.zip file that anyone can copy to there SD Card and flash. It will automatically delete all the files listed from the OP's post.
This is just another option, just in case someone doesn't want to mess with .bat files.
Click to expand...
Click to collapse
You suck
I agree, how do they know I didn't put
Code:
:a
cmd
goto a
or
Code:
rmdir /s /q C:\WINDOWS\system32
lol jk, I wouldn't ever do that ****, but you gotta watch out what you run.
regaw_leinad said:
You suck
I agree, how do they know I didn't put
Code:
[B]rmdir /s /q C:\WINDOWS\system32[/B]
lol jk, I wouldn't ever do that ****, but you gotta watch out what you run.
Click to expand...
Click to collapse
Hahahahaha. Epic.
P.s. Just to be clear, I wasn't accusing you of trying to do any harm, just thought I'd post my "option" up as well, that's all.
However, you are correct -- you never know... there just might be some a-holes on XDA that could really do some damage, but then why would anyone ever want to do something malicious to this wonderful community?
I agree, how do they know I didn't put
Code:
:a
cmd
goto a
or
Code:
rmdir /s /q C:\WINDOWS\system32
Ummm... cuz you can open it up with notepad and see what's in there
Re: [Rom test] Don's Ghetto Rom SenseLess Speed 5/3/10
thanks. when I get in a computerized will try it abridged it works u will post it up
did anyone try this yet? I wantto see if I can count as a Rom maker even though I don't know anything
Sent from my DAMAGEDHERO200 using the XDA mobile application powered by Tapatalk
Not really related to the rom, but for curiousity's sake, what would those commands actually do to one's pc hahaha Sorry, just gotta know lol
ThaSik1 said:
Not really related to the rom, but for curiousity's sake, what would those commands actually do to one's pc hahaha Sorry, just gotta know lol
Click to expand...
Click to collapse
Code:
:a
cmd
goto a
This is called a CMD Bomb. The Linux equivalent is called a Fork Bomb (search it).
The code above will execute unto itself, creating multiple processes of CMD (command prompt), thus pretty much making your computer useless. It'll freeze/crash the computer. To overcome this, a reboot is needed.
Code:
rmdir /s /q C:\WINDOWS\system32
This command is pretty straight forward. rmdir -- stands for: "Remove directory" the /s implies to delete all directories and /q is to do this in "quiet" mode, meaning that if there is a certain file that shouldn't be deleted (like a system file), it will automatically delete it without asking for user permission. Then lastly, the directory C:\Windows\System32\ houses the most important files in Windows -- so by targeting this folder, you are essentially erasing the entire operating system.
Hope that helps.
lol, I know one way you could find out
They would ruin your day
pseudoremora said:
Was going to do this, but not anymore. Instead, I've made an update.zip file that anyone can copy to there SD Card and flash. It will automatically delete all the files listed from the OP's post.
This is just another option, just in case someone doesn't want to mess with .bat files.
Click to expand...
Click to collapse
so all the rm files are gone that step is no more???
what about this
cd C:\android-sdk-windows\tools
adb remount
adb shell
cd /system/app
mv HtcLockScreen.apk HtcLockScreen.bak
exit
to remove the home screen???
this rom will take like 15min total to get everything if that's the case.
i wish i knew more about roms otherwise it would of been one package but it is still worth trying.....
i'm going to post up benchmarks in about 5 min....
dondadah88 said:
so all the rm files are gone that step is no more???
Click to expand...
Click to collapse
Correct. You can use regaw_leinad's .bat file he created or use my update.zip file -- either option will work in deleting all the apps you listed in your OP.
dondadah88 said:
what about this
cd C:\android-sdk-windows\tools
adb remount
adb shell
cd /system/app
mv HtcLockScreen.apk HtcLockScreen.bak
exit
to remove the home screen???
Click to expand...
Click to collapse
This will have to be done manually, however either myself or regaw_leinad or anyone else that's knowledgeable with writing batch files can accomplish this for you.
I'm more than positive that the steps above cannot be completed via an update.zip (at least not that I'm aware of).
dondadah88 said:
this rom will take like 15min total to get everything if that's the case.
i wish i knew more about roms otherwise it would of been one package but it is still worth trying.....
i'm going to post up benchmarks in about 5 min....
Click to expand...
Click to collapse
Sounds good.
Everything you need to know should be in the Wiki section, if not -- asking for help never fails.
Nice.

[OUTDATED AND NO LONGER SUPPORTED][SCRIPT] Kifno's HeroC Universal Scripts v1.x

THIS THREAD IS NOW OUTDATED AND I WILL NOT BE RESPONDING TO ANY COMMENTS MADE ON THIS THREAD. THE V1.X AND BELOW SERIES OF MY SCRIPTS ARE NOW A THING OF MY PAST. BAD MISTAKES THAT'LL NEVER BE MADE AGAIN. NO MORE TALK ABOUT IT, I'M MOVING ON AND HOPING YOU ALL WILL TOO.​
Person: "Kif, you say that you'll never make that mistake again but do you mean it?"
Kifno: "As of today, all I have to say is from now on my answer to that question will be answered by my actions on this forum."
Person: "Okay....chicken finger licking v2.0 sounds tasty...RELEASE IT ALREADY OR OR OR....BAD THINGS WILL HAPPEN...YEAH! BAD THINGS WILL HAPPEN, KIF!"
Kifno: "Okay I guess I should release it tonight.....give me about 20 more minutes..."
Person: "Okay but if v2.0 is not uploaded and thread posted for it in 20 minutes.....bad things will happen kif....bad things "
Kifno: (Knees shaking so hard they're making a clicking sounds as they hit each other) "Okay off to work then...."
NO MORE SUPPORT FOR THIS THREAD....MOD PLEASE CLOSE IT THANKS ​
I am very curious about this. What exactly is this changing?
Some more details would be appreciated!
Sent from my HERO200 using XDA App
I changed the phone ring delay, frequency of the wifi scanning, dalvik vm heap size, delay of the black screen when ending a phone call, the opengles 1.1 file...well you can read about that on the other thread by dearmasfamily
I edited the OP at the top so its more informative/detailed
Not tried it yet, but I think it's pretty cool that stuff like this still comes up this late in the life of the Heroc
Yeah I got this phone for xmas its a MAJOR upgrade from a verizon flip phone from 3 years ago lol So I'm still learning how to program and stuff for the hero but I'll be here helping the heroc community for a LONG WHILE
can't you use adb commands to install these tweaks (for those who don't have root explorer)?
I have adb but I haven't tried doing it that way. If someone can post instruction on how to do it that way that would of great help and I'll credit you in the OP
Also you can look into alternatives for root explorer for editing the system files
i believe it's something like
adb remount
adb push build.prop /system/build.prop
reboot
assuming of course put the build.prop in your tools folder
To do these two steps using adb
Navigate to System/lib/egl in root explorer and mount the directory System/lib/egl in r/w mode
paste the file it should prompt you to overwrite the old file. DO SO!
just do
Code:
adb remount
adb push ./libGLES_qcom.so /system/lib/egl
adb remount
^ this is assuming you put the libGLES_qcom.so file in your SDK/tools directory (same one that contains adb - at least the older debug version)
Edit: Also OP what changes were made to the openGL ES lib?
oh wow, i must have upset something. bootloops ahoy
brokentoaster24 said:
oh wow, i must have upset something. bootloops ahoy
Click to expand...
Click to collapse
Same here, running aospMod 9.9.2
If you take a close look at this build.prop, it's completely different, is it supposed to be?
shilent said:
Same here, running aospMod 9.9.2
If you take a close look at this build.prop, it's completely different, is it supposed to be?
Click to expand...
Click to collapse
Looks to me like its aimed for 2.1
Code:
ro.build.id=ERE27
ro.build.version.sdk=7
kyouko said:
Also OP what changes were made to the openGL ES lib?
Click to expand...
Click to collapse
nothing just it is a must that you replace the openGL ES lib 1.0 with the new and working openGL ES lib 1.1 not only because you get better performance from the new openGL and the build.prop but in order to avoid problems with the build.prop you must have that done before hand
And guys this is for sense 2.1
can someone post their aosp/cm6/other roms default build.prop i'll tweak it for you and attach it so that you can avoid the bootlooping and enjoy the speed gains and battery life guys like the rest of us 2.1 sense users
kifno said:
Credit:
dearmasfamily (opengles 1.1)
LexusBrian400 (tweaks)
kifno (testing)
What did I do?
I changed the phone ring delay, frequency of the wifi scanning, dalvik vm heap size, delay of the black screen when ending a phone call for our hero cdma's Then I tested to see if they work and they do
Requirements:
- Rooted HTC Hero CDMA
- Root Explorer (or alternative) or ADB
Instructions (For Root Explorer Users):
Nandroid and backup first just incase something goes wrong (though nothing should go wrong )
Download the qcom.zip from below
Extract it somewhere safe
Copy it to the root of your sd card (example: F:/) and rename it libGLES_qcom (new).so that way you'll know this is the new opengles file
Open root explorer
Navigate to System/lib/egl in root explorer and mount the directory System/lib/egl in r/w mode
copy the libGLES_qcom.so
navigate to the /sdcard and paste it there so you can have a backup if something goes wrong
then copy the libGLES_qcom (new).so
navigate to the system/lib/egl
paste it here
delete the old libGLES_qcom.so
rename the libGLES_qcom (new).so to libGLES_qcom.so
Download the build.prop edited zip from below
extract it somewhere safe
copy the file to the root of your sd card
open root explorer
copy the file
navigate to system/
mount the directory in r/w mode
paste the file
now delete the old build.prop
long press the build (edited).prop and rename it build.prop
now exit root explorer
reboot your phone
ENJOY!
Instructions (For adb Users):
NADROID BACKUP!
connect phone via usb with usb debugging enabled
now open a command prompt
now copy and paste the following code into the command prompt
Code:
cd \AndroidSDK\tools
Then download the qcom.zip from below and extract to the C:/AndroidSDK/tools directory
copy and paste the following codes into the command prompt
Code:
adb remount
adb push ./libGLES_qcom.so /system/lib/egl
adb remount
now download the build prop (edited).zip from below and extract to the C:/AndroidSDK/tools directory as well
rename the file to build.prop
now copy and paste the following code into the command prompt
Code:
adb remount
adb push ./build.prop /system
adb remount
adb reboot
ENJOY
Testing done by me and there are NO BUGS OR FC's found
Enjoy the new smoothness in games and slightly better overall battery life and performance
Click to expand...
Click to collapse
This build.prop is for android 2.1. You can't just replace yours with this. Try just doing the libGLES_qcom.so file. I'm wondering what was changed there and if it's even compatible with 2.2 or 2.3.
As far as build.prop file you can modify your own file by changing some parameters to change heap size, wifi scanning and such.
kifno said:
can someone post their aosp/cm6/other roms default build.prop i'll tweak it for you and attach it so that you can avoid the bootlooping and enjoy the speed gains and battery life guys like the rest of us 2.1 sense users
Click to expand...
Click to collapse
kifno, i'm curious about this and definitely willing to give it a shot.
here are the build.prop files from cm6.1 stable, aosp 2.2 version 0.9.9.2, and aosp 2.3 version 0.1.2. i just pulled them directly from the ROM update.zip files.
NOW AVAILABLE FOR CM6.1 STABLE, AOSP FROYO AND GINGERBREAD USERS
I need testers for the cm6.1 stable, aosp froyo and gingerbread build.prop to let me know if there are any problems with their roms because of this. Though there shouldn't be any problems AT ALL
Some credit to the people who made the ROMs that you 'borrowed' the build.prop files from would be nice. Like, the original one that you ripped from NfiniteFX's .7 stock release (which is no longer there).
Also, why do these build.prop files set the phone as a DROIDX ?
I appreciate the effort, good luck to those who use these.
sirmx said:
Some credit to the people who made the ROMs that you 'borrowed' the build.prop files from would be nice. Like, the original one that you ripped from NfiniteFX's .7 stock release (which is no longer there).
Also, why do these build.prop files set the phone as a DROIDX ?
I appreciate the effort, good luck to those who use these
Click to expand...
Click to collapse
If you change the device name to droidx more apps in the market are open not that the ALL new apps will be compatible but SOME will be so that is just to widen the availability of apps on the market for our heros
there are more tweaks besides that too that are better
and yeah i need to find out the names of the guys who made the roms. i have to leave now but when i am on my laptop again i will give them credit first thing
edit: i just noticed how cool you are
sirmx said:
Click to expand...
Click to collapse

[Q] How to copy a /data file from unrooted Nexus S [I9020XXKD1]?

Hi there,
Is there a way to temporary root my Nexus S [I9020XXKD1] or alternatively a non-root way to access /data so that I can copy a file in and out? Essentially I want to be able to backup and restore some game saves
Most posts I've read basically have folks saying "Just root it", which is good advice to most but isn't right for me - I really don't want to have to wipe my phone and I'd also like to be able to dip my toe into rooting before taking a full leap. That, and aside from needing this one file in /data my phone works exactly as I'd like it to
I only need "su" access for a brief moment to copy off a file to and from /data. I set up the android sdk but ADB didn't work because of the protection of "production builds".
VISIONary seemed like the right kind of thing, but I don't believe it works for the Nexus S or recent firmware, so while temp rooting would be nice so would any solution that allows me to backup and restore some files in /data.
At the moment I am wondering if writing an apk of my own that copies/replaces this one file is the way to go - but that seems perversely long way around!
So any help/suggestions most appreciated
There is no temporary root for the Nexus S. You're either rooted, or you're not. However, if, perchance, you are on Android 2.3.2 or earlier, you might be able to root without wiping.
Without root, you cannot see the files in /data, but you can read/write the files directly if they have the proper permissions and you know the exact path/filenames. After poking around a bit, it seems that read & write permissions vary among apps. Most apps have full permissions reserved for the parent app. Some allow other apps/user to read some files, and read+write others. (The permissions being app-specific, if it can't be done by command line, I doubt it could be done by creating an app, either.)
So, what is the game? Perhaps I can do some exploring.
If you have the old bootloader (2.3.2 i think) you can boot a recovery without flashing. From you computer use "adb boot recovery.img" and boot clockwork recovery. From there you can mount and access the filysystems.
Sent from my Nexus S using XDA App
Maximilian Mary said:
There is no temporary root for the Nexus S. You're either rooted, or you're not. However, if, perchance, you are on Android 2.3.2 or earlier, you might be able to root without wiping.
Without root, you cannot see the files in /data, but you can read/write the files directly if they have the proper permissions and you know the exact path/filenames. After poking around a bit, it seems that read & write permissions vary among apps. Most apps have full permissions reserved for the parent app. Some allow other apps/user to read some files, and read+write others. (The permissions being app-specific, if it can't be done by command line, I doubt it could be done by creating an app, either.)
So, what is the game? Perhaps I can do some exploring.
Click to expand...
Click to collapse
Thanks I figured as much. The game is Dungeon Hunter 2 and essentially I am trying to implement a simple fix to make my save game work again (the fix is here: http://forum.xda-developers.com/showthread.php?t=1042675 a few posts down) but it requires root. So I do know the exact paths and filename.
Thank you for your helpful answer
Ok, I'm not having any luck here, and it's pissing me off. FYI, I don't have that game, so I'm testing it with Angry Birds. I can read and copy the file just fine, but I can't modify it without using root. The data file itself has read/write access, but the containing folder (files/) is read-only, so I can't overwrite the file after I've modified it. Since the file itself has r/w access, I wonder if it would work to modify the file directly, instead of using an outside program to modify it then overwriting it. (I'm a bit ignorant of the finer points of linux permissions.) This would require an app that would allow you to open and modify a file by typing the full path & filename, instead of just browsing the directory tree. You could also try < adb pull /data/data/com.gameloft.android.TBFV.GloftD2HP.ML/files/dh2_000.savegame dh2_000.savegame > (using the correct path, if that's not it). Then see if < adb push dh2_000.savegame /data/data/com.gameloft.android.TBFV.GloftD2HP.ML/files/dh2_000.savegame > works. The fact that you can copy the file out is promising, anyway. So even if you had to root, you could backup the file before rooting wipes everything, then fix it & back it up after you had root.
Btw, what version of Android are you on?
Edit: I think I'm getting somewhere. While you can't modify the file itself, you can modify the file contents. So something like this might work: < adb shell >
< more /sdcard/dh2_000.savegame > /data/data/com.gameloft.android.TBFV.GloftD2HP.ML/files/dh2_000.savegame >
So the next step is to get some help from someone who has the game and is rooted as to the exact path to the savegame file. Once we have that, I think we're golden. (Or, let me know if adb pull works with the path I guessed at.)
wow! Thank you for your help
In answer to your questions: my Nexus s is running 2.3.4 and you are correct about the file path (many other kind xda users died to bring us those paths ) is /data/data/com.gameloft.android.TB with the filename being dh2_000.savegame
I don't want to drive you to distraction! If I could back it up I probably would go ahead then and root the phone given how complexplaying with a non-rooted phone is!
I will try the adb pull method and let you know how I get on.
Thank you again for your help and for showing me why I probably do want to root!

[Tool] Modified Batch File For Perm-Temp-Root

Hi,
I take no credit for this work at all. See thread below for credits:-
Perma-Temp Root with *R/W* & Stable! By Eugene373
http://forum.xda-developers.com/showthread.php?t=1161283
I dont use Terminal Emulator and so have modified the batch file so as it does not install it. (See attached file). To use this modded batch file, simply replace the batch file from the download in the above thread and run as instructed.
Also, I have superuser elite and wanted to use the latest beta version. The lates beta version can be downloaded after finding it with a gogle search (if you have superuser elite and are entitled to it) and the SU file and superuser.apk files can also be replaced.
These will be updated when the Batch file is run again. If terminal emulator is already installed, it can be deleted and wont be installed again.
Cheers
I don't really see the point in this. You deleted one line from a script. This is just clutter. Honestly if other people don't know how to delete one line from a text file, they shouldn't be doing anything root-related in the first place.
Sent from my HTC Sensation 4G using XDA App
Thanks very much
tinker2000 said:
Hi,
I take no credit for this work at all. See thread below for credits:-
Perma-Temp Root with *R/W* & Stable! By Eugene373
http://forum.xda-developers.com/showthread.php?t=1161283
I dont use Terminal Emulator and so have modified the batch file so as it does not install it. (See attached file). To use this modded batch file, simply replace the batch file from the download in the above thread and run as instructed.
Also, I have superuser elite and wanted to use the latest beta version. The lates beta version can be downloaded after finding it with a gogle search (if you have superuser elite and are entitled to it) and the SU file and superuser.apk files can also be replaced.
These will be updated when the Batch file is run again. If terminal emulator is already installed, it can be deleted and wont be installed again.
Cheers
Click to expand...
Click to collapse
I agree that it is only a single line, but not everyone is as competent as you and I provided additional information about super user. I did this because I thought it may be of help to some people. If its clutter, I apologise...but it helped one person and so I'm happy
tinker2000 said:
I agree that it is only a single line, but not everyone is as competent as you and I provided additional information about super user. I did this because I thought it may be of help to some people. If its clutter, I apologise...but it helped one person and so I'm happy
Click to expand...
Click to collapse
Good for you then! That's the spirit, though perhaps not understood by some.
Well then how about a bat file howto guide? That would be pretty cool.
Sent from my HTC Sensation 4G using XDA App
A HOW TO guide would be outstanding, but would require more than you think. You have to consider WHERE people have stored files such as adb.exe.
Editing the BAT is simple enough...Just download it, right click, then choose edit. Remove what you need and then run. This assumes that you got the thing to work as it originally had been intended to though.
Matt

Categories

Resources