{guide}[how to] porting guide for aosp [how to]{guide} - Android General

I would say I’m pretty good at porting AOSP roms, can do them before my cig is half way done.
Well this guide will help out with a good amount of it, ill try to cover much as I possibly can. Ill post links to the needed programs.
android kitchen: http://forum.xda-developers.com/showthread.php?t=633246
notepad++ http://notepad-plus-plus.org/download/v5.9.8.html
Step 1. Well find the rom you want to port over,duh.
Step 2. Make sure you have the android kitchen and notepad++, on your computer an setup correctly.
Step 3. Put the rom your porting in the original update folder(ya know the one for the kitchen….)
Step 4. Setup a working folder, itll ask you the change the updater-script DON’T DO ANYTHING DO IT, leave it how it is!
Step 5. Find another base rom for your phone, preferably cm7, do the same thing your did to your port. Fyi: hope you labeled each working folder. an dont delete the working folder you just created,select yes to move it
Step 6. Copy the boot.img from the cm7 rom over to your port.
Step 7. Find the build.prop in your port. Right click on it, select “edit with notepad++”
Here’s where you need to read everything as I put it, if you mess up, well that’s not my problem .
Step 8. Find the “ro.product.device” “ro.product.board” “ro.product.product”. change those to your device.
If you cant remember the exact name of your device,look at the cm7 build.prop for reference. When you done that save it.
Step 9. Navigate to “META-INF\com\google\android” find the updater-script. Right click on it, edit with notepad++. (btw always use that program when editing stuff with android,soo much easier)
Step 10. Edit the device, board an product to match your device. If one of them is missing, don’t worry bout it. Then save it when your done.
Step 11. Navigate to system/lib/hw. Do that on both your port an cm7 rom. Copy the sensor, lights an gps from cm7 over to your port. Optional: delete the ones from the original device. edit: another part i forgot to add take the modules file an switch them over also
Step 12. Open the android kitchen back up again. now you can delete the cm7 working folder
Type 1,find your port,hit enter,2.
Type 99
Then hit 1.
Hit enter again
Sign the rom
You can either name the rom or not. Id suggest you so you don’t get confused by any other files.
If you followed this correctly, your rom should boot with no problem. If you get error 7 or 6, look below.
If you get error 7 in recovery, you didn’t edit your build.prop correctly. Go back an check it, find your mistake then, re-run it in the kitchen
If you get error 6 in recovery,you need to check your updater-script, you probably didn’t edit that correctly. Go find your mistake in it an fix it, then re-run it in the kitchen.
Hopefully this guide will help you out with your porting need, if you have any other questions just pm me an Ill try to help you out. Or you could google your problem first too.
if you think i missed anything,let me an ill add it.
an if a mod thinks this should be moved or as a sticky,well who am i to stop him.
If you use this guide to port, give some credit, so other people will know also. thanks

If you used this an it worked or didn't , please let me know. also tell me where it went wrong, so I can fix it.

This is going to leave a lot of bugs in the ROM's people cook.

DistrictDigital said:
This is going to leave a lot of bugs in the ROM's people cook.
Click to expand...
Click to collapse
I use it everytime, never had a single issue. Im actually running the rom I ported, no issues with at all. I wrote as I did.
If I helped, give thanks, if you please.
........Death before dishonor........
Team inferno
Leader

Can you use an AOSP ROM from another phone, or do you need a non device specific version?
Sent from my R800i using XDA App

MilkyJoePD said:
Can you use an AOSP ROM from another phone, or do you need a non device specific version?
Sent from my R800i using XDA App
Click to expand...
Click to collapse
General idea is to use one from a device that is close your phone
If I helped, give thanks, if you please.
........Death before dishonor........
Team inferno
Leader

must it be the same android version ?

gb stay with gb, ics with ics. That's my guidelines I use.
If I helped, give thanks, if you please.
........Death before dishonor........
Team inferno
Leader

