arguments in terminal? - G1 Android Development

(Deleted)

Some of the command are stripped down. Like the -f parameter in the rm command doesn't work so "rm -rf /" would give me an error but "rm -r /" works fine

(Deleted)

mybe it's a busybox "feature". http://www.busybox.net/

(Deleted)

Related

[Guide]JAC HERO CLEANUP

If you want to run your hero build fast like cyanogen just copy and paste these in cmd
for slow_sd
adb shell rm -r /data/app_s/Quickoffice_HTC_1.0.1.apk
adb shell rm -r /data/app_s/DCSStock.apk
adb shell rm -r /data/app_s/DCSStock.odex
adb shell rm -r /data/app_s/HtcPhotoWidget.apk
adb shell rm -r /data/app_s/HtcPhotoWidget.odex
adb shell rm -r /data/app_s/com.htc.StockWidget.apk
adb shell rm -r /data/app_s/com.htc.StockWidget.odex
adb shell rm -r /data/app_s/com.htc.TwitterWidget.apk
adb shell rm -r /data/app_s/com.htc.TwitterWidget.odex
adb shell rm -r /data/app_s/htcbookmarkwidget.apk
adb shell rm -r /data/app_s/htcbookmarkwidget.odex
adb shell rm -r /data/app_s/htccalendarwidgets.apk
adb shell rm -r /data/app_s/htccalendarwidgets.odex
adb shell rm -r /data/app_s/htccontactwidgets.apk
adb shell rm -r /data/app_s/htccontactwidgets.odex
adb shell rm -r /data/app_s/htcmsgwidgets.apk
adb shell rm -r /data/app_s/htcmsgwidgets.odex
adb shell rm -r /data/app_s/htcsearchwidgets.apk
adb shell rm -r /data/app_s/htcsearchwidgets.odex
adb shell rm -r /data/app_s/Stock.apk
adb shell rm -r /data/app_s/Stock.odex
adb shell rm -r /data/app_s/htcmailwidgets.apk
adb shell rm -r /data/app_s/htcmailwidgets.odex
for normal
adb shell rm -r /system/sd/app_s/Quickoffice_HTC_1.0.1.apk
adb shell rm -r /system/sd/app_s/DCSStock.apk
adb shell rm -r /system/sd/app_s/DCSStock.odex
adb shell rm -r /system/sd/app_s/HtcPhotoWidget.apk
adb shell rm -r /system/sd/app_s/HtcPhotoWidget.odex
adb shell rm -r /system/sd/app_s/com.htc.StockWidget.apk
adb shell rm -r /system/sd/app_s/com.htc.StockWidget.odex
adb shell rm -r /system/sd/app_s/com.htc.TwitterWidget.apk
adb shell rm -r /system/sd/app_s/com.htc.TwitterWidget.odex
adb shell rm -r /system/sd/app_s/htcbookmarkwidget.apk
adb shell rm -r /system/sd/app_s/htcbookmarkwidget.odex
adb shell rm -r /system/sd/app_s/htccalendarwidgets.apk
adb shell rm -r /system/sd/app_s/htccalendarwidgets.odex
adb shell rm -r /system/sd/app_s/htccontactwidgets.apk
adb shell rm -r /system/sd/app_s/htccontactwidgets.odex
adb shell rm -r /system/sd/app_s/htcmsgwidgets.apk
adb shell rm -r /system/sd/app_s/htcmsgwidgets.odex
adb shell rm -r /system/sd/app_s/htcsearchwidgets.apk
adb shell rm -r /system/sd/app_s/htcsearchwidgets.odex
adb shell rm -r /system/sd/app_s/Stock.apk
adb shell rm -r /system/sd/app_s/Stock.odex
adb shell rm -r /system/sd/app_s/htcmailwidgets.apk
adb shell rm -r /system/sd/app_s/htcmailwidgets.odex
you can also selectively delete. Only widgets left are
MUSIC
SETTINGS
CLOCK
WEATHER
thanks, this must have taken a............g..............e.................s to type out
Thats cool thatnks,
but can i take out 1 or 2 from the list that i would like to keep and then run it in cmd?
EDIT: then again if i have them all on my sd, this wont work..
Just copy and paste the OP and make a batch file. Then just run it
What does DCSStock do?
You can also use root explorer and delete
Lakers3408 said:
You can also use root explorer and delete
Click to expand...
Click to collapse
That's what I was about to suggest...granted I hate that the item list resets itself after every delete...(if u delete hypothetical ZZZ.apk and want to delete the ZZZ.odex file u'd have to scroll to the bottom again)
Can you delete the weather widget without messing up the clock/weather widget?
abteer said:
Can you delete the weather widget without messing up the clock/weather widget?
Click to expand...
Click to collapse
Yes u can, just dont touch Weather.apk
Lakers3408 said:
Yes u can, just dont touch Weather.apk
Click to expand...
Click to collapse
Thank you sir. Even though you like the Lakers. Go Celtics!
Go cavaliers!
Thanks!
I deleted all those widgets.
Lakers3408 said:
What does DCSStock do?
Click to expand...
Click to collapse
thats the service for the stocks widget and app
RaiderX303 said:
thats the service for the stocks widget and app
Click to expand...
Click to collapse
So if you remove that then it stands to reason that NONE/ZERO htc widgets will work?
Lakers3408 said:
So if you remove that then it stands to reason that NONE/ZERO htc widgets will work?
Click to expand...
Click to collapse
the widgets will work, it is for the stock widgets that show company stock prices
RaiderX303 said:
the widgets will work, it is for the stock widgets that show company stock prices
Click to expand...
Click to collapse
Are you sure its for the Stock market?
I removed Stock.apk and odex, that removed the Stocks from my app drawer and removing the com.htc.StockWidget.apk and odex removes the Stock widget.
So your tellling me that DCSStock is also part of it?
If u are on a EDGE internet connection i suggest u dont use any widgets that use the internet like twitter or mail, They slow down rosie when they pull updates from the internet.
You could also remove the Mail.apk/odex if you only use gmail.
Yep, this is what I was doing for a while, then I just realized what a lifesaver just resigning the file is...just follow this thread: http://forum.xda-developers.com/showthread.php?t=471586 and get the resigning setup so all you have to do is this:
-Download Update file
-Delete the files you dont want in there directly from the update file (like OP is doing with command lines there) [its also better b/c you can choose other apps you may not want in there )]
-Go to Run > CMD > type: java testsign update.zip
-Done.
-Put on SD card and go.
Ive been doing that several weeks now, its really quicker once you get it setup (if you have adb (doing the command lines posted), then your already half way there).
Otherwise this works too .
the biggest system drag, though, is that clock and widget. I made a build with that uninstalled, kept mail and msg widgets, and installed the alarm clock from tehseano's rom, and rosie is now fast, even with all 7 home screens loaded. i dont use a world clock,so it works for me
is there anyway i can remove these apks and odex files from the update.zip and possibly a few others that i dont want... i have tried removing them from the update.zip and installing, but it fails... file not found Quickoffice_HTC_1.0.1.apk
any ideas ???

