Showing posts with label tutorial. Show all posts
Showing posts with label tutorial. Show all posts

Monday, November 26, 2012

Here is how to install Android on your PC


Here is how to install Android on your PC
Android is the world’s most prolific mobile operating system, and in a couple of years it might well become more popular than Windows with mobile devices ending up in almost every pocket. But what if you could install Android on not just your mobile device, but computer as well? Turns out, it is possible.

Having Android as your main computer operating system however is not guaranteed to work - driver support, and a ton of stuff may or may not be there, so it’d be best if you first try running Android via a USB drive to check compatibility.

Otherwise, all efforts to bring Android to PCs is courtesy of the Android-x86 project. Android is a Linux-based platform after all, so the core is there.

We have to stress that everything is still under development and not final, so this is more of an undertaking for tech enthusiasts rather than the average user. 

Hit the source link right below for the complete tutorial and a bunch of links to read more about the project.

source: XDA Developers via Android Authority

Here is how to install Android on your PC

Friday, October 7, 2011

Map Android Phone In Windows To Access Files Over WiFi Using SwiFTP


If you are a gadget geek at heart and love to do anything that encompasses remotely accessing your device from anywhere, give SwiFTP FTP Server a shot. It is a free open source Android app that lets you remotely connect to your phone over WiFi / 3G to upload and download content. This Android application converts your phone into an FTP server which is accessible by a unique FTP IP generated by the app.We tested this app on HTC Desire And HTC Dream G1 and it works perfectly on both.

Download And Install SwiFTP

First download SwiFTP on your Android phone via Market. You can search for “swiFTP” in the market to get the app.
snap20100713_130347
Once launched, give it any username or password, select the port (default is 2121), and select other settings before clicking Save.
snap20100713_130449
Now click Start to begin the server.
snap20100713_134615
Note down the FTP address (see Wifi URL in the screenshot below) generated by the app and use it to connect via any desktop FTP client. You can also map the network location for quick access in Windows Explorer.
snap20100713_141029

Access Android Phone Files By Mapping Network Path In Windows

To map the device as network path, in Windows Explorer, under Network Location section, right-click to select Add network Location from context menu.
network new1
This will bring up Add Network Location wizard. In first step, enter FTP address of internal IP (WiFi URL) followed by port number (2121) as shown in the screenshot below. Click Next to continue.
network1
Now enter an appropriate user name (the same which you used in the first step) to connect with FTP server and click Next to proceed further.
network2
In the last step, give an appropriate name of network location and click Next.
network3
In  informational dialog of wizard, you can enable Open this network location when I click Finish option to immediately view & manage your Android handset’s content. Once done, click Finish.
network4
You will be prompted to enter the password, after which, it will immediately open network location, allowing easy access to your Android handset’s files & folders.
network final
The advantage of mapping is that you can choose to save the password and access the folder quickly from My Computer without having to enter the credentials over and over again.
If you are facing some file accessing speed issues, you can try out dedicated FTP client application like FileZilla.
We tested it on Android 2.1 running on rooted G1 and non-rooted HTC Desire. With rooted Android phone, you get the full root access. Testing was done on Windows 7 32-bit OS.
Download SwiFTP (download from project page or you can simply install it from the Android market)

Friday, July 8, 2011

How To: Begin hacking android apps

Note: This is for educational purpose only. Do not try this for commercial purpose


Introduction
Since I started doing Android development, I have looked at many licensing options, from simple forward locking (/data/app-private), which was a complete failure, to KeyesLab’s AAL which I really liked, to a custom one I was privy to, written by my friend Colin O’Dell. I even went as far as writing two different ones myself.

By far the best looking, and nicest option I have seen is Google’s own Android Licensing Service. However, even Goliath can fall to a pebble.

A few days ago, after asking the AndroidPolice editors to write an article on piracy, I found a problem with Google’sAndroid License Verification Library. A minor patch to an application employing this official, Google-recommended protection system will render it completely worthless.


Implications
Our findings show that most (any?) apps can be easily patched and stripped of licensing protection, making them an easy target for off-Market, pirated distribution. By corollary, this means that sites dedicated to pirating apps can continue to do so, using a few automated scripts mixed with some smarts.

Demo
Watch this demonstration video of my patch method tricking both the protected version of the game StarHunt and the Google LVL demo app into thinking they have been purchased legitimately



