Related
I managed to successfully compile the adb and fastboot binaries for PowerPC by hacking the Android SDK a little bit. If you use a PowerPC Mac and would like to use it for debugging/etc Android device, you may find these interesting. (The apps were compiled under Leopard, I have no clue if they will also run on Tiger or not)
Word of warning: I don't take any responsibility if any of these apps kill your phone or the neighbors. You have been warned.
Known bugs: serial numbers are shown incorrectly in both apps, also you should run them from iTerm as they messed up the standard Terminal.app for me once.
Tested and working features (on a PowerBook 12" 1.5Ghz and an iBook G4):
adb:
shell
logcat
reboot
bugreport
push
pull
fastboot:
reboot
reboot-bootloader
flash (radio|hboot)
erase (system|boot)
acp:
Didn't test this one, I never used it, but seems like working.
Since I don't have any other machine ATM, I couldn't test the flash function yet, I'm planning to do that soon. Anybody curious enough to test, please reply with your results, so I can update the list. As always, donations are welcome
Just tested on my ibook g4!
It works fine! Thank You very much!
EDIT:
I used it to flash the new bootloader (1.33.013d) and the new radio (2.22.28.25_S) via fastboot.
Commands tested:
fastboot flash radio RADIO-2.22.28.25.img
fastboot flash hboot hboot-1.33.0013d.img
fastboot reboot-bootloader
fastboot erase system -w
fastboot erase boot
fastboot reboot
Glad to hear that, I'll update the first post in a few minutes. Can you confirm the bug with the serial numbers or was it working for you?
Z0l said:
Glad to hear that, I'll update the first post in a few minutes. Can you confirm the bug with the serial numbers or was it working for you?
Click to expand...
Click to collapse
The serial number isn't shown but appear "####"
iBook:android_ppc michele$ ./adb devices
List of devices attached
#### device
iBook:android_ppc michele$
Click to expand...
Click to collapse
@Z0l, could you post a patch for the source?
I tried briefly to do exactly what you've managed to do, but no point in reinventing the wheel
Actually there is no patch What you should do is to checkout the froyo sdk with repo (this is important, because gingerbread requires java6, which is a bit problematic on ppc), copy the build/core/combo/HOST_darwin-x86.mk to HOST_darwin-ppc.mk, then issue the "make adb" and "make fastboot" from the top of the source. I think I received some warnings, but at the end the binaries were at out/host/darwin-ppc/bin. So, the actual commands are:
repo init -u git://git.android-x86.org/manifest.git -b froyo
repo sync
cp build/core/combo/HOST_darwin-x86.mk build/core/combo/HOST_darwin-ppc.mk
make adb
make fastboot
Click to expand...
Click to collapse
Hope that helps. Also, make sure you do the compile on a case-sensitive filesystem (I created a case-sensitive dmg for that)
Does this still work with Gingerbread and ICS devices like the Nexus S and the Galaxy Nexus?
Thanks for answering in advance.
land.apfel
I'd say yes because I see no reason for them not to work. Although both adb and fastboot received updates, the fundamentals are the same.
OK, so I'll try them but I won't be able to use the backup feature, will I?
Sent from my Galaxy Nexus using XDA
land.apfel said:
OK, so I'll try them but I won't be able to use the backup feature, will I?
Sent from my Galaxy Nexus using XDA
Click to expand...
Click to collapse
Could you elaborate a bit what you mean under backup? All the adb and fastboot commands worked when I tested them.
With backup I mean "$ ./adb backup".
Sent from my Galaxy Nexus using XDA
These binaries were compiled long before ICS existed (adb backup is available since ICS), so I don't think it'll work. You can try compiling a new version yourself, unfortunately I no longer have access to a PPC dev environment.
That's why I've asked.
Unfortunately I'm too dumb to compile it by myself
Sent from my Galaxy Nexus using XDA
iBook G3
Hi there,
Sorry to bump such an old topic! But I think I have a (very?????) special case. Is it possible to compile the newer ICS Binaries..... for iBook G3 on 10.4.11?
I tried running these and I got the dreaded "Incompatible CPU subtype" so I assume they're for G4 and up. Is there a way this could be changed?
blackthund3r said:
Hi there,
Sorry to bump such an old topic! But I think I have a (very?????) special case. Is it possible to compile the newer ICS Binaries..... for iBook G3 on 10.4.11?
I tried running these and I got the dreaded "Incompatible CPU subtype" so I assume they're for G4 and up. Is there a way this could be changed?
Click to expand...
Click to collapse
Sorry for the late reply, you cannot compile anything newer than GB on powerpc. Even GB needed the above trick, but since ICS requires a Java that never existed for powerpc, I think its impossible.
Sent from my Galaxy Nexus using xda app-developers app
Z0l said:
Sorry for the late reply, you cannot compile anything newer than GB on powerpc. Even GB needed the above trick, but since ICS requires a Java that never existed for powerpc, I think its impossible.
Sent from my Galaxy Nexus using xda app-developers app
Click to expand...
Click to collapse
Haha ok fair enough the hardware is kinda old anyway. ;p
It's because when parents remove the Windows laptop I only have my iBook or athlon server left xD
So I've used the sqlite vacuum/re-index feature of V6 SuperCharger blindly without knowing what it does getting a placebo effect sort of thing, and I started doing some research on it and realized that this feature has started getting stripped out of a lot of stock roms and what not on android devices and that basically it makes it wayyyy easier for the system to index and sort out system/app files a lot of it was over the top for me but I figured there could be no negative effects to this at all.
So long story short I downloaded SQLite Installer from the market
Restarted and everything on my phone has been quick and painless it's been up for 6 hours now since the restart and have yet to have any lag/problems.
here's my set up:
Tweaked 2.0
0504 PBJ Kernel
OC'd to 1.2ghz (SIO i/o and Interactive governor)
don't know if it is placebo affect once again and I'd love to get some more veteran knowledge on this but I LOVE MY PHONE NOW
As I am a new member here I cannot post links but go to my thread at rootzwiki[dot]com/topic/25072-sqlite3-phone-is-snappier-than-ever/ and read the instructions there and download the easily flashable .zip file with the included detailing script.
happy flashing
p2kmafia
I just flashed so ill report if results are the same for me
Sent from my SCH-I510 using XDA
good lookin. there were positive results in my rootzwiki thread.
RFS or EXT4?
and is this the app: https://play.google.com/store/apps/details?id=ptSoft.util.sqlite3forroot
It would be fairly easy to run before and after database benchmarks in an app such as AnTuTu Benchmark. That would show if there are any real gains to be had.
Looking at the script, it essentially just re-writes all of the databases on the phone (via a VACUUM/REINDEX combo). Logic would state that if you have badly fragmented databases, which would manifest as things like degredation of performance over time, then this should make your phone a bit snappier.
[edit: I ran before and after tests (average of 3 tests). There was no appreciable difference between the tests. Now, the test results may not reflect real world results for two reasons: 1. I have no idea how the database I/O test in AnTuTu actually tests (what database, etc) and 2. I received errors when the script was attempting to vacuum databases ("error: unable to open file"), though the re-indexing worked fine.
End result? The test essentially means nothing and all we can go off of is anecdotal evidence. However, whether it's a placebo effect or not, this process simply can't harmfully impact your phone. As such, results should be anything from no change in response to some response increase.
Yeah, I know. A whole lot of typing that essentially says nothing. Sorry!]
jco23 said:
RFS or EXT4?
and is this the app: play.google[DOT]com/store/apps/details?id=ptSoft.util.sqlite3forroot
Click to expand...
Click to collapse
yes that's the app but check out my rootzwiki thread the flashable zip file adds the detailing script to your sd card that you'll need if you feel your device slowing down.
Cilraaz: thanks for testing this out. the error opening files might have to do with a bad install. keep the detailing script and try the app in the playstore for the install or reflash the zip
p2kmafia said:
Cilraaz: thanks for testing this out. the error opening files might have to do with a bad install. keep the detailing script and try the app in the playstore for the install or reflash the zip
Click to expand...
Click to collapse
I re-installed from Play and have tested my copy of sqlite3. It is a working copy. I also didn't flash the zip. I downloaded the zip, extracted the shell script, and manually placed it on my SD card. I've run the vacuum command manually as well, and received the same error.
I don't know what to tell you. I just re-ran the detailing script and I don't receive those errors, but if you know it is installed correctly/is vacuuming it shouldn't be a problem. I wish I knew more about this software to help out. I just discovered it helps a lot haha.
Cilraaz said:
I re-installed from Play and have tested my copy of sqlite3. It is a working copy. I also didn't flash the zip. I downloaded the zip, extracted the shell script, and manually placed it on my SD card. I've run the vacuum command manually as well, and received the same error.
Click to expand...
Click to collapse
Are you using script manager to run the script? And if so are you running with root privileges?
Sent from my SCH-I510 using xda premium
Endless2232 said:
Are you using script manager to run the script? And if so are you running with root privileges?
Sent from my SCH-I510 using xda premium
Click to expand...
Click to collapse
Script manager as root. Command line as root. The entire script and individual manual vacuums. Same result on all. Maybe I'll boot into CWM and run a fix permissions to see if that does anything.
Check the permissions of sqlite3 in system/xbin using root explorer. Read and execute should have all three checkboxes checked and write should have owner checked.
Sent from my SCH-I510 using xda premium
Endless2232 said:
Check the permissions of sqlite3 in system/xbin using root explorer. Read and execute should have all three checkboxes checked and write should have owner checked.
Sent from my SCH-I510 using xda premium
Click to expand...
Click to collapse
hey endless I just checked my sqlite3 and it has all 9 checks across the board. should I change them as well even though i'm not experiencing any problems?
p2kmafia said:
hey endless I just checked my sqlite3 and it has all 9 checks across the board. should I change them as well even though i'm not experiencing any problems?
Click to expand...
Click to collapse
No, you're fine.
So i did everything in the instructions and i have one little question. Do i keep the script running in the background?
Sent from my SCH-I510 using xda premium
Crap7126 said:
So i did everything in the instructions and i have one little question. Do i keep the script running in the background?
Sent from my SCH-I510 using xda premium
Click to expand...
Click to collapse
No. Once you've flashed/installed SQLite3 it runs by itself it's not a script. the detailing script is a run once kind of thing that you run if you feel your phone slowing down/lagging. I usually run it anywhere from once every 2 days to once every 3 or 4.
I also have an auto cache clearing app that I use that helps with lag so you don't get the two mixed up.
p2kmafia said:
No. Once you've flashed/installed SQLite3 it runs by itself it's not a script. the detailing script is a run once kind of thing that you run if you feel your phone slowing down/lagging. I usually run it anywhere from once every 2 days to once every 3 or 4.
I also have an auto cache clearing app that I use that helps with lag so you don't get the two mixed up.
Click to expand...
Click to collapse
Failed for me.
Sent from my SCH-I510 using xda premium
deafptl4ever said:
Failed for me.
Sent from my SCH-I510 using xda premium
Click to expand...
Click to collapse
what failed for you? i'd love to help out but need a little more information
Endless2232 said:
Check the permissions of sqlite3 in system/xbin using root explorer. Read and execute should have all three checkboxes checked and write should have owner checked.
Click to expand...
Click to collapse
If this was in regard to my issue, it's of no consequence. The sqlite3 executable was running fine, as evidenced by the fact that there were no errors in executing sqlite3 (the REINDEX command ran without problem). The permission issue would be with the database files themselves, though root should have no permission issues on r/w partitions like data and dbdata, or wherever sqlite3 is trying to write the temporary database during the VACUUM process. The VACUUM process actually reads data out of the database file, stores it in a temporary file, and then overwrites the original file with data from the temporary file. This eliminates "blank" data and fragmentation within the database files, which is why you see a slight performance increase and smaller database footprint.
Does anyone know where that temporary db file is stored by sqlite3?
Cilraaz said:
Does anyone know where that temporary db file is stored by sqlite3?
Click to expand...
Click to collapse
Unfortunately my expertise stops at how it works/why it works I just found out that it helps my phone and that's it
This def made my phone much snappier. My only question is, when i run the script i get a constant error, "error mountind database". Not really sure whato do (if anything) since it has made the phone quicker regardless.
Sent from my SCH-I510 using XDA
mod edit
I am just going to take this down before you brick anyone else's device. What you posted only works for a specific device. Messing around with commands without knowing what your doing almost always leads to a brick.
Where is the tune2fs -j ext4 /dev/block/mmcblk0p1 command and if having any problem jus change the updater script of the Rom and the where ever there is a mention of mounting write mmcblk0p1 in place of that
Additional things u should mention is to use of terminal in windows if ppl have ask installed they should install the required bundles fRom android.com installs the required platforms and then go into platform tools and in a blank space there holding shift there right click and select open cmd here and type adv shell and the required info in the above thread appreciated it work bro nice
Sent from my LG-P920 using xda premium
help me, after i command "reboot" my phone has turned to black screen, i thought it was going to reboot, now i cant even ON my phone,cant even charge and cant even go to bootloader. please help :crying:
Mileading Post
Dude you bricked my phone. Its not turning on after i entered the commands and rebooted the phone (as mentioned by you). What should i do now !
Thread closed
For those of you who who bricked your device I suggest you ask around in your device forums to see if there is any fix around. However, let this be a lesson to you all. Running commands and/or flashing random things to your phone without knowing what you are doing is very dangerous. Best of luck to those of you who bricked your device
Diestarbucks was here!
What it says on the tin. I've found lots of things about it freezing on step 7 but not step 2. I've followed the noob guide in this subforum to the T. What's going on?
Couldn't tell ya, I'm not a big fan of one clicks so I never have used them. If you would like made a quick guide on how to root without it
http://forum.xda-developers.com/showthread.php?p=40198560
Buried in this thread on like the third or so page you will find it, I've had to use this method to root countless times while I tinker with this phone, it may seem complicated but it works every time and takes me maybe 5 min from start to finish and works just fine in both windows and linux
Sent from my Nexus 7 using xda premium
demkantor said:
Couldn't tell ya, I'm not a big fan of one clicks so I never have used them. If you would like made a quick guide on how to root without it
http://forum.xda-developers.com/showthread.php?p=40198560
Buried in this thread on like the third or so page you will find it, I've had to use this method to root countless times while I tinker with this phone, it may seem complicated but it works every time and takes me maybe 5 min from start to finish and works just fine in both windows and linux
Sent from my Nexus 7 using xda premium
Click to expand...
Click to collapse
Thanks for the reply, I'm having a problem with your guide though. I get to step 7 where I have to use Heimdall but it says my phone is disconnected. I've tried reconnecting/using a different USB port to no effect.
Its probably a driver fault, but these steps (ones in red) are only if you need to restore to stock first, if you have a functioning os skip it (as the bottom of the post says, although not very clearly) if youre in download mode right now you may need to do a battery pull to get back to os, can't remember. but you can do these steps if you want. Won't hurt anything
Sent from my Nexus 7 using xda premium
Okay, I'm still having a problem though. When typing in the first line in the command prompt, it tells me adb is not a recognized internal or external command. I found that this is because I need the Android SDK which I downloaded, but it still doesn't work.
Worked around this by typing in the full path of adb.exe instead. Now Root Browser won't let me overwrite the recovery file in the system\bin folder
assuming windows, its nice to add the platform-tools into a path in enviromental variables, ill link you to a guide to do such as change directories all the time is a pain.
I use root explorer (paid app) but any root browser should work, just need to gived it read/write permissions.
Alternatively you can use a terminal emulator or adb to push the file in
Let me know if you have issues
Sent from my RubiX NonSense using xda app-developers app
http://forum.xda-developers.com/showthread.php?p=41374534
I need your help, my phone decided to remove all of my files. As far as I know as long as something is not overwritten it's not really ever gone right? Is there any way to restore my lost data? I will do anything!
How did the data get deleted and are you rooted?
Sent from my Nexus 5 using XDA Free mobile app
jd1639 said:
How did the data get deleted and are you rooted?
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
I am rooted. I browsed my phone files through my pc and saw what uneeded files I can remove, I saw a folder named storage but on propeties it only showed 38mb and only had one folder so I didn't even assume it is my storage folder. As well as that I have never ever had my storage folder inside my storage folder when I mounted my phone on my pc.
There's a lot more there than you saw on your pc. I'd chalk it up to a learning experience and start over. I don't think you're going to be able to recover everything
Sent from my Nexus 5 using XDA Free mobile app
[info] Storage: Nexus 5 Data (info / loss / recovery / prevention)
http://forum.xda-developers.com/showthread.php?t=2534010
Sent from my Nexus 5 using Tapatalk
jd1639 said:
There's a lot more there than you saw on your pc. I'd chalk it up to a learning experience and start over. I don't think you're going to be able to recover everything
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
There has to be a way to restore the data, I didn't do anything unusual. My storage folder itself shouldn't appear in the ./ folder when I open the phone through the pc. This can happen to both simple users and expert. I got false information about the contents of this folder which led me to delete it. This is just the media files not /data or /system or anything.
Eden3319 said:
There has to be a way to restore the data, I didn't do anything unusual. My storage folder itself shouldn't appear in the ./ folder when I open the phone through the pc. This can happen to both simple users and expert. I got false information about the contents of this folder which led me to delete it. This is just the media files not /data or /system or anything.
Click to expand...
Click to collapse
Read the post rootSU linked you to. You may be able to recover the data. But it's a very involved process and as rootS said it's not for the faint of heart
Sent from my Nexus 5 using XDA Free mobile app
jd1639 said:
Read the post rootSU linked you to. You may be able to recover the data. But it's a very involved process and as rootS said it's not for the faint of heart
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
I am trying to do this now... wish me luck
rootSU said:
[info] Storage: Nexus 5 Data (info / loss / recovery / prevention)
http://forum.xda-developers.com/showthread.php?t=2534010
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Hey thanks for your help, I have installed all of the programs required and my phone is required in adb. I opened the Cygwin and entered the commands but it just wrote command not found. I also tried to add the destination at the beginning but it did not work either. How do I open adb using cygwin?
If I were you, try disk digger
Sent from my Nexus 5 using Tapatalk
rootSU said:
If I were you, try disk digger
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
disk digger, even pro, while it can restore alot of file types in cannot restore all of them... at least according to the play store page.
True but Its easier. I can't help you with cygwin so you're on your own there.
Sent from my Nexus 5 using Tapatalk
Eden3319 said:
Hey thanks for your help, I have installed all of the programs required and my phone is required in adb. I opened the Cygwin and entered the commands but it just wrote command not found. I also tried to add the destination at the beginning but it did not work either. How do I open adb using cygwin?
Click to expand...
Click to collapse
Do you have busybox instated on your device. Also, make sure you know what partition you want to recover. The one in the example may not be what you want. Google nexus 5 partitions xda.
Sent from my Nexus 5 using XDA Free mobile app
rootSU said:
True but Its easier. I can't help you with cygwin so you're on your own there.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
You don't know how to operate it? After all you wrote the thread
Eden3319 said:
You don't know how to operate it?
Click to expand...
Click to collapse
I've never lost all my data. It's all backed up. Yeah I can use cygwin, but I can't test it to help because I don't have windows at home.
Eden3319 said:
After all you wrote the thread
Click to expand...
Click to collapse
No I didn't! I only wrote the link I gave you, not the links within that thread.
Sent from my Nexus 5 using Tapatalk
jd1639 said:
Do you have busybox instated on your device. Also, make sure you know what partition you want to recover. The one in the example may not be what you want. Google nexus 5 partitions xda.
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
I managed to work the adb issue out, but I'm returned with a 0 bytes file which is useless for me. I saw that issue on the thread as well but found no solution yet.
Alright I gave up the idea to restore it... although I lost some important files this is just too much work to get it back. What I wanna do now is create a task using Tasker to backup my entire device to my pc through wifi on the night (only changed files everytime). I know how to create the profile, but does anybody know how to create the task?
Eden3319 said:
Alright I gave up the idea to restore it... although I lost some important files this is just too much work to get it back. What I wanna do now is create a task using Tasker to backup my entire device to my pc through wifi on the night (only changed files everytime). I know how to create the profile, but does anybody know how to create the task?
Click to expand...
Click to collapse
yeah, I do this. Firstly I'd recommend foldersync. It's a stand alone app but it also plugs into Tasker. Take a look
I do mention this in the thread I linked you to.
Sent from my Nexus 5 using Tapatalk
rootSU said:
yeah, I do this. Firstly I'd recommend foldersync. It's a stand alone app but it also plugs into Tasker. Take a look
I do mention this in the thread I linked you to.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Ok, I got it working! Thank you very much for your help!
Eden3319 said:
Ok, I got it working! Thank you very much for your help!
Click to expand...
Click to collapse
No probs!
Enjoy your new syncing