no_sense v1 w/ JIT Enabler: Script to remove Sense and auto-enable JIT on FreshToast

So... I don't know how to make ROMs, or update.zips.... but I can make batch files!! HAHA
Basically, all this does is help noobies out by doing everything for you.
This is intended for use with FreshToast, but should work with any ROM really (JIT functionality depends on if the ROM supports it and editing the build.prop file, read below)
{
"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"
}
What it does
JIT does NOT like Sense UI. You basically can't use Sense UI with JIT... so this will remove Sense UI then enable JIT.
You can read about JIT here: http://en.wikipedia.org/wiki/Just-in-time_compilation
This will remove all HTC Widgets, Rosie, and any other useless SenseUI applications. (as they don't work with other launchers) and push over the Helix Launcher. Also, this will enable JIT (there is an option to enable or not to, as well as automated enable/disable JIT)
I have also included the HTC Ringtone trimmer apk - its honestly the best ringtone trimmer I've used, and works great, alot of devs take it out. I dont know why.
Also Ive included the genie news and weather widget.
I get no force closes with this method from removing sense, but as with most roms with JIT enabled, there is the occasional freeze.
As always, DO A NANDROID BACKUP FIRST!!!
The build.prop file is ROM SPECIFIC!!
The script has the build.prop for FRESHTOAST 1.1
I'm working on getting multiple build.prop's from other ROMs so you will only have to make a simple menu selection.
If you are using a different ROM do the following:
adb pull /system/build.prop C:/system.prop_jit
edit the file in WORDPAD (not notepad) and save as build.prop_jit in the "Unicode Text Format"
Go to the very last line of the file, and add the following line:
Code:
dalvik.vm.execution-mode=int:jit
Save the file as build.prop to the location you extracted the zip (no_sense.zip) to and overwrite the old one.
The rest remains the same.
Special thanks to regaw_leinad for the help with the script. THANK YOU!! also thanks to Jus10o for helping me with the force closes I was getting after removing sense. Thanks also to "gunnyman" for the hosting of the file!
Instructions:
First thing is something some of you may already have done. This will enable adb to be run in the DOS command line from anywhere, not just your android tools folder.
Right click on "My Computer"
Click Properties
Click the advanced tab
Click "Environment Variables"
In the top window click "PATH"
Click "Edit"
Change the "Variable Value" to your android SDK tools folder (Mine is C:\Android\tools)
Now unzip the no_sense folder anywhere you want.
Connect your phone via USB and make sure you DO NOT have the phone in disk mode, select "Charge Only" and ensure the phone has USB-Debugging on (should be by default)
Double click on "no_sense.bat" and follow the prompts.
The first time you enable JIT it will create a backup of your old files, and can be restored/disabled later.
NOTICE You MUST change your home screen wall paper to a non-htc wallpaper before enabling JIT. If not, your phone will freeze on boot. Any photo will do, as long as it is not a HTC wallpaper. I'm looking in to how to prevent this from happening. If you accidentally booted without changing, just nandroid back and do it again. After stripping the ROM of Sense UI, and starting Helix, change your wallpaper, THEN enable JIT.
Currently v1.2
Download Here: http://dl.dropbox.com/u/6718465/no_sense_with_apks.zip 9.40MB (Includes all the backed up Rosie APKs)
Without APKs: http://dl.dropbox.com/u/6718465/no_sense.zip 1.75MB
I'm curious to try it on the new ZenExp ROM. Helix launcher already works great with it.
Well the Sense UI strip part works....
Having some trouble with the JIT part...
I guess some commands can't be done though ADB Shell
are you using ADB to execute a script? if so make sure you chmod that script. adb shell chmod 755 /sdcard/nameofscript should do the trick.
gunnyman said:
are you using ADB to execute a script? if so make sure you chmod that script. adb shell chmod 755 /sdcard/nameofscript should do the trick.
Click to expand...
Click to collapse
I think it's a .bat file to run on the computer w/ your phone plugged in.
poor_red_neck said:
Well the Sense UI strip part works....
Having some trouble with the JIT part...
I guess some commands can't be done though ADB Shell
Click to expand...
Click to collapse
can you send me the script, I'll take a look at it and see whats goin on.
When I saw the howto for enabling JIT I wrote a script that would execute the list of shell commands. All I had to do was edit build prop manually then execute the script. I also wrote an undo script. I can easily redo it for you if it will help.
This is an excellent contribution. Thanks. I see many firsts much less worthy of posting(aka-why is this posteds) Also, damage put dcconfig.apk in the new .08 rom which allows for you to enable/disable jit and many other options from within a checkbox.
Ah, Found the issue...
I'm doing everything through adb shell xxxcommandxxx for JIT...
However I dont know how to get SU through the shell...
Here's part of it Ive stripped out.
Code:
@ECHO OFF
adb remount
adb shell mkdir /sdcard/JIT
adb shell mkdir /sdcard/dalbk
adb shell mkdir /sdcard/JIT/bin
adb push libdvm.so /sdcard/JIT/libdvm.so
adb push libnativehelper.so /sdcard/JIT/libnativehelper.so
adb push dalvikvm /sdcard/JIT/bin/dalvikvm
adb pull /system/build.prop build.prop_backup
adb push build.prop_JIT /system/build.prop
adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock6 /system
adb shell cp /system/build.prop /sdcard/dalbk/
adb shell cp /system/bin/dalvikvm /sdcard/dalbk/
adb shell cp /system/lib/libdvm.so /sdcard/dalbk/
adb shell cp /system/lib/libnativehelper.so /sdcard/dalbk
adb shell cd /sdcard/jit/bin
adb shell cp -f dalvikvm /system/bin
adb shell busybox chmod 755 /system/bin/dalvikvm
adb shell cd /sdcard/jit
adb shell cp -f libdvm.so /system/lib/
adb shell cp -f libnativehelper.so /system/lib/
adb shell cat.build.prop >/system/build.prop
adb shell chmod 644 /system/lib/libdvm.so
adb shell chmod 644 /system/lib/libnativehelper.so
adb shell chmod 666 /system/build.prop
adb shell sync
I get an error at trying to chmod 755 /system/bin/dalvikvm
do adb remount first.
Here's the full script if you're interested... again... the strip sense part works fine, JIT is giving me issues.
Code:
@Echo OFF
Echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
Echo º º
Echo º º
Echo º º
Echo º PLEASE ENSURE YOU HAVE CREATED A NANDROID BACKUP FIRST!!!! º
Echo º ALSO: Please ensure you have installed some sort of Home º
Echo º Launcher First. This script will install º
Echo º Helix launcher by default º
Echo º º
Echo º Also please ensure you have already installed º
Echo º A2SD º
Echo º º
Echo º Press 3 at the following option to skip º
Echo º to enabling/disabline JIT º
Echo º º
Echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
SET /P ANSWER=Have you created a Nandroid Backup first? (1)Yes (2)No =
if /i {%ANSWER%}=={1} (goto :10)
if /i {%ANSWER%}=={2} (goto :20)
if /i {%ANSWER%}=={3} (goto :50)
:10
Echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
Echo º º
Echo º The script will now pull and backup your Sense/Rosie apks. º
Echo º They will be placed in the folder labeled "Rosie_Backup" º
Echo º In the "Root" directory of your PC(C:/Rosie_Backup º
Echo º º
Echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
pause
adb remount
adb pull /system/app/Rosie.apk /Rosie_Backup/Rosie.apk
adb pull /system/app/HtcLockScreen.apk /Rosie_Backup/HtcLockScreen.apk
adb pull /system/app/com.android.launcher2.apk /Rosie_Backup/com.launcher2.apk
adb pull /system/app/com.htc.MusicWidget.apk /Rosie_Backup/com.htc.MusicWidget.apk
adb pull /system/app/com.htc.TwitterWidget.apk /Rosie_Backup/com.htc.TwitterWidget.apk
adb pull /system/app/com.htc.WeatherWidget.apk /Rosie_Backup/com.htc.WeatherWidget.apk
adb pull /system/app/HtcAddProgramWidget.apk /Rosie_Backup/HtcAddProgramWidget.apk
adb pull /system/app/htcmailwidgets.apk /Rosie_Backup/htcmailwidgets.apk
adb pull /system/app/htcmsgwidgets.apk /Rosie_Backup/htcmsgwidgets.apk
adb pull /system/app/HtcWeatherWallpaper.apk /Rosie_Backup/htcWeatherWallpaper.apk
adb pull /system/app/SetupWizard.apk /Rosie_Backup/SetupWizard.apk
Echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
Echo º º
Echo º Now we will install Helix Launcher º
Echo º to the /system/app folder º
Echo º and push other nescessary files º
Echo º as well as remove the non-essential º
Echo º HTC applications/Widgets º
Echo º º
Echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
Echo You will get a force close on the phone, click force close
pause
adb push com.helixproject.launcher.apk /system/app/com.helixproject.launcher.apk
adb push GenieWidget.apk /system/app/GenieWidget.apk
adb push HtcRingtoneTrimmer.apk /system/app/HtcRingtoneTrimmer.apk
adb push com.htc.resources.apk /system/framework/com.htc.resources.apk
adb shell rm /system/app/Rosie.apk
adb shell rm /system/app/HtcLockScreen.apk
adb shell rm /system/app/com.android.launcher2.apk
adb shell rm /system/app/com.htc.MusicWidget.apk
adb shell rm /system/app/com.htc.TwitterWidget.apk
adb shell rm /system/app/com.htc.WeatherWidget.apk
adb shell rm /system/app/HtcAddProgramWidget.apk
adb shell rm /system/app/htcmailwidgets.apk
adb shell rm /system/app/htcmsgwidgets.apk
adb shell rm /system/app/HtcWeatherWallpaper.apk
adb shell rm /system/app/SetupWizard.apk
:50
Echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
Echo º º
Echo º Now we can enable JIT º
Echo º (Just In Time compiler) º
Echo º º
Echo º º
Echo º If you are unsure, please search on XDA Forums First º
Echo º º
Echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
SET /P ANSWER=Would you like to enable/disable JIT? (1)Yes (2)No =
if /i {%ANSWER%}=={1} (goto :51)
if /i {%ANSWER%}=={2} (goto :100)
:51
SET /P ANDWER=Press 1 to enable JIT - Press 2 to disable JIT =
if /i {%ANSWER%}=={1} (goto :52)
if /i {%ANSWER%}=={2} (goto :53)
:52
adb remount
adb shell mkdir /sdcard/JIT
adb shell mkdir /sdcard/dalbk
adb shell mkdir /sdcard/JIT/bin
adb push libdvm.so /sdcard/JIT/libdvm.so
adb push libnativehelper.so /sdcard/JIT/libnativehelper.so
adb push dalvikvm /sdcard/JIT/bin/dalvikvm
adb pull /system/build.prop build.prop_backup
adb push build.prop_JIT /system/build.prop
adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock6 /system
adb shell cp /system/build.prop /sdcard/dalbk/
adb shell cp /system/bin/dalvikvm /sdcard/dalbk/
adb shell cp /system/lib/libdvm.so /sdcard/dalbk/
adb shell cp /system/lib/libnativehelper.so /sdcard/dalbk
adb shell cd /sdcard/jit/bin
adb shell cp -f dalvikvm /system/bin
adb shell busybox chmod 755 /system/bin/dalvikvm
adb shell cd /sdcard/jit
adb shell cp -f libdvm.so /system/lib/
adb shell cp -f libnativehelper.so /system/lib/
adb shell cat.build.prop >/system/build.prop
adb shell chmod 644 /system/lib/libdvm.so
adb shell chmod 644 /system/lib/libnativehelper.so
adb shell chmod 666 /system/build.prop
adb shell sync
Echo The phone will now reboot...
adb reboot
:53
adb remount
adb shell cd /sdcard/dalbk/
adb shell cat build.prop >/system/build.prop
adb shell cp -f dalvikvm /system/bin
adb shell busybox chmod 755 /system/bin/dalvikvm
adb shell cp -f libdvm.so /system/lib/
adb shell cp -f libnativehelper.so /system/lib/
adb shell chmod 644 /system/lib/libdvm.so
adb shell chmod 644 /system/lib/libnativehelper.so
adb shell chmod 666 /system/build.prop
adb shell sync
ECHO Your phone will now reboot...
adb reboot
exit
:20
SET /P ANSWER=Would you like to reboot into recovery now to create one? (1)Yes (2)No =
if /i {%ANSWER%}=={1} (goto :101)
if /i {%ANSWER%}=={2} (goto :100)
:101
pause
Echo Your phone is now rebooting into recovery...
adb reboot recovery
exit
:100
pause
exit
I literally haven't messed with batch files since I was like... 12... soo.... haha.
poor_red_neck said:
Ah, Found the issue...
I'm doing everything through adb shell xxxcommandxxx for JIT...
However I dont know how to get SU through the shell...
Here's part of it Ive stripped out.
Code:
@ECHO OFF
adb remount
adb shell mkdir /sdcard/JIT
adb shell mkdir /sdcard/dalbk
adb shell mkdir /sdcard/JIT/bin
adb push libdvm.so /sdcard/JIT/libdvm.so
adb push libnativehelper.so /sdcard/JIT/libnativehelper.so
adb push dalvikvm /sdcard/JIT/bin/dalvikvm
adb pull /system/build.prop build.prop_backup
adb push build.prop_JIT /system/build.prop
adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock6 /system
adb shell cp /system/build.prop /sdcard/dalbk/
adb shell cp /system/bin/dalvikvm /sdcard/dalbk/
adb shell cp /system/lib/libdvm.so /sdcard/dalbk/
adb shell cp /system/lib/libnativehelper.so /sdcard/dalbk
adb shell cd /sdcard/jit/bin
adb shell cp -f dalvikvm /system/bin
adb shell busybox chmod 755 /system/bin/dalvikvm
adb shell cd /sdcard/jit
adb shell cp -f libdvm.so /system/lib/
adb shell cp -f libnativehelper.so /system/lib/
adb shell cat.build.prop >/system/build.prop
adb shell chmod 644 /system/lib/libdvm.so
adb shell chmod 644 /system/lib/libnativehelper.so
adb shell chmod 666 /system/build.prop
adb shell sync
I get an error at trying to chmod 755 /system/bin/dalvikvm
Click to expand...
Click to collapse
try taking out "busybox", because if it is installed in the rom and symlinked you don't need to type that.
Now I get the following error:
cp: cannot stat 'dalvikvm': No such file or direcotry
cp: cannot stat 'libdvm.so': No such file or directory
cp: cannot stat 'libnativehelper.so': No such file or directory
The system cannot find the path specified.
poor_red_neck said:
Now I get the following error:
cp: cannot stat 'dalvikvm': No such file or direcotry
cp: cannot stat 'libdvm.so': No such file or directory
cp: cannot stat 'libnativehelper.so': No such file or directory
The system cannot find the path specified.
Click to expand...
Click to collapse
thats because you didn't define where to copy them from... where are you copying those from? put the path before the files
regaw_leinad said:
thats because you didn't define where to copy them from... where are you copying those from? put the path before the files
Click to expand...
Click to collapse
Ah hah...
Because I'm doing through the shell... the change directory command does nothing...
Gotcha..
Code:
@ECHO OFF
adb remount
adb shell mkdir /sdcard/jit
adb shell mkdir /sdcard/dalbk
adb shell mkdir /sdcard/JIT/bin
adb push libdvm.so /sdcard/JIT/libdvm.so
adb push libnativehelper.so /sdcard/JIT/libnativehelper.so
adb push dalvikvm /sdcard/JIT/bin/dalvikvm
adb pull /system/build.prop build.prop_backup
adb push build.prop_JIT /system/build.prop
adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock6 /system
adb shell cp /system/build.prop /sdcard/dalbk/
adb shell cp /system/bin/dalvikvm /sdcard/dalbk/
adb shell cp /system/lib/libdvm.so /sdcard/dalbk/
adb shell cp /system/lib/libnativehelper.so /sdcard/dalbk
adb shell cp -f /sdcard/jit/bin/dalvikvm /system/bin
adb shell chmod 755 /system/bin/dalvikvm
adb shell cp -f /sdcard/jit/libdvm.so /system/lib/
adb shell cp -f /sdcard/jit/libnativehelper.so /system/lib/
adb shell cat build.prop >/system/build.prop
adb shell chmod 644 /system/lib/libdvm.so
adb shell chmod 644 /system/lib/libnativehelper.so
adb shell chmod 666 /system/build.prop
adb shell sync
Now the only error is:
"They system cannot find the path specified"
I have no idea what though, going to start taking one line off at a time.
EDIT:
adb shell cat.build.prop >/system/build.prop
This is causing the error.
poor_red_neck said:
Ah hah...
Because I'm doing through the shell... the change directory command does nothing...
Gotcha..
Code:
@ECHO OFF
adb remount
adb shell mkdir /sdcard/jit
adb shell mkdir /sdcard/dalbk
adb shell mkdir /sdcard/JIT/bin
adb push libdvm.so /sdcard/JIT/libdvm.so
adb push libnativehelper.so /sdcard/JIT/libnativehelper.so
adb push dalvikvm /sdcard/JIT/bin/dalvikvm
adb pull /system/build.prop build.prop_backup
adb push build.prop_JIT /system/build.prop
adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock6 /system
adb shell cp /system/build.prop /sdcard/dalbk/
adb shell cp /system/bin/dalvikvm /sdcard/dalbk/
adb shell cp /system/lib/libdvm.so /sdcard/dalbk/
adb shell cp /system/lib/libnativehelper.so /sdcard/dalbk
adb shell cp -f /sdcard/jit/bin/dalvikvm /system/bin
adb shell chmod 755 /system/bin/dalvikvm
adb shell cp -f /sdcard/jit/libdvm.so /system/lib/
adb shell cp -f /sdcard/jit/libnativehelper.so /system/lib/
adb shell cat.build.prop >/system/build.prop
adb shell chmod 644 /system/lib/libdvm.so
adb shell chmod 644 /system/lib/libnativehelper.so
adb shell chmod 666 /system/build.prop
adb shell sync
Click to expand...
Click to collapse
yup that looks better
make sure you define everything like that, because, as you said, cd wont do anything when used in the shell in a bat
let me know if you have any more questions/problems. pm me your gtalk if you have one too.
poor_red_neck said:
Ah hah...
Because I'm doing through the shell... the change directory command does nothing...
Gotcha..
Code:
@ECHO OFF
adb remount
adb shell mkdir /sdcard/jit
adb shell mkdir /sdcard/dalbk
adb shell mkdir /sdcard/JIT/bin
adb push libdvm.so /sdcard/JIT/libdvm.so
adb push libnativehelper.so /sdcard/JIT/libnativehelper.so
adb push dalvikvm /sdcard/JIT/bin/dalvikvm
adb pull /system/build.prop build.prop_backup
adb push build.prop_JIT /system/build.prop
adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock6 /system
adb shell cp /system/build.prop /sdcard/dalbk/
adb shell cp /system/bin/dalvikvm /sdcard/dalbk/
adb shell cp /system/lib/libdvm.so /sdcard/dalbk/
adb shell cp /system/lib/libnativehelper.so /sdcard/dalbk
adb shell cp -f /sdcard/jit/bin/dalvikvm /system/bin
adb shell chmod 755 /system/bin/dalvikvm
adb shell cp -f /sdcard/jit/libdvm.so /system/lib/
adb shell cp -f /sdcard/jit/libnativehelper.so /system/lib/
adb shell cat.build.prop >/system/build.prop
adb shell chmod 644 /system/lib/libdvm.so
adb shell chmod 644 /system/lib/libnativehelper.so
adb shell chmod 666 /system/build.prop
adb shell sync
Now the only error is:
"They system cannot find the path specified"
I have no idea what though, going to start taking one line off at a time.
Click to expand...
Click to collapse
just copy paste "pause" between the lines.. its quicker that way, and you can see where it fails.
poor_red_neck said:
Ah hah...
adb shell cat.build.prop >/system/build.prop
This is causing the error.
Click to expand...
Click to collapse
this should be
Code:
adb shell cat build.prop >/system/build.prop
no period between cat and build
EDIT:
AND you need to specify the path of the first build.prop, because what that is doing is combining the two build.props
regaw_leinad said:
this should be
Code:
adb shell cat build.prop >/system/build.prop
no period between cat and build
EDIT:
AND you need to specify the path of the first build.prop, because what that is doing is combining the two build.props
Click to expand...
Click to collapse
I JUST found that....
should be /sdcard/jit/build.prop
Let me try that.
Hmm, there is no build.prop that is placed in the /sdcard/jit folder.
The original code is here:
This will enable jit on your phone.
Code:
cd /sdcard/jit/bin
cp -f dalvikvm /system/bin/
busybox chmod 755 /system/bin/dalvikvm
cd /sdcard/jit
cp -f libdvm.so /system/lib/
cp -f libnativehelper.so /system/lib/
cat build.prop >/system/build.prop
chmod 644 /system/lib/libdvm.so
chmod 644 /system/lib/libnativehelper.so
chmod 666 /system/build.prop
sync
reboot
Judging by the last cd... there should be one in /sdcard/jit

[Q] [A] Missing line for rooting Prime/ICS

This was missing in all batch files I stumbled on. As I have not posted 10 times I thought to place it here to increase awareness.
http://forum.xda-developers.com/showpost.php?p=21308895&postcount=53
So correct batch file is:
Code:
@echo ---------------------------------------------------------------
@echo Easy rooting toolkit for Transformer Prime!
@echo Script by Max Lee from TransformerPrimeRoot.com
@echo Credits go to XDA users sparkym3 and Dan Rosenburg for exploit.
@echo ---------------------------------------------------------------
@echo [*] This script will:
@echo (1) root your Transformer Prime on ICS
@echo (2) install Busybox
@echo (3) install SU files
@echo [*] Before u begin:
@echo (4) Make sure to read full instructions at TransformerPrimeRoot.com!
@echo ---------------------------------------------------------------
@echo CONFIRM ALL THE ABOVE THEN
@echo Please hit Enter when ready.
@pause
@echo Rooting...
@adb wait-for-device
@echo Start Rooting...
@adb shell mv /data/local/tmp /data/local/tmp.bak
@adb shell ln -s /data /data/local/tmp
@adb reboot
@echo reboot #1 - DO NOT DISCONNECT YOUR DEVICE!
@PING 1.1.1.1 -n 1 -w 5000 >NUL
@adb wait-for-device
@adb shell rm /data/local.prop
@adb shell "echo \"ro.kernel.qemu=1\" > /data/local.prop"
@adb reboot
@echo reboot #2 - DO NOT DISCONNECT YOUR DEVICE!
@PING 1.1.1.1 -n 1 -w 5000 >NUL
@adb wait-for-device
@adb remount
@PING 1.1.1.1 -n 1 -w 1000 >NUL
@adb push su /system/bin/su
@adb shell "chown root.shell /system/bin/su"
@adb shell "chmod 06755 /system/bin/su"
@adb shell "rm /system/xbin/su"
@adb shell "ln -s /system/bin/su /system/xbin/su"
@adb push Superuser.apk /system/app/.
@adb shell rm /data/local.prop
@adb shell rm /data/local/tmp
@adb shell mv /data/local/tmp.bak /data/local/tmp
@adb push busybox /data/local/tmp/.
@adb shell "chmod 755 /data/local/tmp/busybox"
@adb shell "/data/local/tmp/busybox mount -o remount,rw /system"
@adb shell "dd if=/data/local/tmp/busybox of=/system/xbin/busybox"
@adb shell "chown root.shell /system/xbin/busybox"
@adb shell "chmod 04755 /system/xbin/busybox"
@adb shell "/system/xbin/busybox --install -s /system/xbin"
@adb shell "rm -r /data/local/tmp/busybox"
@echo rebooting
@adb reboot
@echo All Done rooting Transformer Prime, check out TransformerPrimeRoot.com for more cool stuff!
@pause

[Q]How to access android FS form fastoot/flashmode

I have copyied a damaged file in /system/app folder and now my phone is in the Bootloop. I wanna acces that file and replace it with the original. Can I do that?
I managed to solve it by deleting the 2 damaged files with this piece of code
Code:
echo " "
echo "Waiting for device..."
adb wait-for-device
echo " "
adb -d shell su -c "mount -o rw,remount /system"
adb -d shell su -c "ls /system"
adb -d shell su -c "rm /system/app/AudioEffectService.apk"
adb -d shell su -c "rm /system/app/SoundEnhancement.apk"
(of course the boot-loop forced me to find the right moment in the boot sequence to run the script)

Missing "Hey Google" functionality.

Hello,
i used debloating to get rid of some apps i dont want. But i removed something that is used for the "hey google" function. I cant activate it in the google app now too anymore.
Can someone tell me what i need to reinstall?
Things i removed:
Code:
adb -s 0c7ef144 shell rm -r /system/app/BackupRestoreRemoteService
adb -s 0c7ef144 shell rm -r /system/app/BasicDreams
adb -s 0c7ef144 shell rm -r /system/app/BookmarkProvider
adb -s 0c7ef144 shell rm -r /system/app/FBAppmanager
adb -s 0c7ef144 shell rm -r /system/app/GoogleAssistant
adb -s 0c7ef144 shell rm -r /system/app/GooglePrintRecommendationService
adb -s 0c7ef144 shell rm -r /system/app/netflix-activation
adb -s 0c7ef144 shell rm -r /system/app/netflix-stub
adb -s 0c7ef144 shell rm -r /system/app/OPFilemanager
adb -s 0c7ef144 shell rm -r /system/app/PartnerBookmarksProvider
adb -s 0c7ef144 shell rm -r /system/app/PlayAutoInstallConfig
adb -s 0c7ef144 shell rm -r /system/app/YTMusic
adb -s 0c7ef144 shell rm -r /system/priv-app/BackupRestoreConfirmation
adb -s 0c7ef144 shell rm -r /system/priv-app/FBInstaller
adb -s 0c7ef144 shell rm -r /system/priv-app/FBServices
adb -s 0c7ef144 shell rm -r /system/priv-app/SharedStorageBackup
adb -s 0c7ef144 shell rm -r /system/priv-app/TagGoogle
adb -s 0c7ef144 shell rm -r /system/product/app/CalendarGoogle
adb -s 0c7ef144 shell rm -r /system/product/app/Chrome
adb -s 0c7ef144 shell rm -r /system/product/app/Drive
adb -s 0c7ef144 shell rm -r /system/product/app/Duo
adb -s 0c7ef144 shell rm -r /system/product/app/Gmail2
adb -s 0c7ef144 shell rm -r /system/product/app/GoogleLocationHistory
adb -s 0c7ef144 shell rm -r /system/product/app/GooglePayIndia
adb -s 0c7ef144 shell rm -r /system/product/app/GooglePay
adb -s 0c7ef144 shell rm -r /system/product/app/GoogleTTS
adb -s 0c7ef144 shell rm -r /system/product/app/Maps
adb -s 0c7ef144 shell rm -r /system/product/app/Photos
adb -s 0c7ef144 shell rm -r /system/product/app/talkback
adb -s 0c7ef144 shell rm -r /system/product/app/Videos
adb -s 0c7ef144 shell rm -r /system/product/app/Nearme
adb -s 0c7ef144 shell rm -r /system/product/app/YouTube
adb -s 0c7ef144 shell rm -r /system/product/priv-app/AndroidAutoStub
adb -s 0c7ef144 shell rm -r /system/product/priv-app/GoogleFeedback
adb -s 0c7ef144 shell rm -r /system/product/priv-app/OobConfig
adb -s 0c7ef144 shell rm -r /system/product/priv-app/GoogleOneTimeInitializer
adb -s 0c7ef144 shell rm -r /system/product/priv-app/GooglePartnerSetup
adb -s 0c7ef144 shell rm -r /system/product/priv-app/GoogleRestore
adb -s 0c7ef144 shell rm -r /system/product/priv-app/SetupWizard
adb -s 0c7ef144 shell rm -r /system/product/priv-app/Turbo
adb -s 0c7ef144 shell rm -r /system/product/priv-app/Wellbeing
adb -s 0c7ef144 shell rm -r /system/product/priv-app/Velvet
adb -s 0c7ef144 shell rm -r /system/reserve/Audible
adb -s 0c7ef144 shell rm -r /system/reserve/GameCenter
adb -s 0c7ef144 shell rm -r /system/reserve/AmazonShoppingMDIP
adb -s 0c7ef144 shell rm -r /system/reserve/AudibleMDIP
adb -s 0c7ef144 shell rm -r /system/reserve/card
adb -s 0c7ef144 shell rm -r /system/reserve/facebook-localapk-stub
adb -s 0c7ef144 shell rm -r /system/reserve/instagram-localapk-stub
adb -s 0c7ef144 shell rm -r /system/reserve/Kindle
adb -s 0c7ef144 shell rm -r /system/reserve/messenger-localapk-stub
adb -s 0c7ef144 shell rm -r /system/reserve/OPBackupRestore
adb -s 0c7ef144 shell rm -r /system/reserve/OPForum
adb -s 0c7ef144 shell rm -r /system/reserve/OPIconpackOnePlusH2
adb -s 0c7ef144 shell rm -r /system/reserve/OPIconpackOnePlusO2
adb -s 0c7ef144 shell rm -r /system/reserve/OPNote
adb -s 0c7ef144 shell rm -r /system/reserve/OPSports
adb -s 0c7ef144 shell rm -r /system/reserve/PrimeVideo
adb -s 0c7ef144 shell rm -r /system/reserve/OPWidget
adb -s 0c7ef144 shell rm -r /system/reserve/SoundRecorder
adb -s 0c7ef144 shell rm -r /system/reserve/Weather
adb -s 0c7ef144 shell rm -r /system/app/OPPush
adb -s 0c7ef144 shell rm -r /system/app/BTtestmode
adb -s 0c7ef144 shell rm -r /system/app/CarrierDefaultApp
adb -s 0c7ef144 shell rm -r /system/app/CtsShimPrebuilt
adb -s 0c7ef144 shell rm -r /system/app/EngineeringMode
adb -s 0c7ef144 shell rm -r /system/app/EngSpecialTest
adb -s 0c7ef144 shell rm -r /system/app/LogKitSdService
adb -s 0c7ef144 shell rm -r /system/app/NFCTestMode
adb -s 0c7ef144 shell rm -r /system/app/NVBackupUI
adb -s 0c7ef144 shell rm -r /system/app/oem_tcma
adb -s 0c7ef144 shell rm -r /system/app/OemAutoTestServer
adb -s 0c7ef144 shell rm -r /system/app/OEMLogKit
adb -s 0c7ef144 shell rm -r /system/app/OPBackup
adb -s 0c7ef144 shell rm -r /system/app/OPCommonLogTool
adb -s 0c7ef144 shell rm -r /system/app/OPBugReportLite
adb -s 0c7ef144 shell rm -r /system/app/OPFilemanager
adb -s 0c7ef144 shell rm -r /system/app/OPGeoIpTime
adb -s 0c7ef144 shell rm -r /system/app/OPYellowpage
adb -s 0c7ef144 shell rm -r /system/app/PhotosOnline
adb -s 0c7ef144 shell rm -r /system/priv-app/CtsShimPrivPrebuilt
adb -s 0c7ef144 shell rm -r /system/app/Rftoolkit
adb -s 0c7ef144 shell rm -r /system/app/SensorTestTool
adb -s 0c7ef144 shell rm -r /system/app/SmscPlugger
adb -s 0c7ef144 shell rm -r /system/app/SoterService
adb -s 0c7ef144 shell rm -r /system/app/Stk
adb -s 0c7ef144 shell rm -r /system/app/OPSesAuthentication
adb -s 0c7ef144 shell rm -r /system/app/Traceur
adb -s 0c7ef144 shell rm -r /system/app/OPTelephonyCollectionData
adb -s 0c7ef144 shell rm -r /system/priv-app/IFAAService
adb -s 0c7ef144 shell rm -r /system/priv-app/OnePlusWizard
adb -s 0c7ef144 shell rm -r /system/priv-app/OPCellBroadcastReceiver
adb -s 0c7ef144 shell rm -r /system/priv-app/OPDeviceManagerProvider
adb -s 0c7ef144 shell rm -r /system/priv-app/OPDeviceManager
adb -s 0c7ef144 shell rm -r /system/priv-app/OPSimContacts
adb -s 0c7ef144 shell rm -r /system/product/app/PowerOffAlarm
adb -s 0c7ef144 shell rm -r /system/product/app/TmoEngMode
adb -s 0c7ef144 shell rm -r /system/product/app/Nearme
adb -s 0c7ef144 shell rm -r /system/reserve/Audible
adb -s 0c7ef144 shell rm -r /system/reserve/AmazonShoppingMDIP
adb -s 0c7ef144 shell rm -r /system/reserve/AudibleMDIP
adb -s 0c7ef144 shell rm -r /system/reserve/card
adb -s 0c7ef144 shell rm -r /system/reserve/facebook-localapk-stub
adb -s 0c7ef144 shell rm -r /system/reserve/instagram-localapk-stub
adb -s 0c7ef144 shell rm -r /system/reserve/Kindle
adb -s 0c7ef144 shell rm -r /system/reserve/messenger-localapk-stub
adb -s 0c7ef144 shell rm -r /system/reserve/OPBackupRestore
adb -s 0c7ef144 shell rm -r /system/reserve/OPForum
adb -s 0c7ef144 shell rm -r /system/reserve/GameCenter
adb -s 0c7ef144 shell rm -r /system/reserve/OPIconpackOnePlusH2
adb -s 0c7ef144 shell rm -r /system/reserve/OPIconpackOnePlusO2
adb -s 0c7ef144 shell rm -r /system/reserve/OPNote
adb -s 0c7ef144 shell rm -r /system/reserve/OPSports
adb -s 0c7ef144 shell rm -r /system/reserve/PrimeVideo
adb -s 0c7ef144 shell rm -r /system/reserve/OPWidget
adb -s 0c7ef144 shell rm -r /system/reserve/SoundRecorder
adb -s 0c7ef144 shell rm -r /system/reserve/Weather
adb -s 0c7ef144 shell rm -r /system/priv-app/DynamicSystemInstallationService
adb -s 0c7ef144 shell rm -r /system/product/app/DynamicDDSService
adb -s 0c7ef144 shell rm -r /system/app/OPBackup
For sure you need
Code:
GoogleAssistant
that is what Hey Google triggers.
For Google to talk back to you, you might need
Code:
GoogleTTS
I would only add that back if you can't hear Google's replies.
Hey! Did you try updating Google?

Categories

Resources