Breaking The Library (aka The Technical Mumbo Jumbo)
A little back-story on Java, which most Android applications are written in. Java applications are compiled into bytecode, that runs on top of a Virtual Machine, generally independent of platform. Due to the need for cross compatibility, the bytecode is fairly readable. Many software suites exist to decompile/disassemble it, making it an easy target for reverse engineering.

For Android, the main disassembly suite is smali/baksmali. The bytecode output from baksmali can be edited in any text editor, and reassembled using smali.

"smali/baksmali is an assembler/disassembler for the dex format used by dalvik, Android’s Java VM implementation. The syntax is loosely based on Jasmin’s/dedexer’s syntax, and supports the full functionality of the dex format (annotations, debug info, line info, etc.)"

[*]please note, theres more ways to decompiling/compiling apks such as apktool which is in .jar(jave) it has no GUI, unlike apk manager thats has somewhat of a GUI

Because the License Verification Library is not part of the Android OS (i.e. it doesn’t ship with phones – it’s an optional SDK download), an app developer needs to package it with the app that uses it, making it an easier patch target, without requiring root access.
Image

The first step in reproducing this is to dissemble the apk using baksmali and find the LicenseValidator class. In custom implementations and pro-guarded apps like Tasker, this filename will differ, and so will the code, but not enough to stop a pirate from patching it.

When disassembling the basic implementation of the licensing service, you will find this file out/com/android/vending/licensing/LicenseValidator.smali. This class responds back to the application, telling it the results of the verification attempt. Opening this file in a text editor will show you the bytecode, and at the beginning you will see these constants.


LicenseValidator.smalli constants 
CODE: SELECT ALL
.field private static final ERROR_CONTACTING_SERVER:I = 0x101
.field private static final ERROR_INVALID_PACKAGE_NAME:I = 0x102
.field private static final ERROR_NON_MATCHING_UID:I = 0x103
.field private static final ERROR_NOT_MARKET_MANAGED:I = 0x3
.field private static final ERROR_OVER_QUOTA:I = 0x5
.field private static final ERROR_SERVER_FAILURE:I = 0x4
.field private static final LICENSED:I = 0x0
.field private static final LICENSED_OLD_KEY:I = 0x2
.field private static final NOT_LICENSED:I = 0x1


This code itself is unimportant, and may not show up in custom implementations, but it will help you understand the next step.

Scrolling to the bottom of LicenseValidator.smali, you will see this block of code in the “verify” method:

LicenseValidator.smali verify 

CODE: SELECT ALL
.sparse-switch
0x0 -> :sswitch_d3
0x1 -> :sswitch_de
0x2 -> :sswitch_d3
0x3 -> :sswitch_11d
0x4 -> :sswitch_f3
0x5 -> :sswitch_101
0x101 -> :sswitch_e5
0x102 -> :sswitch_10f
0x103 -> :sswitch_116
.end sparse-switch


This is a switch block, which essentially tells the licensing library what to do next, depending on the results of the verification query. Each possible result is “mapped” to a different function.

Notice how the values on the left correspond to the constants at the beginning of the file. 0X0 and 0×3 are both positive results, which will tell the application that your device has a valid license. The others are various forms of negative results, and depending on how the application is coded, will result in different things.

The important one here is 0×1, or NOT_LICENSED. By changing “0×1 -> :sswitch_de ” to “0×1 -> :sswitch_d3” we basically point it to a positive outcome instead, so the library tells your app the license is actually valid.

The final step is to reassemble with smali, placing the new dex file in the apk, and re-sign it with any valid key (even test-keys).

Even though the library knows the status is NOT_LICENSED, the described tweak ensures the application will receive a LICENSED result instead and believe that it is, in fact, licensed. This method is so simple, even a novice programmer could write a script to automatically patch most apps.



Credits:.blackdroid

Sunday, May 15, 2011

Unnecessary Apps to remove from Samsung Galaxy 3

Apps that are SAFE to remove:
  • BuddiesNow.apk
  • BuddiesNow.odex
  • InfoAlarm.apk
  • InfoAlarm.odex
  • Layer-samsung.apk
  • SamsungApps.apk
  • SamsungWidget_CalendarClock.apk
  • SamsungWidget_CalendarClock.odex
  • SamsungWidget_FeedAndUpdate.apk
  • SamsungWidget_FeedAndUpdate.odex
  • SamsungWidget_ProgramMonitor.apk
  • SamsungWidget_ProgramMonitor.odex
  • SamsungWidget_StockClock.apk
  • SamsungWidget_StockClock.odex
  • SamsungWidget_WeatherClock.apk
  • SamsungWidget_WeatherClock.odex
  • WriteAndGO.apk
  • WriteAndGO.odex
  • Swype.apk
  • Memo.apk
  • Gallery3D.apk
  • DualClock.apk

Thursday, May 5, 2011

Custom Theme Installation script - Android


Instructions [Root your phone & install busybox]

1) Download adb (if you don't have it), framework-res.apk, and twframework-res.apk. Rename framework-res.apk (v1.71) to framework-res.apk, rename twframework-res.apk (v1.00) to twframework-res.apk.
2) Copy framework-res.apk & twframework-res.apk to the root of your sdcard. (Then Unmount sd card from computer)
3) Extract adb to c:\ and run cmd.
4) Type the commands:
Code:
cd c:\
adb shell
su
stop
mount -o rw,remount /dev/block/stl6 /system
cp /sdcard/framework-res.apk /system/framework/framework-res.apk
cp /sdcard/twframework-res.apk /system/framework/twframework-res.apk
reboot
exit

Easy installing tutorial with root explorer 

Here is a Easy way to install the Theme without adb.
It work's for me (Stock JPM Firmware)... i tested it 2x without any problems!

How to install (Easy way) [Tested by my self without problems!]
  1. Root you phone
  2. Install BusyBox
  3. Copy the framework-res.apk & twframework-res.apk to you SD Card
  4. With Root Explorer delete some Apps that u dont use from system/apps to make more free space on your phone. 

Wednesday, May 4, 2011

[HOW TO] Worldwide apn list in Custom ROM

Use Root Explorer (your mobile must be rooted) and paste the apns-conf.xml file to /etc and then reboot and now it will grab your internet settings and if not just do following:

> go to settings
> wireless and networks
> mobile networks
> access point name
> press menu and then reset to default
> Now it's done.

Enjoy

Courtesy: The People's ROM for Samsung Galaxy 3

Download The People's ROM

Tuesday, April 26, 2011

How to make custom rom:


you will need: ADB, root explorer (maybe) and the files that are going to be in your rom!

the guide is based on The Dark Lestat's guide, i made it more easier and specific


code to delete unwanted apps: (if ADB)
Code:
adb shell
su
mount -o remount,rw /dev/block/stl9 /system
rm /system/app/nameofapk.apk
code to add apps and stuff: (if ADB)
Code:
adb shell
su
mount -o remount,rw /dev/block/stl9 /system
exit
exit

adb push nameofapk.apk /system/app/
1. flash the ROM that will be your ROMs base. example: my ROMs base is JPM so i flashed clean JPM

2. make a list of the features that are going to be in your ROM

3. then start adding those features. example: i added live wallpaper support so i did this --> http://forum.xda-developers.com/showthread.php?t=793823 i also added JIT so i ran the automatic batch file from the thread --> http://forum.xda-developers.com/show....php?t=1026870 . then you just add those features.

4. put your sd card on to your phone (if it isnt there already  )

5. when your done adding different features you go to ADB and type this:
Code:
adb shell
su
mount -o remount,rw /dev/block/stl9 /system
dd if=/dev/block/stl6 of=/sdcard/factoryfs.rfs
then you wait about 2 minutes and there will be some text and then you type this
Code:
exit
exit
and in your sd-card will be freshly created factoryfs.rfs, import your freshly created factoryfs.rfs to your desktop. now you choose your kernel.

5. kernel, download the kernel you want to your desktop.

6. download total commander to your pc

7. open total commander, open the base ROM.tar. example: my base ROM was JPM so i opened the JPM.tar and replaced the kernel and factoryfs.rfs with my factoryfs.rfs and my kernel (fugumod 2.2) using total commander.

delete everything else in the .tar but, Cache.rfs, factoryfs.rfs, zlmage and data.rfs and the logo!

then you test if you can flash your ROM... if it boots, you did it. if it doesnt, try again.