Maybe you can help me I get this error on cywgin using the android kitchen
Code:
./menu
./menu2 line 462 chmod2 command not found
scripts/check_insta11_dir2 line 132 grep2 command not found
scripts/init_kitchen2 line 122 chmod2 command not found
scripts/init_kitchen2 line 132 chmod2 command not found
scripts/init_kitchen2 line 142 chmod2 command not found
scripts/init_kitchen2 line 152 chmod2 command not found
scripts/init_kitchen2 line 162 chmod2 command not found
scripts/init_kitchen2 line 172 chmod2 command not found
scripts/init_kitchen2 line 182 chmod2 command not found
scripts/init_kitchen2 line 192 rm2 command not found
scripts/init_kitchen2 line 292 rm2 command not found
scripts/init_kitchen2 line 212 rm2 command not found
scripts/init_kitchen2 line 222 rm2 command not found
scripts/init_kitchen2 line 232 rm2 command not found
scripts/check4binaries2 line 222 c1ear2 command not found
after i fixed the java problem with this fix : http://forum.xda-developers.com/showthread.php?p=14474038#post14474038

meddistar said:
Maybe you can help me I get this error on cywgin using the android kitchen
Code:
./menu
./menu2 line 462 chmod2 command not found
scripts/check_insta11_dir2 line 132 grep2 command not found
scripts/init_kitchen2 line 122 chmod2 command not found
scripts/init_kitchen2 line 132 chmod2 command not found
scripts/init_kitchen2 line 142 chmod2 command not found
scripts/init_kitchen2 line 152 chmod2 command not found
scripts/init_kitchen2 line 162 chmod2 command not found
scripts/init_kitchen2 line 172 chmod2 command not found
scripts/init_kitchen2 line 182 chmod2 command not found
scripts/init_kitchen2 line 192 rm2 command not found
scripts/init_kitchen2 line 292 rm2 command not found
scripts/init_kitchen2 line 212 rm2 command not found
scripts/init_kitchen2 line 222 rm2 command not found
scripts/init_kitchen2 line 232 rm2 command not found
scripts/check4binaries2 line 222 c1ear2 command not found
after i fixed the java problem with this fix : http://forum.xda-developers.com/showthread.php?p=14474038#post14474038
Click to expand...
Click to collapse
Send me a pm
If I helped, give thanks, if you please.
........Death before dishonor........
Team inferno
Leader

How do you do it from an img file?
Sent from my R800i using XDA App

MilkyJoePD said:
How do you do it from an img file?
Sent from my R800i using XDA App
Click to expand...
Click to collapse
Like an ruu
If I helped, give thanks, if you please.
........Death before dishonor........
Team inferno
Leader

Which kernel would you use? I've tried porting the beta Xperia Ray ICS ROM to the Xperia Play.
Also, some of the files don't exist (ro.product.product for example).
Sent from my R800i using XDA App

MilkyJoePD said:
Which kernel would you use? I've tried porting the beta Xperia Ray ICS ROM to the Xperia Play.
Also, some of the files don't exist ((something).product.product for example).
Sent from my R800i using XDA App
Click to expand...
Click to collapse
I have no experience with the xperia. Ask team free xperia bout that
If I helped, give thanks, if you please.
........Death before dishonor........
Team inferno
Leader

Apparently the modem was disabled in the alpha ROM, any idea how to enable it, or which files to port?
Sent from my R800i using XDA App

I'm thinking about getting into this for Razr. I was wondering, what do you think the closest rom to port from would be? Just a guess is good enough, you don't have to put a lot of thought into it. Just something to use as a point to get me started on my trial and error journey.

superstargoddess said:
I'm thinking about getting into this for Razr. I was wondering, what do you think the closest rom to port from would be? Just a guess is good enough, you don't have to put a lot of thought into it. Just something to use as a point to get me started on my trial and error journey.
Click to expand...
Click to collapse
Any other moto phone that has similar specs,like CPU an gpu
If I helped, give thanks, if you please.
........Death before dishonor........
Team inferno
Leader

Mr.Highway said:
Any other moto phone that has similar specs,like CPU an gpu
If I helped, give thanks, if you please.
........Death before dishonor........
Team inferno
Leader
Click to expand...
Click to collapse
So there should be three factors similar
The cpu, Gpu and display Like ldpi to ldpi right...? any other factors

