-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to rebuilt the framework and run it on phone #15
Comments
I also maintain source patches for patching source code, as opposed to ApG/Auto-patcher which patches compiled code. If you want to add a feature, you could do it several ways. Probably the best way would be to use our source patches to patch the Android source. Then make your changes and compile. The source patches are located at github.com/OpenPDroid/OpenPdroidPatches. The README has patching instructions. I also have a collection of scripts that I use to apply source patches and even make Auto-patcher patches. They are really rough because I only have them pushed to github to preserve them. But maybe they can give some additional direction. www.github.com/mateor/patchScripts |
Thanks u reply; OK, let me try to describe the all thing, First : i have add a feature(such as control the app to visit MAC Address) on the Framework Thanks. Do u have some thing reference website about this? maybe u can let me to know more; On 2013-11-3, at 上午10:02, mateor notifications@github.com wrote:
|
You have the right idea, but the wrong order. Download CM source. Use the Or you could add your changes to the patches themselves before applying the If you already made your edits, what did you edit? |
OK,Got it. But i just still confuse, As i said,i will add the new api into Framework,and let the PDroid Manager to call api. And u said patch the CM source first.If i patch first, whether the new api will work? On 2013-11-3, at 上午10:32, mateor notifications@github.com wrote:
|
And i mostly will edit the /android/privacy/ some files. |
I guess I don't understand your confusion. You can either edit the patches Will you need a custom PdroidManager? Compiling that is difficult the first |
Yes, i also need a custom PdroidManager. Because i need to add a feature into PdroidManager,and i check the PdroidManager source code, Found that i need to add the source code into framework.so i have all the question.Do u can pm u Skype or another account which can contact u. |
No, I would rather do this here. That way the next person can read it and I In order to compile PDroidManager with your new feature, you will need to |
OK, i can accept.Thanks very much. If this topic will more question, i will continue ask here. thanks. |
No problem. I am happy to do what I can.
|
I have updated the patchScripts repo significantly, mostly as a If you use the scripts, you will want to edit the first few lines of Many of those scripts are for the autopatcher, but I think that
To reset your tree, just run Let me know if you need anything else! |
Thanks for u tips; But i am still can not patch the openPDroid Framework into CM10.1 what i allready done:
3.Due to u this tip,i using u tip to patch source code; But fail; The log will attach on the last; 4.Try to detail what i have do in the patch process Would u please give me a more detail guide ? I very very need the detail guide The Log was : (run the ./applyPDroid.sh 4.2.x) patching file core/pathmap.mk |
Sure. We will get this working for you. For the purpose of this walkthrough: ANDROID_HOME=
I use Below is the output of
|
Here is what the log, OpDPatch.log looks like afterwards: http://pastebin.com/YNgPTV23 If there are any patch failures, it should print to your terminal as well as the log. |
My phone was i9250,the property project target was maguro
but cannot find the choose your target ,there are not cm_maguro_eng option; How am i to compile the system? i do the step by http://wiki.cyanogenmod.org/w/Build_for_maguro;
to compile maguro system; I think there must be a file storage in my hard disk,so the brunch can work; |
I am sorry, I did not understand your last post. There was a lot of our Did those posted commands work for you? If not, you could always follow |
Sorry, i also plan to follow |
Essentially, the operation is this for each project:
Just swap the |
On 11/05/2013 08:07 PM, chenjunqiang wrote:
I just got this email. Just swap the |
Wait...that won't work exactly right. Follow my instructions above but pick |
I just do the step again: and success patch.I donn't why.
and now i am compile cm10.1 maguro now. Hope success. I just want to know : where is the framework.jar file.? If i chance something, how to get the new framework? |
yes,i found the place where the framwork.jar are.But when i chance something, i using "mm" command to re-compile something, such as framework-res.apk ,and framework.jar. But when i finished the framework.jar. I want to change the another place ,and go to same place, execute "mm" command,it alter me :"lack of the recovery .....",i forgot the alter information,i will show u next time. By the way ,do u have something easy way to chance the framework code and then to run on the phone. or the simulator. Now i should to chance the code,re-compile the framework,and then to replace the framework.jar into phone. it's very unconvenient。 |
You should be able to run on the emulator. I have little experience with Glad you got it patched! |
Thanks,now maybe the biggest problem was to debug the program between phone and the IDE. |
You've got some major problems there. But those are not Pdroid-related. We don't touch those files. I don't know what ROM you are trying to build, but neither AOSP nor CM have those calls in the frameworks/base/core/java/androidps/Build.java file. Did you add some code there? That is not is anything you got from me. I have spent a large portion of the day working with our patches as I brought OpenPdroid support up to 4.4. I know that the process works. Maybe you need to avoid the applyPdroid.sh script, but the process is mostly cut and dry. What steps are you taking that gets you here? I gave you a list of commands that will work I am pretty sure. Post the output if they provide an error. |
Oh,yep,Thanks for u job for open source,i have find a method to solve this problem.Lack of class.add the class ,the problem solve. |
Very good. I find java to be mostly clear in it's errors, good luck! |
I also just rebuilt PdroidManager for the Play Store, so the directions are fresh in my mind. Let me know when you have a ROM with OpenPDroid enabled, and I will write up the next step. |
sorry,i don't understand what are u meaning.Do u meaning where i download the rom?or when i have a rom,what will i do? Why are you rebuild the PdroidManager ? for add some new feature?or fixes bugs? |
I meant that whenever you were finished building a ROM with the OpenPdroid framework applied. My understanding was that you needed advice as to building PDroidManager.apk as well. I updated the binary in the Play Store so it was able to work with Android 4.4. It wouldn't show as available to anydevice running Android 4.4 in the Play Store. So I updated it. |
Oh,got it, now i am still try to find a way to run the PDroidManager.apk. Now was directly added the code into files,and then building the whole ROM,flash into phone.run the phone,test it; Now I j am still have a problem, i can't directly create a framework.jar file.
and then will alter me : no private recovery resources for TARGET_DEViCE; But when i was rebuilt all the rom was ok,do u have this problem? |
I use
|
Thanks. i will try later. BTW I am a Chinese man, but i saw u information was on USA,u are at night now.LOL.I will translate all this information into Chinese,let more people.haha But u seen forgot to tell me how to building PDroidManager.apk.haha |
Yeah...translations are great! Building PDroidManager can be pretty complicated. Have you built apps in |
Maybe u just can give a keyword,and i will try it; |
Yeah, i just told me the command
i have try it,and work, you are so nice; Thanks; |
Do have some way to return a fake phone model,brand,my team try many time, was failure. |
Hi, I want to ADD a PrivacyActivityManager which files will replace the ActivityManager,but i don't know how to replace the original ActivityManager in framework. But i found u had replaced the TelephonyManager as PrivacyTelephonyManager. So i guess you know how to do it; Please tell me how to do it; Thanks; |
On 11/12/2013 09:34 PM, chenjunqiang wrote:
I recommend adding it to frameworks/base/privacy because then you can |
On 11/12/2013 07:57 PM, chenjunqiang wrote:
|
Do u find a way to do it ? i have try to write the build.proc in the SD card,and read from here, but also failure; On 2013-11-13, at 下午12:02, mateor notifications@github.com wrote:
|
I thought I had seen some one take a stab at this, but I cannot find it. Those are found in Build as MANUFACTURER and MODEL: http://developer.android.com/reference/android/os/Build.html. They can probably be intercepted in the same way we other things. My first steps would be to add an entry to PrivacyPersistenceAdapter and PrivacySettings and see what happens. what did you original attempts look like? |
When my team try to change the Build.prop But this project have the problem, When the APP change the Build.prop file.the phone need to reboot to become effective. I hope we can avoid to reboot to change it; |
got it, but we already know how to change this. but thank you, i will
|
Just so I don't worry something has been lost in translation, let me make clear that this program also changes the device model like you were asking. |
There are must be something mistake, I just saying I know how to change imei,not the device model. And you provider the @DizzyDen ,i will contact him whether he know how to change the device model At last, If i know how to change, i will told you.To change device model before reboot which it's a hard work,haha On 2013-11-19, at 上午6:42, mateor notifications@github.com wrote:
|
Thanks for u do many job for OpenPDroid,now i have add some new feature into framework,but i don't have to rebuilt the framework,would u please tell my how to do ?
What i have done?
1.I have using ApG to patch the original rom,and PDroid Manager can work;
2.I have add a feature to control mac address feature into framework
What i want?
I want to rebuilt the framework,and test it,and run it on the phone.
The text was updated successfully, but these errors were encountered: