[UTIL][PC][15.10.2010] ADB Magic v1.0 - Android Software/Hacking General [Developers Only]

This is a BETA version and will have issues
About
I got tired of using ADB by hand for a lot of operations, and thought well hey let's write something for that. I know about DDMS and ADB Explorer, but they aren't always exactly what I want/need.
BETA
Yeah this is a beta version and will have issues.. No warranty, use at your own risk, etc. I'll try to update this in the future. I have a lot of ideas of things to add/improve/fix still.
Requirements and Recommendations
- Required: .Net 3.5 framework
- Required: A working "adb shell" setup
- Recommended: writable /sdcard
- Recommended: root (via su) - note that a lot of things should work without root, but I haven't done any extensive testing on that
- Recommended: busybox
Features
- (also root) Explorer
--- View / Edit files directly in Notepad (optionally converting dos<->unix newlines)
--- Retrieve / add / replace files
--- Rename / delete/ chmod/ chown / checksum
--- New directory / symlink
- Locate (find all filenames matching a certain string)
- ADB shell
- ADB logcat
- ADB (command log)
- Packages
--- Install package (system copy, user copy, ADB install, with or without ODEX, etc)
--- List / backup / remove user and system packages
Retrieving / viewing / editing / replacing / adding files all use workarounds to be able to do this to files that cannot be directly pushed/pulled by ADB, but this functionality does depend on busybox being available.
Donate!
Donations appreciated, you can do so here: http://www.jongma.org/dx.php
Install
Extract the ZIP and put the EXE in the same folder where you have ADB. Also make sure your phone is working with the normal "adb shell" command.
Usage notes
- Please make sure your device is connected in USB debug mode before using ADB Magic !
- Please make sure you do not have the SD cards mounted to your PC !
- This has been developed only with a Galaxy S, so I'm not sure how well it'll work with other devices
Download
<< 1.0, 625

Awesomesause, i would recommend reposting in the android dev forum
edit: should have read ur post xD...

New version and moved ...

I have to say i tryed it on my x10,, and great works good, this program has lots of promise, Thank you and top marks for the work so far keep it up...

Works fine on my X10i. Great work. Very promising.

crap no linux version

nice utility,It works well for the Evo

very nice....works on droid

Thanks for this really useful program. It works great on my X10i.

very nice! works with xdandroid on tp1.

Absolutly great, thank you very very much for this! Extremly helpful!

This is pure awesome, thank you!

Updated to 0.9, now works with ROMs with the latest busybox

Found an issue
Hey, ive found you cant ctrl+c in shell, when i was testing my bootanimation;
#bootanimation
you usually hit crtl+c to stop, in this case I could not, so I had to restart the phone.
Otherwise, looking really good so far hey! Keep up the good work!

Super cool. Mad Props.

HI Chainfire!
I love this app, it's great! I've stumbled across a problem though... I upgraded from JPC to JPK on the weekend and since then it hasn't been working, even after going back to JG4. All the times I've tried it, I've been rooted. It comes up with an error box that just says ! in it.
I haven't changed any of the adb files, and I can also use adb shell manually. Any ideas?

Haven't flashed to JPK yet so no idea, but I'll see once I do

No worries!.
I moved it then ran ADBMagic so it could look for ADB, then put ADB back and selected it, still no luck. Also, I flashed back to JG4 then rooted and it still wouldn't work.
I also noticed that for some reason, it can't start the ADB server and issue the toolbox ls -l / command, even with busybox installed but it CAN see the live logging.
I'm stumped :S
-edit-
I got ADB File Explorer and tested it again. It works, but can't read all directories as it's not able to get su priveliges. I seem to remember the first time I used ADBMagic that SuperUser on the phone asked to allow ADBMagic... am I right or remembering badly? If so, it's not asking me to allow it anymore, across the different roms/roots. Strange.

OK, don't worry about my problem at the moment mate, it seems it's the symptom of a larger problem not associated with your program

Nitephyre said:
OK, don't worry about my problem at the moment mate, it seems it's the symptom of a larger problem not associated with your program
Click to expand...
Click to collapse
Care to elaborate on what this is? I'm having the same problem on my Rooted Captivate JH7, and I need it for the Jupiter GPSfix.

Related

[ROM - 32B] ZeroXd 5.2r4 / JACHeroSki-v2.0 [09/11/2009 - 11:47AM EST]

I will be accepting donations if you like my work. After contacting HTC, they informed me that my device is not under warranty, as a technician determined it to be "user related" damage and that all repairs will be at owner expense.
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8141983
If you follow my twitter, you know I bricked my G1. I am trying to get it repaired, but due to the long response time I had to buy a mytouch (no point having two G1s IF the other one gets repaired). Using this bad luck to my advantage, I scripted a way for hero to run on both with two simple commands.
How I rooted a brand new "perfected SPL" MT3G and installed Hero in 15 min:
http://forum.xda-developers.com/show...&postcount=154
Link to original thread: http://forum.xda-developers.com/showthread.php?p=4365404#post4365404
Updated, but still feeling slow? Back up. Try rm system/sd/app_s then reboot to recovery and wipe data. then install fresh. Before restoring your data, open the backup folder on your sd card and remove the subfolders for programs you no longer have or need to have backed up.
I noticed a 10% increase in speed and my phone was far from lagging to begin with.
Losing messages? Make sure that system/sd/app/com.android.mms.apk does NOT exist, as this was an old release. Go into settings for messaging (from the conversation list panel) and set priority to "High"
Most Recent:
G1 / MT3G: http://twistedumbrella.slackdev.com/ZeroXd-6.0.zip
Now includes dynamic swap. Rewrote the method of apps to sd for myTouch.
Build will move system apps, user apps, and dalvik to sd on a g1 device.
Build will ONLY move user apps to the sd when using a myTouch.
This will allow the system apps and dalvik to remain on internal device.
This is a completely new method of doing a merge build so bear with me.
I am going to be rewriting things for users without a lot of user apps, like myself.
This will allow the entire build to be placed onto internal for mytouch users.
Once you have updated and are ready to use the phone, execute Terminal and enter the following commands:
su
magic
This configures the system to the specific device. This is until I finish automation.
LEDs have been restored to 93%
Bluetooth restored in MT3G
Porting my own boots for MT3G
Based on the System Image from Haykuro
Using the Kernel and Boot.img from JAC
Extensive system script edits were done
SwitchROM installs itself to system/sd/
LEDs are at about 90-100% brightness
CPU Optimization turned off by default
Enhanced Terminal included
Fixed My Account included
G1 / MT3G: http://twistedumbrella.slackdev.com/ZeroXd-5.2r5.zip
http://twistedumbrella.slackdev.com/Resources.zip
twistedumbrella said:
MultiTouch for MT3G being patched NOW
Click to expand...
Click to collapse
Does that mean multitouch doesn't work and one more unanswered questio IS it from the latest release that modaco did, i asked it since 5.0 so please answer
White Rosie doesn't work i tried it but i doesn't show up and it doesn't even install shows parse error, can you do something about that. Really appreciate your work. Will donate as soon i finish with my exams, I came to US for a holiday for 3 months and as i came back i have exams, only 3 left, have to finish 6 books per subject (thats f*****ng 3 months syllabus) and i have exams after 2 day holidays , thats why i have been a bit inactive in the community, will be active on 24 and will provide a special version of HERO based on my favourite ZEROXD.
Installed JACHeroSki 2.0 and i get stuck on a boot loop. i've tried wiping and re-flashing and same thing.
mgorman said:
Installed JACHeroSki 2.0 and i get stuck on a boot loop. i've tried wiping and re-flashing and same thing.
Click to expand...
Click to collapse
For me 2.0 working fine,but cannot install ZeroXd-5.2r4-installation aborted:/
In v2.0 cannot run wifi:/somebody else?
Had to fix scripts. Check the link on original thread for download. They are the same files. The verification fail happens when your downloading as I upload. It was a last minute fix on the way to work. Sorry for the issues.
hey twisted...great work on the roms...
couple issues with me...
auto-rotate doesn't work...
auto correct and dictionary doesn't work also...
is there any way we can correct this?
tq745 said:
hey twisted...great work on the roms...
couple issues with me...
auto-rotate doesn't work...
auto correct and dictionary doesn't work also...
is there any way we can correct this?
Click to expand...
Click to collapse
What device are you using? MyTouch? Did you run the terminal command?
BTW, for everyone else: http://twistedumbrella.slackdev.com/user.conf
Did some testing, seems to run a little smoother
tq745 said:
hey twisted...great work on the roms...
couple issues with me...
auto-rotate doesn't work...
auto correct and dictionary doesn't work also...
is there any way we can correct this?
Click to expand...
Click to collapse
Thank you... h.nocturna for the fix, and nacron for the heads up...
Here is the fix for auto-complete... Worked for me on 5.1r2
Everything in
open dos prompt.
adb remount
(***back up the original***)
adb pull /system/sd/app_s/HTC_IME.apk c:\(*your directory*)\HTC_IME.apk
(***install the new one***)
adb push c:\(*your directory*)\HTC_IME.apk /system/sd/app_s/HTC_IME.apk
start your Messaging it will crash the first time you want to use the keyboard... restart Messaging and it should work...
HTC_IME.apk here: http://www.mediafire.com/?te0symyx4yz
Mms auto-rotate works for me in 5.1r2 so I dont know. But possibly you still have the old Mms.apk. Try pushing the new one from 5.0 or later rom...
Twisted are you using BFS in your new builds??? Post 5.1 that is....
twistedumbrella said:
What device are you using? MyTouch? Did you run the terminal command?
BTW, for everyone else: http://twistedumbrella.slackdev.com/user.conf
Did some testing, seems to run a little smoother
Click to expand...
Click to collapse
so i opened up better terminal and when i entered su it says
/system/xbin/su: not found
help?
in the meantime i'll try zambesey's way
twistedumbrella said:
What device are you using? MyTouch? Did you run the terminal command?
BTW, for everyone else: http://twistedumbrella.slackdev.com/user.conf
Did some testing, seems to run a little smoother
Click to expand...
Click to collapse
so i opened up better terminal and when i entered su it says
/system/xbin/su: not found
help?
in the meantime i'll try zambezy's way
same issue as above :-(
1.8 is running pretty awesome.
i guess its safe to assume that i shouldn't try 2.0 yet? lol
zeroxd 5.2r4 seems to be faster than jacs 2.0 but i cant get auto rotate to work or multitouch and when i try the commands in first post i get "/system/xbin/su: not found''
did you try running the commands via adb ?
im not familiar with doing it that way i dnt even know wat adb is
just connect your phone to the pc
install the drivers from android SDK
start > run > cmd
cd to the android tools directory
and adb shell
that's how i did with my phone and works perfectly
im not gona risk any damage ill deal without the rotate for a day till its fixed
tq745 said:
so i opened up better terminal and when i entered su it says
/system/xbin/su: not found
help?
in the meantime i'll try zambezy's way
Click to expand...
Click to collapse
should be under /system/bin not xbin

[TOOL] ADB Gui - Also flashes radios [08/01/11]

For all you guys constantly flashing kernels,
I have made a little app to make sure that all command are typed in correctly & to make it a little easier.
You can find it here.
http://minooch.com
Let me know if you think I can make any improvements.
I've only tested it with my N1, but there is no reason why it wouldn't work on other android phones - its just using adb & fastboot. Having said that, it will obviously need the AndroidSDK installed (well partly) & the only other requirement is .NET 2.0 or up.
I finally got around to posting the new version - Version 1.0.1 - The main feature that has been added is synchronise. For example, you can select a folder full of music on your PC & it will copy all the music to your phone (if it's not already on there), & if there is music on your phone thats not on your pc that will copy over as well.
26/05/10 - Small change - Version 1.0.2 - ADB location is now saved in registry
17/08/10 - Version 1.0.3 - Added flash radio (via fastboot) - It will reboot into the bootloader, flash the radio & then reboot the phone
30/08/10 - Version 1.0.4 - Added a donate link
25/11/10 - Version 1.1 - It now has the option to verify the MD5 before flashing a radio
08/01/11 - Version 1.2 - Language can now be changed - Language.lang has the values of all labels, buttons & comboboxes
Known Bugs: (wth synchronise)
If a folder has a space in its name, it's contents won't sync properly (currently working on a solution)
If you delete a file/folder on your phone/pc (not both) it will be copied back next time you sync (not sure how to fix)
The destination folder must exist already (/sdcard/music or where ever you choose), but obviously not the folders what will synced they will be created
Cheers,
Minooch
Feel free to donate
Nice work. Looks like it will make things easier for inexperienced users...which I am not sure is a good or bad thing.
Also, you might want to add "adb reboot recovery". I know I use it fairly often.
(make it "adb wait-for-device reboot recovery". This way, if your phone is bootlooping due to you having not installed bcm4329, you can access recovery for adb push options to fix the bootloop)
rcxquake said:
Nice work. Looks like it will make things easier for inexperienced users...which I am not sure is a good or bad thing.
Also, you might want to add "adb reboot recovery". I know I use it fairly often.
(make it "adb wait-for-device reboot recovery". This way, if your phone is bootlooping due to you having not installed bcm4329, you can access recovery for adb push options to fix the bootloop)
Click to expand...
Click to collapse
didn't know that command will add it now. - edit: Done
Cheers,
Minooch
I'm happy with ADB so not going to be using this (don't mean that the way it sounds!) but just thought if the user is pushing the .ko over adb, will they need and "adb remount" option as well?
yep you will need to remount - but that is automatic.
Using my tool, it takes less steps & is faster
great tool! thumbs up!
Great tool. Any chance for a Wipe Cache/Dalvik Cache option? A lot of times this will fix a bootloop when flashing different kernels on top of eachother. I understand it's in the recovery but this could speed up the process even more.
mikroN1 said:
Great tool. Any chance for a Wipe Cache/Dalvik Cache option? A lot of times this will fix a bootloop when flashing different kernels on top of eachother. I understand it's in the recovery but this could speed up the process even more.
Click to expand...
Click to collapse
Thanks,
Will have a look into it.
looks like a nice tool.. gonna give it a try
good work man
Hey man I'd have to say that I'm getting used to the command line that I nearly forgot there's something in the world called GUI It's really a great tool for lazy guys like me (even I've written a simple shell script). Good job!
Thread hasn't been bumped in awhile. You still working on this Minooch? I was wondering if you could have it save your ADB location? Maybe have it save settings to an .ini file.
MikroN1,
I will add that later today when I get home from work.
Cheers.
Can you please kindly provide the manual instruction, as I'm not the professional user, even I don't know much the ADB command codes, so please instruct the functions of the buttons.
mikroN1 said:
Thread hasn't been bumped in awhile. You still working on this Minooch? I was wondering if you could have it save your ADB location? Maybe have it save settings to an .ini file.
Click to expand...
Click to collapse
mikroN1,
It nows saves the ADB location to registry
devil126 said:
Can you please kindly provide the manual instruction, as I'm not the professional user, even I don't know much the ADB command codes, so please instruct the functions of the buttons.
Click to expand...
Click to collapse
I'm a little confussed by what you want. Are you wanting a manual for ADB GUI or how to use ADB?
This is very good. Downloading now.
New Version - 1.0.3
Added flashing radio via fastboot
It will reboot into the bootloader, flash the radio & then reboot the phone
using ADB sync for sqlite DB
Hi,
I am fairly new to Android / ADB and i have found ADB as a great tool.
My requirement is to sync a sqlite DATABASE (from my PC and on device), i am not sure how should i go ahead with this, gave couple of tries but not able to get anything
Can anyone please suggest me possible ways to fix up this issue. If this is not possible please give me any alternate (i believe this is possible).
Any help in this regard would be highly appreciated.
Thanks in advance.
BTT
asinghma said:
Hi,
I am fairly new to Android / ADB and i have found ADB as a great tool.
My requirement is to sync a sqlite DATABASE (from my PC and on device), i am not sure how should i go ahead with this, gave couple of tries but not able to get anything
Can anyone please suggest me possible ways to fix up this issue. If this is not possible please give me any alternate (i believe this is possible).
Any help in this regard would be highly appreciated.
Thanks in advance.
Click to expand...
Click to collapse
Bringing this thread to top.
Can anyone provide the source for ADB sync (prob from ADB_GUI tool)
Thanks,
Think you should add a donate button somewhere in your app too!
Vulpix said:
Think you should add a donate button somewhere in your app too!
Click to expand...
Click to collapse
Done Feel free to be the first to donate
Oh, If you would like me to add any features, let me know

AdFree Hosts file

Since we currently can't write to /system while Android is running, the AdFree app is unfortunately unusable. However, here is the hosts file that the app supplies you with, so you can still put it into your phone manually.
Download the attached file, unzip it and place the hosts file on your sdcard. Then, open up a command prompt, load up your recovery menu (using the instructions in toastcfh's guide) and type:
Code:
adb shell
mount /system
mount /sdcard
cp /sdcard/hosts /system/etc/hosts
exit
Now you're AdFree
As in AD free while on the web only? Or does this block the ADs that are displayed within certain programs? Like Spare Parts for example.
VoXHTC said:
As in AD free while on the web only? Or does this block the ADs that are displayed within certain programs? Like Spare Parts for example.
Click to expand...
Click to collapse
Everytime the phone goes to download an ad, it gets blocked. So in both the browser and inside apps.
a) not development
b) i already did this thread
http://forum.xda-developers.com/showthread.php?t=695196&highlight=adfree
I'm guessing this requires root?
Also, those commands can't work AFAIK, because mount needs two arguments.
Or am I missing something here? I'm new.
I have actually had 0 problems running adfree right out of the box. Installed, ran and bam no ads. Didn't have to modify nothing through ADB.
superevilllama said:
I have actually had 0 problems running adfree right out of the box. Installed, ran and bam no ads. Didn't have to modify nothing through ADB.
Click to expand...
Click to collapse
U running 2.2? BC I see lots more adds since 2.2, it blocks some but not most.
Sent from my PC36100 using XDA App
You know, to my embarassing discovery, I never noticed (as I found this thread from google) but this is the forum specifically for EVO.
I'm running a DX (so 2.1), so that may be the problem. But still, I wouldn't think such things would be different in the OS. Guess the package it differently. Oh well. Not gonna bother rooting my toy just yet, hehe. Sorry bout the confusion.
AdFree is working perfect on CM7 nightly 23 & 25 & MikFroyo 4.5 but it does not work if you have BusyBox 1.18.3 but works perfect with BusyBox 1.17.1. I did not test other versions but I think the problem is related to BusyBox 1.18.3 by today 03/19/11.
Still there are ads running on some apps
like moneycontrol, and more.
Gregalous said:
Since we currently can't write to /system while Android is running, the AdFree app is unfortunately unusable. However, here is the hosts file that the app supplies you with, so you can still put it into your phone manually.
Download the attached file, unzip it and place the hosts file on your sdcard. Then, open up a command prompt, load up your recovery menu (using the instructions in toastcfh's guide) and type:
Code:
adb shell
mount /system
mount /sdcard
cp /sdcard/hosts /system/etc/hosts
exit
Now you're AdFree
Click to expand...
Click to collapse
earth08 said:
Still there are ads running on some apps
like moneycontrol, and more.
Click to expand...
Click to collapse
Its not updated, try absolute system tools from the Android Market. It downloads an updated script
If anyone is interested I created an app (Warning: requires ROOT) that allows you to enter one or more URLs and/or file paths and merges them and installs them as hosts. You may find the source-code here: https://code.google.com/p/android-ad-blocker/
I'll try to fix bugs for it but I can't promise I'll have time.
Edit: I made a new version because the old one had some issues transferring large files. You may find it here: http://dl.dropbox.com/u/8443626/android-ad-blocker.apk
Adfree works fine, Am I missing something? I just ran it, it updated my host file. I checked again and it said it's the latest version
Sent from my PC36100
karilofyore said:
If anyone is interested I created an app (Warning: requires ROOT) that allows you to enter one or more URLs and/or file paths and merges them and installs them as hosts. You may find the source-code here: https://code.google.com/p/android-ad-blocker/
I'll try to fix bugs for it but I can't promise I'll have time.
Click to expand...
Click to collapse
Can u help me... on how to use ur app
Sent from my °•EvO HD•°
Can u explain this process... where is the guide from toast...
Sent from my °•EvO HD•°
acme64 said:
Adfree works fine, Am I missing something? I just ran it, it updated my host file. I checked again and it said it's the latest version
Sent from my PC36100
Click to expand...
Click to collapse
x2 im confused
@ acme64 : Some people in market comments complained that it doesn't work fine anymore and it's a root app with closed source. Since it was simple to write a similar tool I did it for myself mainly.
@ Don74y3 : The way to use the application is to put a URL to a hosts file. You may use for example the one in the screenshot (I can't put the link here because of forum rules but use Google to search for "hosts file winhelp2002" and from the first link, take the address from "To view the HOSTS file in plain text form") and then click "Apply". What the program does is get that file and put it in your (rooted) Android phone. That file in turn lets the phone avoid domains that serve ads or malware. The app can take more URLs and merge them, but that's not necessary. After clicking "Apply" it is recommended to reboot the phone to make sure the changes go into effect. You will see that the pages load faster and without ads.
P.S. I'm not affiliated with the guys that make that hosts file, though I'm grateful for their work.
Unable to figure out system mount point.
Can you please help with this?
MattSkeet said:
Unable to figure out system mount point.
Can you please help with this?
Click to expand...
Click to collapse
Hi, the programs tries to figure out where the /system partition is mounted on your phone (this is because it has to switch it to read-write, put the hosts file and switch it back to read-only). I wrote the program to parse the output of the "mount" command.
Unfortunately it seems that on your phone the output is far different than what I expected. I don't know how to fix this unless you can send me the output of that command on your phone - by PM for example. To do this use adb (try to Google for how to get Android Debug Bridge) with your phone connected: run "adb shell" from a command prompt and at the shell prompt type "mount" without quotes and send me the output - at least the line that contains "/system".
Hi,
I have a different question.
I used adFree but then decided that I actually wanted see the ads on my apps.
I removed AdFree but the ads are still gone.
Is there a way to bring them back?

[TOOL][SCRIPT] AndSync - Synchronize Backup and Restore Android Devices

AndSync v1.3
About AndSync
This script helps you to:
- Synchronize applications if you have multiple android devices.
- Backup and Restore applications in batch.
- Un-install applications in batch.
- Backup and Restore application data on rooted and non-rooted (only for ICS and above) devices.
- Use your PC or Laptop to perform full backups. There is no need to first backup on SD card and then copy to your PC.
Why did I develop this?
1. I own multiple android phones with about 200 apps installed (I have no idea why ) and it has become difficult to manage application updates from Play Store on these devices.
2. I needed a quick and easy way to backup applications directly to my computer and restore them after I do a full re-flash.
What are the prerequisites for this script?
Android SDK (ADB shell)
Perl v5.10.1 (Any latest version of Perl would also be fine)
Note: I used these versions, it may work on older versions as well but I have not tested those.
Installing prerequisites
- Install Perl from here
- Install Zip for Perl (Ubuntu Users) - sudo apt-get install libarchive-zip-perl
- Install adb using instructions from here
On which Desktop/Laptop OSes will this tool work?
It is a Perl script and so it should work on all OSes that can run Perl. Of course Android SDK port (at-least for adb) should exist.
For which versions of Android will this tool work?
I have come across 'adb backup' and 'restore' commands but that is not available for older/all devices. Using this tool you can perform backup and restore of devices with Android Gingerbread and above. (I have only tested using GB and JB). Froyo devices are not supported in the current version.
Where can you find this tool?
Here is the link [AndSync]. You can just download the Perl script 'AndSync.pl' and execute it if you have Perl installed.
From AndSync v1.3 the script can be updated automatically from Settings->'Update this script'.
Known Issues
- Some operations spit out too much information on console.
- Does not support Froyo devices at the moment.
If you have issues with market links try:
Settings->Applications->Manage Applications->All->Google Play Store->Force Stop & Clear Data
Please share your thoughts and suggestions for improvement. Please open issues on Github so that it can be tracked.
Enjoy Android !!
Feature Requests:
DONE
1. Warn before over writing old backups. (Done)
2. Restore market links? (Please try the solution in the main post)
PENDING
1. Selective Backup and Restore.
Updated to AndSync v1.1
Updated to AndSync v1.2
Great tool, thanks!
Looks interesting, will try it out over the weekend.
Thanks
Sent from my Xoom using Tapatalk 2
do you think i can restore a system app with it....will try this week end on huawei honor u8660...thx
can you upload Perl v5.10.1 please....
Trying this out. I wonder how the speed compares to Titanium in terms of speed.
EDIT: As of right now, it doesn't recognize my 3VO running Gangnam Style CM10. Will test again after flashing Sense 4.1.
orb3000 said:
Great tool, thanks!
Click to expand...
Click to collapse
Thank you for your review!
desalesouche said:
do you think i can restore a system app with it....will try this week end on huawei honor u8660...thx
can you upload Perl v5.10.1 please....
Click to expand...
Click to collapse
You can restore system apps if your phone is rooted. Currently all operation are done in batch there is no option to restore only a selected app (you can delete all unwanted apps (keep the only one you want to restore) from the Backup directory and get it done).
thebeastglasser said:
Trying this out. I wonder how the speed compares to Titanium in terms of speed.
EDIT: As of right now, it doesn't recognize my 3VO running Gangnam Style CM10. Will test again after flashing Sense 4.1.
Click to expand...
Click to collapse
Thank you for trying out this tool. I have not done any comparisons yet. I had tested it on Motorola Defy with CM10. For ICS and up there is an alternate backup restore support as well.
Please post your suggestions for improvement.
awesome... multiple devices? very nice... my brother in law was just wanting me to reset his phone to factory so he can take the latest update... and with my gnex... can't wait to give try this out
[
cant get it work
1)downloaded perl 5.16.1 and extracted to d:
2)downloaded andsync files and copied to a folder in d:
3)adb already in d:
tried your command from all the places. din't work. please some more guidance i'm sure there are more ppl like me
thanks for your help. i'm on win7 and One X already connected through usb debuging
jacktackle said:
[
cant get it work
1)downloaded perl 5.16.1 and extracted to d:
2)downloaded andsync files and copied to a folder in d:
3)adb already in d:
tried your command from all the places. din't work. please some more guidance i'm sure there are more ppl like me
thanks for your help. i'm on win7 and One X already connected through usb debuging
Click to expand...
Click to collapse
You need to add adb and/or perl to your path variable:
Find the directory you installed perl and/or adb to, and add it to your path variable using this guide:
http://www.computerhope.com/issues/ch000549.htm
to check if its working properly (optional):
open up cmd (press win+r, then type cmd and press enter)
type adb
if it outputs info, then adb is working
type perl -v
if it outputs info, then perl is working
if you get
Code:
'<command>' is not recognized as an internal or external command,
operable program or batch file.
Then andsync script wont be able to find the needed programs
if this is in place, you should be able to double click the file or type perl <path>\AndSync.pl from within cmd prompt :highfive:
Great work
Wizwin, great script! :good:
I would like to request that the script gives a warning, or even the choice to make multiple backups when backing up for a second time
i did it twice in a row to test, and it just overwrote the first backup without warning - this could result in very unfortunate things for some people
Also, handling of multiple backups would be neat
paccer said:
Wizwin, great script! :good:
I would like to request that the script gives a warning, or even the choice to make multiple backups when backing up for a second time
i did it twice in a row to test, and it just overwrote the first backup without warning - this could result in very unfortunate things for some people
Also, handling of multiple backups would be neat
Click to expand...
Click to collapse
Thank you. Sure I will add that as an enhancement in the next release. I was waiting for requirements to come up.
Just tried it out, works well - thank you.
On a Le Pan TC970 tablet, running CM7 Beta 6.1 Gingerbread.
Please note: This apparently currently breaks android market links
I used titanium backup pro to restore them
Without, i guess there's no updates etc. for the restored applications (someone confirm?)
"recover android market links" would be a nice feature
hy!how can I use in windows 7 32 bit??
im sort of a newbie when it comes o scripts like this. I am running OSX Lion 10.7,5 and i have adb setup. Can i use this? Shiiiid how do i use this??
NVM: Too much work
paccer said:
Please note: This apparently currently breaks android market links
I used titanium backup pro to restore them
Without, i guess there's no updates etc. for the restored applications (someone confirm?)
"recover android market links" would be a nice feature
Click to expand...
Click to collapse
I have seen/used this feature in TB, let me check if something needs to be done to provide this feature.
acultr said:
hy!how can I use in windows 7 32 bit??
Click to expand...
Click to collapse
Yes! you can run it on any Desktop OS with Perl installed.
treyweez11 said:
im sort of a newbie when it comes o scripts like this. I am running OSX Lion 10.7,5 and i have adb setup. Can i use this? Shiiiid how do i use this??
NVM: Too much work
Click to expand...
Click to collapse
Open a Terminal on Mac, change the directory to the path where you placed the 'AndSync.pl' script and type in 'perl AndSync.pl'. I have executed it on a Mac but not tested it completely but I guess it would work fine if you have setup Perl and adb.

Stuck uploading APK to Lineage 18 ROM (read to the end)

Preamble​I oft find in various forums that people are so filled with the milk of human kindness that they just can't wait to help, ( or may gain a few more badges~) ignoring everything but the heading.
And in doing so ask foolish questions.
So, please DO READ to the end.
UPDATE
Thanks to @ jwoegerbauer I now know I can't install the Lantern APK via recovery. I must use ADB which I have previously tried but failed.
Obviously, therefore I do not know what I am doing with ADB.
My tasks focus now is to install Lantern APK via ADB with the devices , tools and systems already mentioned. (below)
Unless someone, somewhere knows where I can find a Lantern ZIP file which I can flash. (seems I am good at that now at least~)
Please DO read everything below ladies and gents, my sense of humour and patience does have a limit~
Mobile Device Details​Samsung note 3 originally 9006 Chinese ROM
Rooted via Odin to 9005
Upgraded to Lineage ROM 18
Uploaded pico Gapps
Uploaded Magisk v23
Desktop Machine
Asus P5BSE / Core2 Duo E4400 @ 2.00GHz / 4GB ram / 2TB storage / Linix; Zorin Core 15.3
Project in brief​To install Lantern. (getlantern.org)
Lantern is usually installed via Google play store.
Google is blocked in China.
Downloaded Lantern APK to upload to phone via recovery from SD card.
Recovery does not show the APK in the SD card.
Stuck.
Further info - useful?​During one of my many attempts to install Lineage following a blog, I wiped the disk in error.
I also suspect I removed the backup of the original Samsung system as when I tried to reboot, TWRP mentioned there was no O/S.
Nothing I could do restored the original.
What was it Macbeth said about being in blood stepped so far?
On my final install of Lineage 18 I seem now to have their Recovery, not TWRP.
I am happy with that, seems no big deal for me, I was able to successfully install the new OS + Gapps. And it is one less APP to install
I also have Magisk installed, the device is in dev mode and - seemingly rooted. (although the App does not explicitly say so)
Using a borrowed SIM card I can connect to the China mobile network system.
I now have a fully functional, working , English language device with Lineage 18.
Brilliant!
My last task is to figure out how to get the Lantern App sorted.
I have downloaded the APK from their official site, several others as well as a supposedly zip file.
Saved to SD card, visible when viewed on Linux, invisible when card is installed in mobile.
I really do not know quite how to proceed from here.
If I have missed anything, sorry, please ask.
Huge thanks to RAIZ from this forum for getting me to this stage and the guys who made Lineage 18 so darn easy to install and seemingly impossible to mess up.
And boy oh boy, believe me, I have really tried over the past few months~!
thebic said:
Mobile Device Details​Samsung note 3 originally 9006 Chinese ROM
Rooted via Odin to 9005
Upgraded to Lineage ROM 18
Uploaded pico Gapps
Uploaded Magisk v23
Desktop Machine
Asus P5BSE / Core2 Duo E4400 @ 2.00GHz / 4GB ram / 2TB storage / Linix; Zorin Core 15.3
Project in brief​To install Lantern. (getlantern.org)
Lantern is usually installed via Google play store.
Google is blocked in China.
Downloaded Lantern APK to upload to phone via recovery from SD card.
Recovery does not show the APK in the SD card.
Stuck.
Further info - useful?​During one of my attempts to install Lineage following a blog, I wiped the disk in error.
I also suspect I removed the backup of the original Samsung system as when I tried to reboot, TWRP mentioned there was no O/S.
Nothing I could do restored the original.
What was it Macbeth said about being in blood stepped so far?
On my final install of Lineage 18 I seem now to have their Recovery, not TWRP.
Seems no big deal for me, I was able to successfully install the new OS + Gapps.
I also have Magisk installed, the device is in dev mode and - seemingly rooted. (although the App does not explicitly say so)
Using a borrowed SIM card I can connect to the China mobile network system.
I now have a fully functional, working , English language device with Lineage 18.
Brilliant!
My last task is to figure out how to get the Lantern App sorted.
I have downloaded the APK from their official site, several others as well as a supposedly zip file.
Saved to SD card, visible when viewed on Linux, invisible when card is installed in mobile.
I really do not know quite how to proceed from here.
If I have missed anything, sorry, please ask.
Huge thanks to RAIZ from this forum for getting me to this stage and the guys who made Lineage 18 so darn easy to install and seemingly impossible to mess up.
And boy oh boy, believe me, I have really tried over the past few months~!
Click to expand...
Click to collapse
What recovery are you using? Have you tried different recoveries?
What version of twrp are you running?
An APK will never get installed via Recovery.
You typically install an APK ( sideload method ) by means of ADB.
Code:
adb devices
adb install <FULL-PATHNAME-OF-APK-ON-PC-HERE>
Yeah you could use adb sideload in twrp.
jwoegerbauer said:
An APK will never get installed via Recovery.
You typically install an APK ( sideload method ) by means of ADB.
Click to expand...
Click to collapse
Hehe, I can verify your first statement!
Do you have a link you can direct me to please as to how to do it via ADB in Lineage recovery as I did try that (side loading) via TWRP and it threw back an error. I can't recall but I think it was permissions or similar?
Sorry, I forgot to mention that in my post.
Thx for your constructive feedback - much appreciated.
P
Re-read my cited post: I've edited it.
jwoegerbauer said:
An APK will never get installed via Recovery.
You typically install an APK ( sideload method ) by means of ADB.
Code:
adb devices
adb install <FULL-PATHNAME-OF-APK-ON-PC-HERE>
Click to expand...
Click to collapse
Ohhhhh Kayyyyyy - coping.
Just.
You have added code?
Before I go ahead and destroy New York, I use that where?
How?
and errr... why?
I am guessing in Terminal, but I am not really sure what I am trying to achieve here.
Sorry, not arguing or being difficult, I just find it helps me if I know what EXPECTED outcomes are. Just in case it isn't what I should expect. :>(
Thx for your patience.
p
I think the understandable answer is given here:
adb install - Android ADB Shell Commands Manual
adbshell.com
Of course it's required ADB got installed on Windows computer if not done yet: if not then you may use the installer script linked to in my signature.
jwoegerbauer said:
I think the understandable answer is given here:
adb install - Android ADB Shell Commands Manual
adbshell.com
Of course it's required ADB got installed on Windows computer if not done yet: if not then you may use the installer script linked to in my signature.
Click to expand...
Click to collapse
Thx not so helpful.
I've edited my post with a preamble, please check it when you have time.
Have a nice weekend.
thebic said:
Thx not so helpful.
I've edited my post with a preamble, please check it when you have time.
Have a nice weekend.
Click to expand...
Click to collapse
[email protected]:~$ adb install test.apk
can't find 'test.apk' to install
[email protected]:~$
I seem to be going in ever decreasing circles.
Please help me out- what is protocol.
Do I keep updating my progress - or lack of- here, in this dialogue, or should I continue to update my original post?
Which one best communicates to everyone where I am at?
Cheers
thebic said:
[email protected]:~$ adb install test.apk
can't find 'test.apk' to install
[email protected]:~$
Click to expand...
Click to collapse
You forgot to add the exact file directory.
Keno_I said:
You forgot to add the exact file directory.
Click to expand...
Click to collapse
Did it work after adding the file directory?
You are right.
I am not sure how this forum works, so it was more of a post to jwoegerbauer.
Anyway, even opening the folder with terminal and using adb install lantern-installer failed with a CLOSE error message. I guess that meant close as in shut not closes as in almost!
I can, using Lineageos recovery access ADP on my phone with the instruction: " now send the package you want to apply to the device with "adb sideload <filename>"
However that triggers a screed of data in terminal which, frankly, is well beyond my rudimentary level of comprehension.
I have tried following 3 other on line tuts which suggest using ADB on my computer. All goes well until the instruction: <adb devices> which returns:
$ adb devices
List of devices attached
In other words, computer can't find phone!
I initially tried it in DOWLOAD mode, with the usual "download in progress, do not disconnect source."
Then reading the tuts again, none mentioned download mode so I tried with just the device attached to the machine in normal phone usage mode. Checked that SAMSUNG was visible and I could open the folders but again failed. ( sorry I forget what that error message was)
So far the most positive has been the direct ADB via Lineageos, but I have no idea where to go from there.
It is knocking on 37* here, too hot to think so I am taking a break.
Thx for your latest efforts.
Cheers
P
OK Finally!
[email protected]:~$ adb devices
List of devices attached
438f904d device
[email protected]:~$ adb install /home/bicyu/Sam-upgrade/lantern-installer/lantern-installer.apk
Performing Streamed Install
Success
[email protected]:~$
I have read so many posts all end with the <adb devices> and on each one I see zilch.
So, for anyone else in this boat, here is my solution.
In developer OPTIONS on your LINEAGEos device scroll down to
DEFAULT USB CONFIGURATION​Very likely it is set to FILE TRANSFER - mine was.
Change it to USB TETHERING
Then enter < adb devices> in terminal.
You should then see your Android listed.
Proceed with: adb install <FULL-PATHNAME-OF-APK-ON-PC-HERE>
You should see a SUCCESS flag!
NOTES: This works in Lineageos ROM on Linux, ( Ubuntu / Zorin O/S)
I dunno about others.
You need to have dev options activated.
Change the USB setting back when done, otherwise it tends to mess up your Internet! (did mine anyway!)
This is the best background tut to ADB I found.
He talks about a USB3 bug which, apparently, creates the same problem - maybe THAT is your issue? It was that article which put me on the USB CONFIG train.
Hope this helps someone.
A REALLY HUGE thank you to jwoegerbauer for putting me
on the right track - wrong train, - but right track.
Cheers mate!
Glad to hear you solved it.
Only to have mentioned it, there is a workaround - as always because many ways leads to Rome:
Copy the APK of interest onto MicroSD-card, plug the card into phone, afterwards using any File Manager application that is installed on phone, navigate to the location on MicroSD where the APK file is located and finally double-click on the APK file: this will install the APK.
Yep! Well good luck
jwoegerbauer said:
Glad to here you solved it.
Only to have mentioned it, there is a workaround - as always because many ways leads to Rome:
Copy the APK of interest onto MicroSD-card, plug the card into phone, afterwards using any File Manager application that is installed on phone, navigate to the location on MicroSD where the APK file is located and finally double-click on the APK file: this will install the APK.
Click to expand...
Click to collapse
NOW he tells me!
That was where I began 2+ weeks back, downloading to SD card and trying to find a way inside the phone to do it. Never thought of File Manager! Duh~
Take care buddy, enjoy your weekend, wherever you are.
p
thebic said:
NOW he tells me!
That was where I began 2+ weeks back, downloading to SD card and trying to find a way inside the phone to do it. Never thought of File Manager! Duh~
Take care buddy, enjoy your weekend, wherever you are.
p
Click to expand...
Click to collapse
Aroma File Manager, how nostalgic~
Now to wait till a mod closes this post

Categories

Resources