Mr.Oug said:
So there should be three factors similar
The cpu, Gpu and display Like ldpi to ldpi right...? any other factors
Click to expand...
Click to collapse
Common sense would tell you that
If I helped, give thanks, if you please.
........Death before dishonor........
Team inferno
Leader

added some new info. if you have device specific solutions tell me,ill add them up here

Related

[DEV][TUT][WIP]Brew your own stock-ROM-based Galaxy Y ROM (for Windows)

Hello! As promised to some members of the board, here is my long diary of GG-ROM's journey.
Prequisites:
Your Samsung Galaxy Y (D'uh!) with the following applications installed:
Terminal Emulator
Root Explorer or an Android File Manager that reads the root directory.
Click to expand...
Click to collapse
A USB cable for your SGY
A computer with Microsoft Windows (preferrably 32-bit)
dsixda's Android Kitchen installed in your computer
Activity 1: Getting the files needed for brewing (I just love Starbucks, that's why brewing is used instead of cooking. :-D):
1.1. Make some modifications to your phone that stick to the ./system/ folder (e.g. Root access and SuperUser; BusyBox; and whatnot).​1.2. Get your current kernel. (Thank you, Skin1980 for sending this to us!) [Source thread]
1.2.1. Open Terminal Emulator and execute the following commands:
Code:
su
dd if=/dev/block/bml7 of=/sdcard/boot.img
Note:
Skin1980 said:
Write the commands exactly as written and get your attention in the second command. It writes "BML7" not "BM17" but you have to type in lowercase letters letter. So "bml7", OK?
Click to expand...
Click to collapse
1.2.2. You'll get a copy of boot.img to your phone's SDCard.​1.3. Using the file manager of your choice, copy the ./system/ folder to your SDCard.​1.4. On your PC, create a folder named "WORKING_(put ROM name)". Note that the WORKING_ part is essential in the Kitchen and continue the folder name with anything you want (e.g. WORKING_GINGERBREAD_DXKL2). Then copy the extracted ./system/ folder and boot.img onto that folder. Also, have a backup of that as well.​Sure, there are other methods out there but this is what I did.
Activity 2: Setting up dsixda's Android Kitchen. Official thread.
2.1. Download and install the following (Follow the succession as it is. Installing Cygwin first before Java Development Kit will give you troubles or hard times):
2.1.1. Java for Windows. (just follow the Free Java Download link).
2.1.2. Cygwin. Unzip this and follow the instructions in the "kitchen_readme.txt" file to install a customized version of Cygwin. - dsixda
2.1.3. dsixda's Android Kitchen. Follow "After following the setup for the kitchen, how do I use kitchen?"part of this post. Before proceeding to step 5 of that procedure, read below.​2.2. Put your base ROM (the WORKING_(put ROM name) folder you've created during Activity 1) on C:\cygwin\home\(your user account name)\kitchen\original_update. Proceed with step 5 on the procedure.
2.3. After step 5, you have all systems go for modifying the ROM for your personal usage!​
Under construction...
And another one under progress...
coool bro
nice tute!
Regarding bout copying the system files you can try the droid explorer http://de.codeplex.com/ to copy those files. Just remember the phone has to be rooted. (Sadly I can't test it with this phone if it works perfectly enough. I sold my SGY... run out of dough. lol)
wow. this is something i wanna do. ill try this one as soon as you complete posting all the details.
I've been waiting for this! Keep it coming, bro!
@qtu Bro any update?
..............................
Kumusta naman ang valentine sa Pinas?
Sent from my LG-P920 using xda premium
Plz be fast man I have been waiting! You have been delaying a new ROM!
i have got an error while installing my own rom - E: error in /tmp/sideload/package.zip (Status 4)
Any idea how to fix it?
---------- Post added at 01:13 AM ---------- Previous post was at 01:11 AM ----------
I also want to know how to use launchers to build roms... Can you help?
mtvtitan said:
Kumusta naman ang valentine sa Pinas?
Click to expand...
Click to collapse
I got busted from my lover-to-be that day.
Androhacker said:
Plz be fast man I have been waiting! You have been delaying a new ROM!
Click to expand...
Click to collapse
C'mon! I got a life too. I got a research venture, a parliamentary debate (my team won BTW), a seminar lecture (on integrated library systems), household chores, and to eat and sleep too (not to mention that I can't achieve three meals and more than four hours of sleep a day). All in just one hell week. Well, it's a Sunday so be on your guard, I'll try to post something here. Patience dear.
All right but any idea how to fix that error?
Anyways i have already made my own ROM but thanks for those removal terminal codes. And also how to get the system files to work with the dsixda kitchen
Sent from my GT-S5360 using XDA App
hey guys pls help
i want to make a new rom for sgy
can someone pls give me the stock rom DDLA3 req files
pls
Sent from my GT-S5360 using xda premium
some of this is applicable:
http://forum.xda-developers.com/showpost.php?p=21343927&postcount=1
many tweaks for phones
I have found out my way to build ROMs so actually I do not need this post but it would still be helpful. Would you like to tell us?
hi, any update kaibigan?
no update? whats this an open ended song for a lonely guy?
The OP is busy I heard. Patience.
Sent from my GT-S5360 using xda premium
No wonder the week has passed long ago. Guess he doesn't want to share with us. Would request PG101 to close the thread.

[Q] Help... Problem on V6 Supercharge for SGY

Please help me
Everytime i choose a number in supercharger script it always respond "not found".
First, it ask me to choose from 0-3, i chose 2 then responded "not found"
Second, it ask me to choose from 1-17, i choose 9 then responded "not found"
nothing's happening so i kill the script
What could be the problem?
NOTE:
1. My SGY is rooted
2. Busybox 1.18.2 installed
3. script manager installed
4. titanium backup installed
5. no custom rom
6. android 2.3.6
PDA: S5360DXLA1
PHONE: S5360DXLA1
CSC: S5360OLBLA1
(sorry for my wrong english)
Do you tray to flash superchargev6 from the post y galaxy ace forum?
Sent from my GT-S5830 using xda premium
Double check you have the correct Busybox version. AND... this is not a joke:Make sure you are actually inputting numbers and NOT letters in the command prompts.
Sent from my PC36100 using the ultra-premium app for this specific forum
Please use the Q&A Forum for questions &
Read the Forum Rules Ref Posting
Moving to Q&A
atljatl said:
Double check you have the correct Busybox version. AND... this is not a joke:Make sure you are actually inputting numbers and NOT letters in the command prompts.
Sent from my PC36100 using the ultra-premium app for this specific forum
Click to expand...
Click to collapse
i use root checker to chek my busybox version, its 1.18.2. i'm sure i input numbers and not letters. i use the swype keypad because the samsung keypad doesn't work in the command prompt.
uh... run the script as root...
Also, give the newest one a spin
zeppelinrox said:
uh... run the script as root...
Also, give the newest one a spin
Click to expand...
Click to collapse
^he seems knowledgeable. Do that.
Sent from my PC36100 using the ultra-premium app for this specific forum
zeppelinrox said:
uh... run the script as root...
Also, give the newest one a spin
Click to expand...
Click to collapse
I ran the script as root. Still "not found" everytime I input a number.
boyetrobles said:
I ran the script as root. Still "not found" everytime I input a number.
Click to expand...
Click to collapse
I asked previously if you were sure you had Busybox installed correctly. Please go check again. Sometimes u have to click "install" 2 or 3 times to get it to stick. I'm 99% sure that's where your problem is. Get jrummys Busybox installer
Sent from my PC36100 using Tapatalk
i cant type? i cant input any letters on numbers on the script? i cant move on

[Rom][Miuiv4][GINGERBREAD][Pre-alpha][available for download]

MIUI V4 FOR GALAXY Y​
Click to expand...
Click to collapse
This is a Pre-alpha build (very early development stage)
Click to expand...
Click to collapse
Basically I do not own Galaxy y.
This is NOT MIUI v4 but a themed version of GB MIUI.
I can port miui to galaxy y with the help of some non-noob people.
Basic knowledge required
What is android?lol
How to flash ROM
Important-You should know how to get log cat at boot.(don't know, Google it)
Rom-MIUI Gb
Rom base-ussr v4 (Evanlocked-thanks)
Download link-2nd post.
Note- I'm not responsible for any damage caused by my Rom (Although nothing might happen).
Click to expand...
Click to collapse
Hit thanks..!
Downloads
MIUI GINGERBREAD downloads below-
TESTER VERSION 1 AVAILABLE-17/7/12
http://dl.dropbox.com/u/73407174/galaxy y miui.zip
Click to expand...
Click to collapse
Note-the above build might not be stable for daily use(Might not even boot up, as its tester and development version
FOR TESTERS ONLY-
POST the logcat below or can pm me (posting in the thread would be better)
Click to expand...
Click to collapse
Patches-
1)log1-received by leo23fla(thanks).
util log fixed.
http://dl.dropbox.com/u/73407174/galaxy y/classes.dex
Download the above file.
Open the rom go to system/framework.
Open framework.jar and replace the classes.dex with the downloaded file.
Then flash the rom and post the logcat
Wow, very fast, bro. I'll try this rom now.
Thx 4share.
BTW, U've test it with Galaxy Y?
good news,any screenies maybe?:good::good::good:
let the rom boot first then ill post screen shots
ronak.super said:
let the rom boot first then ill post screen shots
Click to expand...
Click to collapse
Opp. U don't try
shocklads said:
Opp. U don't try
Click to expand...
Click to collapse
He doesn't have a Galaxy Y, so we have to test and report on it.
Typed with SwiftKey 3 using XDA Premium on my GT-S5360
Well.... Another ROM... let's hope for the best
© Sent from my Samsung Galaxy~Y
ROFLkopter said:
He doesn't have a Galaxy Y, so we have to test and report on it.
Typed with SwiftKey 3 using XDA Premium on my GT-S5360
Click to expand...
Click to collapse
Of course. We will check and those that use it.
http://slexy.org/raw/s21FWfk2DJ
Click to expand...
Click to collapse
Sorry bro but it doesnt booted...
Below its the logcat...
i hope you can fix it :fingers-crossed:
http://pastebin.com/k2fDYUDF
can someone post a printscreen ?
i have posted a log cat at first page check it.
it doesn't booted...
i already tried to change to others kernel but without success
leo23fla said:
i have posted a log cat at first page check it.
it doesn't booted...
i already tried to change to others kernel but without success
Click to expand...
Click to collapse
thanks found the bug ill post debugged patch
patch one added check 2nd post op.
follow the instructions given there and give me the log
still not boot...
logcat says :
- exec '/system/bin/sh' failed: No such file or directory (2) -
tried to put files on system/bin and it didnt boot
the second logcat
--------- beginning of /dev/log/system
E/usb_portd( 1350): Open /system/etc/usb_portd.conf failed No such file or directory
E/usb_portd( 1350): Unable to open or parse the config file: /system/etc/usb_portd.conf
so i copy again another file and not boot
http://pastebin.com/wH8npQLN
changed frameworks files and didnt boot again
logcat :
http://pastebin.com/eGyaQ96H
so its a problem with framework file and something like that
so i copied some file from csc error and it doesnt boot
log cat :
http://pastebin.com/Bax3X0Ms
its with you now...
Hey Leo
Don't make any changes , just use my fresh rom(without any changes made by you)
Then download the patch , go system/framework , framework.jar then replace classes.dex
Not postings this as MOD just as member:
You really shouldn't call it MIUI v4 since MIUI v4 is ICS only.
Sent from my XT862 using Tapatalk 2
techno-update said:
Not postings this as MOD just as member:
You really shouldn't call it MIUI v4 since MIUI v4 is ICS only.
Sent from my XT862 using Tapatalk 2
Click to expand...
Click to collapse
Hmm.. that's right.
sent while doin' some burnouts
Another dead thread?
Hey ronak look the logcat at the post...the first i dont changed nothing and the error is because theres no adb file in system folder...
I just putted the adb in system folder...

[TUTORIAL] Compiling CM10 with Adam Repo

Hi All,
As everybody wants to test the build, now you can do by yourself by following the procedure.
Follow the below link:
http://forum.xda-developers.com/showthread.php?t=1813924
Still point 4.4
Now include adam repo by editing the manifest.xml in (android/system/.repo/manifest.xml)..
Edit using below command
nano manifest.xml
Copy the below line:
"<project path="device/samsung/galaxyr" name="Adam77Root/android_device_samsung_galaxyr" />"
before
"</manifest>"
thats it...
Do the repo sync again...
Better use
repo sync -j1
sometimes all files won't download
Now you have CM10 build with Adam repo
go to /android/system
type below commands:
. build/envsetup.sh
Now connect your mobile in USB (enable USB debugging).
execute the envsetup.sh
cd android/system/device/samsung/galaxyr
. extract-files.sh
Now you got all the vendor files.
in vendor/cm folder execute the get-prebuilts
which will give you the Term.apk
Now go back to your system directory:
execute below commands
brunch cm_galaxyr-eng
repo sync and brunch take hell of time.. u need good internet connection and UBUNTU with 64 bit...
if you want to build freshly...
type below command in ur system folder:
make clean
then do the brunch again...
Any help you can PM me.. if I am unable to reply i will forward u to Adam
Best of Luck...
Sorry for not saying thanks.. Not sure how i forgot it..
Special Thanks to pmso69 for the wonderful thread..
And as always for Adam
Awesome Kathik !! It will be very useful for my JB journey. One quick q, are you sure it is "brunch full_galaxyr-eng" not "brunch full_galaxyr"
Not sure why as full_galaxyr-eng.. Hope the last 3 is for language.. which we use as english.. Not sure.. it is my guess..
As adam advices.. till now using full_galaxyr-eng
All the best buddy..
Hope after reading it.. we will get lot of developers
The 'eng' flag at the end of 'full_galaxyr-eng' (I just adopted to CM standards and it'll be 'cm_galaxyr-eng' from now!!! Karthik pls add it to the OP!) stands for an ENGineering build. It can be 'debug' ,'userdebug' or 'user' as well, but the engineering build is the best in my opinion.
Edit: I changed my branch name on GitHub to jellybean to follow the CM standards. Karthik pls add this as well.
Whre i want download this rom cm10
Sent from my GT-I9103 using xda app-developers app
Adam77Root said:
The 'eng' flag at the end of 'full_galaxyr-eng' (I just adopted to CM standards and it'll be 'cm_galaxyr-eng' from now!!! Karthik pls add it to the OP!) stands for an ENGineering build. It can be 'debug' ,'userdebug' or 'user' as well, but the engineering build is the best in my opinion.
Edit: I changed my branch name on GitHub to jellybean to follow the CM standards. Karthik pls add this as well.
Click to expand...
Click to collapse
Done! Sorry for the delay...
Updated the OP with the CM Changes... Anybody trying it?
Can anyone tell me whats the size of the download and is there a way to download some limited compressed file. Last evening I kept the repo sync on for more than 1 hr and the .repo folder size grew upto 5gb and was still running.
The thing is I have a limited data connection
Sent from my GT-I9103 using xda app-developers app
parajsinghal said:
Can anyone tell me whats the size of the download and is there a way to download some limited compressed file. Last evening I kept the repo sync on for more than 1 hr and the .repo folder size grew upto 5gb and was still running.
The thing is I have a limited data connection
Sent from my GT-I9103 using xda app-developers app
Click to expand...
Click to collapse
It's about 6-7 GB's the whole, but I've never measured it. You will see the files only after it is fully downloaded, before that point the files are saved into the .repo folder.
Adam77Root said:
It's about 6-7 GB's the whole, but I've never measured it. You will see the files only after it is fully downloaded, before that point the files are saved into the .repo folder.
Click to expand...
Click to collapse
Is it absolutely must to sync evrything from git://github.com/CyanogenMod/android.git -b jellybean. It was written somewhere on a forum that the .repo grows upto 18-19GB. I dont have that much limit. Is there anything that can be done?
Damn!! I hate these stupid fair usage policies from Indian ISPs
Sent from my GT-I9103 using xda app-developers app
Total 22 GB after brunch.. so hope it will be around 18 to 19 GB.. for me it took 2 weeks for repo sync
im kind of new in compiling CM10.
how can i know what is adam repo (what features does it include) to know whather i wanna use it
Thanks for the thought for trying... Hope u r not a newbie who doesnt know how to flash and what is github? Check it adam dev thread for cm10, it tell what is working....
Sent from my GT-I9103
karthik050782 said:
Thanks for the thought for trying... Hope u r not a newbie who doesnt know how to flash and what is github? Check it adam dev thread for cm10, it tell what is working....
Sent from my GT-I9103
Click to expand...
Click to collapse
thank you for the quick reply.
any chance for supplying a link for that thread
avibiter said:
thank you for the quick reply.
any chance for supplying a link for that thread
Click to expand...
Click to collapse
Here is the link .http://forum.xda-developers.com/showthread.php?t=1870260
BTW. Hitting thanks speak louder then words in XDA. so please do it if someone helped you.

[MOD][10/22/13] - AT&T Tether hack - D80010d Base - No SQL stuff, just flash and go!

[MOD][10/22/13] - AT&T Tether hack - D80010d Base - No SQL stuff, just flash and go!
I hacked the AT&T Tether. Its now free on stock ROM and on custom ROMS build on the AT&T D80010d Base.
Instead of authenticating to the AT&T Entitlement server it authenticates to... wait for it... www.scottsroms.com and of course my server always gives the ok :good:
Make a Nandroid before flashing!
Download HERE!
Please hit Thanks and rate the thread 5 stars!
If you would like to contribute to my upcoming legal defense fund please hit the donate button ​
Any Dev (or aspiring Dev) may use this mod for any rom you make on the D80010d base. I just ask that you please give credits. Its hitting a server that I have to pay money for so thats not asking a whole lot.
How I did this...
Oddly enough this is the strangest working hack I did. I did this back on the AT&T GS4 when I couldnt get the framework-res to re-compile. Anyways, some background, when the hot spot / tether app checks with AT&T to see if you have tether it does it in such a simplistic way, it simply pings a server and looks for a "Yes" reply! Litterally, thats what it does.
I set up a simple html file on server here: http://scottsroms.com/tether that returns the word "Yes" and then the tether app turns on. Its really weird they did not have any encryption of any sort of obfuscation and its plain text English, but whatever, made it easy to hack.
So for the file on my server to be any use we have to re-direct the Entitlement check to that location instead of AT&T's server located at "entitlement.mobile.att.net"
So what I did was de-compile LGSettings.apk and edited the following lines...
File: com/android/settings/EntitlementCheckService.smali
Changes:
Code:
Line 217
const-string v4, "entitlement.mobile.att.net"
to
const-string v4, "scottsroms.com/tether"
Line 753:
const-string v9, "http://entitlement.mobile.att.net/teth"
to
const-string v9, "http://scottsroms.com/tether"
Line 846:
const-string v9, "http://entitlement.mobile.att.net/teth"
to
const-string v9, "http://scottsroms.com/tether"
Line 858:
const-string v9, "http://entitlement.mobile.att.net/mhs1"
to
const-string v9, "http://scottsroms.com/tether"
So as you can see it goes to my webserver and returns "yes" and tether works ;c)
http://scottsroms.com/tether
Is this already in your clean xe 1.1 rom?
Sent from my LG-D802 using XDA Premium 4 mobile app
Would it be possible to have this flashable zip simply install that same html file for the "yes" reply to a directory called "tether" on the root of the internal storage, and then the LGSettings.apk is edited to look at 127.0.0.1/tether? That way it would be faster since it doesnt send data over the internet to check and it wont have a server cost that someone has to be hosting.
EniGmA1987 said:
Would it be possible to have this flashable zip simply install that same html file for the "yes" reply to a directory called "tether" on the root of the internal storage, and then the LGSettings.apk is edited to look at 127.0.0.1/tether? That way it would be faster since it doesnt send data over the internet to check and it wont have a server cost that someone has to be hosting.
Click to expand...
Click to collapse
As long as you have an HTML server on your phone yes, that would work just fine.
But you need to set up a web server on your phone to get the appropriate response.
And thats only a guess. I am not an expert on web technology....
Another thing I was thinking too, you could also use the host file to redirect! You could try that if you understand how to edit the host file.
holeshot77 said:
Is this already in your clean xe 1.1 rom?
Sent from my LG-D802 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Sorry, I missed this the first time through...
Its in the patch that I had to make in post #2 of that thread.
Thanks
Just flashed and tested. Works great, Thanks.
Can something similar be accomplished for T-Mobile?
Sent from my LG-D801 using XDA Premium 4 mobile app
You Sir are a true Genius!
Works great!!!
$15 donated.
Thanks again.
TerMAESTRO said:
Can something similar be accomplished for T-Mobile?
Sent from my LG-D801 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
I was told that T-Mobile is just a change to the APN?
CTF said:
You Sir are a true Genius!
Works great!!!
$15 donated.
Thanks again.
Click to expand...
Click to collapse
Your welcome!
Sent from my LG-D802 using xda app-developers app
http://forum.xda-developers.com/showthread.php?t=2283615
i did this metod, and now theter works on att g2. im from mexico and works great with movistar
Scott, quick question...
I decompiled the lgsettings.apk and got all the files, but cannot find the line you mention that needs to be modified...
Could you please clarify where this is exactly?
Complete newbie here, and trying to learn. :cyclops:
Thank you.
CTF said:
Scott, quick question...
I decompiled the lgsettings.apk and got all the files, but cannot find the line you mention that needs to be modified...
Could you please clarify where this is exactly?
Complete newbie here, and trying to learn. :cyclops:
Thank you.
Click to expand...
Click to collapse
Please see post #2 and see the bold text for name of the file.
Then in the code box it lists the exact line #'s.
Its excruciatingly specific.
scrosler said:
Its excruciatingly specific.
Click to expand...
Click to collapse
Well, I guess that shows that I should probably not even try...
However, I do not have such file after decompiling lgsettings.apk.
I get a file called AndroidManifest, and a bunch of folders...
Anim/Color/drawable...
Nowhere can I find the file com/android/settings/EntitlementCheckService.smali
I am assuming that I am not doing something right, no worries, this thread is not for this, and I thought it would be more straightforward.
Thanks for the help.
CTF said:
Well, I guess that shows that I should probably not even try...
However, I do not have such file after decompiling lgsettings.apk.
I get a file called AndroidManifest, and a bunch of folders...
Anim/Color/drawable...
Nowhere can I find the file com/android/settings/EntitlementCheckService.smali
I am assuming that I am not doing something right, no worries, this thread is not for this, and I thought it would be more straightforward.
Thanks for the help.
Click to expand...
Click to collapse
No thats fine.. How did you decompile?
So you have a folder called "smali" or "out"
Depending on the specific ways you decompiled may change the name of that.
I wrote a very simple batch scrip on my website to decompile the classes.dex. You may want to look at that as it will be more straightforward for this simple edit.
Look here: http://www.scottsroms.com/showthread.php?404-TOOL-10-5-SmaliTOOL-1-2
Just grab the classes.dex from the apk, run my decompile tool, make changes per your needs, recompile with batch file, then inseret back into apk with file named as classes.dex.
All of this asumes you have Java installed and functioning.
scrosler said:
How did you decompile?.
Click to expand...
Click to collapse
I used a tool found on XDA called AndroidMultitool.
http://forum.xda-developers.com/showthread.php?t=2326604&highlight=password
It does not give me an OUT or SIMU folder, but I will try your method this weekend and see how this works out.
This decompiler gives a file called AndroidManifest, and a RES folder.
That RES folder has a bunch of subfolders, but not the ones you indicated.
I do have Java SE installed and working properly.
Thanks!
---------- Post added at 04:00 PM ---------- Previous post was at 03:37 PM ----------
On a whim, I just unzipped the apk using a standard unzipper (The unarchiver on OSX) and saw the assets folder, classes.dex and com folder.
More than the previous tool gave me.

Categories